StorageInfo.CreateStream Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates a new stream with a given name.

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

public StreamInfo CreateStream(
	string name


Type: System.String

The name for the new stream.

Return Value

Type: System.IO.Packaging.StreamInfo

The new stream with the specified name.

This CreateStream method creates a new stream with StreamInfo default settings set to CompressionOption.NotCompressed and EncryptionOption.None.

.NET Framework
Available since 3.0
Return to top