SamlAttribute コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
SamlAttribute クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| SamlAttribute() |
SamlAttribute クラスの新しいインスタンスを初期化します。 |
| SamlAttribute(Claim) |
指定した要求を使用して、 SamlAttribute クラスの新しいインスタンスを初期化します。 |
| SamlAttribute(String, String, IEnumerable<String>) |
指定した属性名、XML 名前空間、および属性値を使用して、 SamlAttribute クラスの新しいインスタンスを初期化します。 |
SamlAttribute()
SamlAttribute クラスの新しいインスタンスを初期化します。
public:
SamlAttribute();
public SamlAttribute();
Public Sub New ()
適用対象
SamlAttribute(Claim)
指定した要求を使用して、 SamlAttribute クラスの新しいインスタンスを初期化します。
public:
SamlAttribute(System::IdentityModel::Claims::Claim ^ claim);
public SamlAttribute(System.IdentityModel.Claims.Claim claim);
new System.IdentityModel.Tokens.SamlAttribute : System.IdentityModel.Claims.Claim -> System.IdentityModel.Tokens.SamlAttribute
Public Sub New (claim As Claim)
パラメーター
- claim
- Claim
SamlSecurityToken セキュリティ トークンのサブジェクトの属性を表すClaim。
例外
claim は nullです。
claimのResource プロパティは、String型ではありません。
-又は-
RightのclaimプロパティはPossessPropertyされていません。
-又は-
claimのClaimType プロパティに '/' 文字が含まれていないか、最初または最後のインデックス位置にあります。
注釈
このコンストラクターを使用して、要求を SAML 属性に変換します。 SAML 属性に変換するには、 Right プロパティを PossessPropertyする必要があります。 Resource プロパティは String型で、 ClaimType プロパティは namespace/name形式である必要があります。
次の表は、 claim パラメーターが Name、 Namespace、および AttributeValues プロパティを設定する対象を指定します。
| 財産 | プロパティの設定に使用する claim パラメーターのプロパティ |
|---|---|
| AttributeValues | Resource プロパティの値がコレクションに追加されます。 |
| Name | ClaimType プロパティの最後の '/' 文字の後の文字列の部分。 |
| Namespace | ClaimType プロパティの最後の '/' 文字の前の文字列の部分。 |
適用対象
SamlAttribute(String, String, IEnumerable<String>)
指定した属性名、XML 名前空間、および属性値を使用して、 SamlAttribute クラスの新しいインスタンスを初期化します。
public:
SamlAttribute(System::String ^ attributeNamespace, System::String ^ attributeName, System::Collections::Generic::IEnumerable<System::String ^> ^ attributeValues);
public SamlAttribute(string attributeNamespace, string attributeName, System.Collections.Generic.IEnumerable<string> attributeValues);
new System.IdentityModel.Tokens.SamlAttribute : string * string * seq<string> -> System.IdentityModel.Tokens.SamlAttribute
Public Sub New (attributeNamespace As String, attributeName As String, attributeValues As IEnumerable(Of String))
パラメーター
- attributeNamespace
- String
attributeName パラメーターが定義されている XML 名前空間。
- attributeName
- String
SAML 属性の名前。
- attributeValues
- IEnumerable<String>
SAML 属性の値を含む IEnumerable<T> 。
例外
attributeNamespace は nullです。
-又は-
attributeName は nullです。
-又は-
attributeValues は nullです。
claimのResource プロパティは、String型ではありません。
-又は-
RightのclaimプロパティはPossessPropertyされていません。
-又は-
claimのClaimType プロパティに '/' 文字が含まれていないか、最初または最後のインデックス位置にあります。
注釈
次の表では、このコンストラクターのパラメーターによって設定されるプロパティを指定します。
| 財産 | パラメーター |
|---|---|
| AttributeValues | attributeValues |
| Name | attributeName |
| Namespace | attributeNamespace |