Share via


HandleRef.Explicit(HandleRef to IntPtr) 運算子

定義

傳回指定 HandleRef 物件的資源控制代碼。

public:
 static explicit operator IntPtr(System::Runtime::InteropServices::HandleRef value);
public static explicit operator IntPtr (System.Runtime.InteropServices.HandleRef value);
static member op_Explicit : System.Runtime.InteropServices.HandleRef -> nativeint
Public Shared Narrowing Operator CType (value As HandleRef) As IntPtr

參數

value
HandleRef

需要控制代碼的物件。

傳回

IntPtr

nativeint

指定 HandleRef 物件的資源控制代碼。

備註

這個運算子的對等方法為 HandleRef.Handle

適用於