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
'宣言
Function EvaluateSwitches ( _
szSwitchDefs As String _
) As Integer
'使用
Dim instance As IVsParseCommandLine
Dim szSwitchDefs As String
Dim returnValue As Integer
returnValue = instance.EvaluateSwitches(szSwitchDefs)
int EvaluateSwitches(
string szSwitchDefs
)
int EvaluateSwitches(
[InAttribute] String^ szSwitchDefs
)
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
);
Permissions
- 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.