IdeaBlade DevForce 2010 Help Reference
GetLatestType Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > ReflectionFns Class : GetLatestType Method



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
Returns the latest version of a type given its name; optionally throws an error if no matching type can be found.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetLatestType( _
   ByVal pTypeName As String, _
   ByVal pThrowOnError As Boolean, _
   ByVal pIgnoreCase As Boolean _
) As Type
Visual Basic (Usage)Copy Code
Dim pTypeName As String
Dim pThrowOnError As Boolean
Dim pIgnoreCase As Boolean
Dim value As Type
 
value = ReflectionFns.GetLatestType(pTypeName, pThrowOnError, pIgnoreCase)
C# 
public static Type GetLatestType( 
   string pTypeName,
   bool pThrowOnError,
   bool pIgnoreCase
)
C++/CLI 
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.