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


Метод WorkloadGroup.ScriptMoveToPool

Generates a script to move the workload group to the specified resource pool.

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

Синтаксис

'Декларация
Public Function ScriptMoveToPool ( _
    poolName As String _
) As StringCollection
'Применение
Dim instance As WorkloadGroup 
Dim poolName As String 
Dim returnValue As StringCollection 

returnValue = instance.ScriptMoveToPool(poolName)
public StringCollection ScriptMoveToPool(
    string poolName
)
public:
StringCollection^ ScriptMoveToPool(
    String^ poolName
)
member ScriptMoveToPool : 
        poolName:string -> StringCollection
public function ScriptMoveToPool(
    poolName : String
) : StringCollection

Параметры

  • poolName
    Тип: System.String
    A String value that contains the name of the destination resource pool.

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

Тип: System.Collections.Specialized.StringCollection
A StringCollection containing the script to move the workload group to the specified resource pool.

См. также

Справочник

WorkloadGroup Класс

Пространство имен Microsoft.SqlServer.Management.Smo