Share via


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)

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