Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StandardErrorEncoding Property

ProcessStartInfo.StandardErrorEncoding Property

Gets or sets the preferred encoding for error output.

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)

member StandardErrorEncoding : Encoding with get, set

Property Value

Type: System.Text.Encoding
An object that represents the preferred encoding for error output. The default is a null reference (Nothing in Visual Basic).

If the value of the StandardErrorEncoding property is a null reference (Nothing in Visual Basic), the process uses the default standard error encoding for error output. 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft