Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ClaimsIdentity Constructor

.NET Framework 4.6 and 4.5

Initializes a new instance of the ClaimsIdentity class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method ClaimsIdentity() Initializes a new instance of the ClaimsIdentity class with an empty claims collection.
Public method ClaimsIdentity(BinaryReader)
Protected method ClaimsIdentity(ClaimsIdentity)
Public method ClaimsIdentity(IEnumerable<Claim>) Initializes a new instance of the ClaimsIdentity class using an enumerated collection of Claim objects.
Public method ClaimsIdentity(IIdentity) Initializes a new instance of the ClaimsIdentity class using the name and authentication type from the specified IIdentity.
Protected method ClaimsIdentity(SerializationInfo) Initializes a new instance of the ClaimsIdentity class from a serialized stream created by using ISerializable.
Public method ClaimsIdentity(String) Initializes a new instance of the ClaimsIdentity class with an empty claims collection and the specified authentication type.
Public method ClaimsIdentity(IEnumerable<Claim>, String) Initializes a new instance of the ClaimsIdentity class with the specified claims and authentication type.
Public method ClaimsIdentity(IIdentity, IEnumerable<Claim>) Initializes a new instance of the ClaimsIdentity class using the specified claims and the specified IIdentity.
Protected method ClaimsIdentity(SerializationInfo, StreamingContext) Initializes a new instance of the ClaimsIdentity class from a serialized stream created by using ISerializable.
Public method ClaimsIdentity(String, String, String) Initializes a new instance of the ClaimsIdentity class with the specified authentication type, name claim type, and role claim type.
Public method ClaimsIdentity(IEnumerable<Claim>, String, String, String) Initializes a new instance of the ClaimsIdentity class with the specified, claims, authentication type, name claim type, and role claim type.
Public method ClaimsIdentity(IIdentity, IEnumerable<Claim>, String, String, String) Initializes a new instance of the ClaimsIdentity class from the specified IIdentity using the specified claims, authentication type, name claim type, and role claim type.
Top
Show:
© 2015 Microsoft