Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​ComponentModel.​Design.​ITypeResolutionService

Assembly: System.ComponentModel.TypeConverter

Provides an interface to retrieve an assembly or type by name.

Methods

GetAssembly​(Reflection.​AssemblyName name)
Gets the requested assembly.
Returns An instance of the requested assembly, or <see langword="null" /> if no assembly can be located.
name The name of the assembly to retrieve.
GetAssembly​(Reflection.​AssemblyName name, bool throwOnError)
Gets the requested assembly.
Returns An instance of the requested assembly, or <see langword="null" /> if no assembly can be located.
name The name of the assembly to retrieve.
throwOnError <see langword="true" /> if this method should throw an exception if the assembly cannot be located; otherwise, <see langword="false" /> , and this method returns <see langword="null" /> if the assembly cannot be located.
string
GetPathOfAssembly​(Reflection.​AssemblyName name)
Gets the path to the file from which the assembly was loaded.
Returns The path to the file from which the assembly was loaded.
name The name of the assembly.
GetType​(string name)
Loads a type with the specified name.
Returns An instance of <see cref="T:System.Type" /> that corresponds to the specified name, or <see langword="null" /> if no type can be found.
name The name of the type. If the type name is not a fully qualified name that indicates an assembly, this service will search its internal set of referenced assemblies.
GetType​(string name, bool throwOnError)
Loads a type with the specified name.
Returns An instance of <see cref="T:System.Type" /> that corresponds to the specified name, or <see langword="null" /> if no type can be found.
name The name of the type. If the type name is not a fully qualified name that indicates an assembly, this service will search its internal set of referenced assemblies.
throwOnError <see langword="true" /> if this method should throw an exception if the assembly cannot be located; otherwise, <see langword="false" /> , and this method returns <see langword="null" /> if the assembly cannot be located.
GetType​(string name, bool throwOnError, bool ignoreCase)
Loads a type with the specified name.
Returns An instance of <see cref="T:System.Type" /> that corresponds to the specified name, or <see langword="null" /> if no type can be found.
name The name of the type. If the type name is not a fully qualified name that indicates an assembly, this service will search its internal set of referenced assemblies.
throwOnError <see langword="true" /> if this method should throw an exception if the assembly cannot be located; otherwise, <see langword="false" /> , and this method returns <see langword="null" /> if the assembly cannot be located.
ignoreCase <see langword="true" /> to ignore case when searching for types; otherwise, <see langword="false" /> .
void
ReferenceAssembly​(Reflection.​AssemblyName name)
Adds a reference to the specified assembly.
name An <see cref="T:System.Reflection.AssemblyName" /> that indicates the assembly to reference.