共用方式為


Command.LocalizedName 屬性

取得命令的當地語系化名稱。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
ReadOnly Property LocalizedName As String
string LocalizedName { get; }
property String^ LocalizedName {
    String^ get ();
}
abstract LocalizedName : string
function get LocalizedName () : String

屬性值

型別:System.String
代表命令之當地語系化名稱的字串。

範例

' 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 安全性

請參閱

參考

Command 介面

EnvDTE 命名空間