DsmlRequestDocument DsmlRequestDocument DsmlRequestDocument DsmlRequestDocument Class

Definition

The DsmlRequestDocument class enables you to build a DSML request payload, such as AddRequest, ModifyRequest, or SearchRequest. It contains zero or more DirectoryRequest derived objects. The user may add, delete, modify, and enumerate the DirectoryRequest before sending to the server. 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
Inheritance
DsmlRequestDocumentDsmlRequestDocumentDsmlRequestDocumentDsmlRequestDocument
Implements

Constructors

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

The DsmlRequestDocument() constructor creates an instance of the DsmlRequestDocument class.

Properties

Count Count Count Count

The Count property contains the number of DirectoryRequest objects in this collection.

DocumentProcessing DocumentProcessing DocumentProcessing DocumentProcessing

The DocumentProcessing property contains one of the values of DsmlDocumentProcessing that specifies how the elements of the collection are processed.

ErrorProcessing ErrorProcessing ErrorProcessing ErrorProcessing

The ErrorProcessing property contains one of the values of DsmlErrorProcessing that specifies how errors are processed.

IsFixedSize IsFixedSize IsFixedSize IsFixedSize

The IsFixedSize property contains a value that indicates whether the DsmlRequestDocument has a fixed size.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

The IsReadOnly property contains a value indicating whether the DsmlRequestDocument is read only or not.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

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]

The Item[Int32] property contains the DirectoryRequest object at the specified index.

RequestId RequestId RequestId RequestId

The RequestId property contains the RequestID associated with the DsmlRequestDocument.

ResponseOrder ResponseOrder ResponseOrder ResponseOrder

The ResponseOrder property contains one of the values of DsmlResponseOrder that specifies the order of the response.

SyncRoot SyncRoot SyncRoot SyncRoot

The SyncRoot property contains an object that can be used to synchronize access to the DsmlRequestDocument.

Methods

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

The Add(DirectoryRequest) method adds a DirectoryRequest object to the collection.

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

The Clear() method removes all items from this collection.

Contains(DirectoryRequest) Contains(DirectoryRequest) Contains(DirectoryRequest) Contains(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)

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()

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()

Gets the Type of the current instance.

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

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)

The Insert(Int32, DirectoryRequest) method inserts the specified DirectoryRequest object into the DsmlRequestDocument collection at the specified index.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

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

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()

The ToXml() method transforms each DirectoryRequest object in the collection into an XmlDocument object.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

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

Gets the number of DirectoryRequest objects in this collection.

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

Gets a value that indicates whether access to the DsmlRequestDocument is synchronized (thread-safe).

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

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)

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)

Indicates whether this DsmlRequestDocument collection contains the specified DirectoryRequest object.

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

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)

Inserts the specified DirectoryRequest object into the DsmlRequestDocument collection at the specified index.

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

Gets a value that indicates whether the DsmlRequestDocument has a fixed size.

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

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]

Gets or sets the DirectoryRequest object at the specified index.

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

Removes the first occurrence of the specified DirectoryRequest object from the collection.

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

Removes the DirectoryRequest object at the specified position.

Extension Methods

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

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(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)

Converts an IEnumerable to an IQueryable.

Applies to

See also