Claim.Type 屬性

定義

取得宣告的宣告類型。

public:
 property System::String ^ Type { System::String ^ get(); };
public string Type { get; }
member this.Type : string
Public ReadOnly Property Type As String

屬性值

宣告類型。

備註

屬性 Type 會提供宣告的語意內容,也就是它指出宣告的用途。 例如,宣告類型為 GivenName () "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname" 的宣告代表使用者的名字。 宣告類型通常是 URI;不過,您不限於任何特定的格式,而不能將其表示為字串。 唯一的一般需求是宣告簽發者和宣告取用者必須同意宣告的意義。 Windows Identity Foundation (WIF) 所使用的已知宣告類型常數可透過 ClaimTypes 類別取得。 宣告值是由 Value 屬性提供。

適用於