DirectoryControlCollection.IndexOf(DirectoryControl) 方法

定义

IndexOf(DirectoryControl) 方法返回在 DirectoryControlCollection 中指定的 DirectoryControl 对象的第一个匹配项从零开始的索引。

public:
 int IndexOf(System::DirectoryServices::Protocols::DirectoryControl ^ value);
public int IndexOf (System.DirectoryServices.Protocols.DirectoryControl value);
member this.IndexOf : System.DirectoryServices.Protocols.DirectoryControl -> int
Public Function IndexOf (value As DirectoryControl) As Integer

参数

value
DirectoryControl

为其返回索引的 DirectoryControl 对象。

返回

Int32

如果找到指定的 DirectoryControl 对象,则为其索引值;否则为 -1。

适用于