AgileComPointer<TInterface>
class AgileComPointer<TInterface> : IDisposable where TInterface : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), IComIID
Finalizable wrapper for COM pointers that gives agile access to the specified interface.
Gets the default interface. Throws if failed.
public ComScope<TAsInterface> GetInterface<TAsInterface>() where TAsInterface : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), IComIID
Gets the specified interface. Throws if failed.
Gets the managed object using the pointer
this AgileComPointer<T> was created from.
Tries to get the default interface.
public ComScope<TAsInterface> TryGetInterface<TAsInterface>(out HRESULT hr) where TAsInterface : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), IComIID
Tries to get the specified interface.