QueryParameterList Method
The document is archived and information here might be outdated

ViewFilter.QueryParameterList Method

Called to obtain the parameter for the specified command.

This method is not CLS-compliant.  

Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in microsoft.visualstudio.package.languageservice.dll)

protected virtual int QueryParameterList (
	ref Guid guidCmdGroup,
	uint nCmdId,
	uint nCmdexecopt,
	IntPtr pvaIn,
	IntPtr pvaOut
protected int QueryParameterList (
	/** @ref */ Guid guidCmdGroup, 
	UInt32 nCmdId, 
	UInt32 nCmdexecopt, 
	IntPtr pvaIn, 
	IntPtr pvaOut
JScript does not support passing value-type arguments by reference.



[in] The GUID of the command group.


[in] The ID of the command for which to get the parameter.


[in] Additional parameters for the command (packed into a 32-bit value).


[in] Always a null reference (Nothing in Visual Basic).


[in, out] An unmarshaled pointer to a Variant object to hold the parameter of the command expressed as a string.

Return Value

If successful, returns S_OK; otherwise, returns an error code. A typical error code is OLECMDERR_E_NOTSUPPORTED if parameters on methods are not supported.

This method is typically called from an implementation of the QueryStatus method when the nCmdexecopt parameter contains the OLECMDEXECOPT_SHOWHELP option in order to return a text representation of the parameters.

If you have added support for additional commands in your language service and any of those commands have parameter lists, then you must derive a class from the ViewFilter class and override this method.

The base class always returns OLECMDERR_E_NOTSUPPORTED.

In the default managed package framework implementation of the language service classes, this method is called from the Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus method if the nCmdexecopt parameter contains the OLECMDEXECOPT_SHOWHELP option.

© 2016 Microsoft