共用方式為


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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.UrnCollection
A UrnCollection object value that specifies the list of dependencies for the specified object.

範例

指令碼

請參閱

參考

Scripter 類別

Microsoft.SqlServer.Management.Smo 命名空間