AssemblyVersionCompatibility AssemblyVersionCompatibility AssemblyVersionCompatibility AssemblyVersionCompatibility Enum

定义

定义不同类型程序集版本的兼容性。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
继承
AssemblyVersionCompatibilityAssemblyVersionCompatibilityAssemblyVersionCompatibilityAssemblyVersionCompatibility
属性

字段

SameDomain SameDomain SameDomain SameDomain 3

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

SameMachine SameMachine SameMachine SameMachine 1

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

SameProcess SameProcess SameProcess 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.

适用于