Partager via


ListGroup<TBusinessObject> Constructor (String, String)

 

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

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

Syntax

public ListGroup(
    string displayName,
    string description
)
public:
ListGroup(
    String^ displayName,
    String^ description
)
Public Sub New (
    displayName As String,
    description 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 include a description of the group. The ListGroup<TBusinessObject> is added to a ListGroupingCollection<TBusinessObject>:

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

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

private static ListGroup<BusinessObject> GetListGroup(BusinessObject businessObj)
{
    ListGroup<BusinessObject> group = null;
    group = new ListGroup<BusinessObject>(businessObj.NetworkName, 
       "The local network");

    return group;
}

See Also

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

Return to top