DependencyWalker.DiscoverDependencies DependencyWalker.DiscoverDependencies DependencyWalker.DiscoverDependencies Method

Definition

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.

Overloads

DiscoverDependencies(UrnCollection, DependencyType) DiscoverDependencies(UrnCollection, DependencyType)

Creates a hierarchical object tree that represents the parent or child dependent relationships for a specified UrnCollection of SQL Server objects on the instance of SQL Server.

DiscoverDependencies(SqlSmoObject[], Boolean) DiscoverDependencies(SqlSmoObject[], Boolean) DiscoverDependencies(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(UrnCollection, Boolean) DiscoverDependencies(UrnCollection, Boolean) DiscoverDependencies(UrnCollection, Boolean)

Creates a hierarchical object tree that represents the parent or child dependent relationships for a specified UrnCollection of SQL Server objects on the instance of SQL Server.

DiscoverDependencies(Urn[], Boolean) DiscoverDependencies(Urn[], Boolean) DiscoverDependencies(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(Urn[], DependencyType) DiscoverDependencies(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(SqlSmoObject[], DependencyType) DiscoverDependencies(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(UrnCollection, DependencyType) DiscoverDependencies(UrnCollection, DependencyType)

Creates a hierarchical object tree that represents the parent or child dependent relationships for a specified UrnCollection of SQL Server objects on the instance of SQL Server.

public:
 Microsoft::SqlServer::Management::Smo::DependencyTree ^ DiscoverDependencies(Microsoft::SqlServer::Management::Smo::UrnCollection ^ list, Microsoft::SqlServer::Management::Smo::DependencyType dependencyType);
public Microsoft.SqlServer.Management.Smo.DependencyTree DiscoverDependencies (Microsoft.SqlServer.Management.Smo.UrnCollection list, Microsoft.SqlServer.Management.Smo.DependencyType dependencyType);
Parameters
list
UrnCollection UrnCollection UrnCollection

An UrnCollection object value that specifies the SQL Server objects for which to discover the dependent relationships.

dependencyType
DependencyType DependencyType DependencyType

A DependencyType object value that specifies the direction of the dependency discovery operation.

Returns

A DependencyTree object that specifies the hierarchical SQL Server object tree.

Examples

Scripting

DiscoverDependencies(SqlSmoObject[], Boolean) DiscoverDependencies(SqlSmoObject[], Boolean) DiscoverDependencies(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.

public:
 Microsoft::SqlServer::Management::Smo::DependencyTree ^ DiscoverDependencies(cli::array <Microsoft::SqlServer::Management::Smo::SqlSmoObject ^> ^ objects, bool parents);
public Microsoft.SqlServer.Management.Smo.DependencyTree DiscoverDependencies (Microsoft.SqlServer.Management.Smo.SqlSmoObject[] objects, bool parents);
Public Function DiscoverDependencies (objects As SqlSmoObject(), parents As Boolean) As DependencyTree
Parameters
objects
SqlSmoObject[]

A SqlSmoObject object array value that specifies the SQL Server objects for which to discover the dependent relationships.

parents
Boolean Boolean Boolean

A Boolean value that specifies whether to find parent objects on which the objects in the array are dependent or the child objects that are dependent on the objects in the array.

If True, the DiscoverDependencies(SqlSmoObject[], DependencyType) method will look for the parent objects for each object in the specified array.

If False, the DiscoverDependencies(SqlSmoObject[], DependencyType) method will look for the child objects for each object in the specified array.

Returns

A DependencyTree object that specifies the hierarchical SQL Server object tree.

Examples

Scripting

DiscoverDependencies(UrnCollection, Boolean) DiscoverDependencies(UrnCollection, Boolean) DiscoverDependencies(UrnCollection, Boolean)

Creates a hierarchical object tree that represents the parent or child dependent relationships for a specified UrnCollection of SQL Server objects on the instance of SQL Server.

public:
 Microsoft::SqlServer::Management::Smo::DependencyTree ^ DiscoverDependencies(Microsoft::SqlServer::Management::Smo::UrnCollection ^ list, bool parents);
public Microsoft.SqlServer.Management.Smo.DependencyTree DiscoverDependencies (Microsoft.SqlServer.Management.Smo.UrnCollection list, bool parents);
Public Function DiscoverDependencies (list As UrnCollection, parents As Boolean) As DependencyTree
Parameters
list
UrnCollection UrnCollection UrnCollection

An UrnCollection object value that specifies the SQL Server objects for which to discover the dependent relationships.

parents
Boolean Boolean Boolean

A Boolean value that specifies whether to find parent objects on which the objects in the array are dependent or the child objects that are dependent on the objects in the array.

If True, the DiscoverDependencies(UrnCollection, Boolean) method will look for the parent objects for each object in the specified array.

If False, the DiscoverDependencies(UrnCollection, Boolean) method will look for the child objects for each object in the specified array.

Returns

A DependencyTree object that specifies the hierarchical SQL Server object tree.

Examples

Scripting

DiscoverDependencies(Urn[], Boolean) DiscoverDependencies(Urn[], Boolean) DiscoverDependencies(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.

public:
 Microsoft::SqlServer::Management::Smo::DependencyTree ^ DiscoverDependencies(cli::array <Microsoft::SqlServer::Management::Sdk::Sfc::Urn ^> ^ urns, bool parents);
public Microsoft.SqlServer.Management.Smo.DependencyTree DiscoverDependencies (Microsoft.SqlServer.Management.Sdk.Sfc.Urn[] urns, bool parents);
Public Function DiscoverDependencies (urns As Urn(), parents As Boolean) As DependencyTree
Parameters
urns
Urn[]

An UrnCollection object value that specifies the SQL Server objects for which to discover the dependent relationships.

parents
Boolean Boolean Boolean

A Boolean value that specifies whether to find parent objects on which the objects in the array are dependent or the child objects that are dependent on the objects in the array.

If True, the DiscoverDependencies(UrnCollection, Boolean) method looks for the parent objects for each object in the specified array.

If False, the DiscoverDependencies(UrnCollection, Boolean) method looks for the child objects for each object in the specified array.

Returns

A DependencyTree object that specifies the hierarchical SQL Server object tree.

DiscoverDependencies(Urn[], DependencyType) DiscoverDependencies(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.

public:
 Microsoft::SqlServer::Management::Smo::DependencyTree ^ DiscoverDependencies(cli::array <Microsoft::SqlServer::Management::Sdk::Sfc::Urn ^> ^ urns, Microsoft::SqlServer::Management::Smo::DependencyType dependencyType);
public Microsoft.SqlServer.Management.Smo.DependencyTree DiscoverDependencies (Microsoft.SqlServer.Management.Sdk.Sfc.Urn[] urns, Microsoft.SqlServer.Management.Smo.DependencyType dependencyType);
Parameters
urns
Urn[]

An UrnCollection object value that specifies the SQL Server objects for which to discover the dependent relationships.

dependencyType
DependencyType DependencyType DependencyType

A DependencyType object value that specifies the direction of the dependency discovery operation.

Returns

A DependencyTree object that specifies the hierarchical SQL Server object tree.

DiscoverDependencies(SqlSmoObject[], DependencyType) DiscoverDependencies(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.

public:
 Microsoft::SqlServer::Management::Smo::DependencyTree ^ DiscoverDependencies(cli::array <Microsoft::SqlServer::Management::Smo::SqlSmoObject ^> ^ objects, Microsoft::SqlServer::Management::Smo::DependencyType dependencyType);
public Microsoft.SqlServer.Management.Smo.DependencyTree DiscoverDependencies (Microsoft.SqlServer.Management.Smo.SqlSmoObject[] objects, Microsoft.SqlServer.Management.Smo.DependencyType dependencyType);
Parameters
objects
SqlSmoObject[]

A SqlSmoObject object array value that specifies the SQL Server objects for which to discover the dependent relationships.

dependencyType
DependencyType DependencyType DependencyType

A DependencyType object value that specifies the direction of the dependency discovery operation.

Returns

A DependencyTree object that specifies the hierarchical SQL Server object tree.

Examples

Scripting

Applies to