Loupe - Log - Monitor - Resolve
Loupe.Extensibility.Client Namespace / IUserInterfaceContext Interface / UpdateCommand Method / UpdateCommand(String,Boolean) Method
The unique name of the command within the calling Extension
Specify whether command should be made available or not.

In This Topic
    UpdateCommand(String,Boolean) Method
    In This Topic
    Updates the configuration of a previously-registered command.
    Syntax
    'Declaration
     
    
    Overloads Sub UpdateCommand( _
       ByVal name As String, _
       ByVal isEnabled As Boolean _
    ) 
    void UpdateCommand( 
       string name,
       bool isEnabled
    )

    Parameters

    name
    The unique name of the command within the calling Extension
    isEnabled
    Specify whether command should be made available or not.
    Remarks

    If there is no registered command for the calling implementation with the specified name an exception will be thrown.

    If the command has a hierarchal name (with one or more period to designate each level of the hierarchy) the Label will be parsed to update just the command itself, not the label of the intervening menus. This means that if the original label for a two-tier menu was "Top Level\Command Label" then "New Top Level\New Command Label" will result in just the command being re-labeled to "New Command Label".

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also