IInternalConfigHost.OpenStreamForRead 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開啟 Stream 物件,以便讀取組態檔。
多載
OpenStreamForRead(String) |
開啟 Stream,以便讀取組態檔。 |
OpenStreamForRead(String, Boolean) |
開啟 Stream 物件,以便讀取組態檔。 |
OpenStreamForRead(String)
開啟 Stream,以便讀取組態檔。
public:
System::IO::Stream ^ OpenStreamForRead(System::String ^ streamName);
public System.IO.Stream OpenStreamForRead (string streamName);
abstract member OpenStreamForRead : string -> System.IO.Stream
Public Function OpenStreamForRead (streamName As String) As Stream
參數
傳回
Stream 物件。
適用於
OpenStreamForRead(String, Boolean)
開啟 Stream 物件,以便讀取組態檔。
public:
System::IO::Stream ^ OpenStreamForRead(System::String ^ streamName, bool assertPermissions);
public System.IO.Stream OpenStreamForRead (string streamName, bool assertPermissions);
abstract member OpenStreamForRead : string * bool -> System.IO.Stream
Public Function OpenStreamForRead (streamName As String, assertPermissions As Boolean) As Stream
參數
- assertPermissions
- Boolean
若要判斷提示使用權限,則為 true
,否則為 false
。
傳回
streamName
指定的物件。