StorageInfo.CreateStream 方法

定义

在存储区中新建 I/O 流。

重载

CreateStream(String)

使用给定名称新建流。

CreateStream(String, CompressionOption, EncryptionOption)

使用给定名称 CompressionOptionEncryptionOption 新建流。

CreateStream(String)

使用给定名称新建流。

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

参数

name
String

新流的名称。

返回

具有指定 name 的新流。

注解

此方法CreateStream创建默认设置设置为 CompressionOption 和 EncryptionOptionNotCompressed.None的新流StreamInfo

另请参阅

适用于

CreateStream(String, CompressionOption, EncryptionOption)

使用给定名称 CompressionOptionEncryptionOption 新建流。

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

参数

name
String

新流的名称。

compressionOption
CompressionOption

数据流的压缩选项。

encryptionOption
EncryptionOption

数据流的加密选项。

返回

带有指定的 namecompressionOptionencryptionOption 的新流。

另请参阅

适用于