WorkloadGroupCollection.Item Property (String)
Gets a workload group item by name.
Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As WorkloadGroup
    Get
'Usage
Dim instance As WorkloadGroupCollection
Dim name As String
Dim value As WorkloadGroup
value = instance(name)
public WorkloadGroup this[
    string name
] { get; }
public:
property WorkloadGroup^ default[String^ name] {
    WorkloadGroup^ get (String^ name);
}
member Item : WorkloadGroup
JScript supports the use of indexed properties, but not the declaration of new ones.
Parameters
- name
Type: System.String
String 
Property Value
Type: Microsoft.SqlServer.Management.Smo.WorkloadGroup
WorkloadGroup
See Also