Partager via


DetailColumn.Add Method (DetailGroup)

 

Adds the specified DetailGroup object to the DetailColumn.

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

Syntax

public void Add(
    DetailGroup item
)
public:
virtual void Add(
    DetailGroup^ item
) sealed
Public Sub Add (
    item As DetailGroup
)

Parameters

Implements

ICollection<T>.Add(T)

Exceptions

Exception Condition
ArgumentNullException

item is null.

Examples

The following code example shows how to initialize a DetailColumn object and add a DetailGroup to the column:

DetailColumn column = new DetailColumn();
DetailGroup group = new DetailGroup("Computer Information");
group.Add("Computer Name", businessObj.ComputerName);
column.Add(group);

See Also

Add Overload
DetailColumn Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top