DsmlRequestDocument 类

定义

DsmlRequestDocument 类可让你生成 DSML 请求负载,如 AddRequestModifyRequestSearchRequestThe DsmlRequestDocument class enables you to build a DSML request payload, such as AddRequest, ModifyRequest, or SearchRequest. 它包含零个或多个 DirectoryRequest 派生对象。It contains zero or more DirectoryRequest derived objects. 用户可以先添加、删除、修改和枚举 DirectoryRequest,然后再发送到服务器。The user may add, delete, modify, and enumerate the DirectoryRequest before sending to the server. DsmlRequestDocument 可以与任何 DSML 绑定类(如 DsmlSoapHttpConnection)一起使用,以传输文档。DsmlRequestDocument can be used with any DSML Binding classes to transport the document, such as DsmlSoapHttpConnection.

public ref class DsmlRequestDocument : System::DirectoryServices::Protocols::DsmlDocument, System::Collections::IList
public class DsmlRequestDocument : System.DirectoryServices.Protocols.DsmlDocument, System.Collections.IList
type DsmlRequestDocument = class
    inherit DsmlDocument
    interface IList
    interface ICollection
    interface IEnumerable
Public Class DsmlRequestDocument
Inherits DsmlDocument
Implements IList
继承
DsmlRequestDocument
实现

构造函数

DsmlRequestDocument()

DsmlRequestDocument() 构造函数创建 DsmlRequestDocument 类的实例。The DsmlRequestDocument() constructor creates an instance of the DsmlRequestDocument class.

属性

Count

Count 属性包含此集合中 DirectoryRequest 对象的数目。The Count property contains the number of DirectoryRequest objects in this collection.

DocumentProcessing

DocumentProcessing 属性包含 DsmlDocumentProcessing 的一个值,该值指定集合元素的处理方式。The DocumentProcessing property contains one of the values of DsmlDocumentProcessing that specifies how the elements of the collection are processed.

ErrorProcessing

ErrorProcessing 属性包含 DsmlErrorProcessing 的一个值,该值指定如何对错误进行处理。The ErrorProcessing property contains one of the values of DsmlErrorProcessing that specifies how errors are processed.

IsFixedSize

IsFixedSize 属性包含的值用于指示 DsmlRequestDocument 是否具有固定大小。The IsFixedSize property contains a value that indicates whether the DsmlRequestDocument has a fixed size.

IsReadOnly

IsReadOnly 属性包含的值用于指示 DsmlRequestDocument 是否为只读。The IsReadOnly property contains a value indicating whether the DsmlRequestDocument is read only or not.

IsSynchronized

IsSynchronized 属性包含一个指示是否同步对 DsmlRequestDocument 的访问(线程安全)的值。The IsSynchronized property contains a value that indicates whether access to the DsmlRequestDocument is synchronized (thread-safe).

Item[Int32]

Item[Int32] 属性包含指定索引处的 DirectoryRequest 对象。The Item[Int32] property contains the DirectoryRequest object at the specified index.

RequestId

RequestId 属性包含与 DsmlRequestDocument 关联的 RequestIDThe RequestId property contains the RequestID associated with the DsmlRequestDocument.

ResponseOrder

ResponseOrder 属性包含 DsmlResponseOrder 的一个值,该值指定响应顺序。The ResponseOrder property contains one of the values of DsmlResponseOrder that specifies the order of the response.

SyncRoot

SyncRoot 属性包含一个可用于同步对 DsmlRequestDocument 的访问的对象。The SyncRoot property contains an object that can be used to synchronize access to the DsmlRequestDocument.

方法

Add(DirectoryRequest)

Add(DirectoryRequest) 方法向集合中添加 DirectoryRequest 对象。The Add(DirectoryRequest) method adds a DirectoryRequest object to the collection.

Clear()

Clear() 方法移除此集合中的所有项。The Clear() method removes all items from this collection.

Contains(DirectoryRequest)

Contains(DirectoryRequest) 方法确定此 DsmlRequestDocument 集合是否包含指定的 DirectoryRequest 对象。The Contains(DirectoryRequest) method determines whether this DsmlRequestDocument collection contains the specified DirectoryRequest object.

CopyTo(DirectoryRequest[], Int32)

CopyTo(DirectoryRequest[], Int32) 方法将整个 DsmlRequestDocument 集合复制到一维数组中(从目标数组的指定索引处开始)。The CopyTo(DirectoryRequest[], Int32) method copies the entire DsmlRequestDocument collection to a one-dimensional array, starting at the specified index of the target array.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEnumerator()

GetEnumerator() 方法返回整个 DsmlRequestDocument 集合的枚举器。The GetEnumerator() method returns an enumerator for the entire DsmlRequestDocument collection.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
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.

Insert(Int32, DirectoryRequest)

Insert(Int32, DirectoryRequest) 方法将指定的 DirectoryRequest 对象插入 DsmlRequestDocument 集合中指定的索引处。The Insert(Int32, DirectoryRequest) method inserts the specified DirectoryRequest object into the DsmlRequestDocument collection at the specified index.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Remove(DirectoryRequest)

Remove(DirectoryRequest) 方法从集合中移除指定的 DirectoryRequest 对象的第一个匹配项。The Remove(DirectoryRequest) method removes the first occurrence of the specified DirectoryRequest object from the collection.

RemoveAt(Int32)

RemoveAt(Int32) 方法移除位于指定位置处的 DirectoryRequest 对象。The RemoveAt(Int32) method removes the DirectoryRequest object at the specified position.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)
ToXml()

ToXml() 方法将集合中的每个 DirectoryRequest 对象转换为 XmlDocument 对象。The ToXml() method transforms each DirectoryRequest object in the collection into an XmlDocument object.

显式界面实现

ICollection.CopyTo(Array, Int32)

从目标数组的指定索引处开始,将整个 DsmlRequestDocument 集合复制到一维数组。Copies the entire DsmlRequestDocument collection to a one-dimensional array, starting at the specified index of the target array.

ICollection.Count

获取此集合中 DirectoryRequest 对象的数目。Gets the number of DirectoryRequest objects in this collection.

ICollection.IsSynchronized

获取一个值,该值指示是否同步对 DsmlRequestDocument 的访问(线程安全)。Gets a value that indicates whether access to the DsmlRequestDocument is synchronized (thread-safe).

ICollection.SyncRoot

获取可用于同步对 DsmlRequestDocument 的访问的对象。Gets an object that can be used to synchronize access to the DsmlRequestDocument.

IList.Add(Object)

DirectoryRequest 对象添加到集合中。Adds a DirectoryRequest object to the collection.

IList.Clear()

从集合中移除所有项。Removes all items from the collection.

IList.Contains(Object)

指示此 DsmlRequestDocument 集合是否包含指定的 DirectoryRequest 对象。Indicates whether this DsmlRequestDocument collection contains the specified DirectoryRequest object.

IList.IndexOf(Object)

返回指定的 DirectoryRequest 对象在 DsmlRequestDocument 集合中的第一个匹配项的从零开始的索引。Returns the zero-based index of the first occurrence of the specified DirectoryRequest object in the DsmlRequestDocument collection.

IList.Insert(Int32, Object)

将指定的 DirectoryRequest 对象插入到 DsmlRequestDocument 集合中的指定索引位置。Inserts the specified DirectoryRequest object into the DsmlRequestDocument collection at the specified index.

IList.IsFixedSize

获取一个值,该值指示 DsmlRequestDocument 是否具有固定大小。Gets a value that indicates whether the DsmlRequestDocument has a fixed size.

IList.IsReadOnly

获取一个值,该值指示 DsmlRequestDocument 是否为只读。Gets a value that indicates whether the DsmlRequestDocument is read-only or not.

IList.Item[Int32]

获取或设置位于指定索引处的 DirectoryRequest 对象。Gets or sets the DirectoryRequest object at the specified index.

IList.Remove(Object)

从集合中删除指定的 DirectoryRequest 对象的第一个匹配项。Removes the first occurrence of the specified DirectoryRequest object from the collection.

IList.RemoveAt(Int32)

删除位于指定位置处的 DirectoryRequest 对象。Removes the DirectoryRequest object at the specified position.

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅