Version

CreateFactory Method

Creates a concrete implementation of an EventFactory with knowledge of how to create event argument objects of the requested type.
Syntax
'Declaration
 
Public Shared Function CreateFactory( _
   ByVal typeOfEvent As Type _
) As EventFactory
public static EventFactory CreateFactory( 
   Type typeOfEvent
)

Parameters

typeOfEvent
The Type of the event arguments that the client is interested in creating.

Return Value

A concrete subclass of EventFactory that can create the requested type of event arguments, or null (Nothing in Visual Basic .NET) if such a factory is unavailable.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also