DataViewHierarchyAccessor.GetCommandStatus 方法

定义

重载

GetCommandStatus(Int32, OleCommand)

检索 OLE 命令的状态。

GetCommandStatus(Int32, OleCommand, OleCommandTextType)

检索带有特定类型的命令文本请求的 OLE 命令的状态。

GetCommandStatus(Int32, OleCommand)

检索 OLE 命令的状态。

public:
 Microsoft::VisualStudio::Data::OleCommandStatus ^ GetCommandStatus(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command);
public Microsoft.VisualStudio.Data.OleCommandStatus GetCommandStatus (int itemId, Microsoft.VisualStudio.Data.OleCommand command);
member this.GetCommandStatus : int * Microsoft.VisualStudio.Data.OleCommand -> Microsoft.VisualStudio.Data.OleCommandStatus
Public Function GetCommandStatus (itemId As Integer, command As OleCommand) As OleCommandStatus

参数

itemId
Int32

应为其检索命令状态的项 ID。

command
OleCommand

用于查询状态的命令。

返回

OleCommandStatus

返回一个 OleCommandStatus 对象,该对象描述 OLE 命令的状态。

例外

command 参数为 null。

指定的 itemId 无效。

适用于

GetCommandStatus(Int32, OleCommand, OleCommandTextType)

检索带有特定类型的命令文本请求的 OLE 命令的状态。

public:
 Microsoft::VisualStudio::Data::OleCommandStatus ^ GetCommandStatus(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command, Microsoft::VisualStudio::Data::OleCommandTextType textType);
public Microsoft.VisualStudio.Data.OleCommandStatus GetCommandStatus (int itemId, Microsoft.VisualStudio.Data.OleCommand command, Microsoft.VisualStudio.Data.OleCommandTextType textType);
member this.GetCommandStatus : int * Microsoft.VisualStudio.Data.OleCommand * Microsoft.VisualStudio.Data.OleCommandTextType -> Microsoft.VisualStudio.Data.OleCommandStatus
Public Function GetCommandStatus (itemId As Integer, command As OleCommand, textType As OleCommandTextType) As OleCommandStatus

参数

itemId
Int32

应为其检索命令状态的项 ID。

command
OleCommand

用于查询状态的命令。

textType
OleCommandTextType

应检索的文本的类型。

返回

OleCommandStatus

返回一个 OleCommandStatus 对象,该对象描述 OLE 命令的状态。

例外

command 参数为 null。

指定的 itemId 无效。

适用于