语言

IInternalConfigHost.OpenStreamForWrite 方法

定义

打开一个 Stream 对象以写入配置文件。 允许将 Stream 对象指定为用于复制文件属性的模板。

重载

名称 说明
OpenStreamForWrite(String, String, Object)

打开一个 Stream 对象,用于写入配置文件或写入用于生成配置文件的临时文件。 允许将 Stream 对象指定为用于复制文件属性的模板。

OpenStreamForWrite(String, String, Object, Boolean)

打开一个 Stream 对象以写入配置文件。 允许将 Stream 对象指定为用于复制文件属性的模板。

OpenStreamForWrite(String, String, Object)

Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs

打开一个 Stream 对象,用于写入配置文件或写入用于生成配置文件的临时文件。 允许将 Stream 对象指定为用于复制文件属性的模板。

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

参数

streamName
String

一个字符串,表示在配置文件上执行 I/O 任务的对象的名称 Stream 。

templateStreamName
String

要从中复制文件属性的对象的名称 Stream 作为模板。

writeContext
Object

对象的写入上下文 Stream 。

返回

Stream 对象。

适用于

OpenStreamForWrite(String, String, Object, Boolean)

Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs
Source:
IInternalConfigHost.cs

打开一个 Stream 对象以写入配置文件。 允许将 Stream 对象指定为用于复制文件属性的模板。

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

参数

streamName
String

一个字符串,表示在配置文件上执行 I/O 任务的对象的名称 Stream 。

templateStreamName
String

要从中复制文件属性的名称 Stream 作为模板。

writeContext
Object

对配置文件执行 I/O 任务的对象的写入上下文 Stream 。

assertPermissions
Boolean

true 断言权限;否则,为 false.

返回

由 streamName. 指定的对象

适用于