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 sets 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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。