The. NET Framework class library is a library composed of classes, interfaces, and value types in the Microsoft. NET Framework SDK. This library provides access to system functions and serves as the basis for creating. NET Framework applications, components, and controls.
All classes of the DotNet FrameWork are included in the namespace.
Namespace
The. NET Framework Class Library provides the following namespaces:
▲Microsoft. CSharp
Contains classes that support C # compilation and code generation.
▲Microsoft. JScript
Classes that support JScript compilation and code generation.
▲Microsoft. VisualBasic
Classes that support compiling and code generation using Visual Basic. NET.
▲Microsoft. Vsa
Contains interfaces that enable you to integrate. NET Framework Script Engine scripts into applications and compile and execute code at runtime.
▲Microsoft. Win32
There are two types of classes: the class for processing events caused by the operating system and the class for operating the system registry.
▲System
Contains the basic classes and basic classes used to define common values and reference data types, events and event handlers, interfaces, properties, and handle exceptions.
Other types provide services that support the following operations: data type conversion, method parameter operations, mathematical computing, remote and local program calls, application environment management, and supervision over hosted and unmanaged applications.
▲System. CodeDom
Contains classes that can be used to represent elements and structures of source code documents. These elements can be used to create the structure of the source code document. By using the functions provided by the ▲ System. CodeDom. Compiler namespace, You can output source code documents as source code written in Supported languages.
▲System. CodeDom. Compiler
Contains types used to manage source code generation and compilation in supported programming languages. Each code generator can be based on the structure of the source code model of the "Code Document Object Model" (CodeDOM) (by ▲ System. the elements provided by The CodeDom namespace). The source code is generated using a specific programming language.
▲System. Collections
Contains interfaces and classes that define various object sets (such as lists, queues, bit arrays, hash tables, and dictionaries.
▲System. Collections. Specialized
Contains special strong-type collections, such as chain table dictionaries, bit vectors, and collections that only contain strings.
▲System. ComponentModel
Provides classes for implementing runtime and design-time behavior of components and controls. This namespace includes the basic classes and interfaces used for Attribute and type converter implementation, data source binding, and component authorization.
▲System. ComponentModel. Design
Class that can be used by developers to generate component behavior during custom design and user interface configuration during design. The design environment provides a system that allows developers to arrange components and configure their attributes.
▲System. ComponentModel. Design. Serialization
Supports customizing and controlling serialization types at design time.
▲System. Configuration
Provides classes and interfaces that allow you to programmatically access. NET Framework configuration settings and handle errors in the configuration file (. config file.
▲System. Configuration. Assemblies
Contains classes used to configure the assembly.
▲System. Configuration. Install
Provides a class that allows you to write custom installers for your components. The Installer class is the base class of all custom installers in. NET Framework.
▲System. Data
It is basically composed of classes that constitute the ADO. NET structure. The ADO. NET structure allows you to generate components that can be used to effectively manage data in multiple data sources. In the disconnected Scheme (such as the Internet), ADO. NET provides some tools to request, update, and coordinate data in a multi-tier system. The ADO. NET structure can also be implemented in client applications (such as Windows Forms) or HTML pages created by ASP. NET.
▲System. Data. Common
Contains classes shared by. NET Framework data providers .. NET Framework data provider describes a set of classes used to access data sources (such as databases) in a hosted space.
▲System. Data. Odbc
Encapsulate the ODBC. NET Framework data provider .. NET Framework data provider describes a set of classes used to access data sources (such as databases) in a hosted space. You can use the OdbcDataAdapter class to populate the DataSet residing in the memory and use it to query and update data sources.
For more information about how to use this namespace, see OdbcDataReader, OdbcCommand, and OdbcConnection.
Note: This namespace is only supported in. NET Framework 1.1.
▲System. Data. OleDb
Encapsulate the ole db. NET Framework data provider. The ole db. NET Framework data provider describes a collection of classes used to access the ole db data source in a hosted space.
▲System. Data. OracleClient
Encapsulate the Oracle. NET Framework data provider. The Oracle. NET Framework data provider describes a collection of classes used to access Oracle data sources in a hosted space.
Note: This namespace is only supported in. NET Framework 1.1.
▲System. Data. SqlClient
Encapsulate the SQL Server. NET Framework data provider. The SQL Server. NET Framework data provider describes a set of classes used to access the SQL Server database in a hosted space.
▲System. Data. SqlServerCE
Describes a set of classes that can be used to access the database in SQL Server CE from a Windows CE-based device in a hosted environment. This namespace allows you to create an SQL Server CE database on one device and establish a connection with an SQL Server database on another device or remote Server.
Note: This namespace is only supported in. NET Framework 1.1.
▲System. Data. SqlTypes
Provides a class for the local data type in SQL Server. These classes provide a safer and faster alternative to other data types. Using classes in this namespace helps prevent type conversion errors that may result in loss of precision. Because other data types and SqlTypes are converted to each other in the background, explicit creation and use of objects in this namespace also produce fast code.
▲System. Diagnostics
Provides classes that allow interaction with system processes, event logs, and performance counters. This namespace also provides classes that enable you to debug applications and trace code execution. For more information, see Trace and Debug.
▲System. Diagnostics. SymbolStore
Provides classes that enable you to read and write debugging symbolic information (such as source lines mapped to Microsoft intermediate language (MSIL. The. NET Framework-oriented compiler can store the debugging symbol information to the programmer's database (PDB) file. The debugger and code analyzer tool can read debugging symbol information at runtime.
▲System. DirectoryServices
Provides methods to easily access Active Directory from managed code. This namespace contains two component classes: DirectoryEntry and DirectorySearcher. These two classes use the Active Directory Service Interface (ADSI) technology. ADSI is a set of interfaces provided by Microsoft and a tool that can flexibly process various network providers. ADSI allows administrators to easily search for and manage network resources, regardless of the network size.
▲System. Drawing
Provides access to the basic graphic functions of GDI +. ▲System. Drawing. Drawing2D, ▲system. Drawing. Imaging, and ▲system. Drawing. Text Namespaces provide more advanced functions.
▲System. Drawing. Design
Contains the user interface (UI) logic and drawn class during the extended design. This design-time function can be further extended to create the following objects: Custom toolbox items, value editors of specific types, and Type converters, the type-specific value editor is used to edit and graphically represent supported types of values. The type converter is used to convert values between specific types. This namespace provides a basic framework for user interface extension during development and design.
▲System. Drawing. Drawing2D
Provides advanced 2D and vector graphics Functions. This namespace includes gradient paint brushes, Matrix classes (used to define geometric conversions), and GraphicsPath classes.
▲System. Drawing. Imaging
Provides advanced GDI + image processing functions. The basic graphics function is provided by the ▲ System. Drawing namespace.
▲System. Drawing. Printing
Provides print-related services. Generally, you can create an instance of the PrintDocument class, set attributes that describe the printed content, and call the Print method to actually Print the document.
▲System. Drawing. Text
Provides advanced GDI + layout functions. The basic graphics function is provided by the ▲ System. Drawing namespace. Classes in this namespace allow you to create and use a font set.
▲System. EnterpriseServices
Provides an important infrastructure for enterprise applications. COM + provides a service structure for the component programming model deployed in an enterprise-level environment. This namespace provides access to the COM + service for. NET Framework objects, so that. NET Framework objects are more suitable for enterprise-level applications.
▲System. EnterpriseServices. CompensatingResourceManager
Provides classes that enable you to use compensation Resource Manager (CRM) in managed code. CRM is a service provided by COM +. It allows you to include non-transactional objects in Microsoft Distributed Transaction Processing Coordinator (DTC) transactions. While CRM does not provide full resource manager functionality, they provide transactional atomicity (full or full Act) and durability by restoring logs.
▲System. EnterpriseServices. Internal
Supports the basic structure of the COM + service. Classes and interfaces in this namespace are specifically used to support the transfer from an unmanaged COM + class to ▲ System. EnterpriseServices.
▲System. Globalization
A class that defines information about a region. The information includes the language, country, calendar in use, date format, currency, number, and string sorting order. These classes are useful for writing global (international) applications.
▲System. IO
It contains the types that allow synchronous and asynchronous reading and writing of data streams and files.
▲System. IO. IsolatedStorage
Contains the types that allow the creation and use of independent buckets. By using these buckets, you can read and write data that cannot be accessed by code with a small degree of trust, and prevent the disclosure of sensitive information stored elsewhere in the file system. Data is stored in a data compartment independent of the current user and the Assembly where the code is located.
▲System. Management
Provides access to a rich set of Management information and Management events about systems, devices, and applications that comply with the Windows Management Instrumentation (WMI) infrastructure.
▲System. Management. Instrumentation
Provides the classes required to standardize application management and expose management information and events to potential users through WMI. In this way, users such as Microsoft Application Center or Microsoft Operations Manager can easily manage your applications, while administrator scripts or other applications (hosting applications and unmanaged applications) you can also monitor and configure your applications.
▲System. Messaging
It allows you to connect, monitor, and manage message queues on the network and send, receive, or view messages.
▲System. Net
Provides simple programming interfaces for various protocols used in the current network. The WebRequest and WebResponse classes form the foundation of the so-called pluggable protocol. This protocol is a network service implementation that allows you to develop applications that use Internet resources, you do not have to consider the details of each protocol.
▲System. Net. Sockets
Provides the Managed implementation of Windows Socket (Winsock) interfaces for developers who need to strictly control network access.
▲System. Reflection
It contains classes and interfaces that provide hosted views for loaded types, methods, and fields, and has the ability to dynamically create and call types.
▲System. Reflection. Emit
Contains classes that allow compilers or tools to issue metadata and Microsoft intermediate language (MSIL) and generate PE files on disks (optional. The main clients of these classes are the script engine and compiler.
▲System. Resources
Provides classes and interfaces that allow developers to create, store, and manage various regional-specific resources used in applications.
▲System. Runtime. CompilerServices
Provides functions for Compiler writers that use hosted code to specify attributes in the metadata that affects the runtime behavior of the common language runtime. The classes in this namespace are only used by the compiler writer.
▲System. Runtime. InteropServices
Provides a variety of members that support the COM Interop and platform call services. If you are not familiar with these services, see interacting with non-hosted code.
▲System. Runtime. InteropServices. CustomMarshalers
Supports. NET infrastructure and is not directly used in code.
▲System. Runtime. InteropServices. Expando
Contains the IExpando interface, which allows you to modify objects by adding or removing objects.
▲System. Runtime. Remoting
Provides classes and interfaces that allow developers to create and configure distributed applications.
▲System. Runtime. Remoting. Activation
Provides classes and objects that support remote object activation on servers and clients.
▲System. Runtime. Remoting. Channels
Classes that support and process channels and Channel Receivers. These channels and Channel Receivers are used as transmission media when clients call methods for remote objects.
▲System. Runtime. Remoting. Channels. Http
A channel that uses the HTTP protocol to transmit messages and objects between remote locations. By default, HTTP channels encode objects and method calls in SOAP format for transmission, but other encoding and decoding formatting program receivers can also be specified in Channel Configuration attributes.
▲System. Runtime. Remoting. Channels. Tcp
A channel that uses the TCP protocol to transmit messages and objects between remote locations. By default, the TCP channel encodes the object and method call in binary format for transmission, but other encoding and decoding formatting program receivers can also be specified in the Channel Configuration attributes.
▲System. Runtime. Remoting. Contexts
Contains the objects that define the context where all objects reside. Context is an ordered attribute sequence used to define the environment in which objects reside. Context is created during object activation. These objects are configured to require certain automatic services, such as synchronization, transactions, real-time (JIT) activation, and security. Multiple objects can be stored in one context.
▲System. Runtime. Remoting. Lifetime
Contains classes for managing the lifetime of remote objects. Traditionally, the distributed garbage collection function uses reference counting and Ping to control the object's survival. This mechanism works normally when each service has only a few clients, but it cannot work normally when each service has thousands of clients. The remote processing Lifetime Service Associates each service with a lease. When the lease expires, the service is deleted. The lifetime service can serve as a traditional distributed garbage collector, and can be well adjusted when the number of clients for each service increases.
▲System. Runtime. Remoting. Messaging
Contains classes used to create and remotely process messages. The remote processing infrastructure uses messages to communicate with remote objects. Messages are used to transmit remote method calls, activate remote objects, and exchange information. A message object carries a group of naming attributes, including operation identifiers, representative information, and parameters.
▲System. Runtime. Remoting. Metadata
Contains classes and attributes that can be used to customize SOAP generation and processing for objects and fields. The classes in this namespace can be used to indicate SOAPAction, type output, XML element name, and XML namespace URI method.
▲System. Runtime. Remoting. Metadata. W3cXsd2001
Contains the XML schema definition (XSD) defined by the World Wide Web Federation (W3C) in 2001 ). The XML Schema Part2: Data types (XML architecture Part 2: Data types) specification in W3C determines the formats and behaviors of various Data types. This namespace contains packages that comply with W3C specifications for data types. All Date and Time types comply with ISO standards.
▲System. Runtime. Remoting. MetadataServices
Classes that contain the Soapsuds.exe command line tool and user code used to convert metadata and XML schema of the remote processing infrastructure.
▲System. Runtime. Remoting. Proxies
Contains classes that control and provide Proxy functions. A proxy is a local object used as a remote object image. The proxy allows the client to access objects across remote processing boundaries.
▲System. Runtime. Remoting. Services
Contains a service class that provides functions for. NET Framework.
▲System. Runtime. Serialization
Contains classes that can be used to serialize and deserialize objects. Serialization refers to the process of converting an object or object graph to a linear byte sequence for storage or transmission to another location. Deserialization is the process of accepting stored information and re-creating an object with such information.
▲System. Runtime. Serialization. Formatters
Provides general enumeration, interfaces, and classes used by the serialized formatter.
▲System. Runtime. Serialization. Formatters. Binary
Contains the BinaryFormatter class that can be used to serialize and deserialize objects in binary format.
▲System. Runtime. Serialization. Formatters. Soap
Contains the SoapFormatter class that can be used to serialize and deserialize objects in SOAP format.
▲System. Security
Provides the basic structure of the. NET Framework security system, including the base class of permissions.
▲System. Security. Cryptography
Provides encryption services, including secure data encoding and decoding, and many other operations, such as hash processing, random number generation, and message authentication.
▲System. Security. Cryptography. X509Certificates
Implement the Common Language Runtime Library that contains the Authenticode X.509 v.3 certificate. This certificate uniquely identifies the Private Key signature of the certificate holder.
▲System. Security. Cryptography. XML
Contains classes that support creating and verifying XML digital signatures. The classes in this namespace comply with the W3C recommendation "XML-Signature Syntax and Processing" (XML Signature Syntax and Processing). For details, see http://www.w3.org/tr/xmldsig-core /.
▲System. Security. Permissions
Defines the classes for controlling operations and resource access according to policies.
▲System. Security. Policy
Contains code groups, member conditions, and evidence. These three types of classes are used to create rules applied by the. NET Framework security policy system. The evidence class is the input of the security policy, and the member condition is the switch. The two jointly create the policy statement and determine the authorized permission set. Policy level and code group are the structure of policy level. Code groups are rules encapsulated and arranged hierarchically at the policy level.
▲System. Security. Principal
Defines the subject object that represents the security context of the Code.
▲System. ServiceProcess
Provides classes that enable you to implement, install, and control Windows service applications. The service is an executable file that does not require long-term running of the user interface. The service implementation process includes: Inheriting from the ServiceBase class, defining specific actions that are processed when a command is passed in to start, stop, pause, and continue, and define the user-defined behaviors and operations when the system is shut down.
▲System. Text
Contains classes that represent ASCII, Unicode, UTF-7, and UTF-8 character encoding; abstract base classes used to convert between character blocks and byte blocks; and you can operate and format the helper class of the string object without creating an intermediate instance of the string.
▲System. Text. Regularexpression_rs
Class that provides access to the. NET Framework Regular Expression Engine. The Regular Expression feature provided by this namespace can be used on any platform or language running in Microsoft. NET Framework.
▲System. Threading
Provides classes and interfaces that support multi-threaded programming. In addition to the classes used to synchronize thread activity and data access (Mutex, Monitor, Interlocked, AutoResetEvent, and so on, this namespace also includes a ThreadPool class (which enables you to use the thread pool provided by the system) and a Timer class (which executes the callback Method for threads in the thread pool ).
▲System. Timers
Provides Timer components that allow events to be triggered at specified intervals.
▲System. web
Provides classes and interfaces that support Browser/Server Communication. This namespace includes the HTTPRequest class (which provides a large amount of information about the current HTTP request) and the HTTPResponse class (which manages the output from HTTP to client) and HTTPServerUtility object (which provides access to server-side utilities and processes ). ▲System. Web also includes categories for Cookie operations, file transmission, exception information, and output Cache control.
▲System. Web. Caching
Provides classes for caching common data on servers. This includes a Cache class, which is a dictionary in which you can store any data objects, such as hash tables and datasets. It also provides invalid functions for these objects and provides you with methods to add and remove these objects. You can also add objects dependent on other files or Cache items, and execute a callback when an object is removed from the Cache to notify your application.
▲System. Web. Configuration
Contains classes used to set ASP. NET configurations.
▲System. Web. Hosting
Provides the ability to host ASP. NET applications from external hosting applications of Microsoft Internet Information Service (IIS.
▲System. Web. Mail
Contains classes that enable you to construct and send messages using the CDOSYS message component. Mail messages are sent through the built-in SMTP mail service in Microsoft Windows 2000 or any SMTP server. Classes in this namespace can be used in ASP. NET or any hosted application.
▲System. Web. Mobile
Includes the core functions required to generate ASP. NET mobile Web applications, including identity authentication and error handling.
▲System. Web. Security
Contains classes used to implement ASP. NET Security in Web server applications.
▲System. Web. Services
Contains a class that allows you to create XML Web services Using ASP. NET and XML Web services clients. XML Web services are some applications that provide the ability to exchange messages in a loosely coupled environment using standard protocols (such as HTTP, XML, XSD, SOAP, and WSDL. XML Web services can generate modular applications within and between companies in a heterogeneous environment, enabling them to interact with various implementations, platforms, and devices. Each part of the SOAP-based XML message of these applications can be strictly defined (structured and typed) or loosely defined (using any XML ). These messages can develop over time without disrupting the Protocol. This capability is fundamental to the flexibility and reliability of XML Web services as Web construction blocks in the future.
▲System. Web. Services. Configuration
These classes are composed of classes that are configured to run XML Web services created using ASP. NET.
▲System. Web. Services. Description
These classes enable you to use the Web Service Description Language (WSDL) to publicly describe XML Web services. Each class in this namespace corresponds to a specific element in the WSDL specification, and the class hierarchy corresponds to the XML structure of a valid WSDL document.
▲System. Web. Services. Discovery
These classes allow the XML Web services Client to locate the XML Web services available on the Web server through a process called "XML Web services Discovery.
▲System. Web. Services. Protocols
It consists of classes that define the protocol for data transmission between the XML Web services Client and the XML Web services created with ASP. NET over the network during communication.
▲System. Web. SessionState
Provides classes and interfaces for storing data of a single client specific to Web applications on the server. Session status data is used to provide the client with the appearance of a persistent connection to the application. The status information can be stored in the local process memory, or, for network farm configuration, ASP. NET status service or SQL Server database can be used to store the status information outside the process.
▲System. Web. UI
Allows you to create controls and page classes and interfaces that appear in Web applications in the form of user interfaces on Web pages. This namespace includes the Control class, which provides a set of common functions for all controls (whether HTML Control, Web Control or user Control. It also includes the Page control, which is automatically generated whenever a request is sent to a Page in a Web application. In addition, some classes are provided, which provide the Web forms Server Control Data Binding function, and the ability to save the view status of a given control or page, and analysis functions applicable to both programmable controls and text controls.
▲System. Web. UI. Design
Contains classes that can be used to extend the design of Web forms.
▲System. Web. UI. Design. WebControls
Contains classes that can be used to extend the design of Web server controls.
▲System. Web. UI. HtmlControls
Contains a set of classes that allow you to create HTML server controls on the Web forms page. The HTML server controls run on the server and are directly mapped to standard HTML tags supported by most browsers. This allows you to programmatically control HTML elements on Web forms pages.
▲System. Web. UI. MobileControls
Contains a set of ASP. NET Server controls that intelligently present your applications to different mobile devices.
▲System. Web. UI. MobileControls. Adapters
Contains the core device adapter classes that are used by ASP. NET mobile controls to customize devices and support extended devices.
▲System. Web. UI. WebControls
Contains classes that allow you to create Web server controls on Web pages. The Web server control runs on the server and includes buttons, text boxes, and other form controls. They also include special controls similar to calendars. Since Web server controls run on servers, these elements can be controlled programmatically. Web server controls are more abstract than HTML server controls. Their object models do not necessarily reflect the HTML syntax.
▲System. Windows. Forms
Contains classes used to create Windows-based applications. These applications can take full advantage of the rich user interface functions in the Microsoft Windows operating system.
▲System. Windows. Forms. Design
Contains classes that support configuration and behavior during design of Windows Forms components. These classes include: designer classes supported by Windows Forms components (a group of design-time services), UITypeEditor classes used to configure specific property types, and classes used to import ActiveX controls.
▲System. Xml
Supports standard-based XML processing.
▲System. Xml. Schema
Contains XML classes that are supported by the standard XML Schema Definition Language (XSD) architecture.
▲System. Xml. Serialization
Contains the class used to serialize objects to documents or streams in XML format.
▲System. Xml. XPath
Contains the XPath analyzer and computing engine. It supports the W3C XML Path Language (XPath) Version 1.0 recommendation (www.w3.org/TR/xpath ).
▲System. Xml. Xsl
Supports extensible style sheet conversion (XSLT) conversion. It supports W3C XSL conversion (XSLT) Version 1.0 recommendations (www.w3.org/TR/xslt ).
Usage