Gets the parameters for a command.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Protected Overridable Function QueryParameterList ( _
ByRef guidCmdGroup As Guid, _
id As UInteger, _
options As UInteger, _
pvaIn As IntPtr, _
pvaOut As IntPtr _
) As Integer
'使用
Dim guidCmdGroup As Guid
Dim id As UInteger
Dim options As UInteger
Dim pvaIn As IntPtr
Dim pvaOut As IntPtr
Dim returnValue As Integer
returnValue = Me.QueryParameterList(guidCmdGroup, _
id, options, pvaIn, pvaOut)
protected virtual int QueryParameterList(
ref Guid guidCmdGroup,
uint id,
uint options,
IntPtr pvaIn,
IntPtr pvaOut
)
protected:
virtual int QueryParameterList(
Guid% guidCmdGroup,
unsigned int id,
unsigned int options,
IntPtr pvaIn,
IntPtr pvaOut
)
protected function QueryParameterList(
guidCmdGroup : Guid,
id : uint,
options : uint,
pvaIn : IntPtr,
pvaOut : IntPtr
) : int
Parameters
guidCmdGroup
Type: System.Guid%The GUID of the command group to which the command belongs.
id
Type: System.UInt32The ID of the command.
options
Type: System.UInt32Values taken from the OLECMDEXECOPT enumeration, which describe how the object should execute the command.
pvaIn
Type: System.IntPtrPointer to a VARIANTARG structure containing input arguments. Can be a null reference (Nothing in Visual Basic).
pvaOut
Type: System.IntPtrPointer to a VARIANTARG structure containing output data. This should be pre-allocated as an empty Object ready to receive the result string.
Return Value
Type: System.Int32
Usually returns S_OK if the command succeeded, or OLECMDERR_E_NOTSUPPORTED().
Remarks
This method is called by Exec() is called with
nCmdexecopt equal to OLECMDEXECOPT_SHOWHELP() in the low order bit and VSCmdOptQueryParameterList in the high order bit.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.