IInternalConfigHost.OpenStreamForWrite 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
OpenStreamForWrite(String, String, Object) |
打开一个 Stream 对象,以便写入配置文件或写入用于生成配置文件的临时文件。 允许将 Stream 对象指定为模板,以便复制文件特性。 |
OpenStreamForWrite(String, String, Object, Boolean) |
OpenStreamForWrite(String, String, Object)
- Source:
- IInternalConfigHost.cs
- Source:
- IInternalConfigHost.cs
- Source:
- IInternalConfigHost.cs
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
参数
返回
Stream 对象。
适用于
OpenStreamForWrite(String, String, Object, Boolean)
- Source:
- IInternalConfigHost.cs
- Source:
- IInternalConfigHost.cs
- Source:
- IInternalConfigHost.cs
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
参数
- assertPermissions
- Boolean
如果断言权限,则为 true
;否则为 false
。
返回
streamName
指定的对象。