DetailGroup.Add Method (String)
Initializes a DetailItem object with the specified display text and adds the item 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 ( _
displayText As String _
) As DetailItem
public DetailItem Add (
string displayText
)
public:
DetailItem^ Add (
String^ displayText
)
public DetailItem Add (
String displayText
)
public function Add (
displayText : String
) : DetailItem
Parameters
- displayText
The text 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 text:
DetailItem item = null;
DetailGroup group = new DetailGroup("Computer Information");
item = group.Add(“Computer Details”);
Exceptions
Exception type | Condition |
---|---|
ArgumentException | displayText is not valid. |
ArgumentNullException | displayText is 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