DsmlRequestDocument.IndexOf(DirectoryRequest) DsmlRequestDocument.IndexOf(DirectoryRequest) DsmlRequestDocument.IndexOf(DirectoryRequest) DsmlRequestDocument.IndexOf(DirectoryRequest) Method

定義

IndexOf(DirectoryRequest) 方法會傳回指定之 DirectoryRequestDsmlRequestDocument 集合中第一個出現之符合項目的以零起始索引。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 DirectoryRequest 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).

適用於