Classe DependencyCollection

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Class DependencyCollection _
    Implements IList(Of DependencyCollectionNode), ICollection(Of DependencyCollectionNode),  _
    IEnumerable(Of DependencyCollectionNode), IEnumerable
'Utilizzo
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

Nel tipo DependencyCollection sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico DependencyCollection Initializes a new instance of the DependencyCollection class.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Count Gets the number of DependencyCollectionNode objects in the DependencyCollection object.
Proprietà pubblica Item Gets a DependencyCollectionNode object in the collection by index number.

In alto

Metodi

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

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato IEnumerable.GetEnumerator Returns an IEnumerator interface that is required to iterate through a collection.
Implementazione esplicita dell'interfacciaProprietà privata ICollection<DependencyCollectionNode>.IsReadOnly Determines if the dependency collection is read-only.

In alto

Osservazioni

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

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Esempi

Generazione di script

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Smo