SamlAttributeStatement 构造函数
定义
初始化 SamlAttributeStatement 类的新实例。Initializes a new instance of the SamlAttributeStatement class.
重载
| SamlAttributeStatement() |
初始化 SamlAttributeStatement 类的新实例。Initializes a new instance of the SamlAttributeStatement class. |
| SamlAttributeStatement(SamlSubject, IEnumerable<SamlAttribute>) |
使用指定的主题以及与该主题关联的属性集来初始化 SamlAttributeStatement 类的新实例。Initializes a new instance of the SamlAttributeStatement class using the specified subject and set of attributes associated with the subject. |
SamlAttributeStatement()
初始化 SamlAttributeStatement 类的新实例。Initializes a new instance of the SamlAttributeStatement class.
public:
SamlAttributeStatement();
public SamlAttributeStatement ();
Public Sub New ()
适用于
SamlAttributeStatement(SamlSubject, IEnumerable<SamlAttribute>)
使用指定的主题以及与该主题关联的属性集来初始化 SamlAttributeStatement 类的新实例。Initializes a new instance of the SamlAttributeStatement class using the specified subject and set of attributes associated with the subject.
public:
SamlAttributeStatement(System::IdentityModel::Tokens::SamlSubject ^ samlSubject, System::Collections::Generic::IEnumerable<System::IdentityModel::Tokens::SamlAttribute ^> ^ attributes);
public SamlAttributeStatement (System.IdentityModel.Tokens.SamlSubject samlSubject, System.Collections.Generic.IEnumerable<System.IdentityModel.Tokens.SamlAttribute> attributes);
new System.IdentityModel.Tokens.SamlAttributeStatement : System.IdentityModel.Tokens.SamlSubject * seq<System.IdentityModel.Tokens.SamlAttribute> -> System.IdentityModel.Tokens.SamlAttributeStatement
Public Sub New (samlSubject As SamlSubject, attributes As IEnumerable(Of SamlAttribute))
参数
- samlSubject
- SamlSubject
一个 SamlSubject,它指定声明的主题。A SamlSubject that specifies the subject of the claim.
- attributes
- IEnumerable<SamlAttribute>
一个类型为 IEnumerable<T> 的 SamlAttribute,它包含一组与主题关联的属性。An IEnumerable<T> of type SamlAttribute that contains a set of attributes associated with the subject.
例外
samlSubject 为 null。samlSubject is null.
attributes 包含一个为 null 的成员。attributes contains a member that is null.
- 或 --or-
attributes 不包含成员。attributes contains zero members.
注解
下表指定了此构造函数的参数所设置的属性。The following table specifies the properties set by the parameters to this constructor.
| propertiesProperty | 参数Parameter |
|---|---|
| Attributes | Attributes |
| SamlSubject | samlSubject |