Поделиться через


Scripter.EnumDependencies Method

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

Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Shared Function EnumDependencies ( _
    smoObject As SqlSmoObject, _
    dependencyType As DependencyType _
) As UrnCollection
public static UrnCollection EnumDependencies (
    SqlSmoObject smoObject,
    DependencyType dependencyType
)
public:
static UrnCollection^ EnumDependencies (
    SqlSmoObject^ smoObject, 
    DependencyType dependencyType
)
public static UrnCollection EnumDependencies (
    SqlSmoObject smoObject, 
    DependencyType dependencyType
)
public static function EnumDependencies (
    smoObject : SqlSmoObject, 
    dependencyType : DependencyType
) : UrnCollection

Параметры

  • smoObject
    A SqlSmoObject object value that specifies the object for which the list of dependencies is required.
  • dependencyType
    A DependencyType object value that specifies the type of dependency, parent or child, that is required.

Возвращаемое значение

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

Замечания

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Пример

How to: Script Out the Dependencies for a Database in Visual Basic .NET

Синхронизация потоков

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

Scripter Class
Scripter Members
Microsoft.SqlServer.Management.Smo Namespace

Другие ресурсы

Scripting