Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPRoleAssignment constructor (String, String, String, String)

Initializes a new instance of the SPRoleAssignment class that has no role definition bindings for the specified user.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public SPRoleAssignment(
	string LoginName,
	string Email,
	string Name,
	string Notes
)

Parameters

LoginName
Type: System.String

The name of the user in the format DOMAIN\User_Alias.

Email
Type: System.String

The email address of the user.

Name
Type: System.String

The display name of the user.

Notes
Type: System.String

The notes for the user.

This constructor creates a new entry in the SPPrincipal collection if the user does not already exist in the site collection.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.