Sdílet prostřednictvím


GenericXmlSecurityToken.CanCreateKeyIdentifierClause<T> Metoda

Definice

Získá hodnotu, která označuje, zda je tento token zabezpečení schopen vytvořit zadanou klauzuli identifikátor klíče.

public:
generic <typename T>
 where T : System::IdentityModel::Tokens::SecurityKeyIdentifierClause override bool CanCreateKeyIdentifierClause();
public override bool CanCreateKeyIdentifierClause<T> () where T : System.IdentityModel.Tokens.SecurityKeyIdentifierClause;
override this.CanCreateKeyIdentifierClause : unit -> bool (requires 'T :> System.IdentityModel.Tokens.SecurityKeyIdentifierClause)
Public Overrides Function CanCreateKeyIdentifierClause(Of T As SecurityKeyIdentifierClause) () As Boolean

Parametry typu

T

A SecurityKeyIdentifierClause určující identifikátor klíče, který se má vytvořit.

Návraty

true pokud T není null a je to stejný typ jako InternalTokenReference hodnoty vlastnosti nebo ExternalTokenReference , jinak falsehodnota .

Poznámky

Pomocí metody zjistěte, CanCreateKeyIdentifierClause<T>() jestli GenericXmlSecurityToken token zabezpečení může vytvořit konkrétní identifikátor klíče. Pokud chcete vytvořit identifikátor klíče, zavolejte metodu CreateKeyIdentifierClause<T>() .

Platí pro