This event is fired just after a new data item is created. See New<(Of <<'(TData>)>>)()()()()

Namespace: Composite.Data
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public static event DataEventHandler OnNew
Visual Basic
Public Shared Event OnNew As DataEventHandler
Visual C++
public:
static  event DataEventHandler^ OnNew {
	void add (DataEventHandler^ value);
	void remove (DataEventHandler^ value);
}

Examples

CopyC#
void MyMethod()
{
   DataEvents<IMyDataType>.OnNew += new DataEventHandler(DataEvents_OnNew);

   IMyDataType myDataType = DataConnection.New<IMyDataType>(); // This will fire the event!
}


void DataEvents_OnNew(object sender, DataEventArgs dataEventArgs)
{        
}

See Also