A string containing the name of the domain that verifies the current credentials.
The NetworkCredential.Domain property specifies the domain or realm to which the user name belongs. Typically, this is the host computer name where the application runs or the user domain for the currently logged in user.
Type | Reason |
---|---|
System.Security.Permissions.EnvironmentPermission | Requires read access to the environment variable that contains the domain name. See System.Security.Permissions.EnvironmentPermissionAccess.Read. |