IInternalConfigHost.OpenStreamForWrite 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
OpenStreamForWrite(String, String, Object) |
開啟 Stream 物件,以便寫入組態檔,或寫入用於建置組態檔的暫存檔。 允許 Stream 物件指定為範本,以便複製檔案屬性 (Attribute)。 |
OpenStreamForWrite(String, String, Object, Boolean) |
開啟 Stream 物件,以便寫入組態檔。 允許 Stream 物件指定為範本,以便複製檔案屬性 (Attribute)。 |
OpenStreamForWrite(String, String, Object)
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)
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
指定的物件。