Share via


IWMSCommandContext.GetCommandRequest (Visual Basic .NET)

banner art

Previous Next

IWMSCommandContext.GetCommandRequest (Visual Basic .NET)

The GetCommandRequest method retrieves an IWMSContext object containing a command context. You can use the object to retrieve name-value pairs that describe 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

Dim CmdContext As IWMSCommandContext
Dim CmdRequest As IWMSContext
Dim pUnknown As IntPtr

Try
    m_ClassFactory.AllocIWMSCommandContext( _
                                       GetType(IWMSCommandContext).GUID, _
                                       pUserContext, pUnknown)
    CmdContext = Marshal.GetTypedObjectForIUnknown(pUnknown, _
                                           GetType(IWMSCommandContext))
    CmdContext.GetCommandRequest(CmdRequest)

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.

See Also

Previous Next