Nevron Open Vision Documentation
Nevron.Nov.Dom Namespace / NWeakEventHandler Class / FromFunction<TArgs> Method


In This Topic
    FromFunction<TArgs> Method
    In This Topic
    Creates a new weak event handler that calls the specified function. Throw an exception if the function is null.
    Syntax
    'Declaration
     
    
    Public Shared Function FromFunction(Of TArgs As NEventArgs)( _
       ByVal function As Nevron.Nov.Function(Of TArgs) _
    ) As NWeakEventHandler
    'Usage
     
    
    Dim function As Nevron.Nov.Function(Of TArgs)
    Dim value As NWeakEventHandler
     
    value = NWeakEventHandler.FromFunction(Of TArgs)(function)
    public static NWeakEventHandler FromFunction<TArgs>( 
       Nevron.Nov.Function<TArgs> function
    )
    where TArgs: NEventArgs

    Parameters

    function

    Type Parameters

    TArgs
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also