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 the collection of dependencies. | |
DependsOnParents | Gets or sets a value that indicates whether 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 | Gets or sets the item at the given index in tree node collection. (从 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 collection of root nodes. | |
Siblings | Gets or sets the 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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。