DsmlRequestDocument DsmlRequestDocument DsmlRequestDocument DsmlRequestDocument Class

定義

DsmlRequestDocument 類別可讓您建置 DMSL 要求裝載 (例如 AddRequestModifyRequestSearchRequest)。The 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
繼承
DsmlRequestDocumentDsmlRequestDocumentDsmlRequestDocumentDsmlRequestDocument
實作

建構函式

DsmlRequestDocument() DsmlRequestDocument() DsmlRequestDocument() DsmlRequestDocument()

DsmlRequestDocument() 建構函式會建立 DsmlRequestDocument 類別的執行個體。The DsmlRequestDocument() constructor creates an instance of the DsmlRequestDocument class.

屬性

Count Count Count Count

Count 屬性包含這個集合中的 DirectoryRequest 物件數。The Count property contains the number of DirectoryRequest objects in this collection.

DocumentProcessing DocumentProcessing DocumentProcessing 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 ErrorProcessing ErrorProcessing

ErrorProcessing 屬性包含會指定錯誤之處理方式的其中一個 DsmlErrorProcessing 值。The ErrorProcessing property contains one of the values of DsmlErrorProcessing that specifies how errors are processed.

IsFixedSize IsFixedSize IsFixedSize IsFixedSize

IsFixedSize 屬性包含值,該值指出 DsmlRequestDocument 是否具有固定大小。The IsFixedSize property contains a value that indicates whether the DsmlRequestDocument has a fixed size.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

IsReadOnly 屬性包含值,該值指出 DsmlRequestDocument 是否為唯讀。The IsReadOnly property contains a value indicating whether the DsmlRequestDocument is read only or not.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

IsSynchronized 屬性包含值,該值指示對 DsmlRequestDocument 的存取是否同步 (安全執行緒)。The IsSynchronized property contains a value that indicates whether access to the DsmlRequestDocument is synchronized (thread-safe).

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Item[Int32] 屬性包含在指定索引的 DirectoryRequest 物件。The Item[Int32] property contains the DirectoryRequest object at the specified index.

RequestId RequestId RequestId RequestId

RequestId 屬性包含與 DsmlRequestDocument 關聯的 RequestIDThe RequestId property contains the RequestID associated with the DsmlRequestDocument.

ResponseOrder ResponseOrder ResponseOrder ResponseOrder

ResponseOrder 屬性包含會指定回應之順序的其中一個 DsmlResponseOrder 值。The ResponseOrder property contains one of the values of DsmlResponseOrder that specifies the order of the response.

SyncRoot SyncRoot SyncRoot SyncRoot

SyncRoot 屬性包含用來同步存取 DsmlRequestDocument 的物件。The SyncRoot property contains an object that can be used to synchronize access to the DsmlRequestDocument.

方法

Add(DirectoryRequest) Add(DirectoryRequest) Add(DirectoryRequest) Add(DirectoryRequest)

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

Clear() Clear() Clear() Clear()

Clear() 方法會移除這個集合中的所有項目。The Clear() method removes all items from this collection.

Contains(DirectoryRequest) Contains(DirectoryRequest) Contains(DirectoryRequest) 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) CopyTo(DirectoryRequest[], Int32) 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) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

GetEnumerator() 方法會傳回整個 DsmlRequestDocument 集合的列舉值。The GetEnumerator() method returns an enumerator for the entire DsmlRequestDocument collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
IndexOf(DirectoryRequest) IndexOf(DirectoryRequest) IndexOf(DirectoryRequest) IndexOf(DirectoryRequest)

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.

Insert(Int32, DirectoryRequest) Insert(Int32, DirectoryRequest) Insert(Int32, DirectoryRequest) 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() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(DirectoryRequest) Remove(DirectoryRequest) Remove(DirectoryRequest) 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) RemoveAt(Int32) RemoveAt(Int32)

RemoveAt(Int32) 方法會移除指定位置處的 DirectoryRequest 物件。The RemoveAt(Int32) method removes the DirectoryRequest object at the specified position.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
ToXml() ToXml() ToXml() ToXml()

ToXml() 方法會將集合中的每個 DirectoryRequest 物件變換成 XmlDocument 物件。The ToXml() method transforms each DirectoryRequest object in the collection into an XmlDocument object.

明確介面實作

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) 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 ICollection.Count ICollection.Count ICollection.Count

取得這個集合中的 DirectoryRequest 物件數目。Gets the number of DirectoryRequest objects in this collection.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

取得值,指出 DsmlRequestDocument 的存取是否同步 (安全執行緒)。Gets a value that indicates whether access to the DsmlRequestDocument is synchronized (thread-safe).

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

取得可用以同步存取 DsmlRequestDocument 的物件。Gets an object that can be used to synchronize access to the DsmlRequestDocument.

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

DirectoryRequest 物件加入至集合。Adds a DirectoryRequest object to the collection.

IList.Clear() IList.Clear() IList.Clear() IList.Clear()

移除集合的所有項目。Removes all items from the collection.

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

指出此 DsmlRequestDocument 集合是否含有指定的 DirectoryRequest 物件。Indicates whether this DsmlRequestDocument collection contains the specified DirectoryRequest object.

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(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) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

將指定的 DirectoryRequest 物件插入 DsmlRequestDocument 集合中的指定索引處。Inserts the specified DirectoryRequest object into the DsmlRequestDocument collection at the specified index.

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

取得值,指出 DsmlRequestDocument 是否有固定的大小。Gets a value that indicates whether the DsmlRequestDocument has a fixed size.

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

取得指出 DsmlRequestDocument 是否為唯讀的值。Gets a value that indicates whether the DsmlRequestDocument is read-only or not.

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

取得或設定在指定索引處的 DirectoryRequest 物件。Gets or sets the DirectoryRequest object at the specified index.

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

從集合中移除指定 DirectoryRequest 物件的第一個符合項目。Removes the first occurrence of the specified DirectoryRequest object from the collection.

IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32)

移除位於指定位置的 DirectoryRequest 物件。Removes the DirectoryRequest object at the specified position.

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

適用於

另請參閱