CFUrl.GetTypeID Method

Definition

Type identifier for the CoreFoundation.CFUrl type.

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

Returns

System.System.IntPtr System.nativeint

Remarks

The returned token is the CoreFoundation type identifier (CFType) that has been assigned to this class.

This can be used to determine type identity between different CoreFoundation objects.

You can retrieve the type of a CoreFoundation object by invoking the GetTypeID(IntPtr) on the native handle of the object

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

Applies to