Show / Hide Table of Contents

Class AppDomainExtensions

A static class that contains extension methods for the System.AppDomain class.

Inheritance
System.Object
AppDomainExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Juhta.Net.Extensions
Assembly: Juhta.Net.dll
Syntax
public static class AppDomainExtensions

Methods

| Improve this Doc View Source

GetAssemblyByFileName(AppDomain, String)

Gets a loaded assembly by an assembly file name.

Declaration
public static Assembly GetAssemblyByFileName(this AppDomain appDomain, string assemblyFileName)
Parameters
Type Name Description
System.AppDomain appDomain

Specifies the current AppDomain instance.

System.String assemblyFileName

Specifies an assembly file name.

Returns
Type Description
System.Reflection.Assembly

Returns the first loaded Assembly instance whose Location property's file name part matches the specified assembly file name, or null, if no match was found.

| Improve this Doc View Source

GetAssemblyByPath(AppDomain, String)

Gets a loaded assembly by an assembly path.

Declaration
public static Assembly GetAssemblyByPath(this AppDomain appDomain, string assemblyPath)
Parameters
Type Name Description
System.AppDomain appDomain

Specifies the current AppDomain instance.

System.String assemblyPath

Specifies an assembly path.

Returns
Type Description
System.Reflection.Assembly

Returns the first loaded Assembly instance whose Location property ends with the specified assembly path, or null, if no match was found.

Remarks

The path specified by assemblyPath does not necessarily have to be absolute.

| Improve this Doc View Source

GetAssemblyByTypeName(AppDomain, String)

Gets a loaded assembly by a type name.

Declaration
public static Assembly GetAssemblyByTypeName(this AppDomain appDomain, string typeName)
Parameters
Type Name Description
System.AppDomain appDomain

Specifies the current AppDomain instance.

System.String typeName

Specifies a full type name.

Returns
Type Description
System.Reflection.Assembly

Returns the first loaded assembly that contains the specified type, or null, if the type was not found in any loaded assembly.

  • Improve this Doc
  • View Source
Back to top Copyright © 2017-2019 Juha Lähteenmäki
Generated by DocFX