Edit

Share via


SamlAdvice Constructors

Definition

Initializes a new instance of the SamlAdvice class.

Overloads

SamlAdvice()

Initializes a new instance of the SamlAdvice class.

SamlAdvice(IEnumerable<SamlAssertion>)

Initializes a new instance of the SamlAdvice class using the specified collection of SAML assertions.

SamlAdvice(IEnumerable<String>)

Initializes a new instance of the SamlAdvice class.

SamlAdvice(IEnumerable<String>, IEnumerable<SamlAssertion>)

Initializes a new instance of the SamlAdvice class using the specified collections of SAML assertions and SAML assertion references.

SamlAdvice()

Initializes a new instance of the SamlAdvice class.

public:
 SamlAdvice();
public SamlAdvice ();
Public Sub New ()

Remarks

When this constructor is called and the instance is not modified prior to serializing it into XML by calling the WriteXml method, an empty <saml:Advice> element is generated by the WriteXml method.

Applies to

SamlAdvice(IEnumerable<SamlAssertion>)

Initializes a new instance of the SamlAdvice class using the specified collection of SAML assertions.

public:
 SamlAdvice(System::Collections::Generic::IEnumerable<System::IdentityModel::Tokens::SamlAssertion ^> ^ assertions);
public SamlAdvice (System.Collections.Generic.IEnumerable<System.IdentityModel.Tokens.SamlAssertion> assertions);
new System.IdentityModel.Tokens.SamlAdvice : seq<System.IdentityModel.Tokens.SamlAssertion> -> System.IdentityModel.Tokens.SamlAdvice
Public Sub New (assertions As IEnumerable(Of SamlAssertion))

Parameters

assertions
IEnumerable<SamlAssertion>

An IEnumerable<T> of type SamlAssertion that contains SAML assertions that provides additional information for a SAML assertion.

Exceptions

assertions contains a null element.

Remarks

The elements of the assertions parameter are added to the Assertions property.

Applies to

SamlAdvice(IEnumerable<String>)

Initializes a new instance of the SamlAdvice class.

public:
 SamlAdvice(System::Collections::Generic::IEnumerable<System::String ^> ^ references);
public SamlAdvice (System.Collections.Generic.IEnumerable<string> references);
new System.IdentityModel.Tokens.SamlAdvice : seq<string> -> System.IdentityModel.Tokens.SamlAdvice
Public Sub New (references As IEnumerable(Of String))

Parameters

references
IEnumerable<String>

An IEnumerable<T> of type String that contains a collection of references to SAML assertions that provide additional information on a SAML assertion.

Exceptions

references contains a null element.

Remarks

The elements of the references parameter are added to the AssertionIdReferences property.

Applies to

SamlAdvice(IEnumerable<String>, IEnumerable<SamlAssertion>)

Initializes a new instance of the SamlAdvice class using the specified collections of SAML assertions and SAML assertion references.

public:
 SamlAdvice(System::Collections::Generic::IEnumerable<System::String ^> ^ references, System::Collections::Generic::IEnumerable<System::IdentityModel::Tokens::SamlAssertion ^> ^ assertions);
public SamlAdvice (System.Collections.Generic.IEnumerable<string> references, System.Collections.Generic.IEnumerable<System.IdentityModel.Tokens.SamlAssertion> assertions);
new System.IdentityModel.Tokens.SamlAdvice : seq<string> * seq<System.IdentityModel.Tokens.SamlAssertion> -> System.IdentityModel.Tokens.SamlAdvice
Public Sub New (references As IEnumerable(Of String), assertions As IEnumerable(Of SamlAssertion))

Parameters

references
IEnumerable<String>

An IEnumerable<T> of type String that contains a collection of references to SAML assertions that provide additional information on a SAML assertion.

assertions
IEnumerable<SamlAssertion>

An IEnumerable<T> of type SamlAssertion that contains SAML assertions that provide additional information for a SAML assertion.

Exceptions

references contains a null element.

-or-

assertions contains a null element.

Remarks

The elements of the references parameter are added to the AssertionIdReferences property.

The elements of the assertions parameter are added to the Assertions property.

Applies to