SamlEvidence 构造函数

定义

初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class.

重载

SamlEvidence()

初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class.

SamlEvidence(IEnumerable<SamlAssertion>)

使用指定的 SAML 断言集初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class using the specified set of SAML assertions.

SamlEvidence(IEnumerable<String>)

使用指定的 SAML 断言引用集初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class using the specified set of SAML assertion references.

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

使用一组指定的 SAML 断言引用和 SAML 断言初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class using the specified set of SAML assertion references and SAML assertions.

SamlEvidence()

初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class.

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

注解

此构造函数将 IsReadOnly 属性初始化为 falseThis constructor initializes the IsReadOnly property to false.

适用于

SamlEvidence(IEnumerable<SamlAssertion>)

使用指定的 SAML 断言集初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class using the specified set of SAML assertions.

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

参数

assertions
IEnumerable<SamlAssertion>

一个类型为 IEnumerable<T>SamlAssertion,它包含 SAML 授权机构呈现授权决定时所依赖的证据。An IEnumerable<T> of type SamlAssertion that contains the evidence that the SAML authority relied on to render the authorization decision. 设置 Assertions 属性。Sets the Assertions property.

例外

assertions 包含一个为 null 的成员。assertions contains a member that is null.

注解

当有 SamlAssertion 对象集合而没有 SAML 断言引用时,使用此构造函数。Use this constructor when you have a collection of SamlAssertion objects, but no SAML assertion references.

适用于

SamlEvidence(IEnumerable<String>)

使用指定的 SAML 断言引用集初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class using the specified set of SAML assertion references.

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

参数

assertionIdReferences
IEnumerable<String>

一个类型为 IEnumerable<T>String,它包含一个 SAML 断言的标识符,该断言指定 SAML 授权机构呈现授权决定时所依赖的证据。An IEnumerable<T> of type String that contains an identifier for a SAML assertion that specifies the evidence that the SAML authority relied on to render the authorization decision. 设置 AssertionIdReferences 属性。Sets the AssertionIdReferences property.

例外

assertionIdReferences 包含一个为 null 或空的成员。assertionIdReferences contains a member that is null or empty.

注解

当有 SAML 断言引用集合而没有 SamlAssertion 对象时,应使用此构造函数。Use this constructor when you have a collection of SAML assertion references, but no SamlAssertion objects.

适用于

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

使用一组指定的 SAML 断言引用和 SAML 断言初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class using the specified set of SAML assertion references and SAML assertions.

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

参数

assertionIdReferences
IEnumerable<String>

一个类型为 IEnumerable<T>String,它包含一个 SAML 断言的标识符,该断言指定 SAML 授权机构呈现授权决定时所依赖的证据。An IEnumerable<T> of type String that contains an identifier for a SAML assertion that specifies the evidence that the SAML authority relied on to render the authorization decision. 设置 AssertionIdReferences 属性。Sets the AssertionIdReferences property.

assertions
IEnumerable<SamlAssertion>

一个类型为 IEnumerable<T>SamlAssertion,它包含 SAML 授权机构呈现授权决定时所依赖的证据。An IEnumerable<T> of type SamlAssertion that contains the evidence that the SAML authority relied on to render the authorization decision. 设置 Assertions 属性。Sets the Assertions property.

例外

assertionIdReferences 包含一个为 null 或空的成员。assertionIdReferences contains a member that is null or empty.

- 或 --or- assertions 包含一个为 null 的成员。assertions contains a member that is null.

- 或 --or- assertionIdReferencesassertions 均为 nullassertionIdReferences and assertions are both null.

注解

当同时有 SAML 断言引用集合和 SamlAssertion 对象集合时,使用此构造函数。Use this constructor when you have a collection of SAML assertion references and a collection of SamlAssertion objects.

适用于