ユーザー インターフェイスのイベントによって生成された 1 つ以上のコマンドのステータスをオブジェクトに問い合わせます。
名前空間 : Microsoft.VisualStudio.Data.Schema.Project.Common.UI
アセンブリ : Microsoft.VisualStudio.Data.Schema.Project (Microsoft.VisualStudio.Data.Schema.Project.dll 内)
構文
'宣言
Private Function QueryStatus ( _
ByRef pguidCmdGroup As Guid, _
cCmds As UInteger, _
prgCmds As OLECMD(), _
pCmdText As IntPtr _
) As Integer Implements IOleCommandTarget.QueryStatus
'使用
Dim instance As DataPackage
Dim pguidCmdGroup As Guid
Dim cCmds As UInteger
Dim prgCmds As OLECMD()
Dim pCmdText As IntPtr
Dim returnValue As Integer
returnValue = CType(instance, IOleCommandTarget).QueryStatus(pguidCmdGroup, _
cCmds, prgCmds, pCmdText)
int IOleCommandTarget.QueryStatus(
ref Guid pguidCmdGroup,
uint cCmds,
OLECMD[] prgCmds,
IntPtr pCmdText
)
private:
virtual int QueryStatus(
Guid% pguidCmdGroup,
unsigned int cCmds,
array<OLECMD>^ prgCmds,
IntPtr pCmdText
) sealed = IOleCommandTarget::QueryStatus
JScript では、明示的なインターフェイスの実装はサポートされません。
パラメータ
- pguidCmdGroup
型 : System.Guid%
コマンドが属するコマンド グループの GUID。
- cCmds
型 : System.UInt32
コマンドの ID。
- prgCmds
型 : array<Microsoft.VisualStudio.OLE.Interop.OLECMD[]
照会されるコマンドを表す OLECMD 構造体の配列。
- pCmdText
型 : System.IntPtr
単一のコマンドの名前とステータス情報を返す OLECMDTXT 構造体へのポインタ。
戻り値
型 : System.Int32
実装
IOleCommandTarget.QueryStatus(Guid%, UInt32, array<OLECMD[], IntPtr)