AssemblyName.ReferenceMatchesDefinition(AssemblyName, AssemblyName) AssemblyName.ReferenceMatchesDefinition(AssemblyName, AssemblyName) AssemblyName.ReferenceMatchesDefinition(AssemblyName, AssemblyName) AssemblyName.ReferenceMatchesDefinition(AssemblyName, AssemblyName) Method

Definición

Devuelve un valor que indica si dos nombres de ensamblado son iguales.Returns a value indicating whether two assembly names are the same. La comparación se basa en los nombres de ensamblado simples.The comparison is based on the simple assembly names.

public:
 static bool ReferenceMatchesDefinition(System::Reflection::AssemblyName ^ reference, System::Reflection::AssemblyName ^ definition);
public static bool ReferenceMatchesDefinition (System.Reflection.AssemblyName reference, System.Reflection.AssemblyName definition);
static member ReferenceMatchesDefinition : System.Reflection.AssemblyName * System.Reflection.AssemblyName -> bool
Public Shared Function ReferenceMatchesDefinition (reference As AssemblyName, definition As AssemblyName) As Boolean

Parámetros

reference
AssemblyName AssemblyName AssemblyName AssemblyName

Nombre del ensamblado de referencia.The reference assembly name.

definition
AssemblyName AssemblyName AssemblyName AssemblyName

Nombre de ensamblado que se compara con el ensamblado de referencia.The assembly name that is compared to the reference assembly.

Devoluciones

true si los nombres de ensamblado simples son iguales; si no, false.true if the simple assembly names are the same; otherwise, false.

Comentarios

La comparación depende solo el nombre simple del ensamblado.The comparison depends only on the simple assembly name. Omite la versión, referencia cultural y token de clave pública.It ignores version, culture, and public key token.

Se aplica a