XmlConfiguratonOperatorGetTypeFromString Method (Assembly, String, Boolean, Boolean) |
Loads the type specified in the type string.
Namespace: X3Platform.ConfigurationAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static Type GetTypeFromString(
Assembly relativeAssembly,
string typeName,
bool throwOnError,
bool ignoreCase
)
public:
static Type^ GetTypeFromString(
Assembly^ relativeAssembly,
String^ typeName,
bool throwOnError,
bool ignoreCase
)
Parameters
- relativeAssembly
- Type: System.ReflectionAssembly
An assembly to load the type from. - typeName
- Type: SystemString
The name of the type to load. - throwOnError
- Type: SystemBoolean
Flag set to true to throw an exception if the type cannot be loaded. - ignoreCase
- Type: SystemBoolean
true to ignore the case of the type name; otherwise, false
Return Value
Type:
TypeThe type loaded or
null if it could not be loaded.
Remarks
If the type name is fully qualified, i.e. if contains an assembly name in
the type name, the type will be loaded from the system using
GetType(String, Boolean).
If the type name is not fully qualified it will be loaded from the specified
assembly. If the type is not found in the assembly then all the loaded assemblies
will be searched for the type.
See Also