ClaimSet.ContainsClaim 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.
Overloads
ContainsClaim(Claim) |
Determines whether the ClaimSet contains the specified Claim. |
ContainsClaim(Claim, IEqualityComparer<Claim>) |
Determines whether the ClaimSet contains the specified Claim, by using the specified IEqualityComparer<T> object. |
ContainsClaim(Claim)
- Source:
- ClaimSet.cs
- Source:
- ClaimSet.cs
public:
virtual bool ContainsClaim(System::IdentityModel::Claims::Claim ^ claim);
public virtual bool ContainsClaim (System.IdentityModel.Claims.Claim claim);
abstract member ContainsClaim : System.IdentityModel.Claims.Claim -> bool
override this.ContainsClaim : System.IdentityModel.Claims.Claim -> bool
Public Overridable Function ContainsClaim (claim As Claim) As Boolean
Parameters
Returns
true
if the specified claim is contained in the ClaimSet; otherwise false
.
Remarks
To find the specified claim, call the FindClaims(String, String) method.
Applies to
ContainsClaim(Claim, IEqualityComparer<Claim>)
- Source:
- ClaimSet.cs
- Source:
- ClaimSet.cs
Determines whether the ClaimSet contains the specified Claim, by using the specified IEqualityComparer<T> object.
public:
virtual bool ContainsClaim(System::IdentityModel::Claims::Claim ^ claim, System::Collections::Generic::IEqualityComparer<System::IdentityModel::Claims::Claim ^> ^ comparer);
public virtual bool ContainsClaim (System.IdentityModel.Claims.Claim claim, System.Collections.Generic.IEqualityComparer<System.IdentityModel.Claims.Claim> comparer);
abstract member ContainsClaim : System.IdentityModel.Claims.Claim * System.Collections.Generic.IEqualityComparer<System.IdentityModel.Claims.Claim> -> bool
override this.ContainsClaim : System.IdentityModel.Claims.Claim * System.Collections.Generic.IEqualityComparer<System.IdentityModel.Claims.Claim> -> bool
Public Overridable Function ContainsClaim (claim As Claim, comparer As IEqualityComparer(Of Claim)) As Boolean
Parameters
- comparer
- IEqualityComparer<Claim>
The IEqualityComparer<T> object used to make the comparison.
Returns
true
if the specified claim is contained in the ClaimSet; otherwise false
.
Remarks
To find the specified claim, call the FindClaims(String, String) method.
Applies to
.NET