Share via


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 型別公開下列成員。

建構函式

  名稱 說明
公用方法 DependencyCollection Initializes a new instance of the DependencyCollection class.

上層

屬性

  名稱 說明
公用屬性 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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。