System Namespace
Introduction
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.
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.
Using
To access types in the System namespace from C# code without having to provide fully qualified type names, include the adjoinging statement at the beginning of your source code file.
using System;
To access types in the System namespace from C++/CLI code without having to provide fully qualified type names, include the adjoining statement at the beginning of your source code file. In addition, you must compile with the /clr switch.
using namespace System;
Classes
-
AccessViolationExceptionThe exception that is thrown when there is an attempt to read or write protected memory.
[SerializableAttribute] [ComVisibleAttribute(true)] public class AccessViolationException : SystemException -
ActivationContextIdentifies the activation context for the current application. This class cannot be inherited.
[SerializableAttribute] [ComVisibleAttribute(false)] public sealed class ActivationContext : IDisposable, ISerializable -
ActivatorContains methods to create types of objects locally or remotely, or obtain references to existing remote objects. This class cannot be inherited.
[ClassInterfaceAttribute(ClassInterfaceType.None)] [ComVisibleAttribute(true)] public sealed class Activator : _Activator -
TimeZoneInfo.AdjustmentRuleProvides information about a time zone adjustment, such as the transition to and from daylight saving time.
[SerializableAttribute] [HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)] public sealed class AdjustmentRule : IEquatable<TimeZoneInfo.AdjustmentRule>, ISerializable, IDeserializationCallback -
AggregateExceptionRepresents one or more errors that occur during application execution.
[SerializableAttribute] public class AggregateException : Exception -
AppContextProvides members for setting and retrieving data about an application's context.
public static class AppContext -
STAThreadAttributeIndicates that the COM threading model for an application is single-threaded apartment (STA).
[AttributeUsageAttribute(AttributeTargets.Method)] [ComVisibleAttribute(true)] public sealed class STAThreadAttribute : Attribute -
StringRepresents text as a series of Unicode characters. To browse the .NET Framework source code for this type, see the Reference Source.
[SerializableAttribute] [ComVisibleAttribute(true)] public sealed class String : IComparable, ICloneable, IConvertible, IEnumerable, IComparable<string>, IEnumerable<char>, IEquatable<string> -
StringComparerRepresents a string comparison operation that uses specific case and culture-based or ordinal comparison rules.
[SerializableAttribute] [ComVisibleAttribute(true)] public abstract class StringComparer : IComparer, IEqualityComparer, IComparer<string>, IEqualityComparer<string>
Structures
-
ArgIteratorRepresents a variable-length argument list; that is, the parameters of a function that takes a variable number of arguments.
public struct ArgIterator -
ArraySegment<T>Delimits a section of a one-dimensional array.
[SerializableAttribute] public struct ArraySegment<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IReadOnlyList<T>, IReadOnlyCollection<T> -
BooleanRepresents a Boolean (
trueorfalse) value.[SerializableAttribute] [ComVisibleAttribute(true)] public struct Boolean : IComparable, IConvertible, IComparable<bool>, IEquatable<bool> -
ByteRepresents an 8-bit unsigned integer.
[SerializableAttribute] [ComVisibleAttribute(true)] public struct Byte : IComparable, IFormattable, IConvertible, IComparable<byte>, IEquatable<byte>
Interfaces
-
_AppDomainExposes the public members of the
System.AppDomainclass to unmanaged code.[[GuidAttribute("05F696DC-2B29-3663-AD8B-C4389CF2A713")] [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)] [CLSCompliantAttribute(false)] [ComVisibleAttribute(true)] public interface _AppDomain -
IAppDomainSetupRepresents assembly binding information that can be added to an instance of
AppDomain.[GuidAttribute("27FFF232-A7A8-40dd-8D4A-734AD59FCD41")] [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)] [ComVisibleAttribute(true)] public interface IAppDomainSetup -
IAsyncResultRepresents the status of an asynchronous operation.
[ComVisibleAttribute(true)] public interface IAsyncResult -
ICloneableSupports cloning, which creates a new instance of a class with the same value as an existing instance.
[ComVisibleAttribute(true)] public interface ICloneable -
IComparableDefines a generalized type-specific comparison method that a value type or class implements to order or sort its instances.
[ComVisibleAttribute(true)] public interface IComparable
Delegates
Enumerations
-
AppDomainManagerInitializationOptionsSummary
Specifies the action that a custom application domain manager takes when initializing a new domain.
Members
-
No initialization action.
-
Register the COM callable wrapper for the current AppDomainManager with the unmanaged host.
Declaration
[FlagsAttribute] [ComVisibleAttribute(true)] public enum AppDomainManagerInitializationOptionsRemarks
These flags are used for property settings in the
AppDomainManagerclass. TheAppDomainManagerInitializationOptionsflags apply only to custom application domain managers; they do not apply to the default manager. TheInitializeNewDomainmethod in the default application domain manager does nothing. The default enumeration value is None. -
-
AttributeTargets -
Base64FormattingOptions -
ConsoleColor -
ConsoleKey