Saml2Id Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the Saml2Id class.
Saml2Id() |
Initializes a new instance of the Saml2Id class with a system-generated value. |
Saml2Id(String) |
Initializes a new instance of the Saml2Id class with the specified value. |
Initializes a new instance of the Saml2Id class with a system-generated value.
public:
Saml2Id();
public Saml2Id();
Public Sub New ()
Remarks
The ID is created based on a generated GUID and the Value property is set accordingly.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Initializes a new instance of the Saml2Id class with the specified value.
public:
Saml2Id(System::String ^ value);
public Saml2Id(string value);
new System.IdentityModel.Tokens.Saml2Id : string -> System.IdentityModel.Tokens.Saml2Id
Public Sub New (value As String)
Parameters
- value
- String
The ID value.
Exceptions
value
is not a valid NCName.
value
is null
or an empty string.
Remarks
The identifier should be unique per [Saml2Core, 1.3.4] and must fit the NCName xml schema definition, that is, it must begin with a letter or underscore.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: