DocumentReferenceCollection class [SDM] 

 
SDM Reference

DocumentReferenceCollection

Represents a collection of SDM document references to be used during compilation.

The DocumentReferenceCollection class implements the following interfaces:

  • System.Collections.ICollection
  • System.Collections.IEnumerable

Public Constructors

The DocumentReferenceCollection class has the following public constructor.

Constructor Description
DocumentReferenceCollection()

Initializes a new instance of the DocumentReferenceCollection class.

Public Methods

The DocumentReferenceCollection class has the following public methods.

Method Description
Add(DocumentReference)

Adds the specified document to this DocumentReferenceCollection.

Contains(Object)

Determines whether a specific item is in the document reference collection.

CopyTo(Array, Int32)

Copies all of the document reference collection to a compatible 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.

Equals(Object, Object)

Static (Shared).

Determines whether the specified Object instances are considered equal.

GetEnumerator()

Returns an IEnumerator that can iterate through this document reference collection.

GetHashCode()

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures such as a hash table.

GetType()

Gets the Type of the current instance.

ReferenceEquals(Object, Object)

Static (Shared).

Determines whether the specified Object instances are the same instance.

Remove(DocumentReference)

Removes the specified document from this collection of document references.

ToString()

Returns a String that represents the current Object.

Public Properties

The DocumentReferenceCollection class has the following public properties.

Property Description
Count Data type: Int32
Access type: Read-only

Gets the number of items actually in the document reference collection.

IsSynchronized Data type: Boolean
Access type: Read-only

Gets a value indicating whether access to the document reference collection is synchronized (thread-safe).

Item Data type: DocumentReference
Access type: Read-only

Gets the document reference specified by index.

SyncRoot Data type: Object
Access type: Read-only

Gets an object that can be used to synchronize access to the document reference collection.

Protected Methods

The DocumentReferenceCollection class has the following protected methods.

Method Description
Finalize()

Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

MemberwiseClone()

Creates a shallow copy of the current Object.

Protected Fields

The DocumentReferenceCollection class defines the following protected field.

Field Description
collection Data type: ArrayList
Access type: Read/write

Represents an internal collection that contains the data.

Requirements

Namespace

Defined in Microsoft.SystemDefinitionModel.Tools.

Assembly

Requires SdmCompile (in SdmCompile.dll).

.NET Framework

Requires .NET Framework 2.0.

See Also

Microsoft.SystemDefinitionModel.Tools

  
  Last updated: November 2005  |  What did you think of this topic?  |  Order a Platform SDK CD
  © Microsoft Corporation. All rights reserved. Terms of use.