Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

StorageInfo.CreateStream Method (String, CompressionOption, EncryptionOption)

Creates a new stream with a given name, CompressionOption, and EncryptionOption.

Namespace:  System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

public StreamInfo CreateStream(
	string name,
	CompressionOption compressionOption,
	EncryptionOption encryptionOption
)

Parameters

name
Type: System.String

The name for the new stream.

compressionOption
Type: System.IO.Packaging.CompressionOption

The compression option for the data stream.

encryptionOption
Type: System.IO.Packaging.EncryptionOption

The encryption option for the data stream.

Return Value

Type: System.IO.Packaging.StreamInfo
The new stream with the specified name, compressionOption, and encryptionOption.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft