Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The EraseCommandResponse method deletes a server response by erasing all of the name-value pairs in the command context.
IWMSCommandContext.EraseCommandResponse()
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 response is associated with this command context. |
Example
Dim CmdContext As IWMSCommandContext
Dim pUnknown As IntPtr
Try
m_ClassFactory.AllocIWMSCommandContext( _
GetType(IWMSCommandContext).GUID, _
pUserContext, pUnknown)
CmdContext = Marshal.GetTypedObjectForIUnknown(pUnknown, _
GetType(IWMSCommandContext))
CmdContext.EraseCommandResponse()
Catch e As Exception
' TODO: Handle exceptions.
End Try
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.