Share via


SecKey.GetTypeID Metodo

Definizione

Identificatore del tipo per il tipo Security.SecKey.

public static nint GetTypeID ();
static member GetTypeID : unit -> nint

Restituisce

System.System.IntPtr System.nativeint

Commenti

Il token restituito è l'identificatore di tipo CoreFoundation (CFType) assegnato a questa classe.

Può essere usato per determinare l'identità del tipo tra diversi oggetti CoreFoundation.

È possibile recuperare il tipo di un oggetto CoreFoundation richiamando sull'handle GetTypeID(IntPtr) nativo dell'oggetto

bool isSecKey = (CFType.GetTypeID (foo.Handle) == SecKey.GetTypeID ());

Si applica a