Share via


Command.LocalizedName Property

Gets the localized name of the command.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
ReadOnly Property LocalizedName As String
'Usage
Dim instance As Command 
Dim value As String 

value = instance.LocalizedName
string LocalizedName { get; }
property String^ LocalizedName {
    String^ get ();
}
function get LocalizedName () : String

Property Value

Type: System.String
A string representing the localized name of the command.

Examples

' Macro code.
Sub LocalizedNameExample()
   ' Before running, you must add a reference to
   ' Microsoft.VisualStudio.CommandBars.
   Dim cmds As Commands
   Dim cmdobj As Command
   Dim customin, customout As Object
   Dim colAddins As AddIns

   ' Set references.
   colAddins = DTE.AddIns()
   cmds = DTE.Commands
   cmdobj = cmds.Item("File.NewFile")

   ' List some of the command properties.
   MsgBox("Command Name: " & cmdobj.Name)
   MsgBox("Is Command Available?: " & cmdobj.IsAvailable)
   MsgBox("Localized name: " & cmdobj.LocalizedName)
   MsgBox("Command ID: " & cmdobj.ID)
   MsgBox("Command GUID: " & cmdobj.Guid)
End Sub

.NET Framework Security

See Also

Reference

Command Interface

Command Members

EnvDTE Namespace