Back to Devexpress

ObjectConstructorInfo Class

corelibraries-devexpress-dot-dataaccess-dot-objectbinding-88ff8a8a.md

latest2.7 KB
Original Source

ObjectConstructorInfo Class

Provides functionality to access constructor parameters when binding to an ObjectDataSource.

Namespace : DevExpress.DataAccess.ObjectBinding

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
public class ObjectConstructorInfo
vb
Public Class ObjectConstructorInfo

The following members return ObjectConstructorInfo objects:

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.

View Example: How to Create a Report Bound to the ObjectDataSource with Constructor Parameters Linked 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).

Inheritance

Object ObjectConstructorInfo

See Also

ObjectConstructorInfo Members

Parameter

DevExpress.DataAccess.ObjectBinding Namespace