Compartilhar via


IVsParseCommandLine.GetACParam(Int32, Int32, Int32, String) Method

Definition

Retrieves an auto completion command line item.

public:
 int GetACParam([Runtime::InteropServices::Out] int % piACIndex, [Runtime::InteropServices::Out] int % piACStart, [Runtime::InteropServices::Out] int % pcchACLength, [Runtime::InteropServices::Out] System::String ^ % pbstrACParam);
int GetACParam([Runtime::InteropServices::Out] int & piACIndex, [Runtime::InteropServices::Out] int & piACStart, [Runtime::InteropServices::Out] int & pcchACLength, [Runtime::InteropServices::Out] std::wstring const & & pbstrACParam);
public int GetACParam (out int piACIndex, out int piACStart, out int pcchACLength, out string pbstrACParam);
abstract member GetACParam : int * int * int * string -> int
Public Function GetACParam (ByRef piACIndex As Integer, ByRef piACStart As Integer, ByRef pcchACLength As Integer, ByRef pbstrACParam As String) As Integer

Parameters

piACIndex
Int32

[out] Pointer to an index indicating whether or not there is an auto completion item. Set to PCL_AUTO_COMMANDS if there are auto completion items.

piACStart
Int32

[out] Pointer to the beginning of the auto completion item in the command line buffer.

pcchACLength
Int32

[out] Pointer to the length of the auto completion item.

pbstrACParam
String

[out] Pointer to a string containing the current auto completion parameter.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::GetACParam(  
   [out] int* piACIndex,   
   [out] int* piACStart,   
   [out] int* pcchACLength,   
   [out, retval] BSTR* pbstrACParam  
);  

Applies to