ProcessStartInfo.StandardErrorEncoding 属性
定义
获取或设置错误输出的首选编码。Gets or sets the preferred encoding for error output.
public:
property System::Text::Encoding ^ StandardErrorEncoding { System::Text::Encoding ^ get(); void set(System::Text::Encoding ^ value); };
public System.Text.Encoding? StandardErrorEncoding { get; set; }
public System.Text.Encoding StandardErrorEncoding { get; set; }
member this.StandardErrorEncoding : System.Text.Encoding with get, set
Public Property StandardErrorEncoding As Encoding
属性值
表示错误输出的首选编码的对象。An object that represents the preferred encoding for error output. 默认值为 null。The default is null.
注解
如果属性的值 StandardErrorEncoding 为 null ,则该进程将使用默认的标准错误编码作为错误输出。If the value of the StandardErrorEncoding property is null, the process uses the default standard error encoding for error output. 在 StandardErrorEncoding 启动进程之前,必须设置属性。The StandardErrorEncoding property must be set before the process is started. 设置此属性并不保证进程将使用指定的编码;此过程将仅使用它所支持的编码。Setting this property does not guarantee that the process will use the specified encoding; the process will use only those encodings that it supports. 应该对应用程序进行测试,以确定支持哪些编码。The application should be tested to determine which encodings are supported.