Skip to main content

ObjectDataSource Members

Enables binding data-aware controls and components to a runtime-created object or an instance method.

Constructors

Name Description
ObjectDataSource() Initializes a new instance of the ObjectDataSource class with the default settings.
ObjectDataSource(IContainer) Initializes a new instance of the ObjectDataSource class with a specified container.

Properties

Name Description
CanRaiseEvents protected Gets a value indicating whether the component can raise an event. Inherited from Component.
Constructor Specifies an object that enables an ObjectDataSource to access constructor parameters.
Container Gets the IContainer that contains the Component. Inherited from Component.
DataMember Specifies the data member of an object data source.
DataSource Specifies the object data source that can be a specific object instance or a type.
DesignMode protected Gets a value that indicates whether the Component is currently in design mode. Inherited from Component.
Events protected Gets the list of event handlers that are attached to this Component. Inherited from Component.
Name Inherited from DataComponentBase.
Parameters Provides access to the list of parameters that must be specified when binding an ObjectDataSource to a method.
Site Gets or sets the ISite of the Component. Inherited from Component.

Methods

Name Description
BeginInit() Signals the object data source that initialization is starting.
BeginUpdate() Signals the object data source that updating has begun.
CreateObjRef(Type) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
Dispose() Releases all resources used by the Component. Inherited from Component.
Dispose(Boolean) protected Releases the unmanaged resources used by the Component and optionally releases the managed resources. Inherited from Component.
EndInit() Signals the object data source that initialization is complete.
EndUpdate() Signals the object data source that updating has ended.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Fill() Retrieves the data from the object data source.
Fill(IEnumerable<IParameter>) Retrieves the data from the object data source with the specified parameters.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetItemProperties(PropertyDescriptor[]) Returns an object that describes the item properties of an object data source.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetListName(PropertyDescriptor[]) Returns the name of a list associated with an object data source.
GetService(Type) Inherited from DataComponentBase.
GetType() Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
LoadFromXml(XElement) Loads the object data source schema definition from XML.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
RebuildResultSchema() Builds the ObjectDataSource schema.
RebuildResultSchema(IEnumerable<IParameter>) Rebuilds the ObjectDataSource schema with a data member parameter value.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
SaveToXml() Saves the XML definition of the object data source schema.
ToString() Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.

Events

Name Description
BeforeFill Occurs before filling an object data source, which enables you to provide custom data source validation.
BeforeFillGlobal static Occurs before filling an object data source, enabling you to provide custom validation for all object data sources in your application.
Disposed Occurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
See Also