Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the logon name of the user or external group that is associated with the policy.
Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public ReadOnly Property UserName As String
    Get
'Usage
Dim instance As SPPolicy
Dim value As String
value = instance.UserName
public string UserName { get; }
Property Value
Type: System.String
A string that contains the user name.
Examples
The logon name is specified in the domain\alias format.