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
- urns
Typ: array<Microsoft.SqlServer.Management.Sdk.Sfc.Urn[]
Tablica Urn obiektu wartości, które określają listę obiektów, być inicjowane przez skrypty.
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.
Zobacz także