IVsParseCommandLine.GetSwitchValue Method

Gets the parsed value of a switch by index.

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

Syntax

'Declaration
Function GetSwitchValue ( _
    iSwitchIndex As Integer, _
    <OutAttribute> ByRef pbstrValue As String _
) As Integer
int GetSwitchValue(
    int iSwitchIndex,
    out string pbstrValue
)
int GetSwitchValue(
    [InAttribute] int iSwitchIndex, 
    [OutAttribute] String^% pbstrValue
)
abstract GetSwitchValue : 
        iSwitchIndex:int * 
        pbstrValue:string byref -> int
function GetSwitchValue(
    iSwitchIndex : int, 
    pbstrValue : String
) : int

Parameters

  • iSwitchIndex
    Type: System.Int32

    [in] Index of the switch value to return.

  • pbstrValue
    Type: System.String%

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

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

HRESULT IVsParseCommandLine::GetSwitchValue(
   [in] int iSwitchIndex, 
   [out, retval] BSTR* pbstrValue
);

.NET Framework Security

See Also

Reference

IVsParseCommandLine Interface

Microsoft.VisualStudio.Shell.Interop Namespace