WindowsClaimSet.FindClaims(String, String) 方法

定義

搜尋符合指定之宣告型別及 WindowsClaimSet 中的權限的宣告。Searches for the claim that matches the specified claim type and rights in the WindowsClaimSet.

public:
 override System::Collections::Generic::IEnumerable<System::IdentityModel::Claims::Claim ^> ^ FindClaims(System::String ^ claimType, System::String ^ right);
public override System.Collections.Generic.IEnumerable<System.IdentityModel.Claims.Claim> FindClaims (string claimType, string right);
override this.FindClaims : string * string -> seq<System.IdentityModel.Claims.Claim>
Public Iterator Overrides Function FindClaims (claimType As String, right As String) As IEnumerable(Of Claim)

參數

claimType
String

宣告類型的統一資源識別元 (URI)。The uniform resource identifier (URI) of a claim type.

right
String

與新宣告相關聯之權限的 URI。The URI of the right associated with the new claim.

傳回

System.Collections.Generic.IEnumerable<Claim> 物件,可讓您列舉符合指定之準則的宣告。A System.Collections.Generic.IEnumerable<Claim> object that enables you to enumerate the claims that match the specified criteria.

備註

使用 ClaimTypes 類別的屬性來指定 claimType 參數。Use the properties of the ClaimTypes class to specify the claimType parameter.

適用於