IWMSCommandContext.GetCommandResponse (C#)
Previous | Next |
IWMSCommandContext.GetCommandResponse (C#)
The GetCommandResponse method retrieves an IWMSContext object containing a command context. You can use the object to retrieve name-value pairs that describe a server response to a client request.
Syntax
Parameters
ppProps
Reference to an IWMSContext object.
Return Values
This method does not return a value.
If this method fails, it throws an exception.
Number | Description |
0x80070057 | ppProps is null. |
Example Code
Guid ContextGuid = typeof(IWMSCommandContext).GUID; IWMSCommandContext CmdContext; IWMSContext CmdResponse; IntPtr pUnknown; try { m_ClassFactory.AllocIWMSCommandContext(ref ContextGuid, pUserContext, out pUnknown); CmdContext = (IWMSCommandContext)Marshal.GetTypedObjectForIUnknown( pUnknown, typeof(IWMSCommandContext)); CmdContext.GetCommandResponse(out CmdResponse); } 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.
See Also
Previous | Next |