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
Public Sub New (stream As Stream)
参数
- stream
- Stream
输出流。The output stream.
例外
stream 不可写。stream is not writable.
stream 为 null。stream 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.
例外
fileName 为 null。The fileName is null.