Compartir a través de


Clase DependencyCollection

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

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Class DependencyCollection _
    Implements IList(Of DependencyCollectionNode), ICollection(Of DependencyCollectionNode),  _
    IEnumerable(Of DependencyCollectionNode), IEnumerable
'Uso
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

El tipo DependencyCollection expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público DependencyCollection Initializes a new instance of the DependencyCollection class.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública Count Gets the number of DependencyCollectionNode objects in the DependencyCollection object.
Propiedad pública Item Gets a DependencyCollectionNode object in the collection by index number.

Arriba

Métodos

  Nombre Descripción
Método público Add Adds a Dependency object to the DependencyCollection object.
Método público AddRange Adds a range of nodes to the collection.
Método público Clear Removes all the DependencyCollectionNode objects from the referenced DependencyCollection object.
Método público Contains Determines whether the specified DependencyCollectionNode object is a member of the DependencyCollection object.
Método público ContainsUrn Determines whether the specified Urn object exists on the specified server.
Método público CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetEnumerator Gets an enumerator that can iterate through the list of objects.
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método público IndexOf Returns the index value of the DependencyCollectionNode object within the DependencyCollection object.
Método público Insert Inserts a DependencyCollectionNode object at the specified index position in the DependencyCollection object.
Método protegido MemberwiseClone (Se hereda de Object.)
Método público Remove Removes a DependencyCollectionNode object from the DependencyCollection object.
Método público RemoveAt Removes a DependencyCollectionNode object from the DependencyCollection object and the specified index position.
Método público ToString (Se hereda de Object.)

Arriba

Implementaciones de interfaces explícitas

  Nombre Descripción
Implementación de interfaces explícitasMétodo privado IEnumerable. . :: . .GetEnumerator Returns an IEnumerator interface that is required to iterate through a collection.
Implementación de interfaces explícitasPropiedad privada ICollection< (Of < <' (DependencyCollectionNode> ) > > ). . :: . .IsReadOnly Determines if the dependency collection is read-only.

Arriba

Comentarios

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

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Ejemplos

Scripting

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.