Compartilhar via


DetailGroup.Add Method (DetailItem)

 

Adds the specified DetailItem object to the DetailGroup.

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

Syntax

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

Parameters

Implements

ICollection<T>.Add(T)

Exceptions

Exception Condition
ArgumentNullException

item is null.

Examples

The following code example shows how to initialize a DetailGroup object and add a DetailItem to the group:

DetailItem item = new DetailItem("Network Details");
DetailGroup group = new DetailGroup("Computer Information");
group.Add(item);

See Also

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

Return to top