次の方法で共有


DependencyWalker.DiscoverDependencies メソッド (array<SqlSmoObject , DependencyType)

SQL Server のインスタンス上にある SQL Server オブジェクトの指定したオブジェクト配列に対する親または子の依存関係を表す階層オブジェクト ツリーを作成します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Function DiscoverDependencies ( _
    objects As SqlSmoObject(), _
    dependencyType As DependencyType _
) As DependencyTree
'使用
Dim instance As DependencyWalker 
Dim objects As SqlSmoObject()
Dim dependencyType As DependencyType 
Dim returnValue As DependencyTree 

returnValue = instance.DiscoverDependencies(objects, _
    dependencyType)
public DependencyTree DiscoverDependencies(
    SqlSmoObject[] objects,
    DependencyType dependencyType
)
public:
DependencyTree^ DiscoverDependencies(
    array<SqlSmoObject^>^ objects, 
    DependencyType dependencyType
)
member DiscoverDependencies : 
        objects:SqlSmoObject[] * 
        dependencyType:DependencyType -> DependencyTree
public function DiscoverDependencies(
    objects : SqlSmoObject[], 
    dependencyType : DependencyType
) : DependencyTree

パラメーター

戻り値

型: Microsoft.SqlServer.Management.Smo.DependencyTree
SQL Server オブジェクトの階層ツリーを示す DependencyTree オブジェクトです。

使用例

スクリプト

関連項目

参照

DependencyWalker クラス

DiscoverDependencies オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間