DemoClass.DemoEvent


Demo Event


Namespace: DemoDocLib.DemoNamespace
Assembly: DemoDocLib

Syntax

Visual Basic
Public Event DemoEvent As DemoDocLib.DemoNamespace.DemoClass+DemoEventEventHandler
C#
public event DemoDocLib.DemoNamespace.DemoClass+DemoEventEventHandler DemoEvent

Parameter

sender
Caller
e
Eventargs

Remarks

So you can use the Event:

Example

var DemoObj = new DemoClass();
 DemoObj.DemoEvent += delegate(object sender, EventArgs e) 
                      { 
                         //Do Something in the Event
                      };

Dim DemoObj = new DemoClass()
 AddHandler Me.DemoEvent, Sub(sender, e)
                             'Do Something in the Event
                          End Sub




This WikiPage was created with Codeplex WikiEditor

Last edited Jun 28, 2010 at 10:16 PM by SoftHai, version 2

Comments

No comments yet.