Share via


IVsParseCommandLine.ValidateParamCount(Int32, Int32) Method

Definition

Verify the parameter count is within a specific range.

public:
 int ValidateParamCount(int cParamsMin, int cParamsMax);
public:
 int ValidateParamCount(int cParamsMin, int cParamsMax);
int ValidateParamCount(int cParamsMin, int cParamsMax);
public int ValidateParamCount (int cParamsMin, int cParamsMax);
abstract member ValidateParamCount : int * int -> int
Public Function ValidateParamCount (cParamsMin As Integer, cParamsMax As Integer) As Integer

Parameters

cParamsMin
Int32

[in] The minimum number of parameters.

cParamsMax
Int32

[in] The maximum number of parameters.

Returns

If the parameter count is within the range, returns S_OK. Returns E_FAIL otherwise.

Remarks

COM Signature

From vsshell.idl:

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

Applies to