Compartilhar via


DependencyCollection Class

The DependencyCollection class represents a collection of Dependency objects that are used to derive the node classes in SQL Server Management Objects (SMO) scripting operations.

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

Syntax

'Declaration
<DefaultMemberAttribute("Item")> _
Public Class DependencyCollection
    Implements IList(Of DependencyCollectionNode), ICollection(Of DependencyCollectionNode), _
    IEnumerable(Of DependencyCollectionNode), IEnumerable
[DefaultMemberAttribute("Item")] 
public class DependencyCollection : IList<DependencyCollectionNode>, ICollection<DependencyCollectionNode>, 
    IEnumerable<DependencyCollectionNode>, IEnumerable
[DefaultMemberAttribute(L"Item")] 
public ref class DependencyCollection : IList<DependencyCollectionNode^>, ICollection<DependencyCollectionNode^>, 
    IEnumerable<DependencyCollectionNode^>, IEnumerable
/** @attribute DefaultMemberAttribute("Item") */ 
public class DependencyCollection implements IList<DependencyCollectionNode>, 
    ICollection<DependencyCollectionNode>, IEnumerable<DependencyCollectionNode>, IEnumerable
DefaultMemberAttribute("Item") 
public class DependencyCollection implements IList<DependencyCollectionNode>, 
    ICollection<DependencyCollectionNode>, IEnumerable<DependencyCollectionNode>, IEnumerable

Remarks

Updated text:

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.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Inheritance Hierarchy

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

Example

How to: Script Out the Dependencies for a Database in Visual Basic .NET

Thread Safety

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

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

DependencyCollection Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Scripting

Change History

Release

History

New content:
  • The DependencyCollection constructor has been added to the DependencyCollection class.

  • The AddRange method has been added to the DependencyCollection class.

  • The Clear method has been added to the DependencyCollection class.

  • The GetEnumerator method has been added to the DependencyCollection class.

  • The RemoteAt method has been added to the DependencyCollection class.

  • The Count property has been added to the DependencyCollection class.