AssemblyName.ReferenceMatchesDefinition(AssemblyName, AssemblyName) 方法

定义

返回指示两个程序集名称是否相同的值。Returns a value indicating whether two assembly names are the same. 该比较基于简单的程序集名称。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

参数

reference
AssemblyName

引用程序集名称。The reference assembly name.

definition
AssemblyName

与引用程序集进行比较的程序集名称。The assembly name that is compared to the reference assembly.

返回

如果简单程序集名称相同,则为 true;否则为 falsetrue if the simple assembly names are the same; otherwise, false.

注解

比较仅依赖于简单的程序集名称。The comparison depends only on the simple assembly name. 它忽略版本、区域性和公钥标记。It ignores version, culture, and public key token.

适用于