英語で読む

次の方法で共有


AssemblyName.ReferenceMatchesDefinition(AssemblyName, AssemblyName) メソッド

定義

2 つのアセンブリ名が同じであるかどうかを示す値を返します。 比較は単純なアセンブリ名に基づいています。

C#
public static bool ReferenceMatchesDefinition(System.Reflection.AssemblyName? reference, System.Reflection.AssemblyName? definition);
C#
public static bool ReferenceMatchesDefinition(System.Reflection.AssemblyName reference, System.Reflection.AssemblyName definition);

パラメーター

reference
AssemblyName

参照アセンブリ名。

definition
AssemblyName

参照アセンブリと比較されるアセンブリ名。

戻り値

単純なアセンブリ名が同一である場合は true。それ以外の場合は false

注釈

比較は、単純なアセンブリ名にのみ依存します。 バージョン、カルチャ、公開キー トークンは無視されます。

適用対象

製品 バージョン
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1