DelegatingConfigHost.OpenStreamForWrite 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
OpenStreamForWrite(String, String, Object) |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 開啟 Stream 物件,以便寫入組態檔,或寫入用於建置組態檔的暫存檔。 允許 Stream 物件指定為範本,以便複製檔案屬性 (Attribute)。 |
OpenStreamForWrite(String, String, Object, Boolean) |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 開啟 Stream 物件,以便寫入組態檔。 允許 Stream 物件指定為範本,以便複製檔案屬性 (Attribute)。 |
OpenStreamForWrite(String, String, Object)
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
參數
傳回
Stream 物件。
實作
適用於
OpenStreamForWrite(String, String, Object, Boolean)
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
參數
- assertPermissions
- Boolean
若要判斷提示使用權限,則為 true
,否則為 false
。
傳回
streamName
參數所指定的物件。