DependencyCollection Class
SQL Server 2012
The DependencyCollection class represents a collection of Dependency objects that are used to derive the node classes in SMO scripting operations.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
The DependencyCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of DependencyCollectionNode objects in the DependencyCollection object. |
![]() | Item | Gets a DependencyCollectionNode object in the collection by index number. |
| Name | Description | |
|---|---|---|
![]() | Add | Adds a Dependency object to the DependencyCollection object. |
![]() | AddRange | Adds a range of nodes to the collection. |
![]() | Clear | Removes all the DependencyCollectionNode objects from the referenced DependencyCollection object. |
![]() | Contains | Determines whether the specified DependencyCollectionNode object is a member of the DependencyCollection object. |
![]() | ContainsUrn | Determines whether the specified Urn object exists on the specified server. |
![]() | CopyTo | Copies the collection objects to a one-dimensional array beginning at the index value specified. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetEnumerator | Gets an enumerator that can iterate through the list of objects. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | IndexOf | Returns the index value of the DependencyCollectionNode object within the DependencyCollection object. |
![]() | Insert | Inserts a DependencyCollectionNode object at the specified index position in the DependencyCollection object. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Remove | Removes a DependencyCollectionNode object from the DependencyCollection object. |
![]() | RemoveAt | Removes a DependencyCollectionNode object from the DependencyCollection object and the specified index position. |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable.GetEnumerator | Returns an IEnumerator interface that is required to iterate through a collection. |
![]() ![]() | ICollection<DependencyCollectionNode>.IsReadOnly | Determines if the dependency collection is read-only. |
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.






