共用方式為


Add 方法

Adds a workload group to the collection.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub Add ( _
    workloadGroup As WorkloadGroup _
)
'用途
Dim instance As WorkloadGroupCollection
Dim workloadGroup As WorkloadGroup

instance.Add(workloadGroup)
public void Add(
    WorkloadGroup workloadGroup
)
public:
void Add(
    WorkloadGroup^ workloadGroup
)
member Add : 
        workloadGroup:WorkloadGroup -> unit 
public function Add(
    workloadGroup : WorkloadGroup
)