Classe DependencyCollection
The DependencyCollection class represents a collection of Dependency objects that are used to derive the node classes in SMO scripting operations.
Hierarquia de herança
System.Object
Microsoft.SqlServer.Management.Smo.DependencyCollection
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
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
O tipo DependencyCollection expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
DependencyCollection | Initializes a new instance of the DependencyCollection class. |
Início
Propriedades
Nome | Descrição | |
---|---|---|
Count | Gets the number of DependencyCollectionNode objects in the DependencyCollection object. | |
Item | Gets a DependencyCollectionNode object in the collection by index number. |
Início
Métodos
Nome | Descrição | |
---|---|---|
Add | Adds a Dependency object to the DependencyCollection object. | |
AddRange | Adds a range of nodes to the collection. | |
Clear | Removes all the DependencyCollectionNode objects from the referenced DependencyCollection object. | |
Contains | Determines whether the specified DependencyCollectionNode object is a member of the DependencyCollection object. | |
ContainsUrn | Determines whether the specified Urn object exists on the specified server. | |
CopyTo | Copies the collection objects to a one-dimensional array beginning at the index value specified. | |
Equals | (Herdado de Object.) | |
Finalize | (Herdado de Object.) | |
GetEnumerator | Gets an enumerator that can iterate through the list of objects. | |
GetHashCode | (Herdado de Object.) | |
GetType | (Herdado de Object.) | |
IndexOf | Returns the index value of the DependencyCollectionNode object within the DependencyCollection object. | |
Insert | Inserts a DependencyCollectionNode object at the specified index position in the DependencyCollection object. | |
MemberwiseClone | (Herdado de Object.) | |
Remove | Removes a DependencyCollectionNode object from the DependencyCollection object. | |
RemoveAt | Removes a DependencyCollectionNode object from the DependencyCollection object and the specified index position. | |
ToString | (Herdado de Object.) |
Início
Implementações de interfaces explícitas
Nome | Descrição | |
---|---|---|
IEnumerable.GetEnumerator | Returns an IEnumerator interface that is required to iterate through a collection. | |
ICollection<DependencyCollectionNode>.IsReadOnly | Determines if the dependency collection is read-only. |
Início
Comentários
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
Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.
Exemplos
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.