DirectoryControlCollection.IndexOf(DirectoryControl) 方法
定义
IndexOf(DirectoryControl) 方法返回在 DirectoryControlCollection 中指定的 DirectoryControl 对象的第一个匹配项从零开始的索引。The IndexOf(DirectoryControl) method returns the zero-based index of the first occurrence of the specified DirectoryControl object in the DirectoryControlCollection.
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 对象。The DirectoryControl object for which the index is returned.
返回
如果找到指定的 DirectoryControl 对象,则为其索引值;否则为 -1。The index value of the specified DirectoryControl object, if found; otherwise, -1.