DependencyCollection DependencyCollection DependencyCollection Class

Definition

The DependencyCollection class represents a collection of Dependency objects that are used to derive the node classes in SMO scripting operations.

public ref class DependencyCollection : System::Collections::Generic::ICollection<Microsoft::SqlServer::Management::Smo::DependencyCollectionNode ^>, System::Collections::Generic::IEnumerable<Microsoft::SqlServer::Management::Smo::DependencyCollectionNode ^>, System::Collections::Generic::IList<Microsoft::SqlServer::Management::Smo::DependencyCollectionNode ^>
public class DependencyCollection : System.Collections.Generic.ICollection<Microsoft.SqlServer.Management.Smo.DependencyCollectionNode>, System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Smo.DependencyCollectionNode>, System.Collections.Generic.IList<Microsoft.SqlServer.Management.Smo.DependencyCollectionNode>
Public Class DependencyCollection
Implements ICollection(Of DependencyCollectionNode), IEnumerable(Of DependencyCollectionNode), IList(Of DependencyCollectionNode)
Inheritance
DependencyCollectionDependencyCollectionDependencyCollection
Implements

Examples

Scripting

Remarks

A DependencyCollection object can be used to gain access to a set of scripting dependencies. You can use the Item property to return a specific Dependency object.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Constructors

DependencyCollection() DependencyCollection() DependencyCollection()

Initializes a new instance of the DependencyCollection class.

Properties

Count Count Count

Gets the number of DependencyCollectionNode objects in the DependencyCollection object.

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

Gets a DependencyCollectionNode object in the collection by index number.

Methods

Add(DependencyCollectionNode) Add(DependencyCollectionNode) Add(DependencyCollectionNode)

Adds a DependencyCollectionNode object to the DependencyCollection object.

AddRange(IEnumerable<DependencyCollectionNode>) AddRange(IEnumerable<DependencyCollectionNode>) AddRange(IEnumerable<DependencyCollectionNode>)

Adds a range of nodes to the collection.

Clear() Clear() Clear()

Removes all the DependencyCollectionNode objects from the referenced DependencyCollection object.

Contains(DependencyCollectionNode) Contains(DependencyCollectionNode) Contains(DependencyCollectionNode)

Determines whether the specified DependencyCollectionNode object is a member of the DependencyCollection object.

ContainsUrn(Urn, Server) ContainsUrn(Urn, Server) ContainsUrn(Urn, Server)

Determines whether the specified Urn object exists on the specified server.

CopyTo(DependencyCollectionNode[], Int32) CopyTo(DependencyCollectionNode[], Int32) CopyTo(DependencyCollectionNode[], Int32)

Copies the collection objects to a one-dimensional array beginning at the index value specified.

GetEnumerator() GetEnumerator() GetEnumerator()

Gets an enumerator that can iterate through the list of objects.

IndexOf(DependencyCollectionNode) IndexOf(DependencyCollectionNode) IndexOf(DependencyCollectionNode)

Returns the index value of the DependencyCollectionNode object within the DependencyCollection object.

Insert(Int32, DependencyCollectionNode) Insert(Int32, DependencyCollectionNode) Insert(Int32, DependencyCollectionNode)

Inserts a DependencyCollectionNode object at the specified index position in the DependencyCollection object.

Remove(DependencyCollectionNode) Remove(DependencyCollectionNode) Remove(DependencyCollectionNode)

Removes a DependencyCollectionNode object from the DependencyCollection object.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

Removes a DependencyCollectionNode object from the DependencyCollection object and the specified index position.

Explicit Interface Implementations

ICollection<DependencyCollectionNode>.IsReadOnly ICollection<DependencyCollectionNode>.IsReadOnly ICollection<DependencyCollectionNode>.IsReadOnly

Gets a value that indicates whether the dependency collection is read-only.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an IEnumerator interface that is required to iterate through a collection.

Applies to