DsmlRequestDocument.Add(DirectoryRequest) 方法

定义

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 对象。The DirectoryRequest object to add to the collection.

返回

DsmlRequestDocument 集合中添加 DirectoryRequest 对象处的索引。The index of the DsmlRequestDocument collection at which the DirectoryRequest object was added.

异常

request 为空引用(在 Visual Basic 中为 Nothing)。request is a null reference (Nothing in Visual Basic).

适用于