WrapperPolicy.TryGetWrapper(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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