DsmlRequestDocument.Add(DirectoryRequest) DsmlRequestDocument.Add(DirectoryRequest) DsmlRequestDocument.Add(DirectoryRequest) DsmlRequestDocument.Add(DirectoryRequest) Method

定義

Add(DirectoryRequest) 方法會將 DirectoryRequest 物件加入至集合。The Add(DirectoryRequest) method adds a DirectoryRequest object to the collection.

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

參數

request
DirectoryRequest DirectoryRequest DirectoryRequest DirectoryRequest

要新增到集合的 DirectoryRequest 物件。The DirectoryRequest object to add to the collection.

傳回

DsmlRequestDocument 集合的索引,DirectoryRequest 物件已在該處加入。The index of the DsmlRequestDocument collection at which the DirectoryRequest object was added.

例外狀況

request 為 null 參考 (在 Visual Basic 中為 Nothing)。request is a null reference (Nothing in Visual Basic).

適用於