WorkloadGroup 建構函式 (ResourcePool, String)
Initializes a new instance of the WorkloadGroup class that has the specified name and resource pool.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub New ( _
resourcePool As ResourcePool, _
name As String _
)
'用途
Dim resourcePool As ResourcePool
Dim name As String
Dim instance As New WorkloadGroup(resourcePool, _
name)
public WorkloadGroup(
ResourcePool resourcePool,
string name
)
public:
WorkloadGroup(
ResourcePool^ resourcePool,
String^ name
)
new :
resourcePool:ResourcePool *
name:string -> WorkloadGroup
public function WorkloadGroup(
resourcePool : ResourcePool,
name : String
)
參數
- resourcePool
型別:Microsoft.SqlServer.Management.Smo. . :: . .ResourcePool
A ResourcePool object that specifies the parent object of the workload group.
- name
型別:System. . :: . .String
A String value that specifies the name of the workload group