Partager via


IVsParseCommandLine.EvaluateSwitches(String) Method

Definition

Evaluates command line switches based on switch definitions.

public:
 int EvaluateSwitches(System::String ^ szSwitchDefs);
public:
 int EvaluateSwitches(Platform::String ^ szSwitchDefs);
int EvaluateSwitches(std::wstring const & szSwitchDefs);
public int EvaluateSwitches (string szSwitchDefs);
abstract member EvaluateSwitches : string -> int
Public Function EvaluateSwitches (szSwitchDefs As String) As Integer

Parameters

szSwitchDefs
String

[in] String containing the switch definitions.

Returns

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  
);  

Applies to