SafeIUnknown.FromObject Method
Helper method to facilitate the common method for retrieving a native IUnknown: Marshal.GetIUnknownForObject.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'宣言
Public Shared Function FromObject ( _
o As Object _
) As SafeIUnknown
'使用
Dim o As Object
Dim returnValue As SafeIUnknown
returnValue = SafeIUnknown.FromObject(o)
public static SafeIUnknown FromObject(
Object o
)
public:
static SafeIUnknown^ FromObject(
Object^ o
)
static member FromObject :
o:Object -> SafeIUnknown
public static function FromObject(
o : Object
) : SafeIUnknown
Parameters
- o
Type: System.Object
Return Value
Type: Microsoft.VisualStudio.PlatformUI.SafeIUnknown
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.