<data name="ProcessorAffinityNotSupported" xml:space="preserve">
<value>Processor affinity for processes or threads is not supported on this platform.</value>
</data>
- <data name="ProcessStartIdentityNotSupported" xml:space="preserve">
- <value>Starting a process with a different identity is not supported on this platform.</value>
+ <data name="ProcessStartWithPasswordAndDomainNotSupported" xml:space="preserve">
+ <value>Starting a process as another user with a specified password and domain is not supported on this platform.</value>
+ </data>
+ <data name="ProcessStartSingleFeatureNotSupported" xml:space="preserve">
+ <value>The {0} property is not supported on this platform.</value>
</data>
<data name="RUsageFailure" xml:space="preserve">
<value>Failed to set or retrieve rusage information. See the error code for OS-specific error information.</value>
<data name="ArgumentAndArgumentListInitialized" xml:space="preserve">
<value>Only one of Arguments or ArgumentList may be used.</value>
</data>
-</root>
\ No newline at end of file
+</root>
[CLSCompliant(false)]
public static Process Start(string fileName, string userName, SecureString password, string domain)
{
- throw new PlatformNotSupportedException(SR.ProcessStartIdentityNotSupported);
+ throw new PlatformNotSupportedException(SR.ProcessStartWithPasswordAndDomainNotSupported);
}
[CLSCompliant(false)]
public static Process Start(string fileName, string arguments, string userName, SecureString password, string domain)
{
- throw new PlatformNotSupportedException(SR.ProcessStartIdentityNotSupported);
+ throw new PlatformNotSupportedException(SR.ProcessStartWithPasswordAndDomainNotSupported);
}
/// <summary>Stops the associated process immediately.</summary>
public string PasswordInClearText
{
- get { throw new PlatformNotSupportedException(SR.ProcessStartIdentityNotSupported); }
- set { throw new PlatformNotSupportedException(SR.ProcessStartIdentityNotSupported); }
+ get { throw new PlatformNotSupportedException(SR.Format(SR.ProcessStartSingleFeatureNotSupported, nameof(PasswordInClearText))); }
+ set { throw new PlatformNotSupportedException(SR.Format(SR.ProcessStartSingleFeatureNotSupported, nameof(PasswordInClearText))); }
}
public string Domain
{
- get { throw new PlatformNotSupportedException(SR.ProcessStartIdentityNotSupported); }
- set { throw new PlatformNotSupportedException(SR.ProcessStartIdentityNotSupported); }
+ get { throw new PlatformNotSupportedException(SR.Format(SR.ProcessStartSingleFeatureNotSupported, nameof(Domain))); }
+ set { throw new PlatformNotSupportedException(SR.Format(SR.ProcessStartSingleFeatureNotSupported, nameof(Domain))); }
}
public bool LoadUserProfile
{
- get { throw new PlatformNotSupportedException(SR.ProcessStartIdentityNotSupported); }
- set { throw new PlatformNotSupportedException(SR.ProcessStartIdentityNotSupported); }
+ get { throw new PlatformNotSupportedException(SR.Format(SR.ProcessStartSingleFeatureNotSupported, nameof(LoadUserProfile))); }
+ set { throw new PlatformNotSupportedException(SR.Format(SR.ProcessStartSingleFeatureNotSupported, nameof(LoadUserProfile))); }
}
public bool UseShellExecute { get; set; }
[CLSCompliant(false)]
public SecureString Password
{
- get { throw new PlatformNotSupportedException(SR.ProcessStartIdentityNotSupported); }
- set { throw new PlatformNotSupportedException(SR.ProcessStartIdentityNotSupported); }
+ get { throw new PlatformNotSupportedException(SR.Format(SR.ProcessStartSingleFeatureNotSupported, nameof(Password))); }
+ set { throw new PlatformNotSupportedException(SR.Format(SR.ProcessStartSingleFeatureNotSupported, nameof(Password))); }
}
}
}