Nevron Open Vision Documentation
Nevron.Nov Namespace / NReflectionService Class / GetConstructor Method


In This Topic
    GetConstructor Method
    In This Topic
    Returns the constructor info which matches the given binding attributes and parameter types or null if no such constructor is found.
    Syntax
    'Declaration
     
    
    Public Overridable Function GetConstructor( _
       ByVal type As System.Type, _
       ByVal bindingAttr As System.Reflection.BindingFlags, _
       ByVal ParamArray types() As System.Type _
    ) As System.Reflection.ConstructorInfo
    'Usage
     
    
    Dim instance As NReflectionService
    Dim type As System.Type
    Dim bindingAttr As System.Reflection.BindingFlags
    Dim types() As System.Type
    Dim value As System.Reflection.ConstructorInfo
     
    value = instance.GetConstructor(type, bindingAttr, types)
    public virtual System.Reflection.ConstructorInfo GetConstructor( 
       System.Type type,
       System.Reflection.BindingFlags bindingAttr,
       params System.Type[] types
    )

    Parameters

    type
    bindingAttr
    types
    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