다음을 통해 공유


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