편집

다음을 통해 공유


DefaultClaimSet.FindClaims(String, String) Method

Definition

Searches for the Claim object that matches the specified claim type and rights in the DefaultClaimSet.

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 Overrides Function FindClaims (claimType As String, right As String) As IEnumerable(Of Claim)
Public Iterator Overrides Function FindClaims (claimType As String, right As String) As IEnumerable(Of Claim)

Parameters

claimType
String

The uniform resource identifier (URI) of a claim type. Several claim types are available as static properties of the ClaimTypes class.

right
String

The URI of the right associated with the new claim. Several rights are available as static properties of the Rights class.

Returns

An IEnumerable<T> of type Claim that enables you to enumerate the claims that match the specified criteria.

Remarks

When the claimType parameter is null, any claim that matches the right parameter is considered a match.

When the right parameter is null, any claim that matches the claimType parameter is considered a match.

When both the claimType and right parameters are null, all claims in the collection are returned.

Applies to