DelegatingConfigHost.OpenStreamForWrite 方法

定义

打开并返回 Stream 对象以写入配置文件。Opens and returns a Stream object for writing to a configuration file. 允许将 Stream 对象指定为模板,以便复制文件特性。Allows a Stream object to be designated as a template for copying file attributes.

重载

OpenStreamForWrite(String, String, Object)

此 API 支持产品基础结构,不能在代码中直接使用。

打开一个 Stream 对象,以便写入配置文件或写入用于生成配置文件的临时文件。Opens a Stream object for writing to a configuration file or for writing to a temporary file used to build a configuration file. 允许将 Stream 对象指定为模板,以便复制文件特性。Allows a Stream object to be designated as a template for copying file attributes.

OpenStreamForWrite(String, String, Object, Boolean)

此 API 支持产品基础结构,不能在代码中直接使用。

打开一个 Stream 对象,以便写入配置文件。Opens a Stream object for writing to a configuration file. 允许将 Stream 对象指定为模板,以便复制文件特性。Allows a Stream object to be designated as a template for copying file attributes.

OpenStreamForWrite(String, String, Object)

打开一个 Stream 对象,以便写入配置文件或写入用于生成配置文件的临时文件。Opens a Stream object for writing to a configuration file or for writing to a temporary file used to build a configuration file. 允许将 Stream 对象指定为模板,以便复制文件特性。Allows a Stream object to be designated as a template for copying file attributes.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 virtual System::IO::Stream ^ OpenStreamForWrite(System::String ^ streamName, System::String ^ templateStreamName, System::Object ^ % writeContext);
public virtual System.IO.Stream OpenStreamForWrite (string streamName, string templateStreamName, ref object writeContext);
abstract member OpenStreamForWrite : string * string * obj -> System.IO.Stream
override this.OpenStreamForWrite : string * string * obj -> System.IO.Stream
Public Overridable Function OpenStreamForWrite (streamName As String, templateStreamName As String, ByRef writeContext As Object) As Stream

参数

streamName
String

对配置文件执行 I/O 任务的 Stream 对象的名称。The name of a Stream object performing I/O tasks on a configuration file.

templateStreamName
String

`Stream 对象的名称,从该对象复制文件特性作为模板。The name of a Stream object from which file attributes are to be copied as a template.

writeContext
Object

Stream 对象的写上下文(按引用传递)。The write context of the Stream object (passed by reference).

返回

Stream

Stream 对象。A Stream object.

实现

适用于

OpenStreamForWrite(String, String, Object, Boolean)

打开一个 Stream 对象,以便写入配置文件。Opens a Stream object for writing to a configuration file. 允许将 Stream 对象指定为模板,以便复制文件特性。Allows a Stream object to be designated as a template for copying file attributes.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 virtual System::IO::Stream ^ OpenStreamForWrite(System::String ^ streamName, System::String ^ templateStreamName, System::Object ^ % writeContext, bool assertPermissions);
public virtual System.IO.Stream OpenStreamForWrite (string streamName, string templateStreamName, ref object writeContext, bool assertPermissions);
abstract member OpenStreamForWrite : string * string * obj * bool -> System.IO.Stream
override this.OpenStreamForWrite : string * string * obj * bool -> System.IO.Stream
Public Overridable Function OpenStreamForWrite (streamName As String, templateStreamName As String, ByRef writeContext As Object, assertPermissions As Boolean) As Stream

参数

streamName
String

对配置文件执行 I/O 任务的 Stream 对象的名称。The name of a Stream object performing I/O tasks on a configuration file.

templateStreamName
String

`Stream 对象的名称,从该对象复制文件特性作为模板。The name of a Stream object from which file attributes are to be copied as a template.

writeContext
Object

对配置文件执行 I/O 任务的 Stream 对象的写上下文(按引用传递)。The write context of the Stream object performing I/O tasks on the configuration file (passed by reference).

assertPermissions
Boolean

如果断言权限,则为 true;否则为 falsetrue to assert permissions; otherwise, false.

返回

Stream

streamName 参数指定的对象。The object specified by the streamName parameter.

实现

适用于