Partager via


ListColumn<TBusinessObject> Constructor (String, String, IFormatProvider, String)

 

Initializes a new instance of the ListColumn<TBusinessObject> class with the specified display name and the specified property name. A format string and a format provider are also specified to format the column value.

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

Syntax

public ListColumn(
    string displayName,
    string propertyName,
    IFormatProvider formatProvider,
    string format
)
public:
ListColumn(
    String^ displayName,
    String^ propertyName,
    IFormatProvider^ formatProvider,
    String^ format
)
Public Sub New (
    displayName As String,
    propertyName As String,
    formatProvider As IFormatProvider,
    format As String
)

Parameters

  • displayName
    Type: System.String

    The display name of the column.

  • propertyName
    Type: System.String

    A property name of a business object from which the column value will be retrieved.

  • format
    Type: System.String

    The format string that is used with the format provider.

Remarks

If the type that propertyName represents implements IFormatProvider, the format provider and format are used to call Tostring on the instance of the property.

For more information about formatting data, see “Formatting Overview” at the Microsoft Web site (https://go.microsoft.com/fwlink/?LinkId=116100).

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

ListColumn<TBusinessObject> Overload
ListColumn<TBusinessObject> Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top