IVsParseCommandLine.SwitchHasValue(Int32) 方法

定义

按索引进行的测试,指定的开关是否具有值。

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

参数

iIndex
Int32

中整数. 要检查的开关的索引。

返回

Int32

如果开关没有值,则返回 S_OK 。 否则返回 E_FAIL

注解

COM 签名

从 vsshell:

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

适用于