Scripter.EnumDependencies 方法
Returns an enumerated list that includes the specified object and child or parent dependencies.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Shared Function EnumDependencies ( _
smoObject As SqlSmoObject, _
dependencyType As DependencyType _
) As UrnCollection
用法
Dim smoObject As SqlSmoObject
Dim dependencyType As DependencyType
Dim returnValue As UrnCollection
returnValue = Scripter.EnumDependencies(smoObject, _
dependencyType)
public static UrnCollection EnumDependencies(
SqlSmoObject smoObject,
DependencyType dependencyType
)
public:
static UrnCollection^ EnumDependencies(
SqlSmoObject^ smoObject,
DependencyType dependencyType
)
static member EnumDependencies :
smoObject:SqlSmoObject *
dependencyType:DependencyType -> UrnCollection
public static function EnumDependencies(
smoObject : SqlSmoObject,
dependencyType : DependencyType
) : UrnCollection
参数
- smoObject
类型:Microsoft.SqlServer.Management.Smo.SqlSmoObject
A SqlSmoObject object value that specifies the object for which the list of dependencies is required.
- dependencyType
类型:Microsoft.SqlServer.Management.Smo.DependencyType
A DependencyType object value that specifies the type of dependency, parent or child, that is required.
返回值
类型:Microsoft.SqlServer.Management.Smo.UrnCollection
A UrnCollection object value that specifies the list of dependencies for the specified object.