LocalIdKeyIdentifierClause.Matches Method (String, Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a value that indicates whether the key identifier for this instance is equivalent to the specified reference and type.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public bool Matches(
	string localId,
	Type ownerType
)

Parameters

localId
Type: System.String

The value of the wsu:Id attribute for an XML element within the current SOAP message.

ownerType
Type: System.Type

A Type that is the type of security token that is referred to by the localId parameter.

Return Value

Type: System.Boolean

true if the localId and ownerType parameters match the values of the LocalId and OwnerType properties; otherwise, false. See the remarks for more details.

A match on the OwnerType property occurs when one of the following happens:

  • The value of the OwnerType propertyfor the current instance is null.

  • The value of the ownerType parameter is null.

  • The value of the OwnerType property is identical to the ownerType parameter for the current method.

.NET Framework
Available since 3.0
Return to top
Show: