IVsParseCommandLine2.GetACParamOrSwitch Method

Retrieves an auto completion command line item or switch.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function GetACParamOrSwitch ( _
    <OutAttribute> ByRef piACIndex As Integer, _
    <OutAttribute> ByRef piACStart As Integer, _
    <OutAttribute> ByRef pcchACLength As Integer, _
    <OutAttribute> ByRef pbstrCurSwitch As String, _
    <OutAttribute> ByRef pbstrACParam As String _
) As Integer
int GetACParamOrSwitch(
    out int piACIndex,
    out int piACStart,
    out int pcchACLength,
    out string pbstrCurSwitch,
    out string pbstrACParam
)
int GetACParamOrSwitch(
    [OutAttribute] int% piACIndex, 
    [OutAttribute] int% piACStart, 
    [OutAttribute] int% pcchACLength, 
    [OutAttribute] String^% pbstrCurSwitch, 
    [OutAttribute] String^% pbstrACParam
)
abstract GetACParamOrSwitch : 
        piACIndex:int byref * 
        piACStart:int byref * 
        pcchACLength:int byref * 
        pbstrCurSwitch:string byref * 
        pbstrACParam:string byref -> int 
function GetACParamOrSwitch(
    piACIndex : int, 
    piACStart : int, 
    pcchACLength : int, 
    pbstrCurSwitch : String, 
    pbstrACParam : String
) : int

Parameters

  • piACIndex
    Type: System.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
    Type: System.Int32%
    [out] Pointer to the beginning of the auto completion item in the command line buffer.
  • pcchACLength
    Type: System.Int32%
    [out] Pointer to the length of the auto completion item.
  • pbstrCurSwitch
    Type: System.String%
    [out] Pointer to a string containing the current switch.
  • pbstrACParam
    Type: System.String%
    [out] Pointer to a string containing the current auto completion parameter.

Return Value

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

.NET Framework Security

See Also

Reference

IVsParseCommandLine2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace