次の方法で共有


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

Return Value

Type: Microsoft.VisualStudio.PlatformUI.SafeIUnknown

.NET Framework Security

See Also

Reference

SafeIUnknown Class

SafeIUnknown Members

Microsoft.VisualStudio.PlatformUI Namespace