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 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。
範例
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。