Export (0) Print
Expand All

ClaimsIdentity Constructor

[Starting with the .NET Framework 4.5, Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework. The version of WIF addressed by this topic, WIF 3.5, is deprecated and should only be used when developing against the .NET Framework 3.5 SP1 or the .NET Framework 4. For more information about WIF in the .NET Framework 4.5, also known as WIF 4.5, see the Windows Identity Foundation documentation in the .NET Framework 4.5 Development Guide.]

Initializes a new instance of the ClaimsIdentity class.

NameDescription
ClaimsIdentity ()Initializes a new instance of the ClaimsIdentity class with an empty claims collection.
ClaimsIdentity (IEnumerable)Initializes a new instance of the ClaimsIdentity class using an enumerated collection of Claim objects.
ClaimsIdentity (IEnumerable, SecurityToken)Initializes a new instance of the ClaimsIdentity class using an enumerated collection of Claim objects and the specified authentication type, name claim type, and role claim type.
ClaimsIdentity (IEnumerable, String)Initializes a new instance of the ClaimsIdentity class using an enumerated collection of Claim objects and the specified authentication type.
ClaimsIdentity (IEnumerable, String, SecurityToken)Initializes a new instance of the ClaimsIdentity class using an enumerated collection of Claim objects and the specified authentication type, name claim type, and role claim type.
ClaimsIdentity (IEnumerable, String, String, String)Initializes a new instance of the ClaimsIdentity class using an enumerated collection of Claim objects and the specified authentication type, name claim type, and role claim type.
ClaimsIdentity (IEnumerable, String, String, String, SecurityToken)Initializes a new instance of the ClaimsIdentity class using an enumerated collection of Claim objects and the specified authentication type, name claim type, and role claim type.
ClaimsIdentity (SerializationInfo, StreamingContext)Initializes a new instance of the ClaimsIdentity class from a serialized stream created with ISerializable.
ClaimsIdentity (X509Certificate2, String)Initializes a new instance of the ClaimsIdentity class from the specified X.509 certificate and the specified issuer name.
ClaimsIdentity (X509Certificate2, String, String)Initializes a new instance of the ClaimsIdentity class from a specified X.509 certificate and with the specified issuer name and authentication type.
ClaimsIdentity (IIdentity)Initializes a new instance of the ClaimsIdentity class using the name and authentication type from an IIdentity object.
ClaimsIdentity (String)Initializes a new instance of the ClaimsIdentity class with no claims and the specified authentication type.
ClaimsIdentity (String, String, String)Initializes a new instance of the ClaimsIdentity class with no claims and the specified authentication type, name claim type, and role claim type.



Copyright © 2008 by Microsoft Corporation. All rights reserved.

Community Additions

Show:
© 2015 Microsoft