ProtocolElementCollection.IndexOf(ProtocolElement) 方法

定義

傳回集合中指定 ProtocolElement 的以零起始的索引。

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

要在集合中尋找的 ProtocolElement

傳回

Int32

指定 ProtocolElement 的以零起始的索引;如果在集合中找不到此項目,則為 -1。

適用於