Click or drag to resize
DigitalRuneGameEventCollectionRemoveT Method (String)
Removes the event with the given name.

Namespace: DigitalRune.Game
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public bool Remove<T>(
	string name
)
where T : EventArgs

Parameters

name
Type: SystemString
The name of the event.

Type Parameters

T
The type of the event arguments.

Return Value

Type: Boolean
if the event was removed; otherwise, if the event was not found.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is .
ArgumentExceptionname is an empty string.
ArgumentException The event is not defined. Events must be defined with CreateEventT(String, String, String, T) before they can be used.
See Also