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
公共方法 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
公共方法 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 继承。)

页首

注释

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 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。

示例

脚本撰写

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。