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: String[in] String containing the switch definitions.
Return Value
Type: 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
- 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.