Initializes an instance of
T:Microsoft.IdentityModel.Claims.ClaimsIdentity with an empty
T:Microsoft.IdentityModel.Claims.Claim collection, the specified
authentication type, name claim type, and role claim type.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in
microsoft.identitymodel.dll)
Usage
Visual Basic |
Dim authenticationType As String
Dim nameClaimType As String
Dim roleClaimType As String
Dim instance As New ClaimsIdentity(authenticationType, nameClaimType, roleClaimType)
|
Syntax
Visual Basic |
Public Sub New ( _
authenticationType As String, _
nameClaimType As String, _
roleClaimType As String _
)
|
C# |
public ClaimsIdentity (
string authenticationType,
string nameClaimType,
string roleClaimType
)
|
C++ |
public:
ClaimsIdentity (
String^ authenticationType,
String^ nameClaimType,
String^ roleClaimType
)
|
J# |
public ClaimsIdentity (
String authenticationType,
String nameClaimType,
String roleClaimType
)
|
JScript |
public function ClaimsIdentity (
authenticationType : String,
nameClaimType : String,
roleClaimType : String
)
|
Parameters
- authenticationType
-
The type of authentication used.
- nameClaimType
-
The claim type to use for
P:Microsoft.IdentityModel.Claims.ClaimsIdentity.Name.
- roleClaimType
-
The claim type to use for IClaimsPrincipal.IsInRole(string).
Exceptions
Remarks
Platforms
Development Platforms
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
See Also