Edit

Share via


ProcessStartInfo.UseCredentialsForNetworkingOnly Property

Definition

Gets or sets a value that indicates whether the user credentials are only used for network resources.

public:
 property bool UseCredentialsForNetworkingOnly { bool get(); void set(bool value); };
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public bool UseCredentialsForNetworkingOnly { get; set; }
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.UseCredentialsForNetworkingOnly : bool with get, set
Public Property UseCredentialsForNetworkingOnly As Boolean

Property Value

true if the user credentials are only used for network resources; otherwise, false.

Attributes

Remarks

This property is referenced if the process is being started by using the user name, password, and domain.

If the value is true, the process is started with the caller's identity. The system creates a new logon session with the given credentials, which is used on the network only.

The system does not validate the specified credentials. Therefore, the process can start, but it may not have access to network resources.

Applies to