DsmlRequestDocument.IndexOf(DirectoryRequest) 方法

定义

IndexOf(DirectoryRequest) 方法返回 DirectoryRequest 集合中指定的 DsmlRequestDocument 对象的第一个匹配项从零开始的索引。The IndexOf(DirectoryRequest) method returns the zero-based index of the first occurrence of the specified DirectoryRequest object in the DsmlRequestDocument collection.

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

参数

value
DirectoryRequest

为其返回索引的 DirectoryRequest 对象。The DirectoryRequest object for which the index is returned.

返回

如果找到指定的 DirectoryRequest 对象,则为其索引值;否则为 -1。The index value of the specified DirectoryRequest object, if found; otherwise, -1.

异常

valuenull 引用(在 Visual Basic 中为 Nothing)。value is null reference (Nothing in Visual Basic).

适用于