PathAssemblyResolver PathAssemblyResolver PathAssemblyResolver PathAssemblyResolver Class

Definición

Representa una resolución de ensamblado de metadatos que usa rutas de acceso a todos los ensamblados que se pueden cargar.Represents a metadata assembly resolver that uses paths to every assembly that may be loaded.

public ref class PathAssemblyResolver : System::Reflection::MetadataAssemblyResolver
public class PathAssemblyResolver : System.Reflection.MetadataAssemblyResolver
type PathAssemblyResolver = class
    inherit MetadataAssemblyResolver
Public Class PathAssemblyResolver
Inherits MetadataAssemblyResolver
Herencia
PathAssemblyResolverPathAssemblyResolverPathAssemblyResolverPathAssemblyResolver

Comentarios

Se espera que el nombre de archivo sea el mismo que el nombre simple del ensamblado.The file name is expected to be the same as the assembly's simple name. Pueden existir varios ensamblados en el disco con el mismo nombre, pero en directorios diferentes.Multiple assemblies can exist on disk with the same name but in different directories. Se puede utilizar una PathAssemblyResolver sola instancia de con varias MetadataAssemblyResolver instancias.A single instance of PathAssemblyResolver can be used with multiple MetadataAssemblyResolver instances.

Para que un AssemblyName objeto coincida con un ensamblado cargado AssemblyName.Name , debe ser igual (se omite el uso de mayúsculas).In order for an AssemblyName to match a loaded assembly, AssemblyName.Name must be equal (casing ignored).

  • Si se especifica un token de clave pública para AssemblyName, debe ser igual.If a public key token is specified for the AssemblyName, it must be equal.
  • Si no se especifica un token de clave pública AssemblyNamepara, se seleccionan los ensamblados sin token de clave pública sobre los que tienen un token de clave pública.If a public key token is not specified for AssemblyName, assemblies with no public key token are selected over those with a public key token.
  • Si coincide más de un ensamblado, se devuelve el ensamblado con el valor más alto AssemblyName.Version .If more than one assembly matches, the assembly with the highest AssemblyName.Version is returned.
  • AssemblyName.CultureNamese omite.AssemblyName.CultureName is ignored.

Constructores

PathAssemblyResolver(IEnumerable<String>) PathAssemblyResolver(IEnumerable<String>) PathAssemblyResolver(IEnumerable<String>) PathAssemblyResolver(IEnumerable<String>)

Inicializa una nueva instancia de la clase PathAssemblyResolver.Initializes a new instance of the PathAssemblyResolver class.

Métodos

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
Resolve(MetadataLoadContext, AssemblyName) Resolve(MetadataLoadContext, AssemblyName) Resolve(MetadataLoadContext, AssemblyName) Resolve(MetadataLoadContext, AssemblyName)

Devuelve un ensamblado a partir de un nombre de ensamblado determinado.Returns an assembly from a given assembly name.

ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Se aplica a