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
Available since 3.0
Return to top
Show: