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

SPClaimProviderManager.CreateUserClaim method (String, SPOriginalIssuerType)

Creates an object that represents the SPClaim for the user.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public static SPClaim CreateUserClaim(
	string userIdentifier,
	SPOriginalIssuerType issuerType
)

Parameters

userIdentifier
Type: System.String

A string that represents the unique identifier for the user.

issuerType
Type: Microsoft.SharePoint.Administration.Claims.SPOriginalIssuerType

An object that represents the type of issuer for the user identifier.

Return value

Type: Microsoft.SharePoint.Administration.Claims.SPClaim
An object that contains the claim object for the user.
ExceptionCondition
ArgumentNullException

The userIdentifier parameter is a null reference (Nothing in Visual Basic).

ArgumentException

The issuerType parameter requires an identifier.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.