public class MFActivate : MFAttributes
Enables the application to defer the creation of an object. This interface is exposed by activation objects.
For more information, see .
MFActivate(IntPtr ptr)
Initializes a new instance of the MFActivate class.
public void MFActivate(IntPtr ptr)
Parameters
ptr
IntPtrThe underlying native pointer.
ActivateObject(Guid riid)
Creates the object associated with this activation object.
ActivateObject
Creates the object associated with this activation object.
public T ActivateObject<T>(Guid riid)
Parameters
riid
GuidInterface identifier (IID) of the requested interface.
Type Parameters
T
The type of the com object to create.
Returns
An instance of the requested interface.
ActivateObjectNative(Guid riid, IntPtr& ptr)
Creates the object associated with this activation object.
public Int32 ActivateObjectNative(Guid riid, IntPtr& ptr)
Parameters
riid
GuidInterface identifier (IID) of the requested interface.
ptr
IntPtr&Receives a pointer to the requested interface. The caller must release the interface.
Returns
HRESULT
DetachObject()
Detaches the created object from the activation object.
DetachObjectNative()
Detaches the created object from the activation object. DetachObject
public Int32 DetachObjectNative()
Returns
HRESULT
ShutdownObject()
Shuts down the created object.
ShutdownObjectNative()
Shuts down the created object. ShutdownObject
public Int32 ShutdownObjectNative()
Returns
HRESULT