ObjectConstructorInfo.Parameters Property

Provides access to a collection of parameters to be passed to a constructor when it is invoked

Namespace: DevExpress.DataAccess.ObjectBinding

Assembly: DevExpress.DataAccess.v20.2.dll

Declaration

public ParameterList Parameters { get; }
Public ReadOnly Property Parameters As ParameterList

Property Value

Type Description
ParameterList

A collection of Parameter values.

Remarks

If it is required that on calling the ObjectDataSource.Fill method, an ObjectDataSource should create an instance of the type specified by its ObjectDataSource.DataSource property, use the ObjectDataSource.Constructor property to specify the required constructor parameters. To assign a constructor without parameters, use the static ObjectConstructorInfo.Default object.

For a code sample, see the following example online: How to programmatically generate ObjectDataSource and map object data source constructor parameters to report parameters.

Set the ObjectDataSource.Constructor property to null for the ObjectDataSource to never try to create an object instance (if you need to manually create and assign it, or when binding to a static member).

See Also