Share via


ServiceNameElementCollection.IndexOf(ServiceNameElement) 方法

定义

IndexOf(ServiceNameElement) 方法可检索此 ServiceNameElementCollection 中的指定配置元素的索引。

public:
 int IndexOf(System::Security::Authentication::ExtendedProtection::Configuration::ServiceNameElement ^ element);
public int IndexOf (System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElement element);
member this.IndexOf : System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElement -> int
Public Function IndexOf (element As ServiceNameElement) As Integer

参数

element
ServiceNameElement

要检索其在此 ServiceNameElement 中的索引的 ServiceNameElementCollection 实例。

返回

ServiceNameElement 中指定的 ServiceNameElementCollection 的索引。

适用于