PreserializedResourceWriter 建構函式

定義

多載

PreserializedResourceWriter(Stream)

初始化 PreserializedResourceWriter 類別的新執行個體,這個執行個體可將資源寫入提供的資料流。Initializes a new instance of the PreserializedResourceWriter class that writes the resources to the provided stream.

PreserializedResourceWriter(String)

初始化 PreserializedResourceWriter 類別的新執行個體,這個執行個體會將資源寫入指定的檔案。Initializes a new instance of the PreserializedResourceWriter class that writes the resources to the specified file.

PreserializedResourceWriter(Stream)

初始化 PreserializedResourceWriter 類別的新執行個體,這個執行個體可將資源寫入提供的資料流。Initializes a new instance of the PreserializedResourceWriter class that writes the resources to the provided stream.

public:
 PreserializedResourceWriter(System::IO::Stream ^ stream);
public PreserializedResourceWriter (System.IO.Stream stream);
new System.Resources.Extensions.PreserializedResourceWriter : System.IO.Stream -> System.Resources.Extensions.PreserializedResourceWriter

參數

stream
Stream

輸出資料流。The output stream.

例外狀況

stream 不可寫入。stream is not writable.

streamnullstream is null.

PreserializedResourceWriter(String)

初始化 PreserializedResourceWriter 類別的新執行個體,這個執行個體會將資源寫入指定的檔案。Initializes a new instance of the PreserializedResourceWriter class that writes the resources to the specified file.

public:
 PreserializedResourceWriter(System::String ^ fileName);
public PreserializedResourceWriter (string fileName);
new System.Resources.Extensions.PreserializedResourceWriter : string -> System.Resources.Extensions.PreserializedResourceWriter
Public Sub New (fileName As String)

參數

fileName
String

輸出檔案名稱。The output file name.

例外狀況

fileNamenullThe fileName is null.

適用於