Share via


WorkloadGroupCollection.Add Method

Adds a workload group to the collection.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub Add ( _
    workloadGroup As WorkloadGroup _
)
'Usage
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
)

Parameters

See Also

Reference

WorkloadGroupCollection Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Create a Workload Group