LocalIdKeyIdentifierClause.Matches 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.
Returns a value that indicates whether the key identifier for this instance is equivalent to the specified object.
Overloads
Matches(SecurityKeyIdentifierClause) |
Returns a value that indicates whether the key identifier for this instance is equivalent to the specified key identifier clause. |
Matches(String, Type) |
Returns a value that indicates whether the key identifier for this instance is equivalent to the specified reference and type. |
Matches(SecurityKeyIdentifierClause)
Returns a value that indicates whether the key identifier for this instance is equivalent to the specified key identifier clause.
public:
override bool Matches(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause);
public override bool Matches (System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause);
override this.Matches : System.IdentityModel.Tokens.SecurityKeyIdentifierClause -> bool
Public Overrides Function Matches (keyIdentifierClause As SecurityKeyIdentifierClause) As Boolean
Parameters
- keyIdentifierClause
- SecurityKeyIdentifierClause
A SecurityKeyIdentifierClause to compare to.
Returns
true
if keyIdentifierClause
is of type LocalIdKeyIdentifierClause and the values of the LocalId and OwnerType properties match the current instance; otherwise, false
. See the remarks for more details.
Remarks
A match on the OwnerType property occurs when one of the following happens:
The value of the OwnerType property for the instance represented by the
keyIdentifierClause
parameter isnull
.The value of the OwnerType property for the current instance is
null
.The OwnerType property for the two instances are identical.
Applies to
Matches(String, Type)
Returns a value that indicates whether the key identifier for this instance is equivalent to the specified reference and type.
public:
bool Matches(System::String ^ localId, Type ^ ownerType);
public bool Matches (string localId, Type ownerType);
override this.Matches : string * Type -> bool
Public Function Matches (localId As String, ownerType As Type) As Boolean
Parameters
- localId
- String
The value of the wsu:Id
attribute for an XML element within the current SOAP message.
- ownerType
- Type
A Type that is the type of security token that is referred to by the localId
parameter.
Returns
true
if the localId
and ownerType
parameters match the values of the LocalId and OwnerType properties; otherwise, false
.
Remarks
A match on the OwnerType property occurs when one of the following happens:
The value of the OwnerType property for the current instance is
null
.The value of the
ownerType
parameter isnull
.The value of the OwnerType property is identical to the
ownerType
parameter for the current method.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈