DependencyCollection-Klasse

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

Vererbungshierarchie

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

Der DependencyCollection-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode DependencyCollection Initializes a new instance of the DependencyCollection class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Count Gets the number of DependencyCollectionNode objects in the DependencyCollection object.
Öffentliche Eigenschaft Item Gets a DependencyCollectionNode object in the collection by index number.

Zum Anfang

Methoden

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

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode IEnumerable.GetEnumerator Returns an IEnumerator interface that is required to iterate through a collection.
Explizite SchnittstellenimplementierungPrivate Eigenschaft ICollection<DependencyCollectionNode>.IsReadOnly Determines if the dependency collection is read-only.

Zum Anfang

Hinweise

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

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Beispiele

Skripterstellung

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo-Namespace