Creates a TeaFile, using the specified stream as the underlying storage media.

Namespace: TeaTime
Assembly: DiscreteLogics.TeaFiles (in DiscreteLogics.TeaFiles.dll) Version: 1.0.0.16 (1.0.0.16)

Syntax

public static TeaFile<T> Create(
	Stream stream,
	string contentDescription,
	NameValueCollection nameValues,
	bool includeItemDescription
)

Parameters

stream
Type: System.IO..::..Stream
The stream.
contentDescription
Type: System..::..String
The content description.
nameValues
Type: TeaTime..::..NameValueCollection
The name values.
includeItemDescription
Type: System..::..Boolean
if set to true [include item description].

Return Value

[Missing <returns> documentation for "M:TeaTime.TeaFile`1.Create(System.IO.Stream,System.String,TeaTime.NameValueCollection,System.Boolean)"]

Remarks

Instead of creating a new FileStream, this method takes the Stream()()()() passed. This provides more control over the stream, like setting specific FileShare attributes. It also allows usage of alternative storage medias like MemoryStream. Create(String, String, NameValueCollection, Boolean)

See Also