GetName Method (ICommand)

GetName Method (ICommand) | Send Feedback
See Also

CmdName[out]
  Command's local name

Gets the command's local name, which is displayed to the user and which can be used as input.

# Syntax

Visual Basic |
--- | ---
    Function GetName() As System.String

C# |
--- | ---
    System.string GetName()

JavaScript |
--- | ---
    GetName() : String

COM native C++ |
--- | ---
    HRESULT GetName(
       BSTR* CmdName
    )

C++ |
--- | ---
    DSRESULT GetName(
       dsString* CmdName
    )

#### Parameters

CmdName[out] or Return Value
  Command's local name

# Example

This code snippet shows how to get the local name of the command.

#### COM native C++

//Get command name

bstr_t commandName = m_DsCommand->GetName();

# See Also

####

ICommand Interface
ICommand Members
ICommand::GetGlobalName ()

# Availability

DraftSight V1R1