Adds an event handler to the event represented by the member set.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public void AddHandler( Delegate eventHandler ) |
| Visual Basic (Declaration) |
|---|
Public Sub AddHandler ( _ eventHandler As Delegate _ ) |
Parameters
- eventHandler
- Type: System..::.Delegate
The event handler, or null if none.
Exceptions
| Exception | Condition |
|---|---|
| MbUnit.Framework..::.MirrorException | Thrown if the operation failed because of a reflection problem such as when the member access is invalid or ambiguous. |
