检索OLE命令的状态。
命名空间: Microsoft.VisualStudio.Data
程序集: Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)
语法
声明
Public Function GetCommandStatus ( _
itemId As Integer, _
command As OleCommand _
) As OleCommandStatus
public OleCommandStatus GetCommandStatus(
int itemId,
OleCommand command
)
public:
OleCommandStatus^ GetCommandStatus(
int itemId,
OleCommand^ command
)
member GetCommandStatus :
itemId:int *
command:OleCommand -> OleCommandStatus
public function GetCommandStatus(
itemId : int,
command : OleCommand
) : OleCommandStatus
参数
- itemId
类型:System.Int32
命令状态应检索的项ID。
- command
类型:Microsoft.VisualStudio.Data.OleCommand
命令的状态查询。
返回值
类型:Microsoft.VisualStudio.Data.OleCommandStatus
返回描述OLE命令的状态的 OleCommandStatus 对象。
异常
异常 | 条件 |
---|---|
ArgumentNullException | command 参数为 null。 |
ArgumentException | 指定的itemId无效。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。