IVsParseCommandLine.ValidateParamCount 方法

验证参数计数在指定范围内。

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

语法

声明
Function ValidateParamCount ( _
    cParamsMin As Integer, _
    cParamsMax As Integer _
) As Integer
int ValidateParamCount(
    int cParamsMin,
    int cParamsMax
)

参数

  • cParamsMin
    类型:System.Int32
    [in] 参数的最小位数。
  • cParamsMax
    类型:System.Int32
    [in] 参数的最大数目。

返回值

类型:System.Int32
如果参数计数在该范围中,返回 S_OK。否则返回 E_FAIL

备注

COM 签名

从 vsshell.idl:

HRESULT IVsParseCommandLine::ValidateParamCount(
   [in] int cParamsMin, 
   [in] int cParamsMax
);

.NET Framework 安全性

请参见

参考

IVsParseCommandLine 接口

Microsoft.VisualStudio.Shell.Interop 命名空间