IVsParseCommandLine.IsSwitchPresent(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
查询(按索引)是否存在给定的开关。
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
中要测试的开关的索引。
返回
S_OK如果开关存在,则返回 S_FALSE ; 否则返回。 E_INVALIDARG如果索引超出范围,则返回。
注解
COM 签名
从 vsshell:
HRESULT IVsParseCommandLine::IsSwitchPresent(
[in] int iSwitchIndex
);