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


In This Topic
    FromDelegate<TArgs> Method
    In This Topic
    Creates a new weak event handler that calls the specified delegate. Throw an exception if the delegate is null or is not an instance of the Function(TArgs) delegate.
    Syntax
    'Declaration
     
    
    Public Shared Function FromDelegate(Of TArgs As NEventArgs)( _
       ByVal function As System.Delegate _
    ) As NWeakEventHandler
    'Usage
     
    
    Dim function As System.Delegate
    Dim value As NWeakEventHandler
     
    value = NWeakEventHandler.FromDelegate(Of TArgs)(function)
    public static NWeakEventHandler FromDelegate<TArgs>( 
       System.Delegate 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