System.Runtime.Versioning 命名空间

System.Runtime.Versioning 命名空间包含支持在 .NET Framework 的多个并列实现中进行版本控制的高级类型。 The System.Runtime.Versioning namespace contains advanced types that support versioning in side by side implementations of the .NET Framework.

CompatibilitySwitch
ComponentGuaranteesAttribute

定义可以跨多个版本的组件、类型或类型成员的兼容性保证。Defines the compatibility guarantee of a component, type, or type member that may span multiple versions.

FrameworkName

表示 .NET Framework 的版本的名称。Represents the name of a version of the .NET Framework.

ResourceConsumptionAttribute

指定由类成员使用的资源。Specifies the resource consumed by the member of a class. 此类不能被继承。This class cannot be inherited.

ResourceExposureAttribute

指定对类的成员公开的资源范围。Specifies the resource exposure for a member of a class. 此类不能被继承。This class cannot be inherited.

TargetFrameworkAttribute

标识某个特定程序集编译时针对 .NET Framework 的版本。Identifies the version of the .NET Framework that a particular assembly was compiled against.

VersioningHelper

提供方法以帮助开发人员编写版本安全的代码。Provides methods to aid developers in writing version-safe code. 此类不能被继承。This class cannot be inherited.

枚举

ComponentGuaranteesOptions

描述可以跨多个版本的组件、类型或类型成员的兼容性保证。Describes the compatibility guarantee of a component, type, or type member that may span multiple versions.

ResourceScope

标识可共享资源的范围。Identifies the scope of a sharable resource.

注解

此命名空间中找到的类型旨在用于在.NET Framework 中并不为用户应用程序。The types found in this namespace are intended for use within the .NET Framework and not for user applications.