| Visual Basic (Declaration) | |
|---|---|
Public Event ItemAdded() As EventHandler(Of RasterCollectionEventArgs(Of T))  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
 | |
| C# | |
|---|---|
public event EventHandler<RasterCollectionEventArgs<T>> ItemAdded()  | |
| C++/CLI | |
|---|---|
public: event EventHandler<RasterCollectionEventArgs<T>>^ ItemAdded();  | |
For an example, refer to Generic RasterCollection. 
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family