Share via


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

範例

指令碼

執行緒安全性

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