مشاركة عبر


DependencyCollection Class

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

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.DependencyCollection

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Class DependencyCollection _
    Implements IList(Of DependencyCollectionNode), ICollection(Of DependencyCollectionNode),  _
    IEnumerable(Of DependencyCollectionNode), IEnumerable
'Usage
Dim instance As DependencyCollection
public class DependencyCollection : IList<DependencyCollectionNode>, 
    ICollection<DependencyCollectionNode>, IEnumerable<DependencyCollectionNode>, IEnumerable
public ref class DependencyCollection : IList<DependencyCollectionNode^>, 
    ICollection<DependencyCollectionNode^>, IEnumerable<DependencyCollectionNode^>, IEnumerable
type DependencyCollection =  
    class 
        interface IList<DependencyCollectionNode>
        interface ICollection<DependencyCollectionNode>
        interface IEnumerable<DependencyCollectionNode>
        interface IEnumerable 
    end
public class DependencyCollection implements IList<DependencyCollectionNode>, ICollection<DependencyCollectionNode>, IEnumerable<DependencyCollectionNode>, IEnumerable

The DependencyCollection type exposes the following members.

Constructors

  Name Description
Public method DependencyCollection Initializes a new instance of the DependencyCollection class.

Top

Properties

  Name Description
Public property Count Gets the number of DependencyCollectionNode objects in the DependencyCollection object.
Public property Item Gets a DependencyCollectionNode object in the collection by index number.

Top

Methods

  Name Description
Public method Add Adds a Dependency object to the DependencyCollection object.
Public method AddRange Adds a range of nodes to the collection.
Public method Clear Removes all the DependencyCollectionNode objects from the referenced DependencyCollection object.
Public method Contains Determines whether the specified DependencyCollectionNode object is a member of the DependencyCollection object.
Public method ContainsUrn Determines whether the specified Urn object exists on the specified server.
Public method CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Gets an enumerator that can iterate through the list of objects.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf Returns the index value of the DependencyCollectionNode object within the DependencyCollection object.
Public method Insert Inserts a DependencyCollectionNode object at the specified index position in the DependencyCollection object.
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove Removes a DependencyCollectionNode object from the DependencyCollection object.
Public method RemoveAt Removes a DependencyCollectionNode object from the DependencyCollection object and the specified index position.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an IEnumerator interface that is required to iterate through a collection.
Explicit interface implemetationPrivate property ICollection<DependencyCollectionNode>.IsReadOnly Determines if the dependency collection is read-only.

Top

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.

Examples

Scripting

Thread Safety

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

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace