Share via


Contact.GetPrincipal Method (SPWeb)

Gets the SPPrincipal object for the contact.

Namespace:  Microsoft.Office.Workflow.Utility
Assembly:  Microsoft.Office.Workflow.Pages (in Microsoft.Office.Workflow.Pages.dll)

Syntax

'Declaration
Public Function GetPrincipal ( _
    web As SPWeb _
) As SPPrincipal
'Usage
Dim instance As Contact
Dim web As SPWeb
Dim returnValue As SPPrincipal

returnValue = instance.GetPrincipal(web)
public SPPrincipal GetPrincipal(
    SPWeb web
)

Parameters

Return Value

Type: Microsoft.SharePoint.SPPrincipal
An SPPrincipal object of the principal.

Remarks

An individual user (SPUser) gains access to a Windows SharePoint Services object directly through an individual role assignment, or indirectly through membership in either a domain group or a SharePoint group (SPGroup) that has a role assignment. In a direct role assignment, the user is the principal (SPPrincipal), while in a domain group or SharePoint group role assignment, the domain group or SharePoint group is the principal.

For more information about principal, see Authorization Object Relations in the Microsoft Windows SharePoint Services 3.0 SDK.

For an example of how to the GetPrincipal method, see the example in ExpandGroups method.

See Also

Reference

Contact Class

Contact Members

GetPrincipal Overload

Microsoft.Office.Workflow.Utility Namespace