Udostępnij za pośrednictwem


Metoda Scripter.ScriptWithList (array<Urn[])

Liniowy tworzy Transact-SQL skryptów dla tablicy Urn obiektów.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public Function ScriptWithList ( _
    urns As Urn() _
) As StringCollection
'Użycie
Dim instance As Scripter
Dim urns As Urn()
Dim returnValue As StringCollection

returnValue = instance.ScriptWithList(urns)
public StringCollection ScriptWithList(
    Urn[] urns
)
public:
StringCollection^ ScriptWithList(
    array<Urn^>^ urns
)
member ScriptWithList : 
        urns:Urn[] -> StringCollection 
public function ScriptWithList(
    urns : Urn[]
) : StringCollection

Parametry

Wartość zwracana

Typ: System.Collections.Specialized.StringCollection
A StringCollection Określa wartość obiektu Transact-SQL skryptów dla listy obiektów.

Uwagi

Ta metoda zgłasza wyjątek, jeśli jest wywoływany podczas ScriptData właściwość jest zestaw do True.Zapobiega to całego zestawu danych jest inicjowane przez skrypty do StringCollection obiektu.

Przykłady

Skryptów