SPPolicy.UserName Property

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.

See Also

Reference

SPPolicy Class

SPPolicy Members

Microsoft.SharePoint.Administration Namespace