IVsParseCommandLine.GetACParam Method
Retrieves an auto completion command line item.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetACParam ( _
<OutAttribute> ByRef piACIndex As Integer, _
<OutAttribute> ByRef piACStart As Integer, _
<OutAttribute> ByRef pcchACLength As Integer, _
<OutAttribute> ByRef pbstrACParam As String _
) As Integer
int GetACParam(
out int piACIndex,
out int piACStart,
out int pcchACLength,
out string pbstrACParam
)
int GetACParam(
[OutAttribute] int% piACIndex,
[OutAttribute] int% piACStart,
[OutAttribute] int% pcchACLength,
[OutAttribute] String^% pbstrACParam
)
abstract GetACParam :
piACIndex:int byref *
piACStart:int byref *
pcchACLength:int byref *
pbstrACParam:string byref -> int
function GetACParam(
piACIndex : int,
piACStart : int,
pcchACLength : int,
pbstrACParam : String
) : int
Parameters
piACIndex
Type: 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: Int32%[out] Pointer to the beginning of the auto completion item in the command line buffer.
pcchACLength
Type: Int32%[out] Pointer to the length of the auto completion item.
pbstrACParam
Type: String%[out] Pointer to a string containing the current auto completion parameter.
Return Value
Type: Int32
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
);
.NET Framework Security
- 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.