This is the data item that is the subject of the event fired.
Namespace: Composite.DataAssembly: Composite (in Composite.dll) Version: 5.3.6135.33083
Syntax
Examples
CopyC#
void MyMethod() { DataEvents<IMyDataType>().OnBeforeAdd += new DataEventHandler(DataEvents_OnBeforeAdd); using (DataConnection connection = new DataConnection()) { IMyDataType myDataType = DataConnection.New<IMyDataType>(); myDataType.Name = "Foo"; connection.Add<IMyDataType>(myDataType); // This will fire the event! } } void DataEvents_OnBeforeAdd(object sender, DataEventArgs dataEventArgs) { IData myData = dataEventArgs.Data; // This will be the myDataType instance just created }