DependencyWalker 类

The DependencyWalker object is a tool to perform scripting operations that involve dependencies such as identifying dependent relationships. The tool and converts this output to a list.

继承层次结构

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..DependencyWalker
    Microsoft.SqlServer.Management.Smo. . :: . .Scripter

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

语法

声明
Public Class DependencyWalker
用法
Dim instance As DependencyWalker
public class DependencyWalker
public ref class DependencyWalker
type DependencyWalker =  class end
public class DependencyWalker

DependencyWalker 类型公开以下成员。

构造函数

  名称 说明
公共方法 DependencyWalker() () () () Initializes a new instance of the DependencyWalker class.
公共方法 DependencyWalker(Server) Initializes a new instance of the DependencyWalker class on the specified instance of SQL Server.

页首

属性

  名称 说明
受保护属性 DependencyTree Gets or sets a server Dependency Tree.
公共属性 FilterCallbackFunction Gets or sets the scripting options that allow URNs to be filtered out while running the DiscoverDependencies method.
受保护属性 KnownObjectsList Gets or sets a list of all known objects in a server.
公共属性 Server Gets or sets the instance of Microsoft SQL Server that the DependencyWalker tool object is associated with.
受保护属性 Total Gets or sets the number of objects that have been processed by the DependencyWalker()()()() object.
受保护属性 TotalCount Gets or set the count of objects discovered by a Dependency Walker.

页首

方法

  名称 说明
公共方法 DiscoverDependencies(array<SqlSmoObject> [] () [] [], DependencyType) Creates a hierarchical object tree that represents the parent or child dependent relationships for a specified object array of SQL Server objects on the instance of SQL Server.
公共方法 DiscoverDependencies(array<SqlSmoObject> [] () [] [], Boolean) Creates a hierarchical object tree that represents the parent or child dependent relationships for a specified object array of SQL Server objects on the instance of SQL Server.
公共方法 DiscoverDependencies(array<Urn> [] () [] [], DependencyType) Creates a hierarchical object tree that represents the parent- or child-dependent relationships for a specified Urn array of SQL Server objects on the instance of SQL Server.
公共方法 DiscoverDependencies(array<Urn> [] () [] [], Boolean) Creates a hierarchical object tree that represents the parent- or child-dependent relationships for a specified Urn array of SQL Server objects on the instance of SQL Server.
公共方法 DiscoverDependencies(UrnCollection, DependencyType) Creates a hierarchical object tree that represents the parent or child dependent relationships for a specified Urn collection of SQL Server objects on the instance of SQL Server.
公共方法 DiscoverDependencies(UrnCollection, Boolean) Creates a hierarchical object tree that represents the parent or child dependent relationships for a specified Urn collection of SQL Server objects on the instance of SQL Server.
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
受保护方法 GetServerObject Returns the Server object that represents the instance of SQL Server on which the dependency discovery operation is running.
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString (从 Object 继承。)
公共方法 WalkDependencies Creates a linear list of objects and their dependencies from a specified DependencyTree object.

页首

事件

  名称 说明
公共事件 DiscoveryProgress Raises an event at intervals and reports progress on the DiscoveryProgress method.

页首

注释

The DependencyWalker object does not represent any physical SQL Server object.

Thread Safety

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

示例

脚本撰写

线程安全

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