Metoda ScriptWithList (DependencyCollection)
Liniowy tworzy Transact-SQL skrypty dla DependencyCollection obiektu.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Syntax
'Deklaracja
Public Function ScriptWithList ( _
depList As DependencyCollection _
) As StringCollection
'Użycie
Dim instance As Scripter
Dim depList As DependencyCollection
Dim returnValue As StringCollection
returnValue = instance.ScriptWithList(depList)
public StringCollection ScriptWithList(
DependencyCollection depList
)
public:
StringCollection^ ScriptWithList(
DependencyCollection^ depList
)
member ScriptWithList :
depList:DependencyCollection -> StringCollection
public function ScriptWithList(
depList : DependencyCollection
) : StringCollection
Parameters
- depList
Typ: Microsoft.SqlServer.Management.Smo. . :: . .DependencyCollection
A DependencyCollection obiektu wartość, która określa listę obiektów, aby być inicjowane przez skrypty.
Wartość zwracana
Typ: System.Collections.Specialized. . :: . .StringCollection
A SqlSmoObject obiekt array wartość, która określa listę obiektów, aby być inicjowane przez skrypty.
Uwagi
Ta metoda zgłasza wyjątek, jeśli jest wywoływana, gdy ScriptData właściwość jest zestaw True.Zapobiega to całego zestawu danych jest inicjowane przez skrypty do StringCollection obiektu.
Zobacz także