Share via


Classe DependencyCollection

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Class DependencyCollection _
    Implements IList(Of DependencyCollectionNode), ICollection(Of DependencyCollectionNode),  _
    IEnumerable(Of DependencyCollectionNode), IEnumerable
'Utilisation
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

Le type DependencyCollection expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique DependencyCollection Initializes a new instance of the DependencyCollection class.

Haut de la page

Propriétés

  Nom Description
Propriété publique Count Gets the number of DependencyCollectionNode objects in the DependencyCollection object.
Propriété publique Item Gets a DependencyCollectionNode object in the collection by index number.

Haut de la page

Méthodes

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

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée IEnumerable. . :: . .GetEnumerator Returns an IEnumerator interface that is required to iterate through a collection.
Implémentation d'interface explicitePropriété privée ICollection< (Of < <' (DependencyCollectionNode> ) > > ). . :: . .IsReadOnly Determines if the dependency collection is read-only.

Haut de la page

Notes

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

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.