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
public enum AssemblyVersionCompatibility
[System.Serializable]
public enum 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.

適用於