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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기