Partager via


CFUrl.GetTypeID Méthode

Définition

Identificateur de type pour le type CoreFoundation.CFUrl.

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

Retours

System.System.IntPtr System.nativeint

Remarques

Le jeton retourné est l’identificateur de type CoreFoundation (CFType) qui a été affecté à cette classe.

Cela peut être utilisé pour déterminer l’identité de type entre différents objets CoreFoundation.

Vous pouvez récupérer le type d’un objet CoreFoundation en appelant sur GetTypeID(IntPtr) le handle natif de l’objet

bool isCFUrl = (CFType.GetTypeID (foo.Handle) == CFUrl.GetTypeID ());

S’applique à