共用方式為


IVsParseCommandLine.SwitchHasValue(Int32) Method

Definition

Tests, by index, whether or not a specific switch has a value.

public:
 int SwitchHasValue(int iIndex);
public:
 int SwitchHasValue(int iIndex);
int SwitchHasValue(int iIndex);
public int SwitchHasValue (int iIndex);
abstract member SwitchHasValue : int -> int
Public Function SwitchHasValue (iIndex As Integer) As Integer

Parameters

iIndex
Int32

[in] Integer. The index of the switch to check.

Returns

If the switch has no value, returns S_OK. Otherwise, returns E_FAIL.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::SwitchHasValue(  
   [in] int iIndex  
);  

Applies to