DevForce Help Reference
GetLatestType Method


A type name to locate
Whether to throw an error if a matching type cannot be found
Whether to ignore case when attempting a match
Returns the latest version of a type given its name; optionally throws an error if no matching type can be found.
Syntax
'Declaration
 
Public Shared Function GetLatestType( _
   ByVal pTypeName As String, _
   ByVal pThrowOnError As Boolean, _
   ByVal pIgnoreCase As Boolean _
) As Type
'Usage
 
Dim pTypeName As String
Dim pThrowOnError As Boolean
Dim pIgnoreCase As Boolean
Dim value As Type
 
value = ReflectionFns.GetLatestType(pTypeName, pThrowOnError, pIgnoreCase)
public static Type GetLatestType( 
   string pTypeName,
   bool pThrowOnError,
   bool pIgnoreCase
)

Parameters

pTypeName
A type name to locate
pThrowOnError
Whether to throw an error if a matching type cannot be found
pIgnoreCase
Whether to ignore case when attempting a match

Return Value

The latest version of a type with the specified name
Requirements

Target Platforms: 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

Reference

ReflectionFns Class
ReflectionFns Members

Send Feedback