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

适用于