HandleRef.Explicit(HandleRef to IntPtr) 運算子

定義

傳回指定 HandleRef 物件的資源控制代碼。Returns the handle to a resource of the specified HandleRef object.

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

需要控制代碼的物件。The object that needs a handle.

傳回

指定 HandleRef 物件的資源控制代碼。The handle to a resource of the specified HandleRef object.

備註

這個運算子的對等方法是 HandleRef.HandleThe equivalent method for this operator is HandleRef.Handle

適用於