IWMSCommandContext.EraseCommandRequest (C#)
The EraseCommandRequest method deletes a client request by erasing all of the name-value pairs in the command context.
void IWMSCommandContext.EraseCommandRequest()
Arguments
This method takes no parameters.
Return Value
This method does not return a value.
If this method fails, it throws an exception.
Number |
Description |
---|---|
0x80004005 |
No client request is associated with this command context. |
Example
Guid ContextGuid = typeof(IWMSCommandContext).GUID;
IWMSCommandContext CmdContext;
IntPtr pUnknown;
try
{
m_ClassFactory.AllocIWMSCommandContext(ref ContextGuid, pUserContext,
out pUnknown);
CmdContext = (IWMSCommandContext)Marshal.GetTypedObjectForIUnknown(
pUnknown, typeof(IWMSCommandContext));
CmdContext.EraseCommandRequest();
}
catch( Exception e )
{
// TODO: Handle exceptions.
}
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.