System.Net.NetworkCredential.UserName Property

Gets or sets the user name associated with the credentials.

Syntax

public string UserName { get; set; }

Value

A string containing the user name for the account associated with the current credentials.

Remarks

Documentation for this section has not yet been entered.

Permissions

TypeReason
System.Security.Permissions.EnvironmentPermissionRequires read access to the environment variable that contains the user name. See System.Security.Permissions.EnvironmentPermissionAccess.Read.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0