Szerkesztés

Megosztás a következőn keresztül:


StorageInfo.CreateStream Method

Definition

Creates a new I/O stream in the store.

Overloads

CreateStream(String)

Creates a new stream with a given name.

CreateStream(String, CompressionOption, EncryptionOption)

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

CreateStream(String)

Creates a new stream with a given name.

public:
 System::IO::Packaging::StreamInfo ^ CreateStream(System::String ^ name);
public System.IO.Packaging.StreamInfo CreateStream (string name);
member this.CreateStream : string -> System.IO.Packaging.StreamInfo
Public Function CreateStream (name As String) As StreamInfo

Parameters

name
String

The name for the new stream.

Returns

The new stream with the specified name.

Remarks

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

See also

Applies to

CreateStream(String, CompressionOption, EncryptionOption)

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

public:
 System::IO::Packaging::StreamInfo ^ CreateStream(System::String ^ name, System::IO::Packaging::CompressionOption compressionOption, System::IO::Packaging::EncryptionOption encryptionOption);
public System.IO.Packaging.StreamInfo CreateStream (string name, System.IO.Packaging.CompressionOption compressionOption, System.IO.Packaging.EncryptionOption encryptionOption);
member this.CreateStream : string * System.IO.Packaging.CompressionOption * System.IO.Packaging.EncryptionOption -> System.IO.Packaging.StreamInfo
Public Function CreateStream (name As String, compressionOption As CompressionOption, encryptionOption As EncryptionOption) As StreamInfo

Parameters

name
String

The name for the new stream.

compressionOption
CompressionOption

The compression option for the data stream.

encryptionOption
EncryptionOption

The encryption option for the data stream.

Returns

The new stream with the specified name, compressionOption, and encryptionOption.

See also

Applies to