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 命名空间