IVsParseCommandLine.EvaluateSwitches Method

Evaluates command line switches based on switch definitions.

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

Syntax

'Declaration
Function EvaluateSwitches ( _
    szSwitchDefs As String _
) As Integer
int EvaluateSwitches(
    string szSwitchDefs
)
int EvaluateSwitches(
    [InAttribute] String^ szSwitchDefs
)
abstract EvaluateSwitches : 
        szSwitchDefs:string -> int
function EvaluateSwitches(
    szSwitchDefs : String
) : int

Parameters

  • szSwitchDefs
    Type: System.String

    [in] String containing the switch definitions.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Use GetSwitchValue and related methods to retrieve values of particular switches.

COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::EvaluateSwitches(
   [in, ref] LPCOLESTR szSwitchDefs
);

.NET Framework Security

See Also

Reference

IVsParseCommandLine Interface

Microsoft.VisualStudio.Shell.Interop Namespace