다음을 통해 공유


Package.IOleCommandTarget.QueryStatus Method

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

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
Private Function QueryStatus ( _
    ByRef guidGroup As Guid, _
    nCmdId As UInteger, _
    oleCmd As OLECMD(), _
    oleText As IntPtr _
) As Integer Implements IOleCommandTarget.QueryStatus
‘사용 방법
Dim instance As Package
Dim guidGroup As Guid
Dim nCmdId As UInteger
Dim oleCmd As OLECMD()
Dim oleText As IntPtr
Dim returnValue As Integer

returnValue = CType(instance, IOleCommandTarget).QueryStatus(guidGroup, _
    nCmdId, oleCmd, oleText)
int IOleCommandTarget.QueryStatus(
    ref Guid guidGroup,
    uint nCmdId,
    OLECMD[] oleCmd,
    IntPtr oleText
)
private:
virtual int QueryStatus(
    Guid% guidGroup, 
    unsigned int nCmdId, 
    array<OLECMD>^ oleCmd, 
    IntPtr oleText
) sealed = IOleCommandTarget::QueryStatus
private abstract QueryStatus : 
        guidGroup:Guid byref * 
        nCmdId:uint32 * 
        oleCmd:OLECMD[] * 
        oleText:IntPtr -> int 
private override QueryStatus : 
        guidGroup:Guid byref * 
        nCmdId:uint32 * 
        oleCmd:OLECMD[] * 
        oleText:IntPtr -> int 
JScript does not support explicit interface implementations.

Parameters

  • guidGroup
    Type: System.Guid%
    The GUID of the command group to which the command belongs.
  • oleText
    Type: System.IntPtr
    A pointer to an OLECMDTXT structure in which to return name and/or status information for a single command. Can be nulla null reference (Nothing in Visual Basic) to indicate that the caller does not need this information.

Return Value

Type: System.Int32
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

IOleCommandTarget.QueryStatus(Guid%, UInt32, array<OLECMD[], IntPtr)

.NET Framework Security

See Also

Reference

Package Class

Package Members

Microsoft.VisualStudio.Shell Namespace