다음을 통해 공유


ListGroup<TBusinessObject> Constructor (String)

 

Initializes a new instance of the ListGroup<TBusinessObject> class with the specified display name.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Syntax

public ListGroup(
    string displayName
)
public:
ListGroup(
    String^ displayName
)
Public Sub New (
    displayName As String
)

Parameters

Remarks

A ListGrouping<TBusinessObject> enables a user to display only the needed groups in the Dashboard.

TBusinessObject represents a business object that encapsulates information and methods that relate to business data or business functionality. The information in the business object is exposed as properties.

Examples

The following code example shows how to initialize a ListGroup<TBusinessObject> based on the "Network Name" of the business object and adds the ListGroup<TBusinessObject> to a ListGroupingCollection<TBusinessObject>:

ListGroupingCollection<BusinessObject> groupings = null;
groupings = new ListGroupingCollection<BusinessObject>();

ListGrouping<BusinessObject> grouping = null;
groupings.Add("Network Name", GetListGroup);

private static ListGroup<BusinessObject> GetListGroup(
    BusinessObject businessObj)
{
    ListGroup<BusinessObject> group = null;
    group = new ListGroup<BusinessObject>(businessObj.NetworkName);
    return group;
}

See Also

ListGroup<TBusinessObject> Overload
ListGroup<TBusinessObject> Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top