IVsParseCommandLine.IsSwitchPresent(Int32) 方法

定义

查询(按索引)是否存在给定的开关。

public:
 int IsSwitchPresent(int iSwitchIndex);
public:
 int IsSwitchPresent(int iSwitchIndex);
int IsSwitchPresent(int iSwitchIndex);
public int IsSwitchPresent (int iSwitchIndex);
abstract member IsSwitchPresent : int -> int
Public Function IsSwitchPresent (iSwitchIndex As Integer) As Integer

参数

iSwitchIndex
Int32

中要测试的开关的索引。

返回

Int32

S_OK如果开关存在,则返回 S_FALSE ; 否则返回。 E_INVALIDARG如果索引超出范围,则返回。

注解

COM 签名

从 vsshell:

HRESULT IVsParseCommandLine::IsSwitchPresent(  
   [in] int iSwitchIndex  
);  

适用于