次の方法で共有


Package.IOleCommandTarget.QueryStatus(Guid, UInt32, OLECMD[], IntPtr) Method

Definition

Queries the object for the status of one or more commands generated by user interface events.

 virtual int Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus(Guid % guidGroup, System::UInt32 nCmdId, cli::array <Microsoft::VisualStudio::OLE::Interop::OLECMD> ^ oleCmd, IntPtr oleText) = Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget::QueryStatus;
int IOleCommandTarget.QueryStatus (ref Guid guidGroup, uint nCmdId, Microsoft.VisualStudio.OLE.Interop.OLECMD[] oleCmd, IntPtr oleText);
abstract member Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus : Guid * uint32 * Microsoft.VisualStudio.OLE.Interop.OLECMD[] * nativeint -> int
override this.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus : Guid * uint32 * Microsoft.VisualStudio.OLE.Interop.OLECMD[] * nativeint -> int
Function QueryStatus (ByRef guidGroup As Guid, nCmdId As UInteger, oleCmd As OLECMD(), oleText As IntPtr) As Integer Implements IOleCommandTarget.QueryStatus

Parameters

guidGroup
Guid

The GUID of the command group to which the command belongs.

nCmdId
UInt32

The number of elements in the oleCmd array. In Visual Studio this number is always 1.

oleCmd
OLECMD[]

An array of OLECMD structures representing the commands being queried.

oleText
IntPtr

nativeint

A pointer to an OLECMDTEXT structure in which to return name and/or status information for a single command. Can be null to indicate that the caller does not need this information.

Returns

S_OK if the method succeeded, otherwise an error code. This method returns OLECMDERR_E_NOTSUPPORTED if no instance of IOleCommandTarget can be found.

Implements

Applies to