Table of Contents

Property ObjectInstance

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

ObjectInstance

When ObjectType is set to a non-null value, this holds the instantiated object of the Type specified in ObjectType. If ObjectInstance is assigned by the user, ObjectType property will reflect the Type of the assigned object. If a DataSourceProvider is assigned to ObjectInstance, ObjectDataProvider will use the Data of the assigned source provider as its effective ObjectInstance.

public object ObjectInstance { get; set; }

Property Value

object

The instance of object constructed from ObjectType and ConstructorParameters. -or- The DataSourceProvider whose Data is used as ObjectInstance.

Remarks

Only one of ObjectType or ObjectInstance can be set by the user to a non-null value. This property, like the Data property, honors DeferRefresh: after setting the ObjectType, ObjectInstance will not be filled until Refresh() happens.