SPPrincipalInfo.Department Property

Gets the department name of the principal.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property Department As String
    Get
'Usage
Dim instance As SPPrincipalInfo
Dim value As String

value = instance.Department
[ClientCallableAttribute]
public string Department { get; }

Property Value

Type: System.String
A string that contains the department name.

See Also

Reference

SPPrincipalInfo Class

SPPrincipalInfo Members

Microsoft.SharePoint.Utilities Namespace