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