diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2007-08-07 03:46:28 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2007-08-07 03:46:28 +0400 |
commit | 520f81d70bba382e58cc98d5b56a92b9c390d1ba (patch) | |
tree | 40844bb6dde990178f6fc460d866098f963a69f9 /mcs/class/System/System.Diagnostics/ProcessStartInfo.cs | |
parent | bb93fa4afd9f00c18a7855df4c2e157d11298b2b (diff) |
2007-08-06 Atsushi Enomoto <atsushi@ximian.com>
* Process.cs, ProcessStartInfo.cs : added StandardOutputEncoding
and StandardErrorEncoding.
* ProcessStartInfoTest.cs: tests for Standard[Output|Error]Encoding.
svn path=/trunk/mcs/; revision=83566
Diffstat (limited to 'mcs/class/System/System.Diagnostics/ProcessStartInfo.cs')
-rw-r--r-- | mcs/class/System/System.Diagnostics/ProcessStartInfo.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs b/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs index 76f359f2d35..bcf79f1297d 100644 --- a/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs +++ b/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs @@ -32,7 +32,9 @@ using System.Collections; using System.Collections.Specialized; using System.ComponentModel; +using System.Security; using System.Security.Permissions; +using System.Text; namespace System.Diagnostics { @@ -54,6 +56,9 @@ namespace System.Diagnostics private bool redirect_standard_output = false; private bool use_shell_execute = true; private ProcessWindowStyle window_style = ProcessWindowStyle.Normal; +#if NET_2_0 + private Encoding encoding_stderr, encoding_stdout; +#endif public ProcessStartInfo() { @@ -205,6 +210,18 @@ namespace System.Diagnostics } } +#if NET_2_0 + public Encoding StandardErrorEncoding { + get { return encoding_stderr; } + set { encoding_stderr = value; } + } + + public Encoding StandardOutputEncoding { + get { return encoding_stdout; } + set { encoding_stdout = value; } + } +#endif + [DefaultValue (true)] [MonitoringDescription ("Use the shell to start this process.")] #if NET_2_0 |