Compartir a través de


CFAllocator.GetTypeID Método

Definición

Identificador de tipo para el tipo CoreFoundation.CFAllocator.

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

Devoluciones

System.System.IntPtr System.nativeint

Comentarios

El token devuelto es el identificador de tipo CoreFoundation (CFType) que se ha asignado a esta clase.

Se puede usar para determinar la identidad de tipo entre diferentes objetos CoreFoundation.

Puede recuperar el tipo de un objeto CoreFoundation invocando en GetTypeID(IntPtr) el identificador nativo del objeto.

bool isCFAllocator = (CFType.GetTypeID (foo.Handle) == CFAllocator.GetTypeID ());

Se aplica a