Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SecurityTokenParameters::MatchesKeyIdentifierClause Method (SecurityToken^, SecurityKeyIdentifierClause^, SecurityTokenReferenceStyle)

 

Indicates whether a token matches a key identifier clause.

Namespace:   System.ServiceModel.Security.Tokens
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public protected:
virtual bool MatchesKeyIdentifierClause(
	SecurityToken^ token,
	SecurityKeyIdentifierClause^ keyIdentifierClause,
	SecurityTokenReferenceStyle referenceStyle
)

Parameters

token
Type: System.IdentityModel.Tokens::SecurityToken^

The security token.

keyIdentifierClause
Type: System.IdentityModel.Tokens::SecurityKeyIdentifierClause^

The specified key identifier clause.

referenceStyle
Type: System.ServiceModel.Security.Tokens::SecurityTokenReferenceStyle

The reference style of the security token.

Return Value

Type: System::Boolean

true if the token matches the key identifier clause; otherwise, false.

Exception Condition
ArgumentNullException

token is null.

NotSupportedException

referenceStyle is not External or Internal.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft