DetailGroup.Add Method (String, String)
Initializes a DetailItem object with the specified display name and the specified display value, and then adds the object to the DetailGroup.
Namespace: Microsoft.EssentialBusinessServer.Console.ObjectModel
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)
Usage
Syntax
'Declaration
Public Function Add ( _
displayName As String, _
displayValue As String _
) As DetailItem
public DetailItem Add (
string displayName,
string displayValue
)
public:
DetailItem^ Add (
String^ displayName,
String^ displayValue
)
public DetailItem Add (
String displayName,
String displayValue
)
public function Add (
displayName : String,
displayValue : String
) : DetailItem
Parameters
- displayName
The name that is displayed for the DetailItem object.
- displayValue
The value that is displayed for the DetailItem object.
Return Value
An instance of DetailItem.
Example
The following code example shows how to initialize a DetailGroup object that initializes a DetailItem with the specified display name and display value:
DetailItem item = null;
DetailGroup group = new DetailGroup("Computer Information");
item = group.Add(“Computer Details”, “Server1”);
Exceptions
Exception type | Condition |
---|---|
ArgumentException | One or more of the parameters are not valid. |
ArgumentNullException | One or more of the parameters are null. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008 64-bit Edition, Windows Vista 64-bit Edition, Windows Essential Business Server 2008 Standard, Windows Essential Business Server 2008 Premium
Target Platforms
Windows Essential Business Server 2008 Standard, Windows Essential Business Server 2008 Premium
See Also
Reference
DetailGroup Class
DetailGroup Members
Microsoft.EssentialBusinessServer.Console.ObjectModel Namespace