SamlAssertion 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SamlAssertion 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| SamlAssertion() |
初始化 SamlAssertion 類別的新執行個體。 |
| SamlAssertion(String, String, DateTime, SamlConditions, SamlAdvice, IEnumerable<SamlStatement>) |
使用指定的 SAML 斷言識別碼初始化該類別的新實例 SamlAssertion ,包含斷言的發行者、斷言發出的日期與時間、一組處理條件、額外資訊,以及一系列 SAML 語句。 |
SamlAssertion()
SamlAssertion(String, String, DateTime, SamlConditions, SamlAdvice, IEnumerable<SamlStatement>)
使用指定的 SAML 斷言識別碼初始化該類別的新實例 SamlAssertion ,包含斷言的發行者、斷言發出的日期與時間、一組處理條件、額外資訊,以及一系列 SAML 語句。
public:
SamlAssertion(System::String ^ assertionId, System::String ^ issuer, DateTime issueInstant, System::IdentityModel::Tokens::SamlConditions ^ samlConditions, System::IdentityModel::Tokens::SamlAdvice ^ samlAdvice, System::Collections::Generic::IEnumerable<System::IdentityModel::Tokens::SamlStatement ^> ^ samlStatements);
public SamlAssertion(string assertionId, string issuer, DateTime issueInstant, System.IdentityModel.Tokens.SamlConditions samlConditions, System.IdentityModel.Tokens.SamlAdvice samlAdvice, System.Collections.Generic.IEnumerable<System.IdentityModel.Tokens.SamlStatement> samlStatements);
new System.IdentityModel.Tokens.SamlAssertion : string * string * DateTime * System.IdentityModel.Tokens.SamlConditions * System.IdentityModel.Tokens.SamlAdvice * seq<System.IdentityModel.Tokens.SamlStatement> -> System.IdentityModel.Tokens.SamlAssertion
Public Sub New (assertionId As String, issuer As String, issueInstant As DateTime, samlConditions As SamlConditions, samlAdvice As SamlAdvice, samlStatements As IEnumerable(Of SamlStatement))
參數
- assertionId
- String
斷言的識別碼。
- issuer
- String
發布此SAML聲明的SAML當局。
- samlConditions
- SamlConditions
A SamlConditions 指定一組在評估 SAML 斷言有效性時可考慮的條件。
- samlAdvice
- SamlAdvice
SamlAdvice該表規定SAML權威機構提供的額外資訊,以協助處理SAML斷言。
- samlStatements
- IEnumerable<SamlStatement>
一個 IEnumerable<T> 型別 SamlStatement 包含 SAML 語句的 。
例外狀況
assertionId 是 null。
-或-
assertionId 是 Empty。
-或-
assertionId 不以字母或「_」字元開頭。
-或-
issuer 是 null。
-或-
issuer 是 Empty。
-或-
samlStatements 是 null。
-或-
samlStatements 不包含任何元素。
-或-
samlStatements 包含一個 null 元素。
備註
assertionId參數必須以字母或「_」字元開頭。