Compartir a través de


IVsUIShell.PostSetFocusMenuCommand Method

Sets focus in a combo box.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaración
Function PostSetFocusMenuCommand ( _
    ByRef pguidCmdGroup As Guid, _
    nCmdID As UInteger _
) As Integer
'Uso
Dim instance As IVsUIShell
Dim pguidCmdGroup As Guid
Dim nCmdID As UInteger
Dim returnValue As Integer

returnValue = instance.PostSetFocusMenuCommand(pguidCmdGroup, _
    nCmdID)
int PostSetFocusMenuCommand(
    ref Guid pguidCmdGroup,
    uint nCmdID
)
int PostSetFocusMenuCommand(
    [InAttribute] Guid% pguidCmdGroup, 
    [InAttribute] unsigned int nCmdID
)
abstract PostSetFocusMenuCommand : 
        pguidCmdGroup:Guid byref * 
        nCmdID:uint32 -> int 
function PostSetFocusMenuCommand(
    pguidCmdGroup : Guid, 
    nCmdID : uint
) : int

Parameters

  • pguidCmdGroup
    Type: System.Guid%
    [in] Pointer to a GUID specifying the command group.
  • nCmdID
    Type: System.UInt32
    [in] Integer containing the command group ID.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIShell::PostSetFocusMenuCommand(
   [in, unique] const GUID *pguidCmdGroup,
   [in] DWORD nCmdId
);

.NET Framework Security

See Also

Reference

IVsUIShell Interface

IVsUIShell Members

Microsoft.VisualStudio.Shell.Interop Namespace