Nevron Open Vision Documentation
Nevron.Nov Namespace / NVariant Structure / SetObjectFactory Method
target object type
function that converts variants to objects of the specfied target type


In This Topic
    SetObjectFactory Method
    In This Topic
    Sets the function that converts variants to objects of the specified type.
    Syntax
    'Declaration
     
    
    Public Shared Sub SetObjectFactory( _
       ByVal type As System.Type, _
       ByVal factory As Nevron.Nov.FunctionResult(Of NVariant,Object) _
    ) 
    'Usage
     
    
    Dim type As System.Type
    Dim factory As Nevron.Nov.FunctionResult(Of NVariant,Object)
     
    NVariant.SetObjectFactory(type, factory)
    public static void SetObjectFactory( 
       System.Type type,
       Nevron.Nov.FunctionResult<NVariant,object> factory
    )

    Parameters

    type
    target object type
    factory
    function that converts variants to objects of the specfied target type
    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