ResourcePool.WorkloadGroups Property

Gets or sets a Workload Groups collection associated with a Resource Pool.

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

Syntax

'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(WorkloadGroup))> _
Public ReadOnly Property WorkloadGroups As WorkloadGroupCollection
    Get
'Usage
Dim instance As ResourcePool
Dim value As WorkloadGroupCollection

value = instance.WorkloadGroups
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(WorkloadGroup))]
public WorkloadGroupCollection WorkloadGroups { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(WorkloadGroup))]
public:
property WorkloadGroupCollection^ WorkloadGroups {
    WorkloadGroupCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(WorkloadGroup))>]
member WorkloadGroups : WorkloadGroupCollection
function get WorkloadGroups () : WorkloadGroupCollection