SecurityToken.CanCreateKeyIdentifierClause<T> Metoda

Definice

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

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

Parametry typu

T

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

Návraty

true pokud T je typu SecurityKeyIdentifierClause; v opačném případě false.

Poznámky

CanCreateKeyIdentifierClause Pomocí metody určete, jestli token zabezpečení může vytvořit konkrétní identifikátor klíče. Pokud chcete vytvořit identifikátor klíče, zavolejte metodu CreateKeyIdentifierClause .

Výchozí implementace podporuje klauzule identifikátoru klíče typu LocalIdKeyIdentifierClause.

Platí pro

Viz také