DsmlRequestDocument.IList.IndexOf(Object) 方法

定義

傳回指定的 DirectoryRequest 物件在 DsmlRequestDocument 集合中第一個出現的符合項目之索引 (此索引以零為起始)。Returns the zero-based index of the first occurrence of the specified DirectoryRequest object in the DsmlRequestDocument collection.

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object value);
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

參數

value
Object

索引傳回的 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).

適用於