次の方法で共有


CGImageSource.GetTypeID メソッド

定義

ImageIO.CGImageSource 型の型識別子。

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

戻り値

System.System.IntPtr System.nativeint

注釈

返されるトークンは、このクラスに割り当てられている CoreFoundation 型識別子 (CFType) です。

これは、異なる CoreFoundation オブジェクト間の型 ID を判断するために使用できます。

CoreFoundation オブジェクトの型を取得するには、オブジェクトのネイティブ ハンドルで を呼び出 GetTypeID(IntPtr) します。

bool isCGImageSource = (CFType.GetTypeID (foo.Handle) == CGImageSource.GetTypeID ());

適用対象