語言

DsmlRequestDocument 類別

定義

這個 DsmlRequestDocument 類別讓你能夠建立 DSML 請求的有效載荷,例如 AddRequest、 ModifyRequest或 SearchRequest。 它包含零個或多個 DirectoryRequest 派生物件。 使用者可以在傳送到伺服器前,先新增、刪除、修改及枚舉 DirectoryRequest 。 DsmlRequestDocument 可與任何 DSML Binding 類別搭配使用來傳輸文件,例如 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
實作

建構函式

名稱 Description
DsmlRequestDocument()

DsmlRequestDocument()建構子會建立該DsmlRequestDocument類別的實例。

屬性

名稱 Description
Count

屬性 Count 包含此集合中的物件數量 DirectoryRequest 。

DocumentProcessing

該 DocumentProcessing 屬性包含其中一個值,該值 DsmlDocumentProcessing 指定了集合元素的處理方式。

ErrorProcessing

該 ErrorProcessing 屬性包含其中一個值,該值 DsmlErrorProcessing 指定錯誤如何處理。

IsFixedSize

屬性 IsFixedSize 包含一個值,表示 是否 DsmlRequestDocument 具有固定大小。

IsReadOnly

該 IsReadOnly 屬性包含一個值,表示 是否 DsmlRequestDocument 為唯讀。

IsSynchronized

該 IsSynchronized 屬性包含一個值,指示存取是否 DsmlRequestDocument 同步(執行緒安全)。

Item[Int32]

屬性包含 Item[Int32] 指定索引處的 DirectoryRequest 物件。

RequestId

取得或設定與 DsmlRequestDocument. 相關聯的請求 ID

ResponseOrder

屬性 ResponseOrder 包含其中一個值,該值 DsmlResponseOrder 指定了回應的順序。

SyncRoot

該 SyncRoot 屬性包含一個物件,可用來同步存取 DsmlRequestDocument。

方法

名稱 Description
Add(DirectoryRequest)

此 Add(DirectoryRequest) 方法將物件 DirectoryRequest 加入集合。

Clear()

此 Clear() 方法會從此集合中移除所有項目。

Contains(DirectoryRequest)

該方法判斷 Contains(DirectoryRequest) 此 DsmlRequestDocument 集合是否包含指定的 DirectoryRequest 物件。

CopyTo(DirectoryRequest[], Int32)

此 CopyTo(DirectoryRequest[], Int32) 方法將整個 DsmlRequestDocument 集合複製到一維陣列,從目標陣列指定的索引開始。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()

該方法會 GetEnumerator() 回傳整個 DsmlRequestDocument 集合的列舉器。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
IndexOf(DirectoryRequest)

該 IndexOf(DirectoryRequest) 方法回 DirectoryRequest 傳集合中指定物件 DsmlRequestDocument 首次出現的零為基礎索引。

Insert(Int32, DirectoryRequest)

該 Insert(Int32, DirectoryRequest) 方法將指定的 DirectoryRequest 物件插入指定的索引中 DsmlRequestDocument 。

MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
Remove(DirectoryRequest)

此 Remove(DirectoryRequest) 方法會從集合中移除指定 DirectoryRequest 物件的首次出現。

RemoveAt(Int32)

此 RemoveAt(Int32) 方法會在指定位置移除 DirectoryRequest 物體。

ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)
ToXml()

此 ToXml() 方法將集合中的每個 DirectoryRequest 物件轉換成一個 XmlDocument 物件。

明確介面實作

名稱 Description
ICollection.CopyTo(Array, Int32)

將整個 DsmlRequestDocument 集合複製到一維陣列,從目標陣列指定的索引開始。

ICollection.Count

取得此集合中的物件數量 DirectoryRequest 。

ICollection.IsSynchronized

會獲得一個值,指示存取是否 DsmlRequestDocument 同步(執行緒安全)。

ICollection.SyncRoot

取得一個物件,可用來同步存取 DsmlRequestDocument。

IList.Add(Object)

新增一個 DirectoryRequest 物件到集合中。

IList.Clear()

從集合中移除所有專案。

IList.Contains(Object)

表示此 DsmlRequestDocument 集合是否包含指定的 DirectoryRequest 物件。

IList.IndexOf(Object)

回傳集合中DirectoryRequest指定物件首次出現DsmlRequestDocument的零為基礎索引。

IList.Insert(Int32, Object)

將指定的 DirectoryRequest 物件插入 DsmlRequestDocument 集合中指定的索引。

IList.IsFixedSize

會得到一個表示是否 DsmlRequestDocument 固定大小的值。

IList.IsReadOnly

會得到一個值,表示 是否 DsmlRequestDocument 為唯讀。

IList.Item[Int32]

取得或設定 DirectoryRequest 物件在指定的索引位置。

IList.Remove(Object)

移除該集合 DirectoryRequest 中指定物件的首次出現。

IList.RemoveAt(Int32)

移除指定位置的 DirectoryRequest 物體。

擴充方法

名稱 Description
AsParallel(IEnumerable)

啟用查詢的平行處理。

AsQueryable(IEnumerable)

將 IEnumerable 轉換成 IQueryable。

Cast<TResult>(IEnumerable)

將 IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別篩選 IEnumerable 的專案。

適用於

另請參閱