Scripter.EnumDependencies Method (SqlSmoObject, DependencyType)

 

Returns an enumerated list that includes the specified object and child or parent dependencies.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public static UrnCollection EnumDependencies(
	SqlSmoObject smoObject,
	DependencyType dependencyType
)

Parameters

smoObject
Type: Microsoft.SqlServer.Management.Smo.SqlSmoObject

A SqlSmoObject object value that specifies the object for which the list of dependencies is required.

dependencyType
Type: Microsoft.SqlServer.Management.Smo.DependencyType

A DependencyType object value that specifies the type of dependency, parent or child, that is required.

Return Value

Type: Microsoft.SqlServer.Management.Smo.UrnCollection

A UrnCollection object value that specifies the list of dependencies for the specified object.

Return to top
Show: