Freigeben über


WrapperPolicy.TryGetWrapper(Object) Method

Definition

Return the RCW for the native IComWrapper instance aggregating "managedObject" if there is one. Return "null" if "managedObject" is not aggregated.

public:
 static Microsoft::VisualStudio::Shell::Interop::IComWrapper ^ TryGetWrapper(System::Object ^ managedObject);
public:
 static Microsoft::VisualStudio::Shell::Interop::IComWrapper ^ TryGetWrapper(Platform::Object ^ managedObject);
 static Microsoft::VisualStudio::Shell::Interop::IComWrapper TryGetWrapper(winrt::Windows::Foundation::IInspectable const & managedObject);
public static Microsoft.VisualStudio.Shell.Interop.IComWrapper TryGetWrapper (object managedObject);
static member TryGetWrapper : obj -> Microsoft.VisualStudio.Shell.Interop.IComWrapper
Public Shared Function TryGetWrapper (managedObject As Object) As IComWrapper

Parameters

managedObject
Object

Returns

Applies to