AssemblyVersionCompatibility 枚举

定义

定义不同类型程序集版本的兼容性。Defines the different types of assembly version compatibility. .NET Framework 1.0 版中没有提供这项功能。This feature is not available in version 1.0 of the .NET Framework.

public enum class AssemblyVersionCompatibility
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum AssemblyVersionCompatibility
type AssemblyVersionCompatibility = 
Public Enum AssemblyVersionCompatibility
继承
AssemblyVersionCompatibility
属性

字段

SameDomain 3

程序集无法与其他版本在同一应用程序域中一起执行。The assembly cannot execute with other versions if they are executing in the same application domain.

SameMachine 1

该程序集无法与其他版本在同一台计算机上一起执行。The assembly cannot execute with other versions if they are executing on the same machine.

SameProcess 2

程序集无法与其他版本在同一进程中一起执行。The assembly cannot execute with other versions if they are executing in the same process.

注解

AssemblyVersionCompatibility定义具有同一程序集的其他版本的程序集的兼容性, 指示该程序集是否无法与其他版本并行执行 (例如, 由于设备驱动程序冲突)。AssemblyVersionCompatibility defines the compatibility of an assembly with other versions of the same assembly, indicating if it cannot execute side-by-side with other versions (for example, due to conflicts over a device driver).

如果未指定兼容性, 则在所有作用域中都是并行兼容的程序集。If no compatibility is specified, an assembly is side-by-side compatible in all scopes.

程序集不能更明确地与以前的哪个版本不是并行兼容的程序集。An assembly cannot be more specific with regard to exactly which previous versions it is not side-by-side compatible with. 因此, 如果AssemblyVersionCompatibility指定了, 则意味着程序集与所有已知版本都不是并行的。Therefore, if the AssemblyVersionCompatibility is specified, it means the assembly is non side-by-side with all know versions. 如果未指定, 则表示它与所有已知版本并行。If not specified, it means it is side-by-side with all known versions.

适用于