Source object can provide data and/or data formats.
| C# | void object_OLESetData(object sender, AxSftDateLib20._ISftDateEvents_OLESetDataEvent e); |
| VB.NET | Private Sub object_OLESetData(ByVal sender As Object, ByVal e As AxSftDateLib20._ISftDateEvents_OLESetDataEvent) Handles object.OLESetData |
| C++ | void OnOLESetDataobject(DataObject** Data, short* Format); |
| C | HRESULT OnOLESetDataobject(DataObject** Data, short* Format); |
object
Data
A DataObject object containing formats that the source will provide and, in addition, possibly the data for those formats.
Format
The format of the data that the target component is requesting. The source component uses this value to determine what to load into the DataObject object.
The OLESetData event occurs when the source object can provide data and/or data formats. p In certain cases, you may wish to defer loading data into the DataObject object of a source component to save time, especially if the source component supports many formats. This event allows the source to respond to only one request for a given format of data. When this event is called, the source should check the Format parameter to determine what needs to be loaded and then perform the SetData method on the DataObject object to load the data which is then passed back to the target component.
See Also SftDate Object | Object Hierarchy