共用方式為


DataViewMenuCommand 類別

表示高階或捷徑功能表的功能表命令的基底實作成資料檢視階層架構的一部分。

繼承階層架構

Object
  MenuCommand
    Microsoft.VisualStudio.Data.Framework.DataMenuCommand
      Microsoft.VisualStudio.Data.Framework.DataViewMenuCommand
        Microsoft.VisualStudio.Data.Framework.DataViewSelectionMenuCommand

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)

語法

'宣告
Public Class DataViewMenuCommand _
    Inherits DataMenuCommand
public class DataViewMenuCommand : DataMenuCommand
public ref class DataViewMenuCommand : public DataMenuCommand
type DataViewMenuCommand =  
    class 
        inherit DataMenuCommand 
    end
public class DataViewMenuCommand extends DataMenuCommand

DataViewMenuCommand 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 DataViewMenuCommand(Int32, CommandID) DataViewMenuCommand 初始化類別的新執行個體,指定項目 ID 和命令識別項。
公用方法 DataViewMenuCommand(Int32, CommandID, EventHandler) DataMenuCommand 初始化類別的新執行個體,指定項目 ID、命令識別項和事件。
公用方法 DataViewMenuCommand(Int32, CommandID, EventHandler, EventHandler) DataMenuCommand 初始化類別的新執行個體,指定項目 ID、命令識別項和事件。

回頁首

屬性

  名稱 描述
公用屬性 Checked 取得或設定值,表示是否檢查這個功能表項目。 (繼承自 MenuCommand)。
公用屬性 CommandID 取得與這個功能表命令相關的 CommandID。 (繼承自 MenuCommand)。
公用屬性 Enabled 取得值,表示是否可以使用這個功能表項目。 (繼承自 MenuCommand)。
公用屬性 ItemId 取得項目 ID
公用屬性 OleStatus 取得這個功能表項目的 OLE 命令狀態程式碼。 (繼承自 MenuCommand)。
公用屬性 Properties 取得與 MenuCommand 關聯的公用屬性。 (繼承自 MenuCommand)。
公用屬性 Supported 取得或設定值,表示是否支援這個功能表項目。 (繼承自 MenuCommand)。
公用屬性 Text 擷取功能表命令的 Text 屬性。 (繼承自 DataMenuCommand)。
公用屬性 Visible 取得或設定值,表示功能表項目是否為可見。 (繼承自 MenuCommand)。

回頁首

方法

  名稱 描述
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
公用方法 Invoke() 叫用命令。 (繼承自 DataMenuCommand)。
公用方法 Invoke(Object) 叫用具有指定參數的命令。 (繼承自 DataMenuCommand)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
受保護的方法 OnCommandChanged 引發 CommandChanged 事件。 (繼承自 MenuCommand)。
公用方法 ToString 傳回這個功能表命令的字串表示。 (繼承自 MenuCommand)。
公用方法 UpdateStatus 更新命令的狀態並引發適當的事件。 (繼承自 DataMenuCommand)。

回頁首

事件

  名稱 描述
公用事件 CommandChanged 發生於功能表命令變更時。 (繼承自 MenuCommand)。

回頁首

備註

這個類別可讓您 ItemId 附加至一個指定的功能表命令。

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Data.Framework 命名空間