DependencyCollection 類別
The DependencyCollection class represents a collection of Dependency objects that are used to derive the node classes in SMO scripting operations.
繼承階層
System. . :: . .Object
Microsoft.SqlServer.Management.Smo..::..DependencyCollection
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Class DependencyCollection _
Implements IList(Of DependencyCollectionNode), ICollection(Of DependencyCollectionNode), _
IEnumerable(Of DependencyCollectionNode), IEnumerable
'用途
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
DependencyCollection 型別公開下列成員。
屬性
名稱 | 說明 | |
---|---|---|
Count | Gets the number of DependencyCollectionNode objects in the DependencyCollection object. | |
Item | Gets a DependencyCollectionNode object in the collection by index number. |
上層
方法
名稱 | 說明 | |
---|---|---|
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 | (繼承自 Object。) | |
Finalize | (繼承自 Object。) | |
GetEnumerator | Gets an enumerator that can iterate through the list of objects. | |
GetHashCode | (繼承自 Object。) | |
GetType | (繼承自 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 | (繼承自 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 | (繼承自 Object。) |
上層
明確 繼承 實作
名稱 | 說明 | |
---|---|---|
IEnumerable. . :: . .GetEnumerator | Returns an IEnumerator interface that is required to iterate through a collection. | |
ICollection< (Of < <' (DependencyCollectionNode> ) > > ). . :: . .IsReadOnly | Determines if the dependency collection is read-only. |
上層
備註
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
此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。