IVsParseCommandLine2.GetACParamOrSwitch Method

Definition

Retrieves an auto completion command line item or switch.

public:
 int GetACParamOrSwitch([Runtime::InteropServices::Out] int % piACIndex, [Runtime::InteropServices::Out] int % piACStart, [Runtime::InteropServices::Out] int % pcchACLength, [Runtime::InteropServices::Out] System::String ^ % pbstrCurSwitch, [Runtime::InteropServices::Out] System::String ^ % pbstrACParam);
int GetACParamOrSwitch([Runtime::InteropServices::Out] int & piACIndex, [Runtime::InteropServices::Out] int & piACStart, [Runtime::InteropServices::Out] int & pcchACLength, [Runtime::InteropServices::Out] std::wstring const & & pbstrCurSwitch, [Runtime::InteropServices::Out] std::wstring const & & pbstrACParam);
public int GetACParamOrSwitch (out int piACIndex, out int piACStart, out int pcchACLength, out string pbstrCurSwitch, out string pbstrACParam);
abstract member GetACParamOrSwitch : int * int * int * string * string -> int
Public Function GetACParamOrSwitch (ByRef piACIndex As Integer, ByRef piACStart As Integer, ByRef pcchACLength As Integer, ByRef pbstrCurSwitch As String, 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.

pbstrCurSwitch
String

[out] Pointer to a string containing the current switch.

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 vsshell80.idl:

HRESULT IVsParseCommandLine2::GetACParamOrSwitch(  
   [out] int* piACIndex,   
   [out] int* piACStart,   
   [out] int* pcchACLength,   
   [out] BSTR* pbstrCurSwitch,   
   [out, retval] BSTR* pbstrACParam  
);  

Applies to