Home > Working with SGWorld > Command (ICommand6) > GetValue

GetValue

This method returns a specified property value for menu commands.

 

JavaScript

 

GetValue(CommandID)

 

C#

 

dynamic GetValue(

      int CommandID)

 

C++

 

HRESULT GetValue(

    long    CommandID,

    VARIANT *     pVal )

 

Parameters

CommandID

The ID of the menu command to whose value is being returned. See the list of menu commands organized according to TerraExplorer Ribbon tabs.

Return Value

pVal

The property value.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.