Class AppAssemblies
- Namespace
- Tripous
- Assembly
- Tripous.dll
Provides helper methods for locating application assemblies and types.
Application assemblies are all currently loaded assemblies excluding system, framework and third-party assemblies based on configurable exclusion rules.
public static class AppAssemblies
- Inheritance
-
AppAssemblies
- Inherited Members
Methods
AddExcludeContaining(IEnumerable<string>)
Adds multiple text fragments to the exclusion list.
public static void AddExcludeContaining(IEnumerable<string> Names)
Parameters
NamesIEnumerable<string>
AddExcludeContaining(string)
Adds a text fragment to the exclusion list. Any assembly whose name contains the specified value is ignored when locating application assemblies.
public static void AddExcludeContaining(string Name)
Parameters
Namestring
AddExcludeStart(IEnumerable<string>)
Adds multiple assembly name prefixes to the exclusion list.
public static void AddExcludeStart(IEnumerable<string> Names)
Parameters
NamesIEnumerable<string>
AddExcludeStart(string)
Adds an assembly name prefix to the exclusion list. Any assembly whose name starts with the specified value is ignored when locating application assemblies.
public static void AddExcludeStart(string Name)
Parameters
Namestring
FindApplicationClassType(string, Type)
Searches all application assemblies for a class type.
The search is performed first using the fully qualified type name. If not found, a second search is performed using only the class name.
When BaseType is specified, only types assignable
to that base type are considered.
public static Type FindApplicationClassType(string ClassName, Type BaseType = null)
Parameters
Returns
GetApplicationAssemblies(string[])
Returns all currently loaded application assemblies. Optionally applies additional assembly name fragments excluded only for this call.
public static List<Assembly> GetApplicationAssemblies(string[] ExcludeAssembliesContaining = null)
Parameters
ExcludeAssembliesContainingstring[]