DataMenuCommand 建構函式 (CommandID)
這個類型具有 SecurityCriticalAttribute 屬性,因此僅供 .NET Framework for Silverlight 類別庫內部使用。如果應用程式程式碼使用這個類型的任何成員,都會擲回 MethodAccessException。
[安全性關鍵]
DataMenuCommand 初始化類別的新執行個體,並指定命令識別項。
命名空間: Microsoft.VisualStudio.Data.Framework
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Public Sub New ( _
command As CommandID _
)
public DataMenuCommand(
CommandID command
)
public:
DataMenuCommand(
CommandID^ command
)
new :
command:CommandID -> DataMenuCommand
public function DataMenuCommand(
command : CommandID
)
參數
command
類型:CommandID包含與環境的連結這個功能表命令的唯一 ID CommandID 命令的物件。