SPClaimUserUtility.TryGetClaimsUserNameFromIdentity method
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function TryGetClaimsUserNameFromIdentity ( _
identity As IIdentity, _
<OutAttribute> ByRef claimUserName As String _
) As Boolean
'Usage
Dim identity As IIdentity
Dim claimUserName As String
Dim returnValue As Boolean
returnValue = SPClaimUserUtility.TryGetClaimsUserNameFromIdentity(identity, _
claimUserName)
public static bool TryGetClaimsUserNameFromIdentity(
IIdentity identity,
out string claimUserName
)
Parameters
- identity
Type: System.Security.Principal.IIdentity
- claimUserName
Type: System.String
Return value
Type: System.Boolean