Partager via


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

 

Creates a DetailItem object from data that is defined in a specified ListColumn<TBusinessObject> object.

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

Syntax

public static DetailItem FromListColumn<TBusinessObject>(
    ListColumn<TBusinessObject> column,
    TBusinessObject businessObject
)
where TBusinessObject : class
public:
generic<typename TBusinessObject>
where TBusinessObject : ref class
static DetailItem^ FromListColumn(
    ListColumn<TBusinessObject>^ column,
    TBusinessObject businessObject
)
Public Shared Function FromListColumn(Of TBusinessObject As Class) (
    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 is not valid.

ArgumentNullException

column is null.

Remarks

The DetailItem object that is created will display a common label based on the display name of the column 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