DependencyTree 类

The DependencyTree object represents a tree structure that contains SQL Server objects and their hierarchical relationships to each other.

继承层次结构

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo. . :: . .DependencyNode
    Microsoft.SqlServer.Management.Smo. . :: . .DependencyTreeNode
      Microsoft.SqlServer.Management.Smo..::..DependencyTree

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Class DependencyTree _
    Inherits DependencyTreeNode
用法
Dim instance As DependencyTree
public class DependencyTree : DependencyTreeNode
public ref class DependencyTree : public DependencyTreeNode
type DependencyTree =  
    class
        inherit DependencyTreeNode
    end
public class DependencyTree extends DependencyTreeNode

DependencyTree 类型公开以下成员。

构造函数

  名称 说明
公共方法 DependencyTree Initializes a new instance of the DependencyTree class.

页首

属性

  名称 说明
公共属性 Count Gets the total number of DependencyTreeNode objects in the DependencyTree object.
受保护属性 Dependencies Gets or sets a Dependency Chain Collection
受保护属性 DependsOnParents Gets or sets property indicating if the Dependency Tree depends on parent objects.
公共属性 FirstChild Gets the first child DependencyTreeNode object in the DependencyTree object. (覆盖 DependencyTreeNode. . :: . .FirstChild。)
公共属性 HasChildNodes Gets the Boolean property value that specifies whether the DependencyTree object has any child nodes. (覆盖 DependencyTreeNode. . :: . .HasChildNodes。)
受保护属性 Index (从 DependencyTreeNode 继承。)
公共属性 IsSchemaBound Determines if the Dependency Node is bound to a schema (从 DependencyNode 继承。)
公共属性 NextSibling Gets the next sibling DependencyTreeNode object in the DependencyTree object. (覆盖 DependencyTreeNode. . :: . .NextSibling。)
公共属性 NumberOfSiblings Gets the number of sibling objects in the DependencyTree object hierarchy. (覆盖 DependencyTreeNode. . :: . .NumberOfSiblings。)
受保护属性 Roots Gets or sets the root nodes of a Dependency Chain Collection.
受保护属性 Siblings Gets or sets siblings contained in a Dependency Tree Node. (从 DependencyTreeNode 继承。)
公共属性 Urn Gets the Urn value of that uniquely identifies the SQL Server object that the DependencyTree object represents. (覆盖 DependencyNode. . :: . .Urn。)

页首

方法

  名称 说明
公共方法 Copy Makes a copy of the DependencyTree object.
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 Remove Removes a DependencyTreeNode object from the DependencyTree object.
公共方法 ToString (从 Object 继承。)

页首

注释

The DependencyTree object represents a SQL Server object that also references child and sibling SQL Server objects. The references to child and sibling objects are represented by DependencyTreeNode objects. The SQL Server objects that the DependencyTree object and DependencyTreeNode objects represent can be obtained using the Urn property. The DependencyTree object can be navigated using the various properties such as FirstChild and NextSibling or by using the WalkDependencies method of the DependencyWalker object.

Thread Safety

此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。

示例

脚本撰写

线程安全

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