共用方式為


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 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 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 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。

範例

指令碼

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。