Partager via


DetailItem.FromListColumn<TBusinessObject> Method (String, ListColumn<TBusinessObject>, TBusinessObject)

 

Creates a DetailItem object from data that is defined in a specified ListColumn<TBusinessObject> object and with the specified display name.

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

Syntax

public static DetailItem FromListColumn<TBusinessObject>(
    string displayName,
    ListColumn<TBusinessObject> column,
    TBusinessObject businessObject
)
where TBusinessObject : class
public:
generic<typename TBusinessObject>
where TBusinessObject : ref class
static DetailItem^ FromListColumn(
    String^ displayName,
    ListColumn<TBusinessObject>^ column,
    TBusinessObject businessObject
)
Public Shared Function FromListColumn(Of TBusinessObject As Class) (
    displayName As String,
    column As ListColumn(Of TBusinessObject),
    businessObject As TBusinessObject
) As DetailItem

Parameters

  • businessObject
    Type: TBusinessObject

    A business object that encapsulates information and methods that relate to business data or business functionality.

Return Value

Type: Microsoft.WindowsServerSolutions.Administration.ObjectModel.DetailItem

An instance of DetailItem.

Type Parameters

  • 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.

Exceptions

Exception Condition
ArgumentException

column or displayName is not valid.

ArgumentNullException

column or displayName is null.

Remarks

The DetailItem object that is created will display a common label based on the display name that is provided and will display detail values based on the values defined for business objects listed in the column.

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.

See Also

FromListColumn Overload
DetailItem Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top