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


Scripter.Script Method (UrnCollection)

Creates a Transact-SQL scripts for a set of objects specified with a Urn object collection.

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

Синтаксис

'Декларация
Public Function Script ( _
    list As UrnCollection _
) As StringCollection
public StringCollection Script (
    UrnCollection list
)
public:
StringCollection^ Script (
    UrnCollection^ list
)
public StringCollection Script (
    UrnCollection list
)
public function Script (
    list : UrnCollection
) : StringCollection

Параметры

  • list
    A UrnCollection object value that specifies the list of objects to be scripted.

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

A StringCollection object value that specifies the Transact-SQL scripts for the list of objects.

Замечания

Это пространство имен, класс или элемент поддерживаются только платформой 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