Export (0) Print
Expand All

DependencyTree Class

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public class DependencyTree : DependencyTreeNode

The DependencyTree type exposes the following members.

  NameDescription
Public methodDependencyTreeInitializes a new instance of the DependencyTree class.
Top

  NameDescription
Public propertyCountGets the total number of DependencyTreeNode objects in the DependencyTree object.
Protected propertyDependenciesGets or sets a Dependency Chain Collection
Protected propertyDependsOnParentsGets or sets property indicating if the Dependency Tree depends on parent objects.
Public propertyFirstChildGets the first child DependencyTreeNode object in the DependencyTree object. (Overrides DependencyTreeNode.FirstChild.)
Public propertyHasChildNodesGets the Boolean property value that specifies whether the DependencyTree object has any child nodes. (Overrides DependencyTreeNode.HasChildNodes.)
Protected propertyIndexGets or sets the item at the given index in tree node collection. (Inherited from DependencyTreeNode.)
Public propertyIsSchemaBoundDetermines if the Dependency Node is bound to a schema (Inherited from DependencyNode.)
Public propertyNextSiblingGets the next sibling DependencyTreeNode object in the DependencyTree object. (Overrides DependencyTreeNode.NextSibling.)
Public propertyNumberOfSiblingsGets the number of sibling objects in the DependencyTree object hierarchy. (Overrides DependencyTreeNode.NumberOfSiblings.)
Protected propertyRootsGets or sets the root nodes of a Dependency Chain Collection.
Protected propertySiblingsGets or sets siblings contained in a Dependency Tree Node. (Inherited from DependencyTreeNode.)
Public propertyUrnGets the Urn value of that uniquely identifies the SQL Server object that the DependencyTree object represents. (Overrides DependencyNode.Urn.)
Top

  NameDescription
Public methodCopyMakes a copy of the DependencyTree object.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveRemoves a DependencyTreeNode object from the DependencyTree object.
Public methodToString (Inherited from Object.)
Top

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

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft