ProtocolElementCollection.IndexOf(ProtocolElement) 方法

定义

返回集合中指定 ProtocolElement 的从零开始的索引。Returns the zero-based index of a specified ProtocolElement in the collection.

public:
 int IndexOf(System::Web::Services::Configuration::ProtocolElement ^ element);
public int IndexOf (System.Web.Services.Configuration.ProtocolElement element);
member this.IndexOf : System.Web.Services.Configuration.ProtocolElement -> int
Public Function IndexOf (element As ProtocolElement) As Integer

参数

element
ProtocolElement

要在集合中查找的 ProtocolElementThe ProtocolElement to find in the collection.

返回

Int32

指定 ProtocolElement 的从零开始的索引;如果在集合中未找到该元素,则为 -1。The zero-based index of the specified ProtocolElement, or -1 if the element was not found in the collection.

适用于