System Namespace

System 命名空间包含用于定义常用值和引用数据类型、事件和事件处理程序、接口、特性以及处理异常的基础类和基类。 The System namespace contains fundamental classes and base classes that define commonly-used value and reference data types, events and event handlers, interfaces, attributes, and processing exceptions.

AccessViolationException

在试图读写受保护内存时引发的异常。The exception that is thrown when there is an attempt to read or write protected memory.

ActivationContext

标识当前应用程序的激活上下文。Identifies the activation context for the current application. 此类不能被继承。This class cannot be inherited.

Activator

包含特定的方法,用以在本地或从远程创建对象类型,或获取对现有远程对象的引用。Contains methods to create types of objects locally or remotely, or obtain references to existing remote objects. 此类不能被继承。This class cannot be inherited.

AggregateException

表示在应用程序执行期间发生的一个或多个错误。Represents one or more errors that occur during application execution.

AppContext

提供用于设置和检索应用程序上下文相关数据的成员。Provides members for setting and retrieving data about an application's context.

AppDomain

表示应用程序域,它是一个应用程序在其中执行的独立环境。Represents an application domain, which is an isolated environment where applications execute. 此类不能被继承。This class cannot be inherited.

AppDomainManager

提供非托管宿主的托管等效项。Provides a managed equivalent of an unmanaged host.

AppDomainSetup

表示可以添加到 AppDomain 的实例的程序集绑定信息。Represents assembly binding information that can be added to an instance of AppDomain.

AppDomainUnloadedException

当尝试访问已卸载的应用程序域时引发的异常。The exception that is thrown when an attempt is made to access an unloaded application domain.

ApplicationException

用作应用程序定义的异常的基类。Serves as the base class for application-defined exceptions.

ApplicationId

所含信息用于唯一标识基于清单的应用程序。Contains information used to uniquely identify a manifest-based application. 此类不能被继承。This class cannot be inherited.

ApplicationIdentity

提供唯一标识清单激活的应用程序的能力。Provides the ability to uniquely identify a manifest-activated application. 此类不能被继承。This class cannot be inherited.

ArgumentException

当向方法提供的参数之一无效时引发的异常。The exception that is thrown when one of the arguments provided to a method is not valid.

ArgumentNullException

当将 null 引用(Visual Basic 中为 Nothing)传递到不接受其作为有效参数的方法时引发的异常。The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

ArgumentOutOfRangeException

当参数值超出调用的方法所定义的允许取值范围时引发的异常。The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.

ArithmeticException

当算术、强制转换或转换操作发生错误时引发的异常。The exception that is thrown for errors in an arithmetic, casting, or conversion operation.

Array

提供一些方法,用于创建、处理、搜索数组并对数组进行排序,从而充当公共语言运行时中所有数组的基类。Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays in the common language runtime.

ArrayTypeMismatchException

当试图在数组中存储类型不正确的元素时引发的异常。The exception that is thrown when an attempt is made to store an element of the wrong type within an array.

AssemblyLoadEventArgs

AssemblyLoad 事件提供数据。Provides data for the AssemblyLoad event.

Attribute

表示自定义特性的基类。Represents the base class for custom attributes.

AttributeUsageAttribute

指定另一个属性类的用法。Specifies the usage of another attribute class. 此类不能被继承。This class cannot be inherited.

BadImageFormatException

当动态链接库 (DLL) 或可执行程序的文件映像无效时引发的异常。The exception that is thrown when the file image of a dynamic link library (DLL) or an executable program is invalid.

BitConverter

将基数据类型转换为一个字节数组以及将一个字节数组转换为基数据类型。Converts base data types to an array of bytes, and an array of bytes to base data types.

Buffer

操作基元类型的数组。Manipulates arrays of primitive types.

CannotUnloadAppDomainException

当尝试卸载应用程序域失败时引发的异常。The exception that is thrown when an attempt to unload an application domain fails.

CharEnumerator

支持循环访问 String 对象并读取其各个字符。Supports iterating over a String object and reading its individual characters. 此类不能被继承。This class cannot be inherited.

CLSCompliantAttribute

指示程序元素是否符合公共语言规范 (CLS)。Indicates whether a program element is compliant with the Common Language Specification (CLS). 此类不能被继承。This class cannot be inherited.

Console

表示控制台应用程序的标准输入流、输出流和错误流。Represents the standard input, output, and error streams for console applications. 此类不能被继承。This class cannot be inherited.

ConsoleCancelEventArgs

CancelKeyPress 事件提供数据。Provides data for the CancelKeyPress event. 此类不能被继承。This class cannot be inherited.

ContextBoundObject

定义所有上下文绑定类的基类。Defines the base class for all context-bound classes.

ContextMarshalException

在尝试跨上下文边界封送对象失败时引发的异常。The exception that is thrown when an attempt to marshal an object across a context boundary fails.

ContextStaticAttribute

指示某静态字段的值对于特定上下文是唯一的。Indicates that the value of a static field is unique for a particular context.

Convert

将一个基本数据类型转换为另一个基本数据类型。Converts a base data type to another base data type.

DataMisalignedException

当在某个地址读取或写入一个单元的数据,但该地址的数据大小不是该数据单元的整数倍时引发的异常。The exception that is thrown when a unit of data is read from or written to an address that is not a multiple of the data size. 此类不能被继承。This class cannot be inherited.

DBNull

表示不存在的值。Represents a nonexistent value. 此类不能被继承。This class cannot be inherited.

Delegate

表示委托,委托是一种数据结构,它引用静态方法或引用类实例及该类的实例方法。Represents a delegate, which is a data structure that refers to a static method or to a class instance and an instance method of that class.

DivideByZeroException

尝试将整数或 Decimal 值除以零时引发的异常。The exception that is thrown when there is an attempt to divide an integral or Decimal value by zero.

DllNotFoundException

当未找到在 DLL 导入中指定的 DLL 时所引发的异常。The exception that is thrown when a DLL specified in a DLL import cannot be found.

DuplicateWaitObjectException

当对象在同步对象数组中不止一次出现时引发的异常。The exception that is thrown when an object appears more than once in an array of synchronization objects.

EntryPointNotFoundException

因不存在项方法而导致加载类的尝试失败时引发的异常。The exception that is thrown when an attempt to load a class fails due to the absence of an entry method.

Enum

为枚举提供基类。Provides the base class for enumerations.

Environment

提供有关当前环境和平台的信息以及操作它们的方法。Provides information about, and means to manipulate, the current environment and platform. 此类不能被继承。This class cannot be inherited.

EventArgs

表示包含事件数据的类的基类,并提供要用于不包含事件数据的事件的值。Represents the base class for classes that contain event data, and provides a value to use for events that do not include event data.

Exception

表示在应用程序执行过程中发生的错误。Represents errors that occur during application execution.

ExecutionEngineException

当公共语言运行时的执行引擎中存在内部错误时引发的异常。The exception that is thrown when there is an internal error in the execution engine of the common language runtime. 此类不能被继承。This class cannot be inherited.

FieldAccessException

当试图非法访问类中的私有字段或受保护字段时引发的异常。The exception that is thrown when there is an invalid attempt to access a private or protected field inside a class.

FileStyleUriParser

基于 File 方案的可自定义分析器。A customizable parser based on the File scheme.

FlagsAttribute

指示可将枚举视为位域(即一组标志)。Indicates that an enumeration can be treated as a bit field; that is, a set of flags.

FormatException

当自变量的格式无效或复合格式字符串的格式不标准时引发的异常。The exception that is thrown when the format of an argument is invalid, or when a composite format string is not well formed.

FormattableString

表示复合格式字符串和要设置格式的参数。Represents a composite format string, along with the arguments to be formatted.

FtpStyleUriParser

基于文件传输协议 (FTP) 方案的可自定义分析器。A customizable parser based on the File Transfer Protocol (FTP) scheme.

GC

控制系统垃圾回收器(一种自动回收未使用内存的服务)。Controls the system garbage collector, a service that automatically reclaims unused memory.

GenericUriParser

用于分层 URI 的可自定义分析器。A customizable parser for a hierarchical URI.

GopherStyleUriParser

基于 Gopher 方案的可自定义分析器。A customizable parser based on the Gopher scheme.

HttpStyleUriParser

基于 HTTP 方案的可自定义分析器。A customizable parser based on the HTTP scheme.

IndexOutOfRangeException

试图访问索引超出界限的数组或集合的元素时引发的异常。The exception that is thrown when an attempt is made to access an element of an array or collection with an index that is outside its bounds.

InsufficientExecutionStackException

执行堆栈不足,大多数方法无法执行时所引发的异常。The exception that is thrown when there is insufficient execution stack available to allow most methods to execute.

InsufficientMemoryException

当检测到没有足够的可用内存时引发的异常。The exception that is thrown when a check for sufficient available memory fails. 此类不能被继承。This class cannot be inherited.

InvalidCastException

因无效类型转换或显式转换引发的异常。The exception that is thrown for invalid casting or explicit conversion.

InvalidOperationException

当方法调用对于对象的当前状态无效时引发的异常。The exception that is thrown when a method call is invalid for the object's current state.

InvalidProgramException

当程序包含无效的 Microsoft 中间语言 (MSIL) 或元数据时引发的异常。The exception that is thrown when a program contains invalid Microsoft intermediate language (MSIL) or metadata. 这通常表示生成程序的编译器中有 bug。Generally this indicates a bug in the compiler that generated the program.

InvalidTimeZoneException

时区信息无效时引发的异常。The exception that is thrown when time zone information is invalid.

Lazy<T>

提供对延迟初始化的支持。Provides support for lazy initialization.

Lazy<T,TMetadata>

提供对对象及其关联的元数据的延迟间接引用,以供 Managed Extensibility Framework 使用。Provides a lazy indirect reference to an object and its associated metadata for use by the Managed Extensibility Framework.

LdapStyleUriParser

基于 轻型目录访问协议 (LDAP) 方案的可自定义分析器。A customizable parser based on the Lightweight Directory Access Protocol (LDAP) scheme.

LoaderOptimizationAttribute

用于为可执行应用程序的主方法设置默认的加载程序优化策略。Used to set the default loader optimization policy for the main method of an executable application.

LocalDataStoreSlot

封装内存槽以存储本地数据。Encapsulates a memory slot to store local data. 此类不能被继承。This class cannot be inherited.

MarshalByRefObject

在支持远程处理的应用程序中,允许跨应用程序域边界访问对象。Enables access to objects across application domain boundaries in applications that support remoting.

Math

为三角函数、对数函数和其他通用数学函数提供常数和静态方法。Provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions.

MathF

为三角函数、对数函数和其他通用数学函数提供常数和静态方法。Provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions.

MemberAccessException

访问类成员的尝试失败时引发的异常。The exception that is thrown when an attempt to access a class member fails.

MemoryExtensions
MethodAccessException

存在想要访问某个方法(如访问部分可信代码中的私有方法)的无效尝试时,所引发的异常。The exception that is thrown when there is an invalid attempt to access a method, such as accessing a private method from partially trusted code.

MissingFieldException

试图动态访问不存在的字段时引发的异常。The exception that is thrown when there is an attempt to dynamically access a field that does not exist. 如果类库中的某个字段已被移除或重命名,请重新编译引用该库的所有程序集。If a field in a class library has been removed or renamed, recompile any assemblies that reference that library.

MissingMemberException

当尝试动态访问一个不存在或未声明为 public 的类成员时引发的异常。The exception that is thrown when there is an attempt to dynamically access a class member that does not exist or that is not declared as public. 如果类库中的某个成员已移除或重命名,请重新编译引用该库的所有程序集。If a member in a class library has been removed or renamed, recompile any assemblies that reference that library.

MissingMethodException

试图动态访问不存在的方法时引发的异常。The exception that is thrown when there is an attempt to dynamically access a method that does not exist.

MTAThreadAttribute

指示应用程序的 COM 线程模型为多线程单元 (MTA)。Indicates that the COM threading model for an application is multithreaded apartment (MTA).

MulticastDelegate

表示多路广播委托;即,其调用列表中可以拥有多个元素的委托。Represents a multicast delegate; that is, a delegate that can have more than one element in its invocation list.

MulticastNotSupportedException

尝试组合两个基于 Delegate 类型而非 MulticastDelegate 类型的委托时引发的异常。The exception that is thrown when there is an attempt to combine two delegates based on the Delegate type instead of the MulticastDelegate type. 此类不能被继承。This class cannot be inherited.

NetPipeStyleUriParser

基于“Indigo”系统的 NetPipe 方案的分析器。A parser based on the NetPipe scheme for the "Indigo" system.

NetTcpStyleUriParser

基于“Indigo”系统的 NetTcp 方案的分析器。A parser based on the NetTcp scheme for the "Indigo" system.

NewsStyleUriParser

基于使用网络新闻传输协议 (NNTP) 的新闻方案的可自定义分析器。A customizable parser based on the news scheme using the Network News Transfer Protocol (NNTP).

NonSerializedAttribute

指示可序列化类的某个字段不应被序列化。Indicates that a field of a serializable class should not be serialized. 此类不能被继承。This class cannot be inherited.

NotFiniteNumberException

当浮点值为正无穷大、负无穷大或非数字 (NaN) 时引发的异常。The exception that is thrown when a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN).

NotImplementedException

在无法实现请求的方法或操作时引发的异常。The exception that is thrown when a requested method or operation is not implemented.

NotSupportedException

当调用的方法不受支持,或试图读取、查找或写入不支持调用功能的流时引发的异常。The exception that is thrown when an invoked method is not supported, or when there is an attempt to read, seek, or write to a stream that does not support the invoked functionality.

Nullable

支持可分配有 null 的值类型。Supports a value type that can be assigned null. 此类不能被继承。This class cannot be inherited.

NullReferenceException

尝试取消引用空对象引用时引发的异常。The exception that is thrown when there is an attempt to dereference a null object reference.

Object

支持.NET 类层次结构中的所有类,并提供低级别服务添加到派生类。Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. 这是所有.NET 类; 的最基本基类它是类型层次结构的根。This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

ObjectDisposedException

对已释放的对象执行操作时所引发的异常。The exception that is thrown when an operation is performed on a disposed object.

ObsoleteAttribute

标记不再使用的程序元素。Marks the program elements that are no longer in use. 此类不能被继承。This class cannot be inherited.

OperatingSystem

表示有关操作系统的信息,如版本和平台标识符。Represents information about an operating system, such as the version and platform identifier. 此类不能被继承。This class cannot be inherited.

OperationCanceledException

取消线程正在执行的操作时在线程中引发的异常。The exception that is thrown in a thread upon cancellation of an operation that the thread was executing.

OutOfMemoryException

没有足够的内存继续执行程序时引发的异常。The exception that is thrown when there is not enough memory to continue the execution of a program.

OverflowException

在选中的上下文中所进行的算术运算、类型转换或转换操作导致溢出时引发的异常。The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an overflow.

ParamArrayAttribute

指示方法在调用中将允许参数的数目可变。Indicates that a method will allow a variable number of arguments in its invocation. 此类不能被继承。This class cannot be inherited.

PlatformNotSupportedException

当功能未在特定平台上运行时所引发的异常。The exception that is thrown when a feature does not run on a particular platform.

Progress<T>

提供调用每个报告进度的值的回调的 IProgress<T>Provides an IProgress<T> that invokes callbacks for each reported progress value.

Random

表示伪随机数生成器,这是一种能够产生满足某些随机性统计需求的数字序列的设备。Represents a pseudo-random number generator, which is a device that produces a sequence of numbers that meet certain statistical requirements for randomness.

RankException

将维数错误的数组传递给方法时引发的异常。The exception that is thrown when an array with the wrong number of dimensions is passed to a method.

ResolveEventArgs

为加载程序解析事件(如 TypeResolveResourceResolveReflectionOnlyAssemblyResolveAssemblyResolve 事件)提供数据。Provides data for loader resolution events, such as the TypeResolve, ResourceResolve, ReflectionOnlyAssemblyResolve, and AssemblyResolve events.

SerializableAttribute

指示一个类可以序列化。Indicates that a class can be serialized. 此类不能被继承。This class cannot be inherited.

StackOverflowException

因包含的嵌套方法调用过多而导致执行堆栈溢出时引发的异常。The exception that is thrown when the execution stack overflows because it contains too many nested method calls. 此类不能被继承。This class cannot be inherited.

STAThreadAttribute

指示应用程序的 COM 线程模型是单线程单元 (STA)。Indicates that the COM threading model for an application is single-threaded apartment (STA).

String

将文本表示为 UTF-16 代码单元的序列。Represents text as a sequence of UTF-16 code units.

StringComparer

表示一种字符串比较操作,该操作使用特定的大小写以及基于区域性的比较规则或序号比较规则。Represents a string comparison operation that uses specific case and culture-based or ordinal comparison rules.

StringNormalizationExtensions

提供用于字符串规范化的扩展方法。Provides extension methods to work with string normalization.

SystemException

用作系统异常命名空间的基类。Serves as the base class for system exceptions namespace.

ThreadStaticAttribute

指示各线程的静态字段值是否唯一。Indicates that the value of a static field is unique for each thread.

TimeoutException

当为进程或操作分配的时间已过期时引发的异常。The exception that is thrown when the time allotted for a process or operation has expired.

TimeZone

表示时区。Represents a time zone.

TimeZoneInfo

表示世界上的任何时区。Represents any time zone in the world.

TimeZoneInfo.AdjustmentRule

提供有关时区调整(如与夏时制之间的转换)的信息。Provides information about a time zone adjustment, such as the transition to and from daylight saving time.

TimeZoneNotFoundException

找不到时区时引发的异常。The exception that is thrown when a time zone cannot be found.

Tuple

提供用于创建元组对象的静态方法。Provides static methods for creating tuple objects.

Tuple<T1>

表示 1 元组,即单一实例。Represents a 1-tuple, or singleton.

Tuple<T1,T2>

表示 2 元组,即二元组。Represents a 2-tuple, or pair.

Tuple<T1,T2,T3>

表示 3 元组,即三元组。Represents a 3-tuple, or triple.

Tuple<T1,T2,T3,T4>

表示 4 元组,即四元组。Represents a 4-tuple, or quadruple.

Tuple<T1,T2,T3,T4,T5>

表示 5 元组,即五元组。Represents a 5-tuple, or quintuple.

Tuple<T1,T2,T3,T4,T5,T6>

表示 6 元组,即六元组。Represents a 6-tuple, or sextuple.

Tuple<T1,T2,T3,T4,T5,T6,T7>

表示 7 元组,即七元组。Represents a 7-tuple, or septuple.

Tuple<T1,T2,T3,T4,T5,T6,T7,TRest>

表示 n 元组,n 为 8 或更大值。Represents an n-tuple, where n is 8 or greater.

TupleExtensions

提供元组用于与 C# 中的元组的语言支持进行互操作的扩展方法。Provides extension methods for tuples to interoperate with language support for tuples in C#.

Type

表示类型声明:类类型、接口类型、数组类型、值类型、枚举类型、类型参数、泛型类型定义,以及开放或封闭构造的泛型类型。Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.

TypeAccessException

当方法试图使用它无权访问的类型时引发的异常。The exception that is thrown when a method attempts to use a type that it does not have access to.

TypeInitializationException

作为类初始值设定项引发的异常的包装器而引发的异常。The exception that is thrown as a wrapper around the exception thrown by the class initializer. 此类不能被继承。This class cannot be inherited.

TypeLoadException

类型加载失败发生时引发的异常。The exception that is thrown when type-loading failures occur.

TypeUnloadedException

尝试访问已卸载的类时所引发的异常。The exception that is thrown when there is an attempt to access an unloaded class.

UnauthorizedAccessException

当操作系统因 I/O 错误或指定类型的安全错误而拒绝访问时所引发的异常。The exception that is thrown when the operating system denies access because of an I/O error or a specific type of security error.

UnhandledExceptionEventArgs

为以下情况下引发的事件提供数据:存在一个不是在任何应用程序域中处理的异常。Provides data for the event that is raised when there is an exception that is not handled in any application domain.

Uri

提供统一资源标识符 (URI) 的对象表示形式和对 URI 各部分的轻松访问。Provides an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI.

UriBuilder

为统一资源标识符 (URI) 提供自定义构造函数,并修改 Uri 类的 URI。Provides a custom constructor for uniform resource identifiers (URIs) and modifies URIs for the Uri class.

UriFormatException

当检测到无效的统一资源标识符 (URI) 时引发的异常。The exception that is thrown when an invalid Uniform Resource Identifier (URI) is detected.

UriParser

分析新的 URI 方案。Parses a new URI scheme. 这是一个抽象类。This is an abstract class.

UriTemplate

一个表示统一资源标识符 (URI) 模板的类。A class that represents a Uniform Resource Identifier (URI) template.

UriTemplateEquivalenceComparer

一个用于比较 UriTemplate 实例以确定结构(而非引用)等效性的类。A class used to compare UriTemplate instances for structural (instead of reference) equivalence.

UriTemplateMatch

一个类,表示对 UriTemplate 实例执行匹配操作的结果。A class that represents the results of a match operation on a UriTemplate instance.

UriTemplateMatchException

表示将 UriUriTemplateTable 匹配时发生的错误。Represents an error when matching a Uri to a UriTemplateTable.

UriTemplateTable

一个表示一组关联 UriTemplate 对象的类。A class that represents an associative set of UriTemplate objects.

UriTypeConverter

String 类型转换为 Uri 类型,反之亦然。Converts a String type to a Uri type, and vice versa.

ValueType

提供值类型的基类。Provides the base class for value types.

Version

表示程序集、操作系统或公共语言运行时的版本号。Represents the version number of an assembly, operating system, or the common language runtime. 此类不能被继承。This class cannot be inherited.

WeakReference

表示弱引用,即在引用对象的同时仍然允许垃圾回收来回收该对象。Represents a weak reference, which references an object while still allowing that object to be reclaimed by garbage collection.

WeakReference<T>

表示类型化弱引用,即在引用对象的同时仍然允许垃圾回收来回收该对象。Represents a typed weak reference, which references an object while still allowing that object to be reclaimed by garbage collection.

WindowsRuntimeSystemExtensions

为在任务和 Windows 运行时异步操作之间转换提供扩展方法。Provides extension methods for converting between tasks and Windows Runtime asynchronous actions and operations.

结构

ArgIterator

表示变长参数列表;即采用可变数量的参数的函数的参数。Represents a variable-length argument list; that is, the parameters of a function that takes a variable number of arguments.

ArraySegment<T>.Enumerator
ArraySegment<T>

分隔一维数组的一部分。Delimits a section of a one-dimensional array.

Boolean

表示一个布尔(truefalse)值。Represents a Boolean (true or false) value.

Byte

表示一个 8 位无符号整数。Represents an 8-bit unsigned integer.

Char

将字符表示为 UTF-16 代码单位。Represents a character as a UTF-16 code unit.

ConsoleKeyInfo

描述按下的控制台键,包括控制台键表示的字符以及 Shift、Alt 和 Ctrl 修改键的状态。Describes the console key that was pressed, including the character represented by the console key and the state of the SHIFT, ALT, and CTRL modifier keys.

DateTime

表示时间上的一刻,通常以日期和当天的时间表示。Represents an instant in time, typically expressed as a date and time of day.

DateTimeOffset

表示一个时间点,通常以相对于协调世界时 (UTC) 的日期和时间来表示。Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Universal Time (UTC).

Decimal

表示十进制浮点数。Represents a decimal floating-point number.

Double

表示一个双精度浮点数。Represents a double-precision floating-point number.

Guid

表示全局唯一标识符 (GUID)。Represents a globally unique identifier (GUID).

HashCode

将多个值的哈希代码合并为一个哈希代码。Combines the hash code for multiple values into a single hash code.

Index
Int16

表示 16 位有符号整数。Represents a 16-bit signed integer.

Int32

表示 32 位带符号整数。Represents a 32-bit signed integer.

Int64

表示 64 位有符号整数。Represents a 64-bit signed integer.

IntPtr

用于表示指针或句柄的平台特定类型。A platform-specific type that is used to represent a pointer or a handle.

Memory<T>

表示连续内存区域。Represents a contiguous region of memory.

ModuleHandle

表示模块的运行时句柄。Represents a runtime handle for a module.

Nullable<T>

表示可分配有 null 的值类型。Represents a value type that can be assigned null.

Range
Range.OffsetAndLength
ReadOnlyMemory<T>
ReadOnlySpan<T>.Enumerator

ReadOnlySpan<T> 的元素提供枚举器。Provides an enumerator for the elements of a ReadOnlySpan<T>.

ReadOnlySpan<T>

提供任意内存的连续区域的类型安全和内存安全只读表示。Provides a type-safe and memory-safe read-only representation of a contiguous region of arbitrary memory.

RuntimeArgumentHandle

引用变长参数列表。References a variable-length argument list.

RuntimeFieldHandle

使用内部元数据标记表示一个字段。Represents a field using an internal metadata token.

RuntimeMethodHandle

RuntimeMethodHandle 是方法的内部元数据表示形式的句柄。RuntimeMethodHandle is a handle to the internal metadata representation of a method.

RuntimeTypeHandle

表示使用内部元数据标记的类型。Represents a type using an internal metadata token.

SByte

表示 8 位有符号整数。Represents an 8-bit signed integer.

SequencePosition
Single

表示一个单精度浮点数。Represents a single-precision floating-point number.

Span<T>.Enumerator

Span<T> 的元素提供枚举器。Provides an enumerator for the elements of a Span<T>.

Span<T>

提供任意内存的连续区域的类型和内存安全表示。Provides a type- and memory-safe representation of a contiguous region of arbitrary memory.

TimeSpan

表示一个时间间隔。Represents a time interval.

TimeZoneInfo.TransitionTime

提供有关特定时区中特定时间更改(例如从夏时制更改为标准时间,或者从标准时间更改为夏时制)的信息。Provides information about a specific time change, such as the change from daylight saving time to standard time or vice versa, in a particular time zone.

TypedReference

描述既包含指向某位置的托管指针,也包含该位置可能存储的类型的运行时表示形式的对象。Describes objects that contain both a managed pointer to a location and a runtime representation of the type that may be stored at that location.

UInt16

表示 16 位无符号整数。Represents a 16-bit unsigned integer.

UInt32

表示 32 位无符号整数。Represents a 32-bit unsigned integer.

UInt64

表示 64 位无符号整数。Represents a 64-bit unsigned integer.

UIntPtr

用于表示指针或句柄的平台特定类型。A platform-specific type that is used to represent a pointer or a handle.

ValueTuple

提供用于创建值元组的静态方法。Provides static methods for creating value tuples.

ValueTuple<T1>

表示具有单个组件的值元组。Represents a value tuple with a single component.

ValueTuple<T1,T2>

表示含有 2 个组件的值元组。Represents a value tuple with 2 components.

ValueTuple<T1,T2,T3>

表示含有 3 个组件的值元组。Represents a value tuple with 3 components.

ValueTuple<T1,T2,T3,T4>

表示含有 4 个组件的值元组。Represents a value tuple with 4 components.

ValueTuple<T1,T2,T3,T4,T5>

表示含有 5 个组件的值元组。Represents a value tuple with 5 components.

ValueTuple<T1,T2,T3,T4,T5,T6>

表示含有 6 个组件的值元组。Represents a value tuple with 6 components.

ValueTuple<T1,T2,T3,T4,T5,T6,T7>

表示含有 7 个组件的值元组。Represents a value tuple with 7 components.

ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>

表示 n 值元组,其中 n 为 8 更大值。Represents an n-value tuple, where n is 8 or greater.

Void

为不返回值的方法指定返回值类型。Specifies a return value type for a method that does not return a value.

接口

_AppDomain

向非托管代码公开 AppDomain 类的公共成员。Exposes the public members of the AppDomain class to unmanaged code.

IAppDomainSetup

表示可以添加到 AppDomain 的实例的程序集绑定信息。Represents assembly binding information that can be added to an instance of AppDomain.

IAsyncDisposable
IAsyncResult

表示异步操作的状态。Represents the status of an asynchronous operation.

ICloneable

支持克隆,即用与现有实例相同的值创建类的新实例。Supports cloning, which creates a new instance of a class with the same value as an existing instance.

IComparable

定义由值类型或类实现的特定于类型的通用比较方法,旨在对其实例进行排序。Defines a generalized type-specific comparison method that a value type or class implements to order or sort its instances.

IComparable<T>

定义由值类型或类实现的通用比较方法,旨在创建特定于类型的比较方法以对实例进行排序。Defines a generalized comparison method that a value type or class implements to create a type-specific comparison method for ordering or sorting its instances.

IConvertible

定义将实现引用或值类型的值转换为具有等效值的公共语言运行时类型的方法。Defines methods that convert the value of the implementing reference or value type to a common language runtime type that has an equivalent value.

ICustomFormatter

定义一种方法,它支持自定义设置对象的值的格式。Defines a method that supports custom formatting of the value of an object.

IDisposable

提供一种用于释放非托管资源的机制。Provides a mechanism for releasing unmanaged resources.

IEquatable<T>

定义由值类型或类实现的通用方法,旨在创建特定于类型的方法以确定实例的质量。Defines a generalized method that a value type or class implements to create a type-specific method for determining equality of instances.

IFormatProvider

提供用于检索控制格式化的对象的机制。Provides a mechanism for retrieving an object to control formatting.

IFormattable

提供一种功能,用以将对象的值格式化为字符串表示形式。Provides functionality to format the value of an object into a string representation.

IObservable<T>

定义基于推送的通知的提供程序。Defines a provider for push-based notification.

IObserver<T>

提供用于接收基于推送的通知的机制。Provides a mechanism for receiving push-based notifications.

IProgress<T>

定义进度更新的提供程序。Defines a provider for progress updates.

IServiceProvider

定义一种检索服务对象的机制,服务对象是为其他对象提供自定义支持的对象。Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.

枚举

ActivationContext.ContextForm

指示清单激活的应用程序的上下文。Indicates the context for a manifest-activated application.

AppDomainManagerInitializationOptions

指定在初始化一个新域时自定义应用程序域管理器应采取的操作。Specifies the action that a custom application domain manager takes when initializing a new domain.

AttributeTargets

指定可应用属性的应用程序元素。Specifies the application elements on which it is valid to apply an attribute.

Base64FormattingOptions

指定相关的 ToBase64CharArrayToBase64String 方法是否在其输出中插入分行符。Specifies whether relevant ToBase64CharArray and ToBase64String methods insert line breaks in their output.

ConsoleColor

指定定义控制台前景色和背景色的常数。Specifies constants that define foreground and background colors for the console.

ConsoleKey

指定控制台上的标准键。Specifies the standard keys on a console.

ConsoleModifiers

表示键盘上的 Shift、Alt 和 Ctrl 修改键。Represents the SHIFT, ALT, and CTRL modifier keys on a keyboard.

ConsoleSpecialKey

指定能够中断当前进程的修改键和控制台键的组合。Specifies combinations of modifier and console keys that can interrupt the current process.

DateTimeKind

指定 DateTime 对象是表示本地时间、协调通用时间 (UTC),还是既不指定为本地时间,也不指定为 UTC。Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC.

DayOfWeek

指定一周的某天。Specifies the day of the week.

Environment.SpecialFolder

指定用于检索系统特殊文件夹的目录路径的枚举常数。Specifies enumerated constants used to retrieve directory paths to system special folders.

Environment.SpecialFolderOption

指定用于获取特殊文件夹路径的选项。Specifies options to use for getting the path to a special folder.

EnvironmentVariableTarget

指定在 Set 或 Get 操作中存储或检索环境变量的位置。Specifies the location where an environment variable is stored or retrieved in a set or get operation.

GCCollectionMode

指定强制垃圾回收的行为。Specifies the behavior for a forced garbage collection.

GCNotificationStatus

提供相关信息,介绍下一次完整垃圾回收通知的当前注册。Provides information about the current registration for notification of the next full garbage collection.

GenericUriParserOptions

指定 UriParser 的选项。Specifies options for a UriParser.

LoaderOptimization

一个枚举,它与 LoaderOptimizationAttribute 类一起使用为可执行文件指定加载程序优化。An enumeration used with the LoaderOptimizationAttribute class to specify loader optimizations for an executable.

MidpointRounding

指定数学舍入方法应如何处理两个数字间的中间值。Specifies how mathematical rounding methods should process a number that is midway between two numbers.

PlatformID

标识程序集所支持的操作系统(或平台)。Identifies the operating system, or platform, supported by an assembly.

StringComparison

指定供 Compare(String, String)Equals(Object) 方法的特定重载使用的区域性、大小写和排序规则。Specifies the culture, case, and sort rules to be used by certain overloads of the Compare(String, String) and Equals(Object) methods.

StringSplitOptions

指定适用的 Split 方法重载包含还是省略返回值中的空子字符串。Specifies whether applicable Split method overloads include or omit empty substrings from the return value.

TypeCode

指定对象的类型。Specifies the type of an object.

UriComponents

指定 Uri 的各个部分。Specifies the parts of a Uri.

UriFormat

控制 URI 信息的转义方式。Controls how URI information is escaped.

UriHostNameType

CheckHostName(String) 方法定义主机名类型。Defines host name types for the CheckHostName(String) method.

UriIdnScope

提供 IdnElement 命名空间中的 System.Configuration 的配置设置的可能值。Provides the possible values for the configuration setting of the IdnElement in the System.Configuration namespace.

UriKind

定义不同类型的 URI。Defines the different kinds of URIs.

UriPartial

GetLeftPart(UriPartial) 方法定义 URI 的各部分。Defines the parts of a URI for the GetLeftPart(UriPartial) method.

委托

Action

封装一个方法,该方法不具有参数并且不返回值。Encapsulates a method that has no parameters and does not return a value.

Action<T>

封装一个方法,该方法只有一个参数并且不返回值。Encapsulates a method that has a single parameter and does not return a value.

Action<T1,T2>

封装一个方法,该方法具有两个参数且不返回值。Encapsulates a method that has two parameters and does not return a value.

Action<T1,T2,T3>

封装一个方法,该方法具有三个参数并且不返回值。Encapsulates a method that has three parameters and does not return a value.

Action<T1,T2,T3,T4>

封装一个方法,该方法具有四个参数且不返回值。Encapsulates a method that has four parameters and does not return a value.

Action<T1,T2,T3,T4,T5>

封装一个方法,该方法具有五个参数并且不返回值。Encapsulates a method that has five parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6>

封装一个方法,该方法具有六个参数并且不返回值。Encapsulates a method that has six parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6,T7>

封装一个方法,该方法具有七个参数并且不返回值。Encapsulates a method that has seven parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6,T7,T8>

封装一个方法,该方法具有八个参数并且不返回值。Encapsulates a method that has eight parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9>

封装一个方法,该方法具有九个参数并且不返回值。Encapsulates a method that has nine parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>

封装一个方法,该方法具有 10 个参数并且不返回值。Encapsulates a method that has 10 parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>

封装一个方法,该方法具有 11 个参数并且不返回值。Encapsulates a method that has 11 parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>

封装一个方法,该方法具有 12 个参数并且不返回值。Encapsulates a method that has 12 parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>

封装一个方法,该方法具有 13 个参数并且不返回值。Encapsulates a method that has 13 parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>

封装一个方法,该方法具有 14 个参数并且不返回值。Encapsulates a method that has 14 parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>

封装一个方法,该方法具有 15 个参数并且不返回值。Encapsulates a method that has 15 parameters and does not return a value.

Action<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>

封装一个方法,该方法具有 16 个参数并且不返回值。Encapsulates a method that has 16 parameters and does not return a value.

AppDomainInitializer

表示在应用程序域初始化时要调用的回调方法。Represents the callback method to invoke when the application domain is initialized.

AssemblyLoadEventHandler

表示处理 AppDomainAssemblyLoad 事件的方法。Represents the method that handles the AssemblyLoad event of an AppDomain.

AsyncCallback

引用在相应异步操作完成时调用的方法。References a method to be called when a corresponding asynchronous operation completes.

Comparison<T>

表示比较同一类型的两个对象的方法。Represents the method that compares two objects of the same type.

ConsoleCancelEventHandler

表示将用来处理 CancelKeyPressConsole 事件的方法。Represents the method that will handle the CancelKeyPress event of a Console.

Converter<TInput,TOutput>

表示将对象从一种类型转换为另一种类型的方法。Represents a method that converts an object from one type to another type.

CrossAppDomainDelegate

DoCallBack(CrossAppDomainDelegate) 使用,用于跨应用程序域的调用。Used by DoCallBack(CrossAppDomainDelegate) for cross-application domain calls.

EventHandler

表示将处理不包含事件数据的事件的方法。Represents the method that will handle an event that has no event data.

EventHandler<TEventArgs>

表示将在事件提供数据时处理该事件的方法。Represents the method that will handle an event when the event provides data.

Func<TResult>

封装一个不具有参数但却返回 TResult 参数指定的类型值的方法。Encapsulates a method that has no parameters and returns a value of the type specified by the TResult parameter.

Func<T,TResult>

封装一个具有一个参数并返回 TResult 参数指定的类型值的方法。Encapsulates a method that has one parameter and returns a value of the type specified by the TResult parameter.

Func<T1,T2,TResult>

封装一个具有两个参数并返回 TResult 参数指定的类型值的方法。Encapsulates a method that has two parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,TResult>

封装一个具有三个参数并返回 TResult 参数指定的类型值的方法。Encapsulates a method that has three parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,TResult>

封装一个具有四个参数并返回 TResult 参数指定的类型值的方法。Encapsulates a method that has four parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,TResult>

封装一个方法,该方法具有五个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has five parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,TResult>

封装一个方法,该方法有六个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has six parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,T7,TResult>

封装一个函数,该方法具有三个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has seven parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult>

封装一个方法,该方法具有八个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has eight parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>

封装一个方法,该方法具有九个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has nine parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>

封装一个方法,该方法具有 10 个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has 10 parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TResult>

封装一个方法,该方法具有 11 个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has 11 parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,TResult>

封装一个方法,该方法具有 12 个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has 12 parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,TResult>

封装一个方法,该方法具有 13 个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has 13 parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,TResult>

封装一个方法,该方法具有 14 个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has 14 parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,TResult>

封装一个方法,该方法具有 15 个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has 15 parameters and returns a value of the type specified by the TResult parameter.

Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,TResult>

封装一个方法,该方法具有 16 个参数,并返回 TResult 参数所指定的类型的值。Encapsulates a method that has 16 parameters and returns a value of the type specified by the TResult parameter.

Predicate<T>

表示定义一组条件并确定指定对象是否符合这些条件的方法。Represents the method that defines a set of criteria and determines whether the specified object meets those criteria.

ResolveEventHandler

表示处理 TypeResolveResourceResolveAssemblyResolveAppDomain 事件的方法。Represents a method that handles the TypeResolve, ResourceResolve, or AssemblyResolve event of an AppDomain.

UnhandledExceptionEventHandler

表示将处理事件的方法,该事件由应用程序域不处理的异常引发。Represents the method that will handle the event raised by an exception that is not handled by the application domain.

注解

其他类提供的服务支持的数据类型转换、 方法参数操作、 数学、 远程和本地程序调用,应用程序环境管理和监督的托管和非托管应用程序。Other classes provide services supporting data type conversion, method parameter manipulation, mathematics, remote and local program invocation, application environment management, and supervision of managed and unmanaged applications.

中的访问类型到System通过 C# 代码而无需提供完全限定的类型名的命名空间包括using System;源代码文件的开头的语句。To access types in the System namespace from C# code without having to provide fully qualified type names, include the using System; statement at the beginning of your source code file.

中的访问类型System命名空间从 C + + /cli 代码而无需提供完全限定的类型名,包括using namespace System;源代码文件的开头的语句。To access types in the System namespace from C++/CLI code without having to provide fully qualified type names, include the using namespace System; statement at the beginning of your source code file. 此外,还必须与编译/clr切换。In addition, you must compile with the /clr switch.