IVsParseCommandLine.EvaluateSwitches 方法

计算根据开关定义的命令行开关。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function EvaluateSwitches ( _
    szSwitchDefs As String _
) As Integer
int EvaluateSwitches(
    string szSwitchDefs
)

参数

  • szSwitchDefs
    类型:System.String
    [in] 包含开关定义的字符串。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

使用 GetSwitchValue 和相关方法检索特定的值。

COM 签名

从 vsshell.idl:

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

.NET Framework 安全性

请参见

参考

IVsParseCommandLine 接口

Microsoft.VisualStudio.Shell.Interop 命名空间