ClaimSet.FindClaims(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
abstract System::Collections::Generic::IEnumerable<System::IdentityModel::Claims::Claim ^> ^ FindClaims(System::String ^ claimType, System::String ^ right);
public abstract System.Collections.Generic.IEnumerable<System.IdentityModel.Claims.Claim> FindClaims (string claimType, string right);
abstract member FindClaims : string * string -> seq<System.IdentityModel.Claims.Claim>
Public MustOverride 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
A IEnumerable<T> of type Claim that enables you to enumerate the claims that matches the specified criteria.
Examples
// Iterate through claims of type "http://example.org/claims/allowedoperation".
foreach (Claim c in cs.FindClaims("http://example.org/claims/allowedoperation",
Rights.PossessProperty))
{
For Each c In cs.FindClaims("http://example.org/claims/allowedoperation", Rights.PossessProperty)
Remarks
To determine if this ClaimSet contains the claim without returning the claim, call the ContainsClaim method.
Applies to
Кері байланыс
https://aka.ms/ContentUserFeedback.
Жақында қолжетімді болады: 2024 жыл бойы біз GitHub Issues жүйесін мазмұнға арналған кері байланыс механизмі ретінде біртіндеп қолданыстан шығарамыз және оны жаңа кері байланыс жүйесімен ауыстырамыз. Қосымша ақпаратты мұнда қараңыз:Жіберу және пікірді көру