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 | |
---|---|---|
DependencyCollection | Initializes a new instance of the DependencyCollection class. |
In alto
Proprietà
Nome | Descrizione | |
---|---|---|
Count | Gets the number of DependencyCollectionNode objects in the DependencyCollection object. | |
Item | Gets a DependencyCollectionNode object in the collection by index number. |
In alto
Metodi
Nome | Descrizione | |
---|---|---|
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 | Ereditato da Object. | |
Finalize | Ereditato da Object. | |
GetEnumerator | Gets an enumerator that can iterate through the list of objects. | |
GetHashCode | Ereditato da Object. | |
GetType | Ereditato da 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 | Ereditato da 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 | Ereditato da Object. |
In alto
Implementazioni esplicite dell'interfaccia
Nome | Descrizione | |
---|---|---|
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 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
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.