Application program interface for network software platform

Abstract
An application program interface (API) provides a set of functions, including a set of base classes and types that are used in substantially all applications accessing the API, for application developers who build Web applications on Microsoft Corporation's .NET™ platform.
Description


TECHNICAL FIELD

[0001] This invention relates to network software, such as Web applications, and to computer software development of such network software. More particularly, this invention relates to an application program interface (API) that facilitates use of a network software platform by application programs and computer hardware.



BACKGROUND

[0002] Very early on, computer software came to be categorized as “operating system” software or “application” software. Broadly speaking, an application is software meant to perform a specific task for the computer user such as solving a mathematical equation or supporting word processing. The operating system is the software that manages and controls the computer hardware. The goal of the operating system is to make the computer resources available to the application programmer while at the same time, hiding the complexity necessary to actually control the hardware.


[0003] The operating system makes the resources available via functions that are collectively known as the Application Program Interface or API. The term API is also used in reference to a single one of these functions. The functions are often grouped in terms of what resource or service they provide to the application programmer. Application software requests resources by calling individual API functions. API functions also serve as the means by which messages and information provided by the operating system are relayed back to the application software.


[0004] In addition to changes in hardware, another factor driving the evolution of operating system software has been the desire to simplify and speed application software development. Application software development can be a daunting task, sometimes requiring years of developer time to create a sophisticated program with millions of lines of code. For a popular operating system such as Microsoft Windows®, application software developers write thousands of different applications each year that utilize the operating system. A coherent and usable operating system base is required to support so many diverse application developers.


[0005] Often, development of application software can be made simpler by making the operating system more complex. That is, if a function may be useful to several different application programs, it may be better to write it once for inclusion in the operating system, than requiring dozens of software developers to write it dozens of times for inclusion in dozens of different applications. In this manner, if the operating system supports a wide range of common functionality required by a number of applications, significant savings in applications software development costs and time can be achieved.


[0006] Regardless of where the line between operating system and application software is drawn, it is clear that for a useful operating system, the API between the operating system and the computer hardware and application software is as important as efficient internal operation of the operating system itself.


[0007] Over the past few years, the universal adoption of the Internet, and networking technology in general, has changed the landscape for computer software developers. Traditionally, software developers focused on single-site software applications for standalone desktop computers, or LAN-based computers that were connected to a limited number of other computers via a local area network (LAN). Such software applications were typically referred to as “shrink wrapped” products because the software was marketed and sold in a shrink-wrapped package. The applications utilized well-defined APIs to access the underlying operating system of the computer.


[0008] As the Internet evolved and gained widespread acceptance, the industry began to recognize the power of hosting applications at various sites on the World Wide Web (or simply the “Web”). In the networked world, clients from anywhere could submit requests to server-based applications hosted at diverse locations and receive responses back in fractions of a second. These Web applications, however, were typically developed using the same operating system platform that was originally developed for standalone computing machines or locally networked computers. Unfortunately, in some instances, these applications do not adequately transfer to the distributed computing regime. The underlying platform was simply not constructed with the idea of supporting limitless numbers of interconnected computers.


[0009] To accommodate the shift to the distributed computing environment being ushered in by the Internet, Microsoft Corporation is developing a network software platform known as the “.NET” platform (read as “Dot Net”). The platform allows developers to create Web services that will execute over the Internet. Such a dynamic shift requires a new ground-up design of an entirely new API.


[0010] In response to this challenge, the inventors developed a unique set of API functions for Microsoft's .NET™ platform.



SUMMARY

[0011] An application program interface (API) provides a set of functions, including a set of base classes and types that are used in substantially all applications accessing the API, for application developers who build Web applications on a network platform, such as Microsoft Corporation's NET™ platform.







BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The same numbers are used throughout the drawings to reference like features.


[0013]
FIG. 1 illustrates a network architecture in which clients access Web services over the Internet using conventional protocols.


[0014]
FIG. 2 is a block diagram of a software architecture for Microsoft's .NET™ platform, which includes an application program interface (API).


[0015]
FIG. 3 is a block diagram of unique namespaces supported by the API, as well as function classes of the various API functions.


[0016]
FIG. 4 is a block diagram of an exemplary computer that may execute all or part of the software architecture.







BRIEF DESCRIPTION OF ACCOMPANYING COMPACT DISC

[0017] Accompanying this specification is a compact disc that stores a compiled HTML help file identifying the API (application program interface) for Microsoft's .NET™ network platform. The file is named “cpref.chm” and was created on Jun. 8, 2001. It is 30.81 Mbytes in size. The file can be executed on a Windows®-based computing device (e.g., IBM-PC, or equivalent) that executes a Windows®-brand operating system (e.g., Windows® NT, Windows® 98, Windows® 2000, etc.). The compiled HTML help file stored on the compact disk is hereby incorporated by reference.


[0018] Additionally, the APIs contained in the compiled HTML help file are also provided in approximately 100 separate text files named “NamespaceName.txt”. The text files comply with the ASCII format.


[0019] The compact disc itself is a CD-ROM, and conforms to the ISO 9660 standard.



DETAILED DESCRIPTION

[0020] This disclosure addresses an application program interface (API) for a network platform upon which developers can build Web applications and services. More particularly, an exemplary API is described for the .NET™ platform created by Microsoft Corporation. The .NET™ platform is a software platform for Web services and Web applications implemented in the distributed computing environment. It represents the next generation of Internet computing, using open communication standards to communicate among loosely coupled Web services that are collaborating to perform a particular task.


[0021] In the described implementation, the .NET™ platform utilizes XML (extensible markup language), an open standard for describing data. XML is managed by the World Wide Web Consortium (W3C). XML is used for defining data elements on a Web page and business-to-business documents. XML uses a similar tag structure as HTML; however, whereas HTML defines how elements are displayed, XML defines what those elements contain. HTML uses predefined tags, but XML allows tags to be defined by the developer of the page. Thus, virtually any data items can be identified, allowing Web pages to function like database records. Through the use of XML and other open protocols, such as Simple Object Access Protocol (SOAP), the .NET™ platform allows integration of a wide range of services that can be tailored to the needs of the user. Although the embodiments described herein are described in conjunction with XML and other open standards, such are not required for the operation of the claimed invention. Other equally viable technologies will suffice to implement the inventions described herein.


[0022] Exemplary Network Environment


[0023]
FIG. 1 shows a network environment 100 in which a network platform, such as the .NET™ platform, may be implemented. The network environment 100 includes representative Web services 102 (1), . . . , 102 (N), which provide services that can be accessed over a network 104 (e.g., Internet). The Web services, referenced generally as number 102, are programmable application components that are reusable and interact programmatically over the network 104, typically through industry standard Web protocols, such as XML, SOAP, WAP (wireless application protocol), HTTP (hypertext transport protocol), and SMTP (simple mail transfer protocol) although other means of interacting with the Web services over the network may also be used, such as Remote Procedure Call (RPC) or object broker type technology. A Web service can be self-describing and is often defined in terms of formats and ordering of messages.


[0024] Web services 102 are accessible directly by other services (as represented by communication link 106) or a software application, such as Web application 110 (as represented by communication links 112 and 114). Each Web service 102 is illustrated as including one or more servers that execute software to handle requests for particular services. Such services often maintain databases that store information to be served back to requesters. Web services may be configured to perform any one of a variety of different services. Examples of Web services include login verification, notification, database storage, stock quoting, location directories, mapping, music, electronic wallet, calendar/scheduler, telephone listings, news and information, games, ticketing, and so on. The Web services can be combined with each other and with other applications to build intelligent interactive experiences.


[0025] The network environment 100 also includes representative client devices 120(1), 120(2), 120(3), 120(4), . . . , 120(M) that utilize the Web services 102 (as represented by communication link 122) and/or the Web application 110 (as represented by communication links 124, 126, and 128). The clients may communicate with one another using standard protocols as well, as represented by an exemplary XML link 130 between clients 120(3) and 120(4).


[0026] The client devices, referenced generally as number 120, can be implemented many different ways. Examples of possible client implementations include, without limitation, portable computers, stationary computers, tablet PCs, televisions/set-top boxes, wireless communication devices, personal digital assistants, gaming consoles, printers, photocopiers, and other smart devices.


[0027] The Web application 110 is an application designed to run on the network platform and may utilize the Web services 102 when handling and servicing requests from clients 120. The Web application 110 is composed of one or more software applications 130 that run atop a programming framework 132, which are executing on one or more servers 134 or other computer systems. Note that a portion of Web application 110 may actually reside on one or more of clients 120. Alternatively, Web application 110 may coordinate with other software on clients 120 to actually accomplish its tasks.


[0028] The programming framework 132 is the structure that supports the applications and services developed by application developers. It permits multi-language development and seamless integration by supporting multiple languages. It supports open protocols, such as SOAP, and encapsulates the underlying operating system and object model services. The framework provides a robust and secure execution environment for the multiple programming languages and offers secure, integrated class libraries.


[0029] The framework 132 is a multi-tiered architecture that includes an application program interface (API) layer 142, a common language runtime (CLR) layer 144, and an operating system/services layer 146. This layered architecture allows updates and modifications to various layers without impacting other portions of the framework. A common language specification (CLS) 140 allows designers of various languages to write code that is able to access underlying library functionality. The specification 140 functions as a contract between language designers and library designers. By adhering to the CLS, libraries written in one language can be directly accessible to code modules written in other languages to achieve seamless integration between code modules written in one language and code modules written in another language.


[0030] The API layer 142 presents groups of functions that the applications 130 can call to access the resources and services provided by layer 146. By exposing the API functions for a network platform, application developers can create Web applications for distributed computing systems that make full use of the network resources and other Web services, without needing to understand the complex interworkings of how those network resources actually operate or are made available. Moreover, the Web applications can be written in any number of programming languages, and translated into an intermediate language supported by the common language runtime 144 and included as part of the common language specification 140. In this way, the API layer 142 can provide methods for a wide and diverse variety of applications.


[0031] Additionally, the framework 132 can be configured to support API calls placed by remote applications executing remotely from the servers 134 that host the framework. Representative applications 148(1) and 148(2) residing on clients 120(3) and 120(M), respectively, can use the API functions by making calls directly, or indirectly, to the API layer 142 over the network 104.


[0032] The framework may also be implemented at the clients. Client 120(3) represents the situation where a framework 150 is implemented at the client. This framework may be identical to server-based framework 132, or modified for client purposes. Alternatively, the client-based framework may be condensed in the event that the client is a limited or dedicated function device, such as a cellular phone, personal digital assistant, handheld computer, or other communication/computing device.


[0033] Developers' Programming Framework


[0034]
FIG. 2 shows the programming framework 132 in more detail. The common language specification (CLS) layer 140 supports applications written in a variety of languages 130(1), 130(2), 130(3), 130(4), . . . , 130(K). Such application languages include Visual Basic, C++, C#, COBOL, Jscript, Perl, Eiffel, Python, and so on. The common language specification 140 specifies a subset of features or rules about features that, if followed, allow the various languages to communicate. For example, some languages do not support a given type (e.g., an “int*” type) that might otherwise be supported by the common language runtime 144. In this case, the common language specification 140 does not include the type. On the other hand, types that are supported by all or most languages (e.g., the “int[ ]” type) is included in common language specification 140 so library developers are free to use it and are assured that the languages can handle it. This ability to communicate results in seamless integration between code modules written in one language and code modules written in another language. Since different languages are particularly well suited to particular tasks, the seamless integration between languages allows a developer to select a particular language for a particular code module with the ability to use that code module with modules written in different languages. The common language runtime 144 allow seamless multi-language development, with cross language inheritance, and provide a robust and secure execution environment for the multiple programming languages. For more information on the common language specification 140 and the common language runtime 144, the reader is directed to co-pending applications entitled “Method and System for Compiling Multiple Languages”, filed Jun. 21, 2000 (Ser. No. 09/598,105) and “Unified Data Type System and Method” filed Jul. 10, 2000 (Ser. No. 09/613,289), which are incorporated by reference.


[0035] The framework 132 encapsulates the operating system 146(1) (e.g., Windows®-brand operating systems) and object model services 146(2) (e.g., Component Object Model (COM) or Distributed COM). The operating system 146(1) provides conventional functions, such as file management, notification, event handling, user interfaces (e.g., windowing, menus, dialogs, etc.), security, authentication, verification, processes and threads, memory management, and so on. The object model services 146(2) provide interfacing with other objects to perform various tasks. Calls made to the API layer 142 are handed to the common language runtime layer 144 for local execution by the operating system 146(1) and/or object model services 146(2).


[0036] The API 142 groups API functions into multiple namespaces. Namespaces essentially define a collection of classes, interfaces, delegates, enumerations, and structures, which are collectively called “types”, that provide a specific set of related functionality. A class represents managed heap allocated data that has reference assignment semantics. A delegate is an object oriented function pointer. An enumeration is a special kind of value type that represents named constants. A structure represents static allocated data that has value assignment semantics. An interface defines a contract that other types can implement.


[0037] By using namespaces, a designer can organize a set of types into a hierarchical namespace. The designer is able to create multiple groups from the set of types, with each group containing at least one type that exposes logically related functionality. In the exemplary implementation, the API 142 is organized into four root namespaces: a first namespace 200 for Web applications, a second namespace 202 for client applications, a third namespace 204 for data and XML, and a fourth namespace 206 for base class libraries (BCLs). Each group can then be assigned a name. For instance, types in the Web applications namespace 200 are assigned the name “Web”, and types in the data and XML namespace 204 can be assigned names “Data” and “XML” respectively. The named groups can be organized under a single “global root” namespace for system level APIs, such as an overall System namespace. By selecting and prefixing a top level identifier, the types in each group can be easily referenced by a hierarchical name that includes the selected top level identifier prefixed to the name of the group containing the type. For instance, types in the Web applications namespace 200 can be referenced using the hierarchical name “System.Web”. In this way, the individual namespaces 200, 202, 204, and 206 become major branches off of the System namespace and can carry a designation where the individual namespaces are prefixed with a designator, such as a “System.” prefix.


[0038] The Web applications namespace 200 pertains to Web based functionality, such as dynamically generated Web pages (e.g., Microsoft's Active Server Pages (ASP)). It supplies types that enable browser/server communication. The client applications namespace 202 pertains to drawing and client side UI functionality. It supplies types that enable drawing of two-dimensional (2D) and three-dimensional (3D) drawings, imaging, and printing, as well as the ability to construct window forms, menus, boxes, and so on.


[0039] The data and XML namespace 204 relates to connectivity to data sources and XML functionality. It supplies classes, interfaces, delegates, and enumerations that enable security, specify data types, and serialize objects into XML format documents or streams. The base class libraries (BCL) namespace 206 pertains to basic system and runtime functionality. It contains the fundamental types and base classes that define commonly-used value and reference data types, events and event handlers, interfaces, attributes, and processing exceptions.


[0040] In addition to the framework 132, programming tools 210 are provided to assist the developer in building Web services and/or applications. One example of the programming tools 200 is Visual Studio™, a multi-language suite of programming tools offered by Microsoft Corporation.


[0041] Root API Namespaces


[0042]
FIG. 3 shows the API 142 and its four root namespaces in more detail. In one embodiment, the namespaces are identified according to a hierarchical naming convention in which strings of names are concatenated with periods. For instance, the Web applications namespace 200 is identified by the root name “System.Web”. Within the “Sytem.Web” namespace is another namespace for Web services, identified as “System.Web.Services”, which further identifies another namespace for a description known as “System.Web.Services.Description”. With this naming convention in mind, the following provides a general overview of selected namespaces of the API 142, although other naming conventions could be used with equal effect.


[0043] The Web applications namespace 200 (“System.Web”) defines additional namespaces, including:


[0044] A services namespace 300 (“System.Web.Services”) containing classes that enable a developer to build and use Web services. The services namespace 300 defines additional namespaces, including a description namespace 302 (“System.Web.Services.Description”) containing classes that enable a developer to publicly describe a Web service via a service description language (such as WSDL, a specification available from the W3C), a discovery namespace 304 (“System.Web.Services.Discovery”) containing classes that allow Web service consumers to locate available Web Services on a Web server, and a protocols namespace 306 (“System.Web.Services.Protocols”) containing classes that define the protocols used to transmit data across a network during communication between Web service clients and the Web service itself.


[0045] A caching namespace 308 (“System.Web.Caching”) containing classes that enable developers to decrease Web application response time through temporarily caching frequently used resources on the server. This includes ASP.NET pages, web services, and user controls. (ASP.NET is the updated version of Microsoft's ASP technology.) Additionally, a cache dictionary is available for developers to store frequently used resources, such as hash tables and other data structures.


[0046] A configuration namespace 310 (“System.Web.Configuration”) containing classes that are used to read configuration data in for an application.


[0047] A UI namespace 312 (“System.Web.UI”) containing types that allow developers to create controls and pages that will appear in Web applications as user interfaces on a Web page. This namespace includes the control class, which provides all web based controls, whether those encapsulating HTML elements, higher level Web controls, or even custom User controls, with a common set of functionality. Also provided are classes which provide the web forms server controls data binding functionality, the ability to save the view state of a given control or page, as well as parsing functionality for both programmable and literal controls. Within the UI namespace 312 are two additional namespaces: an HTML controls namespace 314 (“System.Web.UI.HtmlControls”) containing classes that permit developers to interact with types that encapsulates html 3.2 elemtents create HTML controls, and a Web controls namespace 316 (“System.Web.UI.WeblControls”) containing classes that allow developers to create higher level Web controls.


[0048] A security namespace 318 (“System.Web.Security”) containing classes used to implement security in web server applications, such as basic authentication, challenge response authentication, and role based authentication.


[0049] A session state namespace 320 (“System.Web.SessionState”) containing classes used to access session state values (i.e., data that lives across requests for the lifetime of the session) as well as session-level settings and lifetime management methods.


[0050] The client applications namespace 202 is composed of two namespaces:


[0051] A windows forms namespace 322 (“System.Windows.Fortns”) containing classes for creating Windows®-based client applications that take full advantage of the rich user interface features available in the Microsoft Windows® operating system, such as the ability to drag and drop screen elements. Such classes may include wrapped APIs available in the Microsoft Windows® operating system that are used in a windowing UI environment. Within this namespace are a design namespace 324 (“System.Windows.Forms.Design”) that contains classes to extend design-time support for Windows forms and a component model namespace 326 (“System.Windows.Forms.ComponentModel”) that contains the windows form implementation of the general component model defined in System.ComponentModel. This namespace contains designer tools, such as Visual Studio, which offer a rich experience for developers at design time.


[0052] A drawing namespace 328 (“System.Drawing”) containing classes for graphics functionality. The drawing namespace 328 includes a 2D drawing namespace 330 (“System.Drawing.Drawing2D”) that contains classes and enumerations to provide advanced 2-dimmensional and vector graphics functionality, an imaging namespace 332 (“System.Drawing.Imaging”) that contains classes for advanced imaging functionality, a printing namespace 334 (“System.Drawing.Printing”) that contains classes to permit developers to customize printing, and a text namespace 336 (“System.Drawing.Text”) that contains classes for advanced typography functionality.


[0053] The data and XML namespace 204 is composed of two namespaces:


[0054] A data namespace 340 (“System.Data”) containing classes that enable developers to build components that efficiently manage data from multiple data sources. It implements an architecture that, in a disconnected scenario (such as the Internet), provides tools to request, update, and reconcile data in multiple tier systems. The data namespace 340 includes a common namespace 342 that contains types shared by data providers. A data provider describes a collection of types used to access a data source, such as a database, in the managed space. The data namespace 340 also includes an OLE DB namespace 344 that contains types pertaining to data used in object-oriented databases (e.g., Microsoft's SQL Server), and a SQL client namespace 346 that contains types pertaining to data used by SQL clients. The data namespace also includes a SQL types namespace 348 (“System.Data.SqlTypes”) that contains classes for native data types within Microsoft's SQL Server. The classes provide a safer, faster alternative to other data types. Using the objects within this namespace helps prevent type conversion errors caused in situations where loss of precision could occur. Because other data types are converted to and from SQL types behind the scenes, explicitly creating and using objects within this namespace results in faster code as well.


[0055] An XML namespace 350 (“System.XML”) containing classes that provide standards-based support for processing XML. The supported standards include XML (e.g., version 1.0), XML Namespaces (both stream level and DOM), XML Schemas, XPath expressions, XSL/T transformations, DOM Level 2 Core, and SOAP (e.g., version 1.1). The XML namespace 350 includes an XSLT namespace 352 (“System.XML.Xsl”) that contains classes and enumerations to support XSLT (Extensible Stylesheet Language Transformations), an Xpath namespace 354 (“System.XML.Xpath”) that contains an XPath parser and evaluation engine, and a serialization namespace 356 (“System.XML.Serialization”) that contains classes used to serialize objects into XML format documents or streams.


[0056] The base class library namespace 206 (“System”) includes the following namespaces:


[0057] A collections namespace 360 (“System.Collections”) containing interfaces and classes that define various collections of objects, such as lists, queues, arrays, hash tables and dictionaries.


[0058] A configuration namespace 362 (“System.Configuration”) containing classes and interfaces that allow developers to programmatically access configuration settings and handle errors in configuration files.


[0059] A diagnostics namespace 364 (“System.Diagnostics”) containing classes that are used to debug applications and to trace code execution. The namespace allows developers to start system processes, read and write to event logs, and monitor system performance using performance counters.


[0060] A globalization namespace 366 (“System.Globalization”) containing classes that define culture-related information, including the language, the country/region, the calendars in use, the format patterns for dates, currency and numbers, and the sort order for strings.


[0061] An I/O namespace 368 (“System.IO”) containing the infrastructure pieces to operate with the intput/output of data streams, files, and directories. This namespace includes a model for working with streams of bytes, higher level readers and writers which consume those bytes, various constructions or implementations of the streams (e.g., FileStream and MemoryStream) and, a set of utility classes for working with files and directories.


[0062] A net namespace 370 (“System.Net”) providing an extensive set of classes for building network-enabled application, referred to as the Net Class Libraries (NCL). One element to the design of the Net Class Libraries is an extensible, layered approach to exposing networking functionality. The NCL stack contains three basic layers. A base layer (System.Net.Socket) provides access to an interface to TCP/IP, the communications protocol of UNIX networks and the Internet. One example of such an interface is the “WinSock API”from Microsoft Corporation. The next layer is the Transport Protocol classes, which support such transport protocols as TCP and UDP. Developers may write their own protocol classes to provide support for protocols such as IGMP and ICMP. The third layer is the Web request, which provides an abstract factory pattern for the creation of other protocol classes. The NCL provides implementations for Hyper Text Transport Protocol (HTTP).


[0063] A reflection namespace (“System.Reflection”) 372 containing types that provide a managed view of loaded types, methods, and fields, with the ability to dynamically create and invoke types.


[0064] A resources namespace 374 (“System.Resources”) containing classes and interfaces that allow developers to create, store and manage various culture-specific resources used in an application.


[0065] A security namespace 376 (“System.Security”) supporting the underlying structure of the security system, including interfaces, attributes, exceptions, and base classes for permissions.


[0066] A service process namespace 378 (“System.ServiceProcess”) containing classes that allow developers to install and run services. Services are long-running executables that run without a user interface. They can be installed to run under a system account that enables them to be started at computer reboot. Services whose implementation is derived from processing in one class can define specific behavior for start, stop, pause, and continue commands, as well as behavior to take when the system shuts down.


[0067] A text namespace 380 (“System.Text”) containing classes representing various types of encodings (e.g., ASCII, Unicode, UTF-7, and UTF-8), abstract base classes for converting blocks of characters to and from blocks of bytes, and a helper class that manipulates and formats string objects without creating intermediate instances.


[0068] A threading namespace 382 (“System.Threading”) containing classes and interfaces that enable multi-threaded programming. The threading namespace includes a ThreadPool class that manages groups of threads, a Timer class that enables a delegate to be called after a specified amount of time, and a Mutex class for synchronizing mutually-exclusive threads. This namespace also provides classes for thread scheduling, wait notification, and deadlock resolution.


[0069] A runtime namespace 384 (“System.Runtime”) containing multiple namespaces concerning runtime features, including an interoperation services namespace 386 (“System.Runtime.InteropServices”) that contains a collection of classes useful for accessing COM objects. The types in the InteropServices namespace fall into the following areas of functionality: attributes, exceptions, managed definitions of COM types, wrappers, type converters, and the Marshal class. The runtime namespace 384 further includes a remoting namespace 388 (“System.Runtime.Remoting”) that contains classes and interfaces allowing developers to create and configure distributed applications. Another namespace within the runtime namespace 384 is a serialization namespace 390 (“System.Runtime.Serialization”) that contains classes used for serializing and deserializing objects. Serialization is the process of converting an object or a graph of objects into a linear sequence of bytes for either storage or transmission to another location.


[0070] Portions of the base class library namespace 206 (“System”) are discussed in additional detail below.


[0071] System Namespace


[0072] The System namespace is the root namespace; it offers common functionality that is needed by a wide variety of application types. The System namespace includes common base classes, types and utility classes that will be needed in substantially all applications (that is, in nearly every application).


[0073] The System namespace provides commonly used base types. It includes Object, which is the ultimate base class for all types in the system. Object defines the base set of services that any type in the system is able to provide. Not surprisingly, Object provides default implementations for all of these services. The ValueType class is a reference type that serves as the base class for all value types. It customizes the implementations of the virtual methods on Object so that is they are more appropriate for value types. Enum is a reference type that derives from ValueType and is the base class for all enums in the system. It further customizes the virtual methods from ValueType to make them specific to deal with exactly one integral field of instance data. Enum also offers utility methods for formatting and parsing of enum values. The ultimate base class for all exceptions in the system, the Exception class, is also in the System namespace. All custom attributes derive from the Attribute base class that contains utility methods for reading custom attribute off of reflection elements.


[0074] In addition, the base data types are also found in the system namespace. These are types that are so commonly used that languages typically use key words as aliases for them. These classes represent those types and provide formatting and parsing, comparing and coercion support.


[0075] NET Framework built-in value types
1NET Framework built-in value typesManagedExtensionsClassVisual BasicC#for C++CategorynameDescriptiondata typedata typedata typeIntegerByteAn 8-bitBytebytecharunsignedinteger.SbyteAn 8-bit signedSbytesbytesigned charinteger.No built-inNot CLStype.compliant.Int16A 16-bit signedShortshortshortinteger.Int32A 32-bit signedIntegerintint -or-integer.longInt64A 64-bit signedLonglong_int64integer.UInt16A 16-bitUInt16ushortunsignedunsignedNo built-inshortinteger.type.Not CLScompliant.UInt32A 32-bitUInt32uintunsigned intunsignedNo built-in-or-integer.type.unsignedNot CLSlongcompliant.UInt64A 64-bitUInt64ulongunsignedunsignedNo built-in_int64integer.type.Not CLScompliant.FloatingSingleA single-Singlefloatfloatpointprecision (32-bit) floating-point number.DoubleA double-Doubledoubledoubleprecision (64-bit) floating-point number.LogicalBooleanA Boolean valueBooleanboolbool(true or false).OtherCharA Unicode (16-Charchar_wchar_tbit) character.DecimalA 96-bitDecimaldecimalDecimaldecimal value.SingleA signedIntPtrIntPtrIntPtrinteger, that is,No built-inNo built-inNo built-ina 32 bit valuetype.type.type.on a 32-bitplatform and a64 bit value ona 64-bitplatform.DoubleA native-sizedUIntPtrUIntPtrUIntPtrunsignedNo built-inNo built-inNo built-ininteger.type.type.type.Not CLScompliant.


[0076] Other classes provide services including supervision of managed and unmanaged applications, mathematics, remote and local program invocation, data type conversion, and application environment management.


[0077] The following is a more detailed description of the System namespace, identifying various classes, interfaces, enumerations, and so forth contained in the System namespace.


[0078] System


[0079] This 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.


[0080] Description


[0081] This 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. _AppDomain interface (System)


[0082] Description


[0083] Properties:


[0084] BaseDirectory


[0085] [C#] string BaseDirectory {get;}


[0086] [C++] String* get_BaseDirectory( );


[0087] [VB] ReadOnly Property BaseDirectory As String


[0088] [JScript] abstract function get BaseDirectory( ): String;


[0089] Description


[0090] DynamicDirectory


[0091] [C#] string DynamicDirectory {get;}


[0092] [C++] String* get_DynamicDirectory( );


[0093] [VB] ReadOnly Property DynamicDirectory As String


[0094] [JScript] abstract function get DynamicDirectory( ): String;


[0095] Description


[0096] Evidence


[0097] [C#] Evidence Evidence {get;}


[0098] [C++] Evidence* get_Evidence( );


[0099] [VB] ReadOnly Property Evidence As Evidence


[0100] [JScript] abstract function get Evidence( ): Evidence;


[0101] Description


[0102] FriendlyName


[0103] [C#] string FriendlyName {get;}


[0104] [C++] String* get_FriendlyName( );


[0105] [VB] ReadOnly Property FriendlyName As String


[0106] [JScript] abstract function get FriendlyName( ): String;


[0107] Description


[0108] RelativeSearchPath


[0109] [C#] string RelativeSearchPath {get;}


[0110] [C++] String* get_RelativeSearchPath( );


[0111] [VB] ReadOnly Property RelativeSearchPath As String


[0112] [JScript] abstract function get RelativeSearchPath( ): String;


[0113] Description


[0114] ShadowCopyFiles


[0115] [C#] bool ShadowCopyFiles {get;}


[0116] [C++] bool get_ShadowCopyFiles( );


[0117] [VB] ReadOnly Property ShadowCopyFiles As Boolean


[0118] [JScript] abstract function get ShadowCopyFiles( ): Boolean;


[0119] Description


[0120] [C#] event AssemblyLoadEventHandler AssemblyLoad;


[0121] [C++]_event AssemblyLoadEventHandler* AssemblyLoad;


[0122] [VB] Event AssemblyLoad As AssemblyLoadEventHandler


[0123] Description


[0124] [C#] event ResolveEventHandler AssemblyResolve;


[0125] [C++]_event ResolveEventHandler* AssemblyResolve;


[0126] [VB] Event AssemblyResolve As ResolveEventHandler


[0127] Description


[0128] [C#] event EventHandler DomainUnload;


[0129] [C++]_event EventHandler* DomainUnload;


[0130] [VB] Event DomainUnload As EventHandler


[0131] Description


[0132] [C#] event EventHandler ProcessExit;


[0133] [C++]_event EventHandler* ProcessExit;


[0134] [VB] Event ProcessExit As EventHandler


[0135] Description


[0136] [C#] event ResolveEventHandler ResourceResolve;


[0137] [C++]_event ResolveEventHandler* ResourceResolve;


[0138] [VB] Event ResourceResolve As ResolveEventHandler


[0139] Description


[0140] [C#] event ResolveEventHand TypeResolve;


[0141] [C++]_event ResolveEventHandler* TypeResolve;


[0142] [VB] Event TypeResolve As ResolveEventHandler


[0143] Description


[0144] [C#] event UnhandledExceptionEventHandler UnhandledException;


[0145] [C++]_event UnhandledExceptionEventHandler* UnhandledException;


[0146] [VB] Event UnhandledException As UnhandledExceptionEventHandler


[0147] Description


[0148] Methods:


[0149] AppendPrivatePath


[0150] [C#] void AppendPrivatePath(string path);


[0151] [C++] void AppendPrivatePath(String* path);


[0152] [VB] Sub AppendPrivatePath(ByVal path As String)


[0153] [JScript] function AppendPrivatePath(path: String);


[0154] Description


[0155] ClearPrivatePath


[0156] [C#] void ClearPrivatePath( );


[0157] [C++] void ClearPrivatePath( );


[0158] [VB] Sub ClearPrivatePath( )


[0159] [JScript] function ClearPrivatePath( );


[0160] Description


[0161] ClearShadowCopyPath


[0162] [C#] void ClearShadowCopyPath( );


[0163] [C++] void ClearShadowCopyPath( );


[0164] [VB] Sub ClearShadowCopyPath( )


[0165] [JScript] function ClearShadowCopyPath( );


[0166] Description


[0167] CreateInstance


[0168] [C#] ObjectHandle CreateInstance(string assemblyName, string typeName);


[0169] [C++] ObjectHandle* CreateInstance(String* assemblyName, String* typeName);


[0170] [VB] Function CreateInstance(ByVal assemblyName As String, ByVal typeName


[0171] As String) As ObjectHandle


[0172] [JScript] function CreateInstance(assemblyName: String, typeName: String):


[0173] ObjectHandle;


[0174] Description


[0175] CreateInstance


[0176] [C#] ObjectHandle CreateInstance(string assemblyName, string typeName, object[ ] activationAttributes);


[0177] [C++] ObjectHandle* CreateInstance(String* assemblyName, String* typeName, Object* activationAttributes_gc[ ]);


[0178] [VB] Function CreateInstance(ByVal assemblyName As String, ByVal typeName As String, ByVal activationAttributes( ) As Object) As ObjectHandle [JScript] function CreateInstance(assemblyName: String, typeName: String, activationAttributes: Object[ ]): ObjectHandle;


[0179] Description


[0180] CreateInstance


[0181] [C#] ObjectHandle CreateInstance(string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[ ] args, CultureInfo culture, object[ ] activationAttributes, Evidence securityAttributes);


[0182] [C++] ObjectHandle* CreateInstance(String* assemblyName, String* typeName, bool ignoreCase, BindingFlags bindingAttr, Binder* binder, Object* args_gc[ ], CultureInfo* culture, Object* activationAttributes_gc[ ], Evidence* securityAttributes);


[0183] [VB] Function CreateInstance(ByVal assemblyName As String, ByVal typeName As String, ByVal ignoreCase As Boolean, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal args( ) As Object, ByVal culture As CultureInfo, ByVal activationAttributes( ) As Object, ByVal securityAttributes As Evidence) As ObjectHandle


[0184] [JScript] function CreateInstance(assemblyName: String, typeName: String, ignoreCase: Boolean, bindingAttr: BindingFlags, binder: Binder, args: Object[ ], culture: CultureInfo, activationAttributes: Object[ ], securityAttributes Evidence): ObjectHandle;


[0185] Description


[0186] CreateInstanceFrom


[0187] [C#] ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName);


[0188] [C++] ObjectHandle* CreateInstanceFrom(String* assemblyFile, String* typeName);


[0189] [VB] Function CreateInstanceFrom(ByVal assemblyFile As String, ByVal typeName As String) As ObjectHandle


[0190] [JScript] function CreateInstanceFrom(assemblyFile: String, typeName: String) ObjectHandle;


[0191] Description


[0192] CreateInstanceFrom


[0193] [C#] ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, object[ ] activationAttributes);


[0194] [C++] ObjectHandle* CreateInstanceFrom(String* assemblyFile, String* typeName, Object* activationAttributes_gc[ ]);


[0195] [VB] Function CreateInstanceFrom(ByVal assemblyFile As String, ByVal typeName As String, ByVal activationAttributes As Object) As ObjectHandle [JScript] function CreateInstanceFrom(assemblyFile: String, typeName: String, activationAttributes: Object[ ]): ObjectHandle;


[0196] Description


[0197] CreateInstanceFrom


[0198] [C#] ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[ ] args, CultureInfo culture, object[ ] activationAttributes, Evidence securityAttributes); [C++] ObjectHandle* CreateInstanceFrom(String* assemblyFile, String* typeName, bool ignoreCase, BindingFlags bindingAttr, Binder* binder, Object* args_gc[ ], CultureInfo* culture, Object* activationAttributes_gc[ ], Evidence* securityAttributes);


[0199] [VB] Function CreateInstanceFrom(ByVal assemblyFile As String, ByVal typeName As String, ByVal ignoreCase As Boolean, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal args( ) As Object, ByVal culture As CultureInfo, ByVal activationAttributes( ) As Object, ByVal securityAttributes As Evidence) As ObjectHandle


[0200] [JScript] function CreateInstanceFrom(assemblyFile: String, typeName: String, ignoreCase: Boolean, bindingAttr: BindingFlags, binder: Binder, args: Object[ ], culture: CultureInfo, activationAttributes: Object[ ], securityAttributes: Evidence): ObjectHandle;


[0201] Description


[0202] DefineDynamicAssembly


[0203] [C#] AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access);


[0204] [C++] AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access);


[0205] [VB] Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess) As AssemblyBuilder


[0206] [JScript] function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess): AssemblyBuilder;


[0207] Description


[0208] DefineDynamicAssembly


[0209] [C#] AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, Evidence evidence);


[0210] [C++] AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, Evidence* evidence);


[0211] [VB] Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal evidence As Evidence) As AssemblyBuilder


[0212] [JScript] function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, evidence: Evidence): AssemblyBuilder;


[0213] Description


[0214] DefineDynamicAssembly


[0215] [C#] AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir);


[0216] [C++] AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, String* dir);


[0217] [VB] Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal dir As String) As AssemblyBuilder


[0218] [JScript] function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, dir: String): AssemblyBuilder;


[0219] Description


[0220] DefineDynamicAssembly


[0221] [C#] AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence);


[0222] [C++] AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, String* dir, Evidence* evidence);


[0223] [VB] Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal dir As String, ByVal evidence As Evidence) As AssemblyBuilder


[0224] [JScript] function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, dir: String, evidence: Evidence): AssemblyBuilder;


[0225] Description


[0226] DefineDynamicAssembly


[0227] [C#] AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);


[0228] [C++] AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, PermissionSet* requiredPermissions, PermissionSet* optionalPermissions, PermissionSet* refusedPermissions);


[0229] [VB] Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal requiredPermissions As PermissionSet, ByVal optionalPermissions As PermissionSet, ByVal refusedPermissions As PermissionSet) As AssemblyBuilder


[0230] [JScript] function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, requiredPermissions: PermissionSet, optionalPermissions: PermissionSet, refusedPermissions: PermissionSet): AssemblyBuilder;


[0231] Description


[0232] DefineDynamicAssembly


[0233] [C#] AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);


[0234] [C++] AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, Evidence* evidence, PermissionSet* requiredPermissions, PermissionSet* optionalPermissions, PermissionSet* refusedPermissions);


[0235] [VB] Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal evidence As Evidence, ByVal requiredPermissions As PermissionSet, ByVal optionalPermissions As PennissionSet, ByVal refusedpermissions As PermissionSet) As AssemblyBuilder


[0236] [JScript] function DefineDynamicAssembly(name: AssemblyName, access:


[0237] AssemblyBuilderAccess, evidence: Evidence, requiredPermissions:


[0238] PermissionSet, optionalPermissions: PermissionSet, refusedPermissions:


[0239] PermissionSet): AssemblyBuilder;


[0240] Description


[0241] DefineDynamicAssembly


[0242] [C#] AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);


[0243] [C++] AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, String* dir, PermissionSet* requiredPermissions, PermissionSet* optionalPermissions, PermissionSet* refusedPermissions);


[0244] [VB] Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal dir As String, ByVal requiredPermissions As PermissionSet, ByVal optionalPermissions As PermissionSet, ByVal refusedPermissions As PermissionSet) As AssemblyBuilder


[0245] [JScript] function DefineDynamicAssembly(name: AssemblyName, access:


[0246] AssemblyBuilderAccess, dir: String, requiredPermissions: PermissionSet,


[0247] optionalPermissions: PermissionSet, refusedPermissions: PermissionSet)


[0248] AssemblyBuilder;


[0249] Description


[0250] DefineDynamicAssembly


[0251] [C#] AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);


[0252] [C++] AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, String* dir, Evidence* evidence, PermissionSet* requiredPerminssions, PermissionSet* optionalPermissions, PermissionSet* refusedPermissions);


[0253] [VB] Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal dir As String, ByVal evidence As Evidence, ByVal requiredPermissions As PermissionSet, ByVal optionalPermissions As PermissionSet, ByVal refusedPermissions As PermissionSet) As AssemblyBuilder


[0254] [JScript] function DefineDynamicAssembly(name: AssemblyName, access:


[0255] AssemblyBuilderAccess, dir: String, evidence: Evidence, requiredPermissions:


[0256] PermissionSet, optionalPermissions: PermissionSet, refusedPermissions:


[0257] PermissionSet): AssemblyBuilder;


[0258] Description


[0259] DefineDynamicAssembly


[0260] [C#] AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refisedPermissions, bool isSynchronized);


[0261] [C++] AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, String* dir, Evidence* evidence, PermissionSet* requiredPermissions, PermissionSet* optionalPermissions, PermissionSet* reffusedPermissions, bool isSynchronized);


[0262] [VB] Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal dir As String, ByVal evidence As Evidence, ByVal requiredPermissions As PermissionSet, ByVal optionalPermissions As PermissionSet, ByVal refusedpermissions As PermissionSet, ByVal isSynchronized As Boolean) As AssemblyBuilder


[0263] [JScript] function DefineDynamicAssembly(name: AssemblyName, access:


[0264] AssemblyBuilderAccess, dir: String, evidence: Evidence, requiredPermissions:


[0265] PermissionSet, optionalPermissions: PermissionSet, refusedPermissions:


[0266] PermissionSet, isSynchronized: Boolean): AssemblyBuilder;


[0267] Description


[0268] DoCallBack


[0269] [C#] void DoCallBack(CrossAppDomainDelegate theDelegate);


[0270] [C++] void DoCallBack(CrossAppDomainDelegate* theDelegate);


[0271] [VB] Sub DoCallBack(ByVal theDelegate As CrossAppDomainDelegate)


[0272] [JScript] function DoCallBack(theDelegate: CrossAppDomainDelegate);


[0273] Description


[0274] Equals


[0275] [C#] bool Equals(object other);


[0276] [C++] bool Equals(Object* other);


[0277] [VB] Function Equals(ByVal other As Object) As Boolean


[0278] [JScript] function Equals(other: Object): Boolean;


[0279] Description


[0280] ExecuteAssembly


[0281] [C#] int ExecuteAssembly(string assemblyFile);


[0282] [C++] int ExecuteAssembly(String* assemblyFile);


[0283] [VB] Function ExecuteAssembly(ByVal assemblyFile As String) As Integer


[0284] [JScript] function ExecuteAssembly(assemblyFile: String): int;


[0285] Description


[0286] ExecuteAssembly


[0287] [C#] int ExecuteAssembly(string assemblyFile, Evidence assemblySecurity);


[0288] [C++] int ExecuteAssembly(String* assemblyFile, Evidence* assemblySecurity);


[0289] [VB] Function ExecuteAssembly(ByVal assemblyFile As String, ByVal assemblySecurity As Evidence) As Integer


[0290] [JScript] function ExecuteAssembly(assemblyFile: String, assemblySecurity: Evidence): int;


[0291] Description


[0292] ExecuteAssembly


[0293] [C#] int ExecuteAssembly(string assemblyFile, Evidence assemblySecurity, string[ ] args);


[0294] [C++] int ExecuteAssembly(String* assemblyFile, Evidence* assemblySecurity, String* args_gc[ ]);


[0295] [VB] Function ExecuteAssembly(ByVal assemblyFile As String, ByVal assemblySecurity As Evidence, ByVal args( ) As String) As Integer


[0296] [JScript] function ExecuteAssembly(assemblyFile String, assemblySecurity: Evidence, args: String[ ]): int;


[0297] Description


[0298] GetAssemblies


[0299] [C#] Assembly[ ] GetAssemblies( );


[0300] [C++] Assembly* GetAssemblies( )[ ];


[0301] [VB] Function GetAssemblies( ) As Assembly( )


[0302] [JScript] function GetAssemblies( ): Assembly[ ];


[0303] Description


[0304] GetData


[0305] [C#] object GetData(string name);


[0306] [C++] Object* GetData(String* name);


[0307] [VB] Function GetData(ByVal name As String) As Object


[0308] [JScript] function GetData(name: String): Object;


[0309] Description


[0310] GetHashCode


[0311] [C#] int GetHashCode( );


[0312] [C++] int GetHashCode( );


[0313] [VB] Function GetHashCode( ) As Integer


[0314] [JScript] function GetHashCode( ): int;


[0315] Description


[0316] GetLifetimeService


[0317] [C+] object GetLifetimeService( );


[0318] [C++] Object* GetLifetimeService( );


[0319] [VB] Function GetLifetimeService( ) As Object


[0320] [JScript] function GetLifetimeService( ) Object;


[0321] Description


[0322] GetType


[0323] [C#] Type GetType( );


[0324] [C++] Type* GetType( );


[0325] [VB] Function GetType( ) As Type


[0326] [JScript] function GetType( ): Type;


[0327] Description


[0328] InitializeLifetimeService


[0329] [C#] object InitializeLifetimeService( );


[0330] [C++] Object* InitializeLifetimeService( );


[0331] [VB] Function InitializeLifetimeService( ) As Object


[0332] [JScript] function InitializeLifetimeService( ): Object;


[0333] Description


[0334] Load


[0335] [C#] Assembly Load(AssemblyName assemblyRef);


[0336] [C++] Assembly* Load(AssemblyName* assemblyRef);


[0337] [VB] Function Load(ByVal assemblyRef As AssemblyName) As Assembly


[0338] [JScript] function Load(assemblyRef: AssemblyName): Assembly;


[0339] Description


[0340] Load


[0341] [C#] Assembly Load(byte[ ] rawAssembly);


[0342] [C++] Assembly* Load(unsigned char rawAssembly_gc[ ]);


[0343] [VB] Function Load(ByVal rawAssembly( ) As Byte) As Assembly


[0344] [JScript] function Load(rawAssembly: Byte[ ]): Assembly;


[0345] Description


[0346] Load


[0347] [C#] Assembly Load(string assemblyString);


[0348] [C++] Assembly* Load(String* assemblyString);


[0349] [VB] Function Load(ByVal assemblyString As String) As Assembly


[0350] [JScript] function Load(assemblyString: String): Assembly;


[0351] Description


[0352] Load


[0353] [C#] Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity);


[0354] [C++] Assembly* Load(AssemblyName* assemblyRef, Evidence* assemblySecurity);


[0355] [VB] Function Load(ByVal assemblyRef As AssemblyName, ByVal assemblySecurity As Evidence) As Assembly


[0356] [JScript] function Load(assemblyRef: AssemblyName, assemblySecurity: Evidence): Assembly;


[0357] Description


[0358] Load


[0359] [C#] Assembly Load(byte[ ] rawAssembly, byte[ ] rawSymbolStore);


[0360] [C++] Assembly* Load(unsigned char rawAssembly_gc[ ], unsigned char rawSymbolStore_gc[ ]);


[0361] [VB] Function Load(ByVal rawAssembly( ) As Byte, ByVal rawSymbolStore( ) As Byte) As Assembly


[0362] [JScript] function Load(rawAssembly: Byte[ ], rawSymbolStore: Byte[ ]) Assembly;


[0363] Description


[0364] Load


[0365] [C#] Assembly Load(string assemblyString, Evidence assemblySecurity);


[0366] [C++] Assembly* Load(String* assemblyString, Evidence* assemblySecurity);


[0367] [VB] Function Load(ByVal assemblyString As String, ByVal assemblySecurity As Evidence) As Assembly


[0368] [JScript] function Load(assemblyString: String, assemblySecurity: Evidence): Assembly;


[0369] Description


[0370] Load


[0371] [C#] Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity, string callerLocation);


[0372] [C++] Assembly* Load(AssemblyName* assemblyRef, Evidence* assemblySecurity, String* callerLocation);


[0373] [VB] Function Load(ByVal assemblyRef As AssemblyName, ByVal assemblySecurity As Evidence, ByVal callerLocation As String) As Assembly


[0374] [JScript] function Load(assemblyRef: AssemblyName, assemblySecurity: Evidence, callerLocation: String): Assembly;


[0375] Description


[0376] Load


[0377] [C#] Assembly Load(byte[ ] rawAssembly, byte[ ] rawSymbolStore, Evidence securityEvidence);


[0378] [C++] Assembly* Load(unsigned char rawAssembly_gc[ ], unsigned char rawSymbolStore_gc[ ], Evidence* securityEvidence);


[0379] [VB] Function Load(ByVal rawAssembly( ) As Byte, ByVal rawSymbolStore( ) As Byte, ByVal securityEvidence As Evidence) As Assembly


[0380] [JScript] function Load(rawAssembly: Byte[ ], rawSymbolStore: Byte[ ], securityEvidence: Evidence): Assembly;


[0381] Description


[0382] Load


[0383] [C#] Assembly Load(string assemblyString, Evidence assemblySecurity, string callerLocation);


[0384] [C++] Assembly* Load(String* assemblyString, Evidence* assemblySecurity, String* callerLocation);


[0385] [VB] Function Load(ByVal assemblyString As String, ByVal assemblySecurity As Evidence, ByVal callerLocation As String) As Assembly


[0386] [JScript] function Load(assemblyString: String, assemblySecurity: Evidence, callerLocation: String): Assembly;


[0387] Description


[0388] SetAppDomainPolicy


[0389] [C#] void SetAppDomainPolicy(PolicyLevel domainPolicy);


[0390] [C++] void SetAppDomainPolicy(PolicyLevel* domainPolicy);


[0391] [VB] Sub SetAppDomainPolicy(ByVal domainPolicy As PolicyLevel)


[0392] [JScript] function SetAppDomainPolicy(domainPolicy: PolicyLevel);


[0393] Description


[0394] SetCachePath


[0395] [C#] void SetCachePath(string s);


[0396] [C++] void SetCachePath(String* s);


[0397] [VB] Sub SetCachePath(ByVal s As String)


[0398] [JScript] fuinction SetCachePath(s: String);


[0399] Description


[0400] SetData


[0401] [C#] void SetData(string name, object data);


[0402] [C++] void SetData(String* name, Object* data);


[0403] [VB] Sub SetData(ByVal name As String, ByVal data As Object)


[0404] [JScript] function SetData(name: String, data: Object);


[0405] Description


[0406] SetPrincipalPolicy


[0407] [C#] void SetPrincipalPolicy(PrincipalPolicy policy);


[0408] [C++] void SetPrincipalPolicy(PrincipalPolicy policy);


[0409] [VB] Sub SetPrincipalPolicy(ByVal policy As PrincipalPolicy)


[0410] [JScript] function SetPrincipalPolicy(policy: PrincipalPolicy);


[0411] Description


[0412] SetShadowCopyPath


[0413] [C#] void SetShadowCopyPath(string s);


[0414] [C++] void SetShadowCopyPath(String* s);


[0415] [VB] Sub SetShadowCopyPath(ByVal s As String)


[0416] [JScript] function SetShadowCopyPath(s: String);


[0417] Description


[0418] SetThreadPrincipal


[0419] [C#] void SetThreadPrincipal(IPrincipal principal);


[0420] [C++] void SetThreadPrincipal(IPrincipal* principal);


[0421] [VB] Sub SetThreadPrincipal(ByVal principal As IPrincipal)


[0422] [JScript] function SetThreadPrincipal(principal: IPrincipal);


[0423] Description


[0424] ToString


[0425] [C#] string ToString( );


[0426] [C++] String* ToString( );


[0427] [VB] Function ToString( ) As String


[0428] [JScript] function ToString( ): String;


[0429] Description


[0430] Activator class (System)


[0431] ToString


[0432] Description


[0433] Contains methods to create types of objects locally or remotely, or obtain references to existing remote objects.


[0434] The


[0435] System.Activator.CreateInstance(System.Type,System.Reflection.BindingFla gs,System.Reflection.Binder,System.Object[ ],System.Globalization.Cultureln fo) method creates an instance of a type defined in an assembly by invoking the constructor that best matches the specified arguments. If no arguments are specified, the constructor that takes no parameters, that is, the default constructor, is invoked.


[0436] CreateComInstanceFrom


[0437] [C#] public static ObjectHandle CreateComInstanceFrom(string assemblyName, string typeName);


[0438] [C++] public: static ObjectHandle* CreateComInstanceFrom(String* assemblyName, String* typeName);


[0439] [VB] Public Shared Function CreateComInstanceFrom(ByVal assemblyName As String, ByVal typeName As String) As ObjectHandle


[0440] [JScript] public static function CreateComInstanceFrom(assemblyName: String, typeName: String): ObjectHandle;


[0441] Description


[0442] Creates an instance of the COM object whose name is specified, using the named assembly file and the constructor that best matches the specified parameters.


[0443] Return Value: A handle, which must be unwrapped to access the newly created instance.


[0444] This method allows types to be created remotely without having to load the type locally. The name of a file that contains an assembly where the type named typeName is sought. The name of the desired type.


[0445] CreateInstance


[0446] [C#] public static object CreateInstance(Type type);


[0447] [C++] public: static Object* CreateInstance(Type* type);


[0448] [VB] Public Shared Function CreateInstance(ByVal type As Type) As Object


[0449] [JScript] public static function CreateInstance(type: Type): Object;


[0450] Description


[0451] Creates an instance of the specified type using the constructor that best matches the specified parameter.


[0452] Return Value: A reference to the newly created object.


[0453] The constructor to be invoked must be accessible. The type of object to create.


[0454] CreateInstance


[0455] [C#] public static ObjectHandle CreateInstance(string assemblyName, string typeName);


[0456] [C++] public: static ObjectHandle* CreateInstance(String* assemblyName, String* typeName);


[0457] [VB] Public Shared Function CreateInstance(ByVal assemblyName As String, ByVal typeName As String) As ObjectHandle


[0458] [JScript] public static function CreateInstance(assemblyName: String, typeName: String): ObjectHandle;


[0459] Description


[0460] Creates an instance of the type whose name is specified, using the named assembly and the constructor that best matches the specified parameters.


[0461] Return Value: A handle, which must be unwrapped to access the newly created instance.


[0462] This method allows types to be created remotely without having to load the type locally. The name of the assembly where the type named typeName is sought. If assemblyName is null, the executing assembly is searched. The name of the desired type.


[0463] CreateInstance


[0464] [C#] public static object CreateInstance(Type type, object[ ] args);


[0465] [C++] public: static Object* CreateInstance(Type* type, Object* args_gc[ ]); [VB] Public Shared Function CreateInstance(ByVal type As Type, ByVal args( ) As Object) As Object


[0466] [JScript] public static function CreateInstance(type: Type, args: Object[ ]) Object;


[0467] Description


[0468] Creates an instance of the specified type using the constructor that best matches the specified parameters.


[0469] Return Value: A reference to the newly created object.


[0470] The constructor to be invoked must be accessible and provide the most specific match with the specified argument list. The type of object to create. An array of arguments that match in number, order, and type the parameters of the constructor to invoke. If args is an empty array or null, the constructor that takes no parameters (the default constructor) is invoked.


[0471] CreateInstance


[0472] [C#] public static ObjectHandle CreateInstance(string assemblyName, string typeName, object[ ] activationAttributes);


[0473] [C++] public: static ObjectHandle* CreateInstance(String* assemblyName, String* typeName, Object* activationAttributes_gc[ ]);


[0474] [VB] Public Shared Function CreateInstance(ByVal assemblyName As String, ByVal typeName As String, ByVal activationattributes( ) As Object) As ObjectHandle


[0475] [JScript] public static function CreateInstance(assemblyName: String, typeName: String, activationAttributes: Object[ ]): ObjectHandle;


[0476] Description


[0477] Creates an instance of the type whose name is specified, using the named assembly and the constructor that best matches the specified parameters.


[0478] Return Value: A handle, which must be unwrapped to access the newly created instance.


[0479] This method allows types to be created remotely without having to load the type locally. The name of the assembly where the type named typeName is sought. If assemblyName is null, the executing assembly is searched. The name of the desired type. An array of one or more attributes that can participate in activation.


[0480] CreateInstance


[0481] [C#] public static object CreateInstance(Type type, object[ ] args, object[0 ] activationAttributes);


[0482] [C++] public: static Object* CreateInstance(Type* type, Object* args_gc[ ], Object* activationAttributes_gc[ ]);


[0483] [VB] Public Shared Function CreateInstance(ByVal type As Type, ByVal args( ) As Object, ByVal activationAttributes( ) As Object) As Object


[0484] [JScript] public static function CreateInstance(type: Type, args: Object[ ], activationAttributes: Object [ ]): Object;


[0485] Description


[0486] Creates an instance of the specified type using the constructor that best matches the specified parameters.


[0487] Return Value: A reference to the newly created object.


[0488] The constructor to be invoked must be accessible and provide the most specific match with the specified argument list. The type of object to create. An array of arguments that match in number, order, and type the parameters of the constructor to invoke. If args is an empty array or null, the constructor that takes no parameters (the default constructor) is invoked. An array of one or more attributes that can participate in activation.


[0489] CreateInstance


[0490] [C#] public static object CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, object[ ] args, CultureInfo culture);


[0491] [C++] public: static Object* CreateInstance(Type* type, BindingFlags bindingAttr, Binder* binder, Object* args_gc[ ], CultureInfo* culture);


[0492] [VB] Public Shared Function CreateInstance(ByVal type As Type, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal args( ) As Object, ByVal culture As CultureInfo) As Object


[0493] [JScipt] public static function CreateInstance(type: Type, bindingAttr: BindingFlags, binder: Binder, args: Object [ ], culture: CultureInfo): Object; Creates an instance of the specified type using the constructor that best matches the specified parameters.


[0494] Description


[0495] Creates an instance of the specified type using the constructor that best matches the specified parameters.


[0496] Return Value: A reference to the newly created object.


[0497] The constructor to be invoked must be accessible and provide the most specific match with the specified argument list under the constraints of the specified binder and binding attributes. The type of object to create. A combination of zero or more bit flags that affect the search for the type constructor. If bindingAttr is zero, a case-sensitive search for public properties is conducted. An object that uses bindingAttr and args to seek and identify the type constructor. If binder is null, the default binder is used. An array of arguments that match in number, order, and type the parameters of the constructor to invoke. If args is an empty array or null, the constructor that takes no parameters (the default constructor) is invoked. Culture-specific information that governs the coercion of args to the formal types declared for the type constructor. If culture is null, the System.Globalization.CultureInfo for the current thread is used.


[0498] CreateInstance


[0499] [C#] public static object CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, object [ ] args, CultureInfo culture, object [ ] activationAttributes);


[0500] [C++] public: static Object* CreateInstance(Type* type, BindingFlags bindingAttr, Binder* binder, Object* args_gc[ ], CultureInfo* culture, Object* activationAttributes_gc[ ]);


[0501] [VB] Public Shared Function CreateInstance(ByVal type As Type, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal args( ) As Object, ByVal culture As CultureInfo, ByVal activationAttributes( ) As Object) As Object


[0502] [JScript] public static function CreateInstance(type: Type, bindingAttr: BindingFlags, binder: Binder, args: Object [ ], culture: CultureInfo, activationAttributes: Object [ ]): Object;


[0503] Description


[0504] Creates an instance of the specified type using the constructor that best matches the specified parameters.


[0505] Return Value: A reference to the newly created object.


[0506] The constructor to be invoked must be accessible and provide the most specific match with the specified argument list under the constraints of the specified binder and binding attributes. The type of object to create. A combination of zero or more bit flags that affect the search for the type constructor. If bindingAttr is zero, a case-sensitive search for public properties is conducted. An object that uses bindingAttr and args to seek and identify the type constructor. If binder is null, the default binder is used. An array of arguments that match in number, order, and type the parameters of the constructor to invoke. If args is an empty array or null, the constructor that takes no parameters (the default constructor) is invoked. Culture-specific information that governs the coercion of args to the formal types declared for the type constructor. If culture is null, the System.Globalization.CultureInfo for the current thread is used. An array of one or more attributes that can participate in activation.


[0507] CreateInstance


[0508] [C#] public static ObjectHandle CreateInstance(string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object [ ] args, CultureInfo culture, object [ ] activationAttributes, Evidence securityInfo);


[0509] [C++] public: static ObjectHandle* CreateInstance(String* assemblyName, String* typeName, bool ignoreCase, BindingFlags bindingAttr, Binder* binder, Object* args_gc[ ], CultureInfo* culture, Object* activationAttributes_gc[ ], Evidence* securityInfo);


[0510] [VB] Public Shared Function CreateInstance(ByVal assemblyName As String, ByVal typeName As String, ByVal ignoreCase As Boolean, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal args( ) As Object, ByVal culture As CultureInfo, ByVal activationAttributes( ) As Object, ByVal securityInfo As Evidence) As ObjectHandle


[0511] [JScript] public static function CreateInstance(assemblyName: String, typeName: String, ignoreCase: Boolean, bindingAttr: BindingFlags, binder: Binder, args: Object [ ], culture: CultureInfo, activationAttributes: Object [ ], securityInfo: Evidence): ObjectHandle;


[0512] Description


[0513] Creates an instance of the type whose name is specified, using the named assembly and the constructor that best matches the specified parameters.


[0514] Return Value: A handle, which must be unwrapped to access the newly created instance.


[0515] This method allows types to be created remotely without having to load the type locally. The name of the assembly where the type named typeName is sought. If assemblyName is null, the executing assembly is searched. The name of the desired type. A Boolean that specifies whether the search for typeName is case-sensitive. If ignoreCase is true, the search is not case-sensitive. A combination of zero or more bit flags that affect the search for the typeName constructor. If bindingattr is zero, a case-sensitive search for public properties is conducted. An object that uses bindingAttr and args to seek and identify the typeName constructor. If binder is null, the default binder is used. An array of arguments that match in number, order, and type the parameters of the constructor to invoke. If args is an empty array or null, the constructor that takes no parameters (the default constructor) is invoked. Culture-specific information that governs the coercion of args to the formal types declared for the typeName constructor. If culture is null, the System.Globalization.CultureInfo for the current thread is used. An array of one or more attributes that can participate in activation. Information used to make security policy decisions and grant code permissions.


[0516] CreateInstanceFrom


[0517] [C#] public static ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName);


[0518]

2
[C++] public: static ObjectHandle* CreateInstanceFrom(String* assemblyFile, String* typeName);


[0519] [VB] Public Shared Function CreateInstanceFrom(ByVal assemblyFile As String, ByVal typeName As String) As ObjectHandle


[0520] [JScript] public static function CreateInstanceFrom(assemblyFile: String, typeName: String): ObjectHandle; Creates an instance of the type whose name is specified, using the named assembly file and the constructor that best matches the specified parameters.


[0521] Description


[0522] Creates an instance of the type whose name is specified, using the named assembly file and the constructor that best matches the specified parameters.


[0523] Return Value: A handle, which must be unwrapped to access the newly created instance.


[0524] This method allows types to be created remotely without having to load the type locally. The name of a file that contains an assembly where the type named typeName is sought. The name of the desired type.


[0525] CreateInstanceFrom


[0526] [C#] public static ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, object [ ] activationAttributes);


[0527] [C++] public: static ObjectHandle* CreateInstanceFrom(String* assemblyFile, String* typeName, Object* activationAttributes_gc[ ]);


[0528] [VB] Public Shared Function CreateInstanceFrom(ByVal assemblyFile As String, ByVal typeName As String, ByVal activationAttributes( ) As Object) As ObjectHandle


[0529] [JScript] public static function CreateInstanceFrom(assemblyFile: String, typeName: String, activationAttributes: Object [ ]): ObjectHandle;


[0530] Description


[0531] Creates an instance of the type whose name is specified, using the named assembly file and the constructor that best matches the specified parameters.


[0532] Return Value: A handle, which must be unwrapped to access the newly created instance.


[0533] This method allows types to be created remotely without having to load the type locally. The name of a file that contains an assembly where the type named typeName is sought. The name of the desired type. An array of one or more attributes that can participate in activation.


[0534] CreateInstanceFrom


[0535] [C#] public static ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object [ ] args, CultureInfo culture, object [ ] activationAttributes, Evidence securityInfo);


[0536] [C++] public: static ObjectHandle* CreateInstanceFrom(String* assemblyFile, String* typeName, bool ignoreCase, BindingFlags bindingAttr, Binder* binder, Object* args_gc[ ], CultureInfo* culture, Object* activationAttributes_gc[ ], Evidence* securityInfo);


[0537] [VB] Public Shared Function CreateInstanceFrom(ByVal assemblyFile As String, ByVal typename As String, ByVal ignoreCase As Boolean, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal args( ) As Object, ByVal culture As CultureInfo, ByVal activationAttributes( ) As Object, ByVal securityInfo As Evidence) As ObjectHandle


[0538] [JScript] public static function CreateInstanceFrom(assemblyFile: String, typeName: String, ignoreCase: Boolean, bindingAttr: BindingFlags, binder: Binder, args: Object [ ], culture: CultureInfo, activationAttributes: Object [ ], securityInfo: Evidence): ObjectHandle;


[0539] Description


[0540] Creates an instance of the type whose name is specified, using the named assembly file and the constructor that best matches the specified parameters.


[0541] Return Value: A handle, which must be unwrapped to access the newly created instance.


[0542] This method allows types to be created remotely without having to load the type locally. The name of a file that contains an assembly where the type named typeName is sought. The name of the desired type. A Boolean that specifies whether the search for typeName is case-sensitive. If ignoreCase is true, the search is not case-sensitive. A combination of zero or more bit flags that affect the search for the typeName constructor. If bindingAttr is zero, a case-sensitive search for public properties is conducted. An object that uses bindingAttr and args to seek and identify the typeName constructor. If binder is null, the default binder is used. An array of arguments that match in number, order, and type the parameters of the constructor to invoke. If args is an empty array or null, the constructor that takes no parameters (the default constructor) is invoked. Culture-specific information that governs the coercion of args to the formal types declared for the typeName constructor. If culture is null, the System.Globalization.CultureInfo for the current thread is used. An array of one or more attributes that can participate in activation. Information used to make security policy decisions and grant code permissions.


[0543] GetObject


[0544] [C#] public static object GetObject(Type type, string url);


[0545] [C++] public: static Object* GetObject(Type* type, String* url);


[0546] [VB] Public Shared Function GetObject(ByVal type As Type, ByVal url As String) As Object


[0547] [JScript] public static function GetObject(type: Type, url: String): Object; Creates a proxy for a currently running remote object, server-activated well-known object, or web service.


[0548] Description


[0549] Creates a proxy for the well-known object indicated by the specified type and URL.


[0550] Return Value: A proxy that points to an endpoint served by the requested well-known object.


[0551] Call the proxy to send messages to the remote object. No messages are sent over the network until a method is called on the proxy. The type of the well-known object to which you want to connect. The URL of the well-known object.


[0552] GetObject


[0553] [C#] public static object GetObject(Type type, string url, object state);


[0554] [C++] public: static Object* GetObject(Type* type, String* url, Object* state);


[0555] [VB] Public Shared Function GetObject(ByVal type As Type, ByVal url As String, ByVal state As Object) As Object


[0556] [JScript] public static function GetObject(type: Type, url: String, state: Object) Object;


[0557] Description


[0558] Creates a proxy for the well-known object indicated by the specified type, URL, and channel data.


[0559] Return Value: A proxy that points to an endpoint served by the requested well-known object.


[0560] Call the proxy to send messages to the remote object. No messages are sent over the network until a method is called on the proxy. The type of the well-known object to which you want to connect. The URL of the well-known object. Channel-specific data or null.


[0561] AppDomain class (System)


[0562] ToString


[0563] Description


[0564] Represents an application domain, which is an isolated environment where applications execute. This class cannot be inherited.


[0565] Application domains isolate executing applications from one another. One or more applications can run in a single application domain.


[0566] BaseDirectory


[0567] ToString


[0568] [C#] public string BaseDirectory {get;}


[0569] [C++] public: _property String* get_BaseDirectory( );


[0570] [VB] Public ReadOnly Property BaseDirectory As String


[0571] [JScript] public function get BaseDirectory( ): String;


[0572] Description


[0573] Gets the base directory that the assembly resolver used to probe for assemblies.


[0574] This property corresponds to the assembly resolver's APPBASE.


[0575] CurrentDomain


[0576] ToString


[0577] [C#] public static AppDomain CurrentDomain {get;}


[0578] [C++] public: _property static AppDomain* get_CurrentDomain( );


[0579] [VB] Public Shared ReadOnly Property CurrentDomain As AppDomain


[0580] [JScript] public static function get CurrentDomain( ): AppDomain;


[0581] Description


[0582] Gets the current application domain for the current System.Threading.Thread.


[0583] DynamicDirectory


[0584] ToString


[0585] [C#] public string DynamicDirectory {get;}


[0586] [C++] public: _property String* get_DynamicDirectory( );


[0587] [VB] Public ReadOnly Property DynamicDirectory As String


[0588] [JScript] public function get DynamicDirectory( ): String;


[0589] Description


[0590] Gets the directory that the assembly resolver used to probe for dynamically-created assemblies.


[0591] Only available once an attempt has been made to load an assembly into this domain.


[0592] Evidence


[0593] ToString


[0594] [C#] public Evidence Evidence {get;}


[0595] [C++] public: Property Evidence* get_Evidence( );


[0596] [VB] Public ReadOnly Property Evidence As Evidence


[0597] [JScript] public function get Evidence( ): Evidence;


[0598] Description


[0599] Gets the System.Security.Policy.Evidence associated with this application domain that is used as input to security policy.


[0600] FriendlyName


[0601] ToString


[0602] [C#] public string FriendlyName {get;}


[0603] [C++] public: _property String* get_FriendlyName( );


[0604] [VB] Public ReadOnly Property FriendlyName As String


[0605] [JScript] public function get FriendlyName( ): String;


[0606] Description


[0607] Gets the friendly name of this application domain.


[0608] The friendly name of the default application domain is the name of the assembly file loaded in the application domain. The friendly name is formed by stripping the directory specification from the assembly's codebase. For example, if an assembly with the file name “c:\MyAppDirectory\MyAssembly.exe” is loaded in the default application domain, the friendly name of that application domain is “MyAssembly.exe”.


[0609] RelativeSearchPath


[0610] ToString


[0611] [C#] public string RelativeSearchPath {get;}


[0612] [C++] public: _property String* get_RelativeSearchPath( );


[0613] [VB] Public ReadOnly Property RelativeSearchPath As String


[0614] [JScript] public function get RelativeSearchPath( ): String;


[0615] Description


[0616] Gets the path relative to the base directory where the assembly resolver should probe for private assemblies.


[0617] Private assemblies are deployed in the same directory structure as the application.


[0618] SetupInformation


[0619] ToString


[0620] [C#] public AppDomainSetup SetupInformation {get; }


[0621] [C++] public: _property AppDomainSetup* get_SetupInformation( );


[0622] [VB] Public ReadOnly Property SetupInformation As AppDomainSetup


[0623] [JScript] public function get SetupInformation( ): AppDomainSetup;


[0624] Description


[0625] Gets the application domain configuration information for this instance.


[0626] ShadowCopyFiles


[0627] ToString


[0628] [C#] public bool ShadowCopyFiles {get; }


[0629] [C++] public: _property bool get_ShadowCopyFiles( );


[0630] [VB] Public ReadOnly Property ShadowCopyFiles As Boolean


[0631] [JScript] public function get ShadowCopyFiles( ): Boolean;


[0632] Description


[0633] Gets an indication whether all assemblies that are loaded in the application domain are shadow copied.


[0634] This method sets the System.AppDomainSetup.ShadowCopyFiles property of the internal System.AppDomainSetup object associated with this instance.


[0635] ToString


[0636] [C#] public event AssemblyLoadEventHandler AssemblyLoad;


[0637] [C++] public: _sealed_event AssemblyLoadEventHandler* AssemblyLoad;


[0638] [VB] NotOverridable Public Event AssemblyLoad As AssemblyLoadEventHandler


[0639] Description


[0640] Occurs when an assembly is loaded.


[0641] The System.AssemblyLoadEventHandler for this event can attempt to locate the assembly and load it.


[0642] ToSting


[0643] [C#] public event ResolveEventHandler AssemblyResolve;


[0644] [C++] public: _sealed_event ResolveEventHandler* AssemblyResolve;


[0645] [VB] NotOverridable Public Event AssemblyResolve As ResolveEventHandler


[0646] Description


[0647] Occurs when the resolution of an assembly fails.


[0648] The System.ResolveEventHandler for this event can attempt to locate the assembly and load it.


[0649] ToString


[0650] [C#] public event EventHandler DomainUnload;


[0651] [C++] public: _sealed_event EventHandler* DomainUnload;


[0652] [VB] NotOverridable Public Event DomainUnload As EventHandler


[0653] Description


[0654] Occurs when an System.AppDomain is about to be unloaded. The System.EventHandler for this event can attempt to locate the assembly and load it.


[0655] ToString


[0656] [C#] public event EventHandler ProcessExit;


[0657] [C++] public: _sealed_event EventHandler* ProcessExit;


[0658] [VB] NotOverridable Public Event ProcessExit As EventHandler


[0659] Description


[0660] Occurs when a process is about to exit.


[0661] The System.EventHandler for this event can perform termination activities, such as closing files, releasing storage and so on, before the process ends.


[0662] ToString


[0663] [C#] public event ResolveEventHandler ResourceResolve;


[0664] [C++] public: _sealed_event ResolveEventHandler* ResourceResolve;


[0665] [VB] NotOverridable Public Event ResourceResolve As ResolveEventHandler


[0666] Description


[0667] Occurs when the resolution of a resource fails.


[0668] The System.ResolveEventHandler for this event can attempt to locate the resource and load it.


[0669] ToString


[0670] [C#] public event ResolveEventHandler TypeResolve;


[0671] [C++] public: 13 sealed_event ResolveEventHandler* TypeResolve;


[0672] [VB] NotOverridable Public Event TypeResolve As ResolveEventHandler


[0673] Description


[0674] Occurs when the resolution of a type fails.


[0675] The System.ResolveEventHandler for this event can attempt to locate the type and load it.


[0676] ToString


[0677] [C#] public event UnhandledExceptionEventHandler UnhandledException;


[0678] [C++] public: 13 sealed_event UnhandledExceptionEventHandler* UnhandledException;


[0679] [VB] NotOverridable Public Event UnhandledException As UnhandledExceptionEventHandler


[0680] Description


[0681] Occurs when an exception is not caught by an event handler.


[0682] For more information about handling events, see.


[0683] AppendPrivatePath


[0684] [C#] public void AppendPrivatePath(string path);


[0685] [C++] public: _sealed void AppendPrivatePath(String* path);


[0686] [VB] NotOverridable Public Sub AppendPrivatePath(ByVal path As String)


[0687] [JScript] public function AppendPrivatePath(path: String);


[0688] Description


[0689] Appends the specified name of the directory to the private path.


[0690] The private path, or relative search path, is the path relative to the base directory where the assembly resolver probes for private assemblies. The name of the directory to be appended to the private path.


[0691] ClearPrivatePath


[0692] [C#] public void ClearPrivatePath( );


[0693] [C++] public: _sealed void ClearPrivatePath( );


[0694] [VB] NotOverridable Public Sub ClearPrivatePath( )


[0695] [JScript] public function ClearPrivatePath( );


[0696] Description


[0697] Resets the System.AppDomainSetup.PrivateBinPath for this instance to null.


[0698] ClearShadowCopyPath


[0699] [C#] public void ClearShadowCopyPath( );


[0700] [C++] public: _sealed void ClearShadowCopyPath( );


[0701] [VB+] NotOverridable Public Sub ClearShadowCopyPath( )


[0702] [JScript] public function ClearShadowCopyPath( );


[0703] Description


[0704] Resets the System.AppDomainSetup.ShadowCopyDirectories property for this instance to null.


[0705] CreateInstanceFrom


[0706] [C#] public ObjectHandle CreateComInstanceFrom(string assemblyName, string typeName);


[0707] [C++] public: ObjectHandle* CreateComInstanceFrom(String* assemblyName, String* typeName);


[0708] [VB] Public Function CreateComInstanceFrom(ByVal assemblyName As String, ByVal typeName As String) As ObjectHandle


[0709] [JScript] public function CreateComInstanceFrom(assemblyName: String, typeName: String): ObjectHandle;


[0710] Description


[0711] Creates an instance of a COM object. Parameters specify the name of the assembly that can create the object and the name of the type of the object.


[0712] Return Value: An object that is a wrapper for the new instance.


[0713] Use this method to create types remotely without having to load the type locally. The return value must to be unwrapped in order to access the real object. The name of the assembly in which this object type resides. The type name of the desired object.


[0714] CreateDomain


[0715] [C#] public static AppDomain CreateDomain(string friendlyName);


[0716] [C++] public: static AppDomain* CreateDomain(String* friendlyName);


[0717] [VB] Public Shared Function CreateDomain(ByVal friendlyName As String) As AppDomain


[0718] [JScript] public static function CreateDomain(friendlyName: String): AppDomain;


[0719] Description


[0720] Creates a new application domain with the specified name.


[0721] Return Value: The newly created application domain. friendlyName can be displayed in user interfaces to identify the domain. The friendly name of the domain.


[0722] CreateDomain


[0723] [C#] public static AppDomain CreateDomain(string friendlyName, Evidence securityInfo);


[0724] [C++] public: static AppDomain* CreateDomain(String* friendlyName, Evidence* securityInfo);


[0725] [VB] Public Shared Function CreateDomain(ByVal friendlyName As String, ByVal securityInfo As Evidence) As AppDomain


[0726] [JScript] public static function CreateDomain(friendlyName: String, securityInfo: Evidence): AppDomain; Creates a new application domain.


[0727] Description


[0728] Creates a new application domain with the given name using the supplied evidence.


[0729] Return Value: The newly created application domain. The friendly name of the domain. This friendly name can be displayed in user interfaces to identify the domain. See the description of System.AppDomain.FriendlyName. Evidence mapped through security policy to establish a top-of-stack permission set.


[0730] CreateDomain


[0731] [C#] public static AppDomain CreateDomain(string friendlyName, Evidence securityInfo, AppDomainSetup info);


[0732] [C++] public: static AppDomain* CreateDomain(String* friendlyName, Evidence* securityInfo, AppDomainSetup* info);


[0733] [VB] Public Shared Function CreateDomain(ByVal friendlyName As String, ByVal securityInfo As Evidence, ByVal info As AppDomainSetup) As AppDomain


[0734] [JScript] public static function CreateDomain(friendlyName: String, securityInfo: Evidence, info: AppDomainSetup): AppDomain;


[0735] Description


[0736] Creates a new application domain using the specified name, evidence, application domain setup information.


[0737] Return Value: The newly created application domain. The friendly name of the domain. This friendly name can be displayed in user interfaces to identify the domain. See the description of System.AppDomain.FriendlyName. Evidence mapped through security policy to establish a top-of-stack permission set. An object that contains application domain initialization information.


[0738] CreateDomain


[0739] [C#] public static AppDomain CreateDomain(string friendlyName, Evidence securityInfo, string appBasePath, string appRelativeSearchPath, bool shadowCopyFiles);


[0740] [C++] public: static AppDomain* CreateDomain(String* friendlyName, Evidence* securityInfo, String* appBasePath, String* appRelativeSearchPath, bool shadowCopyFiles);


[0741] [VB] Public Shared Function CreateDomain(ByVal friendlyName As String, ByVal securityInfo As Evidence, ByVal appBasePath As String, ByVal appRelativeSearchPath As String, ByVal shadowCopyFiles As Boolean) As AppDomain


[0742] [JScript] public static function CreateDomain(friendlyName: String, securityInfo: Evidence, appBasePath: String, appRelativeSearchPath: String, shadowCopyFiles: Boolean): AppDomain;


[0743] Description


[0744] Creates a new application domain with the given name using, evidence, application base path, relative search path, and a parameter that specifies whether a shadow copy of an assembly is to be loaded in to the application domain.


[0745] Return Value: The newly created application domain. The friendly name of the domain. This friendly name can be displayed in user interfaces to identify the domain. See the description of System.AppDomain.FriendlyName. Evidence mapped through security policy to establish a top-of-stack permission set. The base directory that the assembly resolver uses to probe for assemblies. See the description of System.AppDomain.BaseDirectory. The path relative to the base directory where the assembly resolver should probe for private assemblies. See the description of System.AppDomain.RelativeSearchPath. If true, a shadow copy of an assembly is loaded into this application domain.


[0746] CreateInstance


[0747] [C#] public ObjectHandle CreateInstance(string assemblyName, string typeName);


[0748] [C++] public: _sealed ObjectHandle* CreateInstance(String* assemblyName, String* typeName);


[0749] [VB] NotOverridable Public Function CreateInstance(ByVal assemblyName As String, ByVal typeName As String) As ObjectHandle


[0750] [JScript] public function CreateInstance(assemblyName: String, typeName: String): ObjectHandle; Creates a new instance of a specified type defined in the specified assembly file.


[0751] Description


[0752] Creates a new instance of the specified type defined in the specified assembly.


[0753] Return Value: An object that is a wrapper for the new instance, or null if typeName is not found. The return value needs to be unwrapped to access the real object.


[0754] This is a convenience method that calls the default constructor for typeName . The display name of the assembly. See the description of System.Reflection.AssemblyName for the format of the display name. The full name of the type.


[0755] CreateInstance


[0756] [C#] public ObjectHandle CreateInstance(string assemblyName, string typeName, object [ ] activationAttributes);


[0757] [C++] public: _sealed ObjectHandle* CreateInstance(String* assemblyName, String* typeName, Object* activationAttributes_gc[ ]);


[0758] [VB] NotOverridable Public Function CreateInstance(ByVal assemblyName As String, ByVal typeName As String, ByVal activationAttributes( ) As Object) As ObjectHandle


[0759] [JScript] public function CreateInstance(assemblyName: String, typeName: String, activationAttributes: Object [ ]): ObjectHandle;


[0760] Description


[0761] Creates an instance using the name of the type and the assembly where it exists.


[0762] Return Value: A handle to the requested object.


[0763] This method allows types to be created remotely without having to load the type locally. This will return an System.Runtime.Remoting.ObjectHandle that needs to be unwrapped in order to access the real object. The name of the assembly in which this object type resides. The type name of the desired object. One or more attributes that can participate in activation.


[0764] CreateInstance


[0765] [C#] public ObjectHandle CreateInstance(string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object [ ] args, CultureInfo culture, object [ ] activationAttributes, Evidence securityAttributes);


[0766] [C++] public: _sealed ObjectHandle* CreateInstance(String* assemblyName, String* typeName, bool ignoreCase, BindingFlags bindingAttr, Binder* binder, Object* args 13 gc[ ], CultureInfo* culture, Object* activationAttributes_gc[ ], Evidence* securityAttributes);


[0767] [VB] NotOverridable Public Function CreateInstance(ByVal assemblyName As String, ByVal typeName As String, ByVal ignoreCase As Boolean, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal args( ) As Object, ByVal culture As CultureInfo, ByVal activationAttributes( ) As Object, ByVal securityAttributes As Evidence) As ObjectHandle


[0768] [JScript] public function CreateInstance(assemblyName: String, typeName: String, ignoreCase: Boolean, bindingAttr: BindingFlags, binder: Binder, args: Object [ ], culture: CultureInfo, activationAttributes: Object [ ], securityAttributes: Evidence): ObjectHandle;


[0769] Description


[0770] Creates an instance using the name of the type and the assembly where it exists.


[0771] Return Value: A handle to the requested object.


[0772] This method allows types to be created remotely without having to load the type locally. This will return an System.Runtime.Remoting.ObjectHandle that needs to be unwrapped in order to access the real object. The name of the assembly in which this object type resides. The type name of the desired object. A Boolean value specifying whether to perform a case-sensitive search or not. This bitmask affects the way in which the search is conducted. The value is a combination of zero or more bit flags from System.Reflection.BindingFlags, such as NonPublicand OABinding. An object that enables the binding, coercion of argument types, invocation of members and retrieval of System.Reflection.MemberInfo objects using reflection. If binder is null, the default binder is used. The arguments to be passed to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to be invoked. If the default constructor is desired, args must be an empty array or null. An instance of System.Globalization.CultureInfo used to govern the coercion of types. If this is null, the CultureInfofor the current thread is used. (Note that this is necessary to, for example, convert a Stringthat represents 1000 to a Double value, since 1000 is represented differently by different cultures.) One or more attributes that can participate in activation.


[0773] CreateInstanceAndUnwrap


[0774] [C#] public object CreateInstanceAndUnwrap(string assemblyName, string typeName);


[0775] [C++] public: Object* CreateInstanceAndUnwrap(String* assemblyName, String* typeName);


[0776] [VB] Public Function CreateInstanceAndUnwrap(ByVal assemblyName As String, ByVal typeName As String) As Object


[0777] [JScript] public function CreateInstanceAndUnwrap(assemblyName: String, typeName: String): Object; Creates a new instance of a specified type.


[0778] Description


[0779] Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, and the name of the type.


[0780] Return Value: An instance of typeName, or null if typeName is not found.


[0781] This a convenience method that combines System.AppDomain.CreateInstance(System.String,System.String) and System.Runtime.Remoting.ObjectHandle.Unwrap. This method calls the default constructor for typeName. The name of the assembly. The fully qualified name of the type.


[0782] CreateInstanceAndUnwrap


[0783] [C#] public object CreateInstanceAndUnwrap(string assemblyName, string typeName, object [ ] activationAttributes);


[0784] [C++] public: Object* CreateInstanceAndUnwrap(String* assemblyName, String* typeName, Object* activationAttributes_gc[ ]);


[0785] [VB] Public Function CreateInstanceAndUnwrap(ByVal assemblyName As String, ByVal typeName As String, ByVal activationAttributes( ) As Object) As Object


[0786] [JScript] public function CreateInstanceAndUnwrap(assemblyName: String, typeName: String, activationAttributes: Object [ ]): Object;


[0787] Description


[0788] Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, the name of the type, and an array of activation attributes.


[0789] Return Value: An instance of typeName, or null if typeName is not found.


[0790] This a convenience method that combines System.AppDomain.CreateInstance(System.String,System.String) and System.Runtime.Remoting.ObjectHandle.Unwrap. This method calls the default constructor for typeName. The name of the assembly. The fully qualified name of the type. An array containing one or more attributes that can participate in activation.


[0791] CreateInstanceAndUnwrap


[0792] [C#] public object CreateInstanceAndUnwrap(string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object [ ] args, CultureInfo culture, object [ ] activationAttributes, Evidence securityAttributes);


[0793] [C++] public: Object* CreateInstanceAndUnwrap(String* assemblyName, String* typeName, bool ignoreCase, BindingFlags bindingAttr, Binder* binder, Object* args_gc[ ], CultureInfo* culture, Object* activationAttributes_gc[ ], Evidence* securityAttributes);


[0794] [VB] Public Function CreateInstanceAndUnwrap(ByVal assemblyName As String, ByVal typeName As String, ByVal ignoreCase As Boolean, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal args( ) As Object, ByVal culture As CultureInfo, ByVal activationAttributes( ) As Object, ByVal securityAttributes As Evidence) As Object


[0795] [JScript] public function CreateInstanceAndUnwrap(assemblyName: String, typeName: String, ignoreCase: Boolean, bindingAttr: BindingFlags, binder: Binder, args: Object [ ], culture: CultureInfo, activationAttributes: Object [ ], securityAttributes: Evidence): Object;


[0796] Description


[0797] Creates a new instance of the specified type. Parameters specify the name of the type and how it is found and created.


[0798] Return Value: An System.Object, which is an instance of typeName, or null if typeName is not found.


[0799] This a convenience method that combines System.AppDomain.CreateInstance(System.String,System.String) and System.Runtime.Remoting.ObjectHandle.Unwrap. The name of the assembly. The fully qualified name of the type. A Boolean value specifying whether to perform a case-sensitive search or not. This bitmask affects the way in which the search is conducted. The value is a combination of zero or more bit flags from System.Reflection.BindingFlags, such as NonPublicand OABinding. An object that enables the binding, coercion of argument types, invocation of members and retrieval of System.Reflection.MemberInfo objects using reflection. If binder is null, the default binder is used. The arguments to be passed to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to be invoked. If the default constructor is desired, args must be an empty array or null. A culture-specific object used to govern the coercion of types. If culture is null, the CultureInfofor the current thread is used. (Note that this is necessary to, for example, convert a Stringthat represents 1000 to a Double value, since 1000 is represented differently by different cultures.) An System.Object array containing one or more attributes that can participate in activation. An System.Security.Policy.Evidence object used to verify that typeName is allowed to be created.


[0800] CreateInstanceFrom


[0801] [C#] public ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName);


[0802] [C++] public: _sealed ObjectHandle* CreateInstanceFrom(String* assemblyFile, String* typeName);


[0803] [VB] NotOverridable Public Function CreateInstanceFrom(ByVal assemblyFile As String, ByVal typeName As String) As ObjectHandle


[0804] [JScript] public function CreateInstanceFrom(assemblyFile: String, typeName: String): ObjectHandle; Creates a new instance of a specified type defined in the specified assembly file.


[0805] Description


[0806] Creates a new instance of the specified type defined in the specified assembly file.


[0807] Return Value: An object that is a wrapper for the new instance, or null if typeName is not found. The return value needs to be unwrapped to access the real object.


[0808] This is a convenience method that calls the default constructor for typeName. The assembly file name. The full name of the type.


[0809] CreateInstanceFrom


[0810] [C#] public ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, object [ ] activationAttributes);


[0811] [C++] public: _sealed ObjectHandle* CreateInstanceFrom(String* assemblyFile, String* typeName, Object* activationAttributes_gc[ ]);


[0812] [VB] NotOverridable Public Function CreateInstanceFrom(ByVal assemblyFile As String, ByVal typeName As String, ByVal activationAttributes( ) As Object) As ObjectHandle


[0813] [JScript] public function CreateInstanceFrom(assemblyFile: String, typeName: String, activationAttributes: Object [ ]): ObjectHandle;


[0814] Description


[0815] Creates a new instance of the specified type defined in the specified assembly file.


[0816] Return Value: A handle to the requested object.


[0817] This method allows types to be created remotely without having to load the type locally. This will return an System.Runtime.Remoting.ObjectHandle that needs to be unwrapped in order to access the real object. The file containing the desired object's assembly. The type name of the desired object. One or more attributes that can participate in activation.


[0818] CreateInstanceFrom


[0819] [C#] public ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object [ ] args, CultureInfo culture, object [ ] activationAttributes, Evidence securityAttributes);


[0820] [C++] public: _sealed ObjectHandle* CreateInstanceFrom(String* assemblyFile, String* typeName, bool ignoreCase, BindingFlags bindingAttr, Binder* binder, Object* args_gc[ ], CultureInfo* culture, Object* activationAttributes =13 gc[ ], Evidence* securityAttributes);


[0821] [VB] NotOverridable Public Function CreateInstanceFrom(ByVal assemblyFile As String, ByVal typeName As String, ByVal ignoreCase As Boolean, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal args( ) As Object, ByVal culture As CultureInfo, ByVal activationAttributes( ) As Object, ByVal securityAttributes As Evidence) As ObjectHandle


[0822] [JScript] public function CreateInstanceFrom(assemblyFile: String, typeName: String, ignoreCase: Boolean, bindingAttr: BindingFlags, binder: Binder, args: Object [ ], culture: CultureInfo, activationAttributes: Object [ ], securityAttributes: Evidence): ObjectHandle;


[0823] Description


[0824] Creates a new instance of the specified type defined in the specified assembly file.


[0825] Return Value: A handle to the requested object.


[0826] This method allows types to be created remotely without having to load the type locally. This will return an System.Runtime.Remoting.ObjectHandle that needs to be unwrapped in order to access the real object. The file for the assembly in which this object type resides. The type name of the desired object. A Boolean value specifying whether to perform a case-sensitive search or not. This bitmask affects the way in which the search is conducted. The value is a combination of zero or more bit flags from System.Reflection.BindingFlags, such as NonPublicand OABinding. An object that enables the binding, coercion of argument types, invocation of members and retrieval of System.Reflection.MemberInfo objects through reflection. If binder is null, the default binder is used. The arguments to be passed to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to be invoked. If the default constructor is desired, args must be an empty array or null. An instance of System.Globalization.CultureInfo used to govern the coercion of types. If this is null, the CultureInfofor the current thread is used. (Note that this is necessary to, for example, convert a Stringthat represents 1000 to a Double value, since 1000 is represented differently by different cultures.) One or more attributes that can participate in activation.


[0827] CreateInstanceFromAndUnwrap


[0828] [C#] public object CreateInstanceFromAndUnwrap(string assemblyName, string typeName);


[0829] [C++] public: Object* CreateInstanceFromAndUnwrap(String* assemblyName, String* typeName);


[0830] [VB] Public Function CreateInstanceFromAndUnwrap(ByVal assemblyName As String, ByVal typeName As String) As Object


[0831] [JScript] public function CreateInstanceFromAndUnwrap(assemblyName: String, typeName: String): Object; Creates a new instance of a specified type defined in the specified assembly file.


[0832] Description


[0833] Creates a new instance of the specified type defined in the specified assembly file.


[0834] Return Value: Returns an System.Runtime.Remoting.ObjectHandle object that is a wrapper for the new instance. Returns null if the type is not found.


[0835] This a convenience method that combines System.AppDomain.CreateInstance(System.String,System.String) and System.Runtime.Remoting.ObjectHandle.Unwrap. This method calls the default constructor for typeName. The assembly file name. The full name of the type.


[0836] CreateInstanceFromAndUnwrap


[0837] [C#] public object CreateInstanceFromAndUnwrap(string assemblyName, string typeName, object [ ] activationAttributes);


[0838] [C++] public: Object* CreateInstanceFromAndUnwrap(String* assemblyName, String* typeName, Object* activationAttributes_gc[ ]);


[0839] [VB] Public Function CreateInstanceFromAndUnwrap(ByVal assemblyName As String, ByVal typeName As String, ByVal activationAttributes( ) As Object) As Object


[0840] [JScript] public function CreateInstanceFromAndUnwrap(assemblyName: String, typeName: String, activationAttributes: Object [ ]): Object;


[0841] Description


[0842] Creates an instance using the name of the type and the assembly where it exists. This allows types to be created remotely without having to load the type locally. This will return an ObjectHandle that needs to be unwrapped in order to access the real object.


[0843] Return Value: A handle to the desired object.


[0844] This a convenience method that combines System.AppDomain.CreateInstance(System.String,System.String) and System.Runtime.Remoting.ObjectHandle.Unwrap. This method calls the default constructor for typeName. The file containing the desired object's assembly. The type name of the desired object. One or more attributes that can participate in activation.


[0845] CreateInstanceFromAndUnwrap


[0846] [C#] public object CreateInstanceFromAndUnwrap(string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object [ ] args, CultureInfo culture, object [ ] activationAttributes, Evidence securityAttributes);


[0847] [C++] public: Object* CreateInstanceFromAndUnwrap(String* assemblyName, String* typeName, bool ignoreCase, BindingFlags bindingAttr, Binder* binder, Object* args_gc[ ], CultureInfo* culture, Object* activationAttributes_gc[ ], Evidence* securityAttributes);


[0848] [VB] Public Function CreateInstanceFromAndUnwrap(ByVal assemblyName As String, ByVal typeName As String, ByVal ignoreCase As Boolean, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal args( ) As Object, ByVal culture As CultureInfo, ByVal activationAttributes( ) As Object, ByVal securityAttributes As Evidence) As Object


[0849] [JScript] public function CreateInstanceFromAndUnwrap(assemblyName: String, typeName: String, ignoreCase: Boolean, bindingAttr: BindingFlags, binder: Binder, args: Object [ ], culture: CultureInfo, activationAttributes: Object [ ], securityAttributes: Evidence): Object;


[0850] Description


[0851] Creates an instance using the name of the type and the assembly where it exists. This allows types to be created remotely without having to load the type locally. This will return an ObjectHandle that needs to be unwrapped in order to access the real object.


[0852] Return Value: A handle to the requested object.


[0853] This a convenience method that combines System.AppDomain.CreateInstance(System.String,System.String) and System.Runtime.Remoting.ObjectHandle.Unwrap. The file for the assembly in which this object type resides. The type name of the desired object. A Boolean value specifying whether to perform a case-sensitive search or not. This bitmask affects the way in which the search is conducted. The value is a combination of zero or more bit flags from System.Reflection.BindingFlags, such as NonPublicand OABinding. An object that enables the binding, coercion of argument types, invocation of members and retrieval of System.Reflection.MemberInfo objects through reflection. If binder is null, the default binder is used. The arguments to be passed to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to be invoked. If the default constructor is desired, args must be an empty array or null. An instance of System.Globalization.CultureInfo used to govern the coercion of types. If culture is null, the CultureInfo for the current thread is used. (Note that this is necessary to, for example, convert a String that represents 1000 to a Double value, since 1000 is represented differently by different cultures.) One or more attributes that can participate in activation.


[0854] DefineDynamicAssembly


[0855] [C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access);


[0856] [C++] public: _sealed AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access);


[0857] [VB] NotOverridable Public Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess) As AssemblyBuilder


[0858] [JScript] public function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess): AssemblyBuilder; Defines a dynamic assembly in the current application domain.


[0859] Description


[0860] Defines a dynamic assembly with the given name and the given access.


[0861] Return Value: Represents the dynamic assembly created.


[0862] You can specify partial signing of the assembly by specifying AssemblyName.Originator. You can specify full signing of the assembly by specifying AssemblyName.Originator and AssemblyName.KeyPair. The “strong name”, or unique identity of the dynamic assembly. The access mode for the dynamic assembly.


[0863] DefineDynamicAssembly


[0864] [C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, Evidence evidence);


[0865] [C++] public: _sealed AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, Evidence* evidence);


[0866] [VB] NotOverridable Public Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal evidence As Evidence) As AssemblyBuilder


[0867] [JScript] public function DefineDynamicAssembly(name: AssemblyName, access AssemblyBuilderAccess, evidence: Evidence): AssemblyBuilder;


[0868] Description


[0869] Defines a dynamic assembly with the given name, the given access, and the supplied evidence.


[0870] Return Value: Represents the dynamic assembly created.


[0871] Only fully trusted callers can supply evidence when defining a dynamic assembly. The runtime will map the supplied evidence through policy to determine the granted permissions. Semi-trusted callers must supply a null evidence. If evidence is null, the runtime copies the permission sets, that is, the current grant and deny sets, from the caller's assembly to the dynamic assembly being defined and marks policy as resolved. If the dynamic assembly is saved to disk, subsequent loads will get grants based on policies associated with the location where the assembly was saved. The unique identity of the dynamic assembly. The mode in which the dynamic assembly will be accessed. The evidence supplied for the dynamic assembly.


[0872] DefineDynamicAssembly


[0873] [C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir);


[0874] [C++] public: _sealed AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, String* dir);


[0875] [VB] NotOverridable Public Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal dir As String) As AssemblyBuilder


[0876] [JScript] public function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, dir: String): AssemblyBuilder;


[0877] Description Defines a dynamic assembly with the given name, the given access, and the name of the directory for saving the assembly.


[0878] Return Value: Represents the dynamic assembly created.


[0879] You can specify partial signing of the assembly by specifying AssemblyName.Originator. You can specify full signing of the assembly by specifying AssemblyName.Originator and AssemblyName.KeyPair. The unique identity of the dynamic assembly. The mode in which the dynamic assembly will be accessed. The name of the directory in which the assembly will be saved. If dir is null, the directory defaults to the current directory.


[0880] DefineDynamicAssembly


[0881] [C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence);


[0882] [C++] public: _sealed AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, String* dir, Evidence* evidence);


[0883] [VB] NotOverridable Public Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal dir As String, ByVal evidence As Evidence) As AssemblyBuilder


[0884] [JScript] public function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, dir: String, evidence: Evidence): AssemblyBuilder;


[0885] Description


[0886] Defines a dynamic assembly with the given name, given access, the name of the directory for saving the assembly, and the supplied evidence.


[0887] Return Value: Represents the dynamic assembly created.


[0888] Only fully trusted callers can supply their evidence when defining a dynamic assembly. The runtime will map the evidence through policy to determine the granted permissions. Semi-trusted callers must supply a null evidence. If evidence is null, the runtime copies the permission sets, that is, the current grant and deny sets, from the caller's assembly to the dynamic assembly being defined and marks policy as resolved. If the dynamic assembly is saved to disk, subsequent loads will get grants based on policies associated with the location where the assembly was saved. The unique identity of the dynamic assembly. The mode in which the dynamic assembly will be accessed. The name of the directory in which the assembly will be saved. If dir is null, the directory defaults to the current directory. The evidence supplied for the dynamic assembly.


[0889] DefineDynamicAssembly


[0890] [C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);


[0891] [C++] public: _sealed AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, PermissionSet* requiredPermissions, PermissionSet* optionalPermissions, PermissionSet* refusedPermissions);


[0892] [VB] NotOverridable Public Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal requiredPermissions As PermissionSet, ByVal optionalPermissions As PermissionSet, ByVal refusedPermissions As PermissionSet) As AssemblyBuilder


[0893] [JScript] public function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, requiredPermissions: PermissionSet, optionalPermissions: PermissionSet, refusedpermissions: PermissionSet): AssemblyBuilder;


[0894] Description


[0895] Defines a dynamic assembly with the given name, the given access, and the given permission requests.


[0896] Return Value: Represents the dynamic assembly created.


[0897] You can specify partial signing of the assembly by specifying AssemblyName.Originator. You can specify full signing of the assembly by specifying AssemblyName.Originator and AssemblyName.KeyPair. The unique identity of the dynamic assembly. The mode in which the dynamic assembly will be accessed. The required permission request. The optional permission request. The refused permission request.


[0898] DefineDynamicAssembly


[0899] [C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);


[0900] [C++] public: _sealed AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, Evidence* evidence, PermissionSet* requiredPermissions, PermissionSet* optionalPermissions, PermissionSet* refusedPermissions);


[0901] [VB] NotOverridable Public Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal evidence As Evidence, ByVal requiredPermissions As PermissionSet, ByVal optionalPermissions As PermissionSet, ByVal refusedPermissions As PermissionSet) As AssemblyBuilder


[0902] [JScript] public function DefineDynamicAssembly(name: AssemblyName, access AssemblyBuilderAccess, evidence: Evidence, requiredPermissions: PermissionSet, optionalPermissions: PermissionSet, refusedPermissions: PermissionSet): AssemblyBuilder;


[0903] Description


[0904] Defines a dynamic assembly with the given name, given access, supplied evidence, and the permission requests.


[0905] Return Value: Represents the dynamic assembly created.


[0906] Only fully trusted callers can supply their evidence when defining a dynamic assembly. The runtime will map the evidence through policy to determine the granted permissions. Semi-trusted callers must supply a null evidence. If evidence is null, the runtime copies the permission sets (that is, the current grant and deny sets) from the caller's assembly to the dynamic assembly being defined and marks policy as resolved. The unique identity of the dynamic assembly. The mode in which the dynamic assembly will be accessed. The evidence supplied for the dynamic assembly. The required permission request. The optional permission request. The refused permission request.


[0907] DefineDynamicAssembly


[0908] [C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);


[0909] [C++] public: _sealed AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, String* dir, PermissionSet* requiredPermissions, PermissionSet* optionalPermissions, PermissionSet* refusedPermissions);


[0910] [VB] NotOverridable Public Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal dir As String, ByVal requiredPermissions As PermissionSet, ByVal optionalPermissions As PermissionSet, ByVal refusedPermissions As PermissionSet) As AssemblyBuilder


[0911] [JScript] public function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, dir: String, requiredPermissions: PermissionSet, optionalPermissions: PermissionSet, refusedPermissions: PermissionSet): AssemblyBuilder;


[0912] Description


[0913] Defines a dynamic assembly with the given name, given access, the name of the directory for saving the assembly, and the permission requests.


[0914] Return Value: Represents the dynamic assembly created.


[0915] You can specify partial signing of the assembly by specifying AssemblyName.Originator. You can specify full signing of the assembly by specifying AssemblyName.Originator and AssemblyName.KeyPair. The unique identity of the dynamic assembly. The mode in which the dynamic assembly will be accessed. The name of the directory in which the assembly will be saved. If dir is null, the directory defaults to the current directory. The required permission request. The optional permission request. The refused permission request.


[0916] DefineDynamicAssembly


[0917] [C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);


[0918] [C++] public: _sealed AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, String* dir, Evidence* evidence, PermissionSet* requiredPermissions, PermissionSet* optionalPermissions, PermissionSet* refusedPermissions);


[0919] [VB] NotOverridable Public Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal dir As String, ByVal evidence As Evidence, ByVal requiredPermissions As PermissionSet, ByVal optionalPermissions As PermissionSet, ByVal refusedPermissions As PermissionSet) As AssemblyBuilder


[0920] [JScript] public function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, dir: String, evidence: Evidence, requiredPermissions: PermissionSet, optionalPermissions: PermissionSet, refusedPermssions: PermissionSet): AssemblyBuilder;


[0921] Description


[0922] Defines a dynamic assembly with the given name, given access, the name of the directory for saving the assembly, supplied evidence, and the permission requests.


[0923] Return Value: Represents the dynamic assembly created.


[0924] Only fully trusted callers can supply their evidence when defining a dynamic assembly. The runtime will map the evidence through policy to determine the granted permissions. Semi-trusted callers must supply a null evidence. If evidence is null, the runtime copies the permission sets, that is, the current grant and deny sets, from the caller's assembly to the dynamic assembly being defined and marks policy as resolved. The unique identity of the dynamic assembly. The mode in which the dynamic assembly will be accessed. The name of the directory in which the assembly will be saved. If dir is null , the directory defaults to the current directory. The evidence supplied for the dynamic assembly. The required permission request. The optional permission request. The refused permission request.


[0925] DefineDynamicAssembly


[0926] [C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, bool isSynchronized);


[0927] [C++] public: _sealed AssemblyBuilder* DefineDynamicAssembly(AssemblyName* name, AssemblyBuilderAccess access, String* dir, Evidence* evidence, PermissionSet* requiredPermissions, PermissionSet* optionalPermissions, PermissionSet* refusedpermissions, bool isSynchronized);


[0928] [VB] NotOverridable Public Function DefineDynamicAssembly(ByVal name As AssemblyName, ByVal access As AssemblyBuilderAccess, ByVal dir As String, ByVal evidence As Evidence, ByVal requiredPermissions As PermissionSet, ByVal optionalPermissions As PermissionSet, ByVal refusedPermissions As PermissionSet, ByVal isSynchronized As Boolean) As AssemblyBuilder


[0929] [JScript] public function DefineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, dir: String, evidence: Evidence, requiredPermissions: PermissionSet, optionalpPermissions: PermissionSet, refusedPermissions: PermissionSet, isSynchronized: Boolean): AssemblyBuilder;


[0930] Description


[0931] Defines a dynamic assembly using the specified name, access mode, storage directory, evidence, permission requests, and synchronization option.


[0932] Return Value: Represents the dynamic assembly created.


[0933] Only fully trusted callers can supply their evidence when defining a dynamic System.Reflection.Assembly. The runtime will map the System.Security.Policy.Evidence through policy to determine the granted permissions. Semi-trusted callers must supply an System.Security.Policy.Evidence. If evidence is null , the runtime copies the permission sets, that is, the current grant and deny sets, from the caller's System.Reflection.Assembly to the dynamic System.Reflection.Assembly being defined and marks policy as resolved. The unique identity of the dynamic assembly. The mode in which the dynamic assembly will be accessed. The name of the directory in which the dynamic assembly will be saved. If dir is null, the directory defaults to the current directory. The evidence supplied for the dynamic assembly. The required permission request. The optional permission request. The refused permission request. If true , the creation of modules, types, and members in the dynamic assembly are synchronized.


[0934] DoCallBack


[0935] [C#] public void DoCallBack(CrossAppDomainDelegate callBackDelegate);


[0936] [C++] public: _sealed void DoCallBack(CrossAppDomainDelegate* callBackDelegate);


[0937] [VB] NotOverridable Public Sub DoCallBack(ByVal callBackDelegate As CrossAppDomainDelegate)


[0938] [JScript] public function DoCallBack(callBackDelegate: CrossAppDomainDelegate);


[0939] Description


[0940] Executes the code in another application domain that is identified by the specified delegate.


[0941] callBackDelegate can specify a marshal-by-value, System.MarshalByRefObject, or System.ContextBoundObject object. A delegate that specifies a method to call.


[0942] ExecuteAssembly


[0943] [C#] public int ExecuteAssembly(string assemblyFile);


[0944] [C++] public: __sealed int ExecuteAssembly(String* assemblyFile);


[0945] [VB] NotOverridable Public Function ExecuteAssembly(ByVal assemblyFile As String) As Integer


[0946] [JScript] public function ExecuteAssembly(assemblyFile: String): int;


[0947] Description


[0948] Execute the System.Reflection.Assembly given its file name. The method specified in the .NET Framework header is called.


[0949] Return Value: The value returned by the entry point of the assembly. The method does not spawn a new process, create a new application domain, or execute the entry point method on a new thread. The name of the file from which the assembly is to be loaded.


[0950] ExecuteAssembly


[0951] [C#] public int ExecuteAssembly(string assemblyFile, Evidence lo assemblySecurity);


[0952] [C++] public: _sealed int ExecuteAssembly(String* assemblyFile, Evidence* assemblySecurity);


[0953] [VB] NotOverridable Public Function ExecuteAssembly(ByVal assemblyFile As String, ByVal assemblySecurity As Evidence) As Integer


[0954] [JScript] public function ExecuteAssembly(assemblyFile: String, assemblysecurity: Evidence): int; Executes the specified assembly.


[0955] Description


[0956] Execute the System.Reflection.Assembly given its file name and supplied evidence.


[0957] Return Value: The value returned by the entry point of the assembly.


[0958] The method does not spawn a new process, create a new application domain, or execute the entry point method on a new thread. The name of the file from which the assembly is to be loaded. Evidence for loading the assembly.


[0959] ExecuteAssembly


[0960] [C#] public int ExecuteAssembly(string assemblyFile, Evidence assemblySecurity, string[ ] args);


[0961] [C++] public: _sealed int ExecuteAssembly(String* assemblyFile, Evidence* assemblySecurity, String* args _gc[ ]);


[0962] [VB] NotOverridable Public Function ExecuteAssembly(ByVal assemblyFile As String, ByVal assemblySecurity As Evidence, ByVal args( ) As String) As Integer


[0963] [JScript] public function ExecuteAssembly(assemblyFile: String, assemblySecurity: Evidence, args: String[ ]): int; Executes the assembly given its file name.


[0964] Description


[0965] Execute the System.Reflection.Assembly given its file name and supplied System.Security.Policy.Evidence. Optionally, the System.Reflection.Assembly can be loaded into the domain-neutral code area for use by multiple AppDomains.


[0966] Return Value: The value returned by the entry point of the assembly.


[0967] The method does not spawn a new process, create a new application domain, or execute the entry point method on a new thread. The name of the file from which the assembly is to be loaded. The supplied evidence for the assembly. The arguments to the entry point of the assembly.


[0968] GetAssemblies


[0969] [C#] public Assembly[ ] GetAssemblies ( );


[0970] [C++] public: _sealed Assembly* GetAssemblies( ) [ ];


[0971] [VB] NotOverridable Public Function GetAssemblies( ) As Assembly( )


[0972] [JScript] public function GetAssemblies( ): Assembly[ ];


[0973] Description


[0974] Gets the assemblies that have been loaded into this application domain.


[0975] Return Value: An array of assemblies in this application domain.


[0976] GetCurrentThreadId


[0977] [C#] public static int GetCurrentThreadId( );


[0978] [C++] public: static int GetCurrentThreadId( );


[0979] [VB] Public Shared Function GetCurrentThreadId( ) As Integer


[0980] [JScript] public static function GetCurrentThreadId( ): int;


[0981] Description


[0982] Gets the current thread identifier.


[0983] Return Value: A 32-bit signed integer that is the identifier of the current thread.


[0984] GetData


[0985] [C#] public object GetData(string name);


[0986] [C++] public: _sealed Object* GetData(String* name);


[0987] [VB] NotOverridable Public Function GetData(ByVal name As String) As Object


[0988] [JScript] public function GetData(name: String): Object;


[0989] Description


[0990] Gets the value stored in the current application domain for the specified data name.


[0991] Return Value: The value of the name property.


[0992] name can be the value of one of the System.AppDomainSetup properties. The name of an application domain property.


[0993] GetType


[0994] [C#] public Type GetType( );


[0995] [C++] public: sealed Type* GetType( );


[0996] [VB] NotOverridable Public Function GetType( ) As Type


[0997] [JScript] public function GetType( ): Type;


[0998] Description


[0999] Gets the type of the current instance.


[1000] Return Value: A System.Type object.


[1001] Description


[1002] Gets the type of the current instance.


[1003] Return Value: A System.Type object.


[1004] InitializeLifetimeService


[1005] [C#] public override object InitializeLifetimeService( );


[1006] [C++] public: Object* InitializeLifetimeService( );


[1007] [VB] Overrides Public Function InitializeLifetimeService( ) As Object


[1008] [JScript] public override function InitializeLifetimeService( ): Object;


[1009] Description


[1010] Gives the System.AppDomain an infinite lifetime by preventing a lease from being created.


[1011] Return Value: Always null.


[1012] IsFinalizingForUnload


[1013] [C#] public bool IsFinalizingForUnload( );


[1014] [C++] public: bool IsFinalizingForUnload( );


[1015] [VB] Public Function IsFinalizingForUnload( ) As Boolean


[1016] [JScript] public function IsFinalizingForUnload( ): Boolean;


[1017] Description


[1018] Indicates whether the common language runtime has started forcing objects to finalize.


[1019] Return Value: true if the common language runtime has started invoking finalizers, forcing objects to finalize; otherwise, false.


[1020] Some of the System.AppDomain infrastructure might have been garbage collected before the finalizers started running.


[1021] Load


[1022] [C#] public Assembly Load( AssemblyName assemblyrRef);


[1023] [C++] public: __sealed Assembly* Load(AssemblyName* assemblyRef);


[1024] [VB] NotOverridable Public Function Load(ByVal assemblyRef As AssemblyName) As Assembly


[1025] [JScript] public function Load(assemblyRef: AssemblyName): Assembly; Loads an System.Reflection.Assembly into this application domain.


[1026] Description


[1027] Loads an System.Reflection.Assembly given its System.Reflection.AssemblyName.


[1028] Return Value: The loaded assembly.


[1029] This method should only be used to load an assembly into the current application domain. This method is defined for interoperability callers who cannot call the static Assembly.Load method. An object that describes the assembly to be loaded.


[1030] Load


[1031] [C#] public Assembly Load(byte[ ] rawAssembly);


[1032] [C++] public: _sealed Assembly* Load(unsigned char rawAssembly _gc[ ]);


[1033] [VB] NotOverridable Public Function Load(ByVal rawAssembly( ) As Byte) As Assembly


[1034] [JScript] public function Load(rawAssembly: Byte[ ]): Assembly;


[1035] Description


[1036] Loads the System.Reflection.Assembly with a COFF based image containing an emitted System.Reflection.Assembly.


[1037] Return Value: The loaded assembly.


[1038] This method should only be used to load an assembly into the current application domain. This method is defined for interoperability callers who cannot call the static Assembly.Load method. An array of type byte that is a COFF-based image containing an emitted assembly.


[1039] Load


[1040] [C#] public Assembly Load(string assemblyString);


[1041] [C++] public: _sealed Assembly* Load(String* assemblyString);


[1042] [VB] NotOverridable Public Function Load(ByVal assemblyString As String) As Assembly


[1043] [JScript] public function Load(assemblyString: String): Assembly;


[1044] Description


[1045] Loads an System.Reflection.Assembly given its display name.


[1046] Return Value: The loaded assembly.


[1047] This method should only be used to load an assembly into the current application domain. This method is defined for interoperability callers who cannot call the static Assembly.Load method. The display name of the assembly.


[1048] Load


[1049] [C#] public Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity);


[1050] [C++] public: _sealed Assembly* Load(AssemblyName* assemblyRef, Evidence* assemblySecurity);


[1051] [VB] NotOverridable Public Function Load(ByVal assemblyRef As AssemblyName, ByVal assemblySecurity As Evidence) As Assembly


[1052] [JScript] public function Load(assemblyRef: AssemblyName, assemblySecurity: Evidence): Assembly; Loads an System.Reflection.Assembly into this application domain.


[1053] Description


[1054] Loads an System.Reflection.Assembly given its System.Reflection.AssemblyName.


[1055] Return Value: The loaded assembly. An object that describes the assembly to be loaded. Evidence for loading the assembly.


[1056] Load


[1057] [C#] public Assembly Load(byte[ ] rawAssembly, byte[ ] rawSymbolStore);


[1058] [C++] public: _sealed Assembly* Load(unsigned char rawAssembly _gc[ ], unsigned char rawSymbolStore _gc[ ]);


[1059] [VB] NotOverridable Public Function Load(ByVal rawAssembly( ) As Byte, ByVal rawSymbolStore( ) As Byte) As Assembly


[1060] [JScript] public function Load(rawAssembly: Byte[ ], rawSymbolStore: Byte[ ]): Assembly;


[1061] Description


[1062] Loads the System.Reflection.Assembly with a COFF based image containing an emitted System.Reflection.Assembly. The raw bytes representing the symbols for the System.Reflection.Assembly are also loaded.


[1063] Return Value: The loaded assembly.


[1064] This method should only be used to load an assembly into the current application domain. This method is defined for interoperability callers who cannot call the static Assembly.Load method. An array of type byte that is a COFF-based image containing an emitted assembly. An array of type byte containing the raw bytes representing the symbols for the assembly.


[1065] Load


[1066] [C#] public Assembly Load(string assemblyString, Evidence assemblySecurity);


[1067] [C++] public: _sealed Assembly* Load(String* assemblyString, Evidence* assemblySecurity);


[1068] [VB] NotOverridable Public Function Load(ByVal assemblyString As String, ByVal assemblySecurity As Evidence) As Assembly


[1069] [JScript] public function Load(assemblyString: String, assemblySecurity: Evidence): Assembly;


[1070] Description


[1071] Loads an System.Reflection.Assembly given its display name.


[1072] Return Value: The loaded assembly. The display name of the assembly. Evidence for loading the assembly.


[1073] Load


[1074] [C#] public Assembly Load(byte[ ] rawAssembly, byte[ ] rawSymbolStore, Evidence securityEvidence);


[1075] [C++] public: _sealed Assembly* Load(unsigned char rawAssembly _gc[ ], unsigned char rawSymbolStore _gc[ ], Evidence* securityEvidence);


[1076] [VB] NotOverridable Public Function Load(ByVal rawAssembly( ) As Byte, ByVal rawSymbolStore( ) As Byte, ByVal securityEvidence As Evidence) As Assembly


[1077] [JScript] public function Load(rawAssembly: Byte[ ], rawSymbolStore:Byte[ ], securityEvidence: Evidence): Assembly;


[1078] Description


[1079] Loads the System.Reflection.Assembly with a COFF based image containing an emitted System.Reflection.Assembly. The raw bytes representing the symbols for the System.Reflection.Assembly are also loaded.


[1080] Return Value: The loaded assembly.


[1081] This method should only be used to load an assembly into the current application domain. This method is defined for interoperability callers who cannot call the static Assembly.Load method. An array of type byte that is a COFF-based image containing an emitted assembly. An array of type byte containing the raw bytes representing the symbols for the assembly. Evidence for loading the assembly.


[1082] SetAppDomainPolicy


[1083] [C#] public void SetAppDomain Policy(PolicyLevel domainPolicy);


[1084] [C++] public: _sealed void SetAppDomainPolicy(PolicyLevel* domainpolicy);


[1085] [VB] NotOverridable Public Sub SetAppDomainPolicy(ByVal domainPolicy As PolicyLevel)


[1086] [JScript] public function SetAppDomainPolicy(domainPolicy: PolicyLevel);


[1087] Description


[1088] Establishes the security policy level for this application domain. The security policy level.


[1089] SetCachePath


[1090] [C+] public void SetCachePath(string path);


[1091] [C++] public: _scaled void SetCachePath(String* path);


[1092] [VB] NotOverridable Public Sub SetCachePath(ByVal path As String)


[1093] [JScript] public function SetCachePath(path: String);


[1094] Description


[1095] Establishes the specified directory path as the location where assemblies are shadow copied. The fully qualified path to the shadow copy location.


[1096] SetData


[1097] [C#] public void SetData(string name, object data);


[1098] [C++] public: sealed void SetData(String* name, Object* data);


[1099] [VB] NotOverridable Public Sub SetData(ByVal name As String, ByVal data As Object)


[1100] [JScript] public function SetData(name: String, data: Object);


[1101] Description


[1102] Assigns the specified value to the specified application domain property.


[1103] This method has been superseded by properties of the System.AppDomainSetup class. The following table shows the System.AppDomainSetup property that corresponds to a value of name. The name of an application domain property. The value to set the name property.


[1104] SetDynamicBase


[1105] [C#] public void SetDynamicBase(string path);


[1106] [C++] public: void SetDynamicBase(String* path);


[1107] [VB] Public Sub SetDynamicBase(ByVal path As String)


[1108] [JScript] public function SetDynamicBase(path: String);


[1109] Description


[1110] Establishes the specified directory path as the location where dynamically generated files are stored and accessed.


[1111] This method sets the System.AppDomainSetup.DynamicBase property of the internal System.AppDomainSetup object associated with this instance. The fully qualified path to where dynamic assemblies are stored.


[1112] SetPrincipalPolicy


[1113] [C#] public void SetPrincipal Policy(Principal Policy policy);


[1114] [C++] public: _sealed void SetPrincipalPolicy(PrincipalPolicy policy);


[1115] [VB] NotOverridable Public Sub SetPrincipalPolicy(ByVal policy As PrincipalPolicy)


[1116] [JScript] public function SetPrincipalPolicy(policy: PrincipalPolicy);


[1117] Description


[1118] Set the class of the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain. The class of the principal object to be attached to threads.


[1119] SetShadowCopyFiles


[1120] [C#] public void SetShadowCopyFiles( );


[1121] [C++] public: void SetShadowCopyFiles( );


[1122] [VB] Public Sub SetShadowCopyFiles( )


[1123] [JScript] public function SetShadowCopyFiles( );


[1124] Description


[1125] Turns on shadow copying.


[1126] SetShadowCopyPath


[1127] [C#] public void SetShadowCopyPath(string path);


[1128] [C++] public: _sealed void SetShadowCopyPath(String* path);


[1129] [VB] NotOverridable Public Sub SetShadowCopyPath(ByVal path As String)


[1130] [JScript] public function SetShadowCopyPath(path: String);


[1131] Description


[1132] Establishes the specified directory path as the location of assemblies to be “shadow copied”.


[1133] This method sets the System.AppDomainSetup.ShadowCopyDirectories property of the internal System.AppDomainSetup object associated with this instance. A list of directory names, where each name is separated by a semicolon.


[1134] SetThreadPrincipal


[1135] [C#] public void SetThreadPrincipal(IPrincipal principal);


[1136] [C++] public: _sealed void SetThreadPrincipal(IPrincipal* principal);


[1137] [VB] NotOveffidable Public Sub SetThreadPrincipal(ByVal principal As IPrincipal)


[1138] [JScript] public function SetThreadPrincipal(principal: IPrincipal);


[1139] Description


[1140] Set the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain. The principal object to be attached to threads.


[1141] ToString


[1142] [C#] public override string ToString( );


[1143] [C++] public: String* ToString( );


[1144] [VB] Overrides Public Function ToString( ) As String


[1145] [JScript] public override function ToString( ): String;


[1146] Description


[1147] Obtains the System.String representation of the application domain.


[1148] Return Value: The friendly name, loader name, and loader context policy of the application domain.


[1149] The string representation specifies the friendly name of the application domain.


[1150] Unload


[1151] [C#] public static void Unload(AppDomain domain);


[1152] [C++] public: static void Unload(AppDomain* domain);


[1153] [VB] Public Shared Sub Unload(ByVal domain As AppDomain)


[1154] [JScript] public static function Unload(domain: AppDomain);


[1155] Description


[1156] Removes the specified application domain.


[1157] A long period of time can pass before domain unloads because it might be difficult to terminate executing threads. An application domain to be unloaded.


[1158] AppDomainSetup class (System)


[1159] Unload


[1160] Constructors:


[1161] AppDomainSetup


[1162] Example Syntax:


[1163] Unload


[1164] ApplicationBase


[1165] Unload


[1166] ApplicationName


[1167] Unload


[1168] CachePath


[1169] Unload


[1170] ConfigurationFile


[1171] Unload


[1172] DynamicBase


[1173] Unload


[1174] LicenseFile


[1175] Unload


[1176] LoaderOptimization


[1177] Unload


[1178] PrivateBinPath


[1179] Unload


[1180] PrivateBinPathProbe


[1181] Unload


[1182] ShadowCopyDirectories


[1183] Unload


[1184] ShadowCopyFiles


[1185] Unload


[1186] AppDomainUnloadedException class (System)


[1187] ToString


[1188] Description


[1189] The exception that is thrown when an attempt is made to access an unloaded application domain.


[1190] System.AppDomainUnloadedException uses the HRESULT COR13E13APPDOMAINULOADED, which has the value 0x80131014.


[1191] AppDomainUnloadedException


[1192] Example Syntax:


[1193] ToString


[1194] [C∩] public AppDomainUnloadedException( );


[1195] [C++] public: AppDomainUnloadedException( );


[1196] [VB] Public Sub New( )


[1197] [JScript] public function AppDomainUnloadedException( ); Initializes a new instance of the System.AppDomainUnloadedException class.


[1198] Description


[1199] Initializes a new instance of the System.AppDomainUnloadedException class with default properties.


[1200] The following table shows the initial property values for an instance of System.AppDomainUnloadedException.


[1201] AppDomainUnloadedException


[1202] Example Syntax:


[1203] ToString


[1204] [C#] public AppDomainUnloadedException(string message);


[1205] [C++] public: AppDomainUnloadedException(String* message);


[1206] [VB] Public Sub New(ByVal message As String)


[1207] [JScript] public function AppDomainUnloadedException(message: String);


[1208] Description


[1209] Initializes a new instance of the System.AppDomainUnloadedException class with a specified error message.


[1210] The following table shows the initial property values for an instance of System.AppDomainUnloadedException. The error message that explains the reason for the exception.


[1211] AppDomainUnloadedException


[1212] Example Syntax:


[1213] ToString


[1214] [C#] protected AppDomainUnloadedException(SerializationInfo info, StreamingContext context);


[1215] [C++] protected: AppDomainUnloadedException(SerializationInfo* info, StreamingContext context); [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[1216] [JScript] protected function AppDomainUnloadedException(info: SerializationInfo, context: StreamingContext);


[1217] Description


[1218] Initializes a new instance of the System.AppDomainUnloadedException class with serialized data.


[1219] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[1220] AppDomainUnloadedException


[1221] Example Syntax:


[1222] ToString


[1223] [C#] public AppDomainUnloadedException(string message, Exception innerException);


[1224] [C++] public: AppDomainUnloadedException(String* message, Exception* innerException);


[1225] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[1226] [JScript] public function AppDomainUnloadedException(message: String, innerException: Exception);


[1227] Description


[1228] Initializes a new instance of the System.AppDomainUnloadedException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[1229] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[1230] HelpLink


[1231] HResult


[1232] InnerException


[1233] Message


[1234] Source


[1235] StackTrace


[1236] TargetSite


[1237] ApplicationException class (System)


[1238] ToString


[1239] Description


[1240] The exception that is thrown when a non-fatal application error occurs.


[1241] System.ApplicationException is thrown by a user program, not by the common language runtime. If you are designing an application that needs to create its own exceptions, derive from the System.ApplicationException class.


[1242] ApplicationException


[1243] Example Syntax:


[1244] ToString


[1245] [C#] public ApplicationException( );


[1246] [C++] public: ApplicationException( );


[1247] [VB] Public Sub New( )


[1248] [JScript] public function ApplicationException( ); Initializes a new instance of the System.ApplicationException class.


[1249] Description


[1250] Initializes a new instance of the System.ApplicationException class with default properties.


[1251] The following table shows the initial property values for an instance of System.ApplicationException.


[1252] ApplicationException


[1253] Example Syntax:


[1254] ToString


[1255] [C#] public ApplicationException(string message);


[1256] [C++] public: ApplicationException(String* message);


[1257] [VB] Public Sub New(ByVal message As String)


[1258] [JScript] public function ApplicationException(message: String);


[1259] Description


[1260] Initializes a new instance of the System.ApplicationException class with a specified error message.


[1261] The following table shows the initial property values for an instance of System.ApplicationException. The error message that explains the reason for the exception.


[1262] ApplicationException


[1263] Example Syntax:


[1264] ToString


[1265] [C#] protected ApplicationException(SerializationInfo info, StreamingContext context);


[1266] [C++] protected: ApplicationException(SerializationInfo* info, StreamingContext context);


[1267] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[1268] [JScript] protected function ApplicationException(info: SerializationInfo, context: StreamingContext);


[1269] Description


[1270] Initializes a new instance of the System.ApplicationException class with serialized data.


[1271] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[1272] ApplicationException


[1273] Example Syntax:


[1274] ToString


[1275] [C#] public ApplicationException(string message, Exception innerException);


[1276] [C++] public: ApplicationException(String* message, Exception* innerException);


[1277] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[1278] [JScript] public function ApplicationException(message: String, innerException: Exception);


[1279] Description


[1280] Initializes a new instance of the System.ApplicationException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[1281] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[1282] HelpLink


[1283] HResult


[1284] InnerException


[1285] Message


[1286] Source


[1287] StackTrace


[1288] TargetSite


[1289] ArgIterator structure (System)


[1290] ToString


[1291] Description


[1292] Represents a variable-length argument list; that is, the parameters of a function that takes a variable number of arguments.


[1293] Typically, you use this class for writing compilers. The methods in this class are not generally useful in other kinds of applications.


[1294] ArgIterator


[1295] Example Syntax:


[1296] ToString


[1297] [C#] public ArgIterator(RuntimeArgumentHandle arglist);


[1298] [C++] public: ArgIterator(RuntimeArgumentHandle arglist);


[1299] [VB] Public Sub New(ByVal arglist As RuntimeArgumentHandle)


[1300] [JScript] public function ArgIterator(arglist: RuntimeArgumentHandle); Initializes a new instance of the ArgIterator class.


[1301] Description


[1302] Initializes a new instance of the ArgIterator class using the specified argument list. An argument list consisting of both required and optional items.


[1303] ArgIterator


[1304] Example Syntax:


[1305] ToString


[1306] [C#] unsafe public ArgIterator(RuntimeArgumentHandle arglist, void* ptr);


[1307] [C++] public: ArgIterator(RuntimeArgumentHandle arglist, void* ptr);


[1308] End


[1309] [C#] public void End( );


[1310] [C++] public: void End( );


[1311] [VB] Public Sub End( )


[1312] [JScript] public function End( );


[1313] Description


[1314] Moves the iterator to the end of the variable-length argument list; that is, it invalidates the iterator.


[1315] Conceptually, this method moves the iterator to the end of the list so that the next call to System.Arglterator.GetNextArg generates an exception.


[1316] Equals


[1317] [C#] public override bool Equals(object o);


[1318] [C++] public: bool Equals(Object* o);


[1319] [VB] Overrides Public Function Equals(ByVal o As Object) As Boolean


[1320] [JScript] public override function Equals(o: Object): Boolean;


[1321] Description


[1322] This method is not supported, and always throws NotSupportedException. An object to be compared to this instance.


[1323] GetHashCode


[1324] [C#] public override int GetHashCode( );


[1325] [C++] public: int GetHashCode( );


[1326] [VB] Overrides Public Function GetHashCode( ) As Integer


[1327] [JScript] public override function GetHashCode: int;


[1328] Description


[1329] Returns the hash code of this object.


[1330] Return Value: A 32-bit signed integer hash code.


[1331] GetNextArg


[1332] [C#] public TypedReference GetNextArg;


[1333] [C++] public: TypedReference GetNextArg( );


[1334] [VB] Public Function GetNextArg( ) As TypedReference


[1335] [JScript] public function GetNextArg( ): TypedReference; Returns the next argument in a variable-length argument list.


[1336] Description


[1337] Returns the next argument in a variable-length argument list.


[1338] Return Value: The next argument as a System.TypedReference object.


[1339] The iterator is automatically advanced to the next argument.


[1340] GetNextArg


[1341] [C#] public TypedReference GetNextArg(RuntimeTypeHandle rth);


[1342] [C++] public: TypedReference GetNextArg(RuntimeTypeHandle rth);


[1343] [VB] Public Function GetNextArg(ByVal rth As RuntimeTypeHandle) As TypedReference


[1344] [JScript] public function GetNextArg(rth: RuntimeTypeHandle):


[1345] TypedReference;


[1346] Description


[1347] Returns the next argument in a variable-length argument list that has a specified type.


[1348] Return Value: The next argument as a System.TypedReference object.


[1349] The iterator is automatically advanced to the next argument. A runtime type handle that identifies the type of the argument to retrieve.


[1350] GetNextArgType


[1351] [C#] public RuntimeTypeHandle GetNextArgType( );


[1352] [C++] public: RuntimeTypeHandle GetNextArgType( );


[1353] [VB] Public Function GetNextArgType( ) As RuntimeTypeHandle


[1354] [JScript] public function GetNextArgType( ): RuntimeTypeHandle;


[1355] Description


[1356] Returns the type of the next argument.


[1357] Return Value: The type of the next argument.


[1358] This method does not advance the iterator to the next argument.


[1359] GetRemainingCount


[1360] [C#] public int GetRemainingCount( );


[1361] [C++] public: int GetRemainingCount( ));


[1362] [VB] Public Function GetRemainingCount( ) As Integer


[1363] [JScript] public function GetRemainingCount( ): int;


[1364] Description


[1365] Returns the number of arguments remaining in the argument list.


[1366] Return Value: The number of remaining arguments.


[1367] ArgumentException class (System)


[1368] ToString


[1369] Description


[1370] The exception that is thrown when one of the arguments provided to a method is not valid.


[1371] System.ArgumentException is thrown when a method is invoked and at least one of the passed arguments does not meet the parameter specification of the called method. All instances of System.ArgumentException should carry a meaningful error message describing the invalid argument, as well as the expected range of values for the argument.


[1372] ArgumentException


[1373] Example Syntax:


[1374] ToString


[1375] [C#] public ArgumentException( );


[1376] [C++] public: ArgumentException( );


[1377] [VB] Public Sub New( )


[1378] [JScript] public function ArgumentException( ); Initializes a new instance of the System.ArgumentException class.


[1379] Description


[1380] Initializes a new instance of the System.ArgumentException class with default properties.


[1381] The following table shows the initial property values for an instance of System.ArgumentException.


[1382] ArgumentException


[1383] Example Syntax:


[1384] ToString


[1385] [C#] public ArgumentException(string message);


[1386] [C++] public: ArgumentException(String* message);


[1387] [VB] Public Sub New(ByVal message As String)


[1388] [JScript] public function ArgumentException(message: String);


[1389] Description


[1390] Initializes a new instance of the System.ArgumentException class with a specified error message.


[1391] The following table shows the initial property values for an instance of System.ArgumentException. The error message that explains the reason for the exception.


[1392] ArgumentException


[1393] Example Syntax:


[1394] ToString


[1395] [C#] protected ArgumentException(SerializationInfo info, StreamingContext context);


[1396] [C++] protected: ArgumentException(SerializationInfo* info, StreamingContext context);


[1397] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[1398] [JScript] protected function ArgumentException(info: SerializationInfo, context: StreamingContext);


[1399] Description


[1400] Initializes a new instance of the System.ArgumentException class with serialized data.


[1401] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[1402] ArgumentException


[1403] Example Syntax:


[1404] ToString


[1405] [C#] public ArgumentException(string message, Exception innerException);


[1406] [C++] public: ArgumentException(String* message, Exception* innerException);


[1407] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[1408] [JScript] public function ArgumentException(message: String, innerException: Exception);


[1409] Description


[1410] Initializes a new instance of the System.ArgumentException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[1411] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[1412] ArgumentException


[1413] Example Syntax:


[1414] ToString


[1415] [C#] public ArgumentException(string message, string paramName);


[1416] [C++] public: ArgumentException(String* message, String* paramName);


[1417] [VB] Public Sub New(ByVal message As String, ByVal paramName As String)


[1418] [JScript] public function ArgumentException(message: String, paramName: String);


[1419] Description


[1420] Initializes a new instance of the System.ArgumentException class with a specified error message and the name of the parameter that causes this exception.


[1421] The following table shows the initial property values for an instance of System.ArgumentException. The error message that explains the reason for the exception. The name of the invalid parameter.


[1422] ArgumentException


[1423] Example Syntax:


[1424] ToString


[1425] [C#] public ArgumentException(string message, string paramName, Exception innerException);


[1426] [C++] public: ArgumentException(String* message, String* paramName, Exception* innerException);


[1427] [VB] Public Sub New(ByVal message As String, ByVal paramName As String, ByVal innerException As Exception)


[1428] [JScript] public function ArgumentException(message: String, paramName: String, innerException: Exception);


[1429] Description


[1430] Initializes a new instance of the System.ArgumentException class with a specified error message, the parameter name, and a reference to the inner exception that is the root cause of this exception.


[1431] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. The name of the invalid parameter. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[1432] HelpLink


[1433] HResult


[1434] InnerException


[1435] Message


[1436] ToString


[1437] Description


[1438] Gets the error message and the parameter name, or only the error message if no parameter name is set.


[1439] This property overrides System.Exception.Message. The error message should be localized.


[1440] ParamName


[1441] ToString


[1442] [C#] public virtual string ParamName {get;}


[1443] [C++] public: _property virtual String* get_ParamName( );


[1444] [VB] Overridable Public ReadOnly Property ParamName As String


[1445] [JScript] public function get ParamName: String;


[1446] Description


[1447] Gets the name of the parameter that causes this exception.


[1448] Every System.ArgumentException should carry the name of the parameter that causes this exception. The parameter name should not be localized.


[1449] Source


[1450] StackTrace


[1451] TargetSite


[1452] GetObjectData


[1453] [C#] public override void GetObjectData(SerializationInfo info, StreamingContext context);


[1454] [C++] public: void GetObjectData(SerializationInfo* info, StreamingContext context);


[1455] [VB] Overrides Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[1456] [JScript] public override function GetObjectData(info: SerializationInfo, context: StreamingContext);


[1457] Description


[1458] Sets the System.Runtime.Serialization.Serializationlnfo object with the parameter name and additional exception information.


[1459] System.ArgumentException.GetObjectData(System.Runtime.Serialization.Serializationlnfo,System.Runtime.Serialization.StreamingContext) sets a System.Runtime.Serialization.Serializationlnfo with all the exception object data targeted for serialization. During deserialization, the exception object is reconstituted from the System.Runtime.Serialization.Serializationlnfo transmitted over the stream. The object that holds the serialized object data. The contextual information about the source or destination.


[1460] ArgumentNullException class (System)


[1461] ToString


[1462] Description


[1463] The exception that is thrown when null is passed to a method that does not accept it as a valid argument.


[1464] System.ArgumentNullException uses the HRESULT E_POINTER, which has the value 0x80004003.


[1465] ArgumentNullException


[1466] Example Syntax:


[1467] ToString


[1468] [C#] public ArgumentNullException( );


[1469] [C++] public: ArgumentNullException( );


[1470] [VB] Public Sub New( )


[1471] [JScript] public function ArgumentNullException( ); Initializes a new instance of the System.ArgumentNullException class.


[1472] Description


[1473] Initializes a new instance of the System.ArgumentNullException class with default properties.


[1474] The following table shows the initial property values for an instance of System.ArgumentNullException


[1475] ArgumentNullException


[1476] Example Syntax:


[1477] ToString


[1478] [C#]publicArgumentNullException(stringparamName);


[1479] [C++] public: ArgumentNullException(String* paramName);


[1480] [VB] Public Sub New(ByVal paramName As String)


[1481] [JScript] public function ArgumentNullException(paramName: String);


[1482] Description


[1483] Initializes a new instance of the System.ArgumentNullException class with the name of the parameter that causes this exception.


[1484] The following table shows the initial property values for an instance of System.ArgumentNullException. The name of the parameter that is assigned null.


[1485] ArgumentNullException


[1486] Example Syntax:


[1487] ToString


[1488] [C#] protected ArgumentNullException(SerializationInfo info, StreamingContext context);


[1489] [C++] protected: ArgumentNullException(SerializationInfo* info, StreamingContext context);


[1490] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[1491] [JScript] protected function ArgumentNullException(info: SerializationInfo, context: StreamingContext);


[1492] Description


[1493] Initializes a new instance of the System.ArgumentNullException class with serialized data.


[1494] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[1495] ArgumentNullException


[1496] Example Syntax:


[1497] ToString


[1498] [C#] public ArgumentNullException(string paramName, string message);


[1499] [C++] public: ArgumentNullException(String* paramName, String* message);


[1500] [VB] Public Sub New(ByVal paramName As String, ByVal message As String)


[1501] [JScript] public function ArgumentNullException(paramName: String, message:


[1502] String);


[1503] Description


[1504] Initializes an instance of the System.ArgumentNullException class with a specified error message and the name of the parameter that causes this exception.


[1505] The following table shows the initial property values for an instance of System.ArgumentNullException. The name of the parameter that is assigned null. The error message that explains the reason for the exception.


[1506] HelpLink


[1507] HResult


[1508] InnerException


[1509] Message


[1510] ParamName


[1511] Source


[1512] StackTrace


[1513] TargetSite


[1514] ArgumentOutOfRangeException class (System)


[1515] ToString


[1516] Description


[1517] The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.


[1518] System.ArgumentOutOflangeException is used extensively by: Classes in the System.Collections and System.IO namespaces.


[1519] ArgumentOutOfRangeException


[1520] Example Syntax:


[1521] ToString


[1522] [C#] public ArgumentOutOflangeException( );


[1523] [C++] public: ArgumentOutOfangeException( );


[1524] [VB] Public Sub New( )


[1525] [JScript] public function ArgumentOutOfRangeException( ); Initializes a new instance of the System.ArgumentOutOfRangeException class.


[1526] Description


[1527] Initializes a new instance of the System.ArgumentOutOfRangeException class with default properties.


[1528] The following table shows the initial property values for an instance of System.ArgumentOutORangeException.


[1529] ArgumnentOutOfkangeException


[1530] Example Syntax:


[1531] ToString


[1532] [C#] public ArgumentOutOfkangeException(string paramName);


[1533] [C++] public: ArgumentOutOflangeException(String* paramName);


[1534] [VB] Public Sub New(ByVal paramname As String)


[1535] [JScript] public function ArgumentOutofangeException(paramName* String);


[1536] Description


[1537] Initializes a new instance of the System.ArgumentOutOfRangeException class with the name of the parameter that causes this exception.


[1538] The following table shows the initial property values for an instance of System.ArgumentOutOfRangeException. The name of the invalid parameter.


[1539] ArgumentOutOfRangeException


[1540] Example Syntax:


[1541] ToString


[1542] [C#] protected ArgumentOutOfRangeException(SerializationInfo info, StreamingContext context);


[1543] [C++] protected: ArgumentOutOfRangeException(SerializationInfo* info, StreamingContext context);


[1544] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[1545] [JScript] protected function ArgumentOutOfRangeException(info: SerializationInfo, context: StreamingContext);


[1546] Description


[1547] Initializes a new instance of the System.ArgumentOutOfRangeException class with serialized data.


[1548] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[1549] ArgumentOutOfRangeException


[1550] Example Syntax:


[1551] ToString


[1552] [C#] public ArgumentOutOfRangeException(string paramName, string message);


[1553] [C++] public: ArgumentOutOfRangeException(String* paramName, String* message);


[1554] [VB] Public Sub New(ByVal paramName As String, ByVal message As String)


[1555] [JScript] public function ArgumentOutOfRangeException(paramName: String, message: String);


[1556] Description


[1557] Initializes a new instance of the System.ArgumentOutOflangeException class with a specified error message and the name of the parameter that causes this exception.


[1558] The following table shows the initial property values for an instance of System.ArgumentOutOflangeException. The name of the invalid parameter. The error message that explains the reason for the exception.


[1559] ArgumentOutOfRangeException


[1560] Example Syntax:


[1561] ToString


[1562] [C#] public ArgumentOutOfRangeException(string paramName, object actualValue, string message);


[1563] [C++] public: ArgumentOutOfRangeException(String* paramName, Object* actualValue, String* message);


[1564] [VB] Public Sub New(ByVal paramName As String, ByVal actualValue As Object, ByVal message As String)


[1565] [JScript] public function ArgumentOutOfRangeException(paramName: String, actualValue: Object, message: String);


[1566] Description


[1567] Initializes a new instance of the System.ArgumentOutOflangeException class with a specified error message, the parameter name, and the value of the argument.


[1568] This constructor with the additional argument actual Value is not used n within the .NET Framework class library. The System.ArgumentOutOfRangeException.ActualValue property is provided so that applications can make use of the available argument value. The name of the invalid parameter. The value of the argument that causes this exception. The error message that explains the reason for the exception.


[1569] ActualValue


[1570] ToString


[1571] [C#] public virtual object ActualValue {get;}


[1572] [C++] public: _property virtual Object* get_ActualValue( );


[1573] [VB] Overridable Public ReadOnly Property ActualValue As Object


[1574] [JScript] public function get ActualValue( ): Object;


[1575] Description


[1576] Gets the argument value that causes this exception.


[1577] The System.ArgumentOutOfRangeException.ActualValue property is assigned a value at the time of object construction. If the System.ArgumentOutOfRangeException.ActualValue property value is not null, a string representation of the value is then appended to the message string held by the System.ArgumentOutOflangeException.Message property.


[1578] HelpLink


[1579] HResult


[1580] InnerException


[1581] ToString


[1582] Description


[1583] Gets the error message and the string representation of the invalid argument value, or only the error message if the argument value is null.


[1584] This property overrides System.ArgumentException.Message.


[1585] ParamName


[1586] StackTrace


[1587] TargetSite


[1588] GetObjectData


[1589] [C#] public override void GetObjectData(SerializationInfo info, StreamingContext context);


[1590] [C++] public: void GetObj ectData(SerializationInfo* info, StreamingContext context);


[1591] [VB] Overrides Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[1592] [JScript] public override function GetObjectData(info: SerializationInfo, context: StreamingContext);


[1593] Description


[1594] Sets the System.Runtime.Serialization.Serializationlnfo object with the invalid argument value and additional exception information.


[1595] System.ArgumentOutOfRangeException.GetObjectData(System.Runti me.Serialization.Serializationnfo,System.Runtime.Serialization.StreamingCo ntext) sets a System.Runtime.Serialization.Serializationlnfo with all the exception object data targeted for serialization. During deserialization, the exception object is reconstituted from the System.Runtime.Serialization.Serializationlnfo transmitted over the stream. The object that holds the serialized object data. The contextual information about the source or destination.


[1596] ArithmeticException class (System)


[1597] ToString


[1598] Description


[1599] The exception that is thrown for errors in an arithmetic, casting, or conversion operation.


[1600] System.ArithmeticException is the base class for System.DivideByZeroException , System.NotFiniteNumberException , and System.OverflowException. In general, use one of the derived classes of System.ArithmeticException to more precisely indicate the exact nature of the error. Throw an System.ArithmeticException if you are only interested in capturing a general arithmetic error.


[1601] ArithmeticException


[1602] Example Syntax:


[1603] ToString


[1604] [C#] public ArithmeticException( );


[1605] [C++] public: ArithmeticException( );


[1606] [VB] Public Sub New( )


[1607] [JScript] public function ArithmeticException( ); Initializes a new instance of the System.ArithmeticException class.


[1608] Description


[1609] Initializes a new instance of the System.ArithmeticException class with default properties.


[1610] The following table shows initial property values for an instance of System.ArithmeticException.


[1611] ArithmeticException


[1612] Example Syntax:


[1613] ToString


[1614] [C#] public ArithmeticException(string message);


[1615] [C++] public: ArithmeticException(String* message);


[1616] [VB] Public Sub New(ByVal message As String)


[1617] [JScript] public function ArithmeticException(message: String);


[1618] Description


[1619] Initializes a new instance of the System.ArithmeticException class with a specified error message.


[1620] The following table shows initial property values for an instance of System.ArithmeticException. The error message that explains the reason for the exception.


[1621] ArithmeticException


[1622] Example Syntax:


[1623] ToString


[1624] [C#] protected ArithmeticException(SerializationInfo info, StreamingContext context);


[1625] [C++] protected: ArithmeticException(SerializationInfo* info, StreamingContext context);


[1626] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext) [JScript] protected function ArithmeticException(info: SerializationInfo, context: StreamingContext);


[1627] Description


[1628] Initializes a new instance of the System.ArithmeticException class with serialized data.


[1629] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[1630] ArithmeticException


[1631] Example Syntax:


[1632] ToString


[1633] [C#] public ArithmeticException(string message, Exception innerException);


[1634] [C++] public: ArithmeticException(String* message, Exception* innerException);


[1635] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[1636] [JScript] public function ArithmeticException(message: String, innerException: Exception);


[1637] Description


[1638] Initializes a new instance of the System.ArithmeticException class with a specified error message and a reference to the exception that is the root cause of this exception.


[1639] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[1640] HelpLink


[1641] HResult


[1642] InnerException


[1643] Message


[1644] Source


[1645] StackTrace


[1646] TargetSite


[1647] Array class (System)


[1648] ToStfing


[1649] Description


[1650] Provides methods for creating, manipulating, searching and sorting arrays, thereby serving as the base class for all arrays in the common language runtime.


[1651] An element is a value in the System.Array. The length of an System.Array is the total number of elements it can contain. The rank of an System.Array is the number of dimensions in the System.Array. The lower bound or lowbound of a dimension of an System.Array is the starting index of that dimension of the System.Array; a multidimensional System.Array can have different bounds for each dimension.


[1652] Array


[1653] Example Syntax:


[1654] ToString


[1655] [C#] protected Array( );


[1656] [C++] protected: Array( );


[1657] [VB] Protected Sub New( )


[1658] [JScript] protected function Array( );


[1659] IsFixedSize


[1660] ToString


[1661] [C#] public virtual bool IsFixedSize {get;}


[1662] [C++] public: _property virtual bool get_IsFixedSize( );


[1663] [VB] Overridable Public ReadOnly Property IsFixedSize As Boolean


[1664] [JScript] public function get IsFixedSize: Boolean;


[1665] Description


[1666] Gets a value indicating whether the System.Array has a fixed size.


[1667] This method implements the System.Collections.IList interface. It can be overridden by a derived class.


[1668] IsReadOnly ToString


[1669] [C#] public virtual bool IsReadOnly {get;}


[1670] [C++] public: _property virtual bool get_IsReadOnly( );


[1671] [VB] Overridable Public ReadOnly Property IsReadOnly As Boolean


[1672] [JScript] public function get IsReadOnly( ): Boolean;


[1673] Description


[1674] Gets a value indicating whether the System.Array is read-only.


[1675] This method implements the System.Collections.IList interface. It can be overridden by a derived class.


[1676] IsSynchronized


[1677] ToString


[1678] [C#] public virtual bool IsSynchronized {get;}


[1679] [C++] public: _property virtual bool getIsSynchronized( );


[1680] [VB] Overridable Public ReadOnly Property IsSynchronized As Boolean


[1681] [JScript] public function get IsSynchronized( ): Boolean;


[1682] Description


[1683] Gets a value indicating whether access to the System.Array is synchronized (thread-safe).


[1684] This property implements the System.Collections.ICollection interface.


[1685] Length


[1686] ToString


[1687] [C#] public int Length {get;}


[1688] [C++] public: _property int get_Length( );


[1689] [VB] Public ReadOnly Property Length As Integer


[1690] [JScript] public function get Length( ): int;


[1691] Description


[1692] Gets the total number of elements in all the dimensions of the System.Array.


[1693] Rank


[1694] ToString


[1695] [C#] public int Rank {get;}


[1696] [C++] public: _property int get_Rank( );


[1697] [VB] Public ReadOnly Property Rank As Integer


[1698] [JScript] public function get Rank( ): int;


[1699] Description


[1700] Gets the rank (number of dimensions) of the System.Array.


[1701] SyncRoot


[1702] ToString


[1703] [C#] public virtual object SyncRoot {get;}


[1704] [C++] public: _property virtual Object* get_SyncRoot( );


[1705] [VB] Overridable Public ReadOnly Property SyncRoot As Object


[1706] [JScript] public function get SyncRoot( ): Object;


[1707] Description


[1708] Gets an object that can be used to synchronize access to the System.Array


[1709] This property implements the System.Collections.ICollection interface.


[1710] BinarySearch


[1711] [C#] public static int BinarySearch(Array array, object value);


[1712] [C++] public: static mt Binary.earch(Array* array, Object* value);


[1713] [VB] Public Shared Function BinarySearch(ByVal array As Array, ByVal value As Object) As Integer


[1714] [JScript] public static function BinarySearch(array: Array, value: Object): int; Searches a one-dimensional sorted System.Array for a value, using a binary search algorithm.


[1715] Description


[1716] Searches a one-dimensional sorted System.Array for a specific element, using the System.IComparable interface implemented by each element of the System.Array and by the specified System.Object.


[1717] Return Value: The index of value in the System.Array, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the first element that is larger than value.


[1718] The value parameter and each element of array must implement the System.IComparable interface, which is used for comparisons. If array 's elements are not already sorted in increasing value according to the System.IComparable implementation, the result might be incorrect. Duplicate elements are allowed. The one-dimensional System.Array to search. The System.Object to search for.


[1719] BinarySearch


[1720] [C#] public static int BinarySearch(Array array, object value, IComparer comparer);


[1721] [C++] public: static int BinarySearch(Array* array, Object* value, IComparer* comparer);


[1722] [VB] Public Shared Function BinarySearch(ByVal array As Array, ByVal value As Object, ByVal comparer As IComparer) As Integer


[1723] [JScript] public static function BinarySearch(array: Array, value: Object, comparer: IComparer): int;


[1724] Description


[1725] Searches a one-dimensional sorted System.Array for a value, using the specified System.Collections.IComparer interface.


[1726] Return Value: The index of value in the System.Array, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the first element that is larger than value.


[1727] The comparer customizes how the elements are compared. For example, you can use a System.Collections.CaselnsensitiveComparer instance as the comparer to perform case-insensitive string searches. The one-dimensional System.Array to search. The System.Object to search for. The System.Collections.IComparer implementation to use when comparing elements.


[1728] BinarySearch


[1729] [C#] public static int BinarySearch(Array array, int index, int length, object value);


[1730] [C++] public: static int BinarySearch(Array* array, int index, int length, Object* value);


[1731] [VB] Public Shared Function BinarySearch(ByVal array As Array, ByVal index As Integer, ByVal length As Integer, ByVal value As Object) As Integer


[1732] [JScript] public static function BinarySearch(array: Array, index: int, length: int, value: Object): int;


[1733] Description


[1734] Searches a section of a one-dimensional sorted System.Array for a value, using the System.IComparable interface implemented by each element of the System.Array and by the specified value.


[1735] Return Value: The index of value in the System.Array, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the first element that is larger than value.


[1736] The value parameter and each element of array must implement the System.IComparable interface, which is used for comparisons. If array 's elements are not already sorted in increasing value according to the System.IComparable implementation, the result might be incorrect. Duplicate elements are allowed. The one-dimensional System.Array to search. The starting index of the range to search. The length of the range to search. The System.Object to search for.


[1737] BinarySearch


[1738] [C#] public static int BinarySearch(Array array, int index, int length, object value, IComparer comparer);


[1739] [C++] public: static int BinarySearch(Array* array, int index, int length, Object* value, IComparer* comparer);


[1740] [VB] Public Shared Function BinarySearch(ByVal array As Array, ByVal index As Integer, ByVal length As Integer, ByVal value As Object, ByVal comparer As IComparer) As Integer


[1741] [JScript] public static function BinarySearch(array: Array, index: int, length: int, value: Object, comparer: IComparer): int;


[1742] Description


[1743] Searches a section of a one-dimensional sorted System.Array for a value, using the specified System.Collections.IComparer interface.


[1744] Return Value: The index of value in the System.Array, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the first element that is larger than value.


[1745] The comparer customizes how the elements are compared. For example, you can use a System.Collections.CaselnsensitiveComparer instance as the comparer to perform case-insensitive string searches. The one-dimensional System.Array to search. The starting index of the range to search. The length of the range to search. The System.Object to search for. The System.Collections.lComparer implementation to use when comparing elements.


[1746] Clear


[1747] [C#] public static void Clear(Array array, int index, int length);


[1748] [C++] public: static void Clear(Array* array, int index, int length);


[1749] [VB] Public Shared Sub Clear(ByVal array As Array, ByVal index As Integer, ByVal length As Integer)


[1750] [JScript] public static function Clear(array: Array, index: int, length: int);


[1751] Description


[1752] Sets a range of elements in the System.Array to zero or to null.


[1753] Reference-type elements are set to null. Value-type elements are set to zero. The System.Array whose elements need to be cleared. The starting index of the range of elements to clear. The number of elements to clear.


[1754] Clone


[1755] [C#] public virtual object Clone( );


[1756] [C++] public: virtual Object* Clone( );


[1757] [VB] Overridable Public Function Clone( ) As Object


[1758] [JScript] public function Clone( ): Object;


[1759] Description


[1760] Creates a shallow copy of the System.Array.


[1761] Return Value: A shallow copy of the System.Array.


[1762] This method can be overridden by a derived class.


[1763] Copy


[1764] [C#] public static void Copy(Array sourceArray, Array destinationArray, int length);


[1765] [C++] public: static void Copy(Array* sourceArray, Array* destinationArray, int length);


[1766] [VB] Public Shared Sub Copy(ByVal sourceArray As Array, ByVal destinationArray As Array, ByVal length As Integer)


[1767] [JScript] public static function Copy(sourceArray: Array, destinationArray: Array, length: int); Copies a section of one System.Array to another System.Array and performs type downcasting as required.


[1768] Description


[1769] Copies a range of elements from an System.Array starting at the first element and pastes them into another System.Array starting at the first element.


[1770] sourceArray and destinationArray must have the same number of dimensions. The System.Array that contains the data to copy. The System.Array that receives the data. The number of elements to copy.


[1771] Copy


[1772] [C#] public static void Copy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length);


[1773] [C++] public: static void Copy(Array* sourceArray, int sourceIndex, Array* destinationArray, int destinationIndex, int length);


[1774] [VB] Public Shared Sub Copy(ByVal sourceArray As Array, ByVal sourceIndex As Integer, ByVal destinationArray As Array, ByVal destinationIndex As Integer, ByVal length As Integer)


[1775] [JScript] public static function Copy(sourceArray: Array, sourceIndex: int, destinationArray: Array, destinationIndex: int, length: int);


[1776] Description


[1777] Copies a range of elements from an System.Array starting at the specified source index and pastes them to another System.Array starting at the specified destination index.


[1778] sourceArray and destinationArray must have the same number of dimensions. The System.Array that contains the data to copy. The index in the sourceArray at which copying begins. The System.Array that receives the data. The index in the destinationArray at which storing begins. The number of elements to copy.


[1779] CopyTo


[1780] [C#] public virtual void CopyTo(Array array, int index);


[1781] [C++] public: virtual void CopyTo(Array* array, int index);


[1782] [VB] Overridable Public Sub CopyTo(ByVal array As Array, ByVal index As Integer)


[1783] [JScript] public function CopyTo(array: Array, index: int);


[1784] Description


[1785] Copies all the elements of the current one-dimensional System.Array to the specified one-dimensional System.Array starting at the specified destination System.Array index.


[1786] This method can be overridden by a derived class. The one-dimensional System.Array that is the destination of the elements copied from the current System.Array. The zero-based relative index in array at which copying begins.


[1787] CreateInstance


[1788] [C#] public static Array CreateInstance(Type elementType, int length);


[1789] [C++] public: static Array* CreateInstance(Type* elementType, int length);


[1790] [VB] Public Shared Function CreateInstance(ByVal elementType As Type, ByVal length As Integer) As Array


[1791] [JScript] public static function CreateInstance(elementType: Type, length: int): Array; Initializes a new instance of the System.Array class.


[1792] Description


[1793] Creates a one-dimensional System.Array of the specified System.Type and length, with zero-based indexing.


[1794] Return Value: A new one-dimensional System.Array of the specified System.Type with the specified length, using zero-based indexing.


[1795] Unlike most classes, System.Array provides the System.Array.CreateInstance(System.Type,System.Int32) method, instead of public constructors, to allow for late bound access. The System.Type of System.Array to create. The size of the System.Array to create.


[1796] CreateInstance


[1797] [C#] public static Array CreateInstance(Type elementType, int[ ] lengths);


[1798] [C++] public: static Array* CreateInstance(Type* elementType, int lengths_gc[ ];


[1799] [VB] Public Shared Function CreateInstance(ByVal elementType As Type, ByVal lengths( ) As Integer) As Array


[1800] [JScript] public static function CreateInstance(elementType: Type, lengths: int[ ]) : Array;


[1801] Description


[1802] Creates a multidimensional System.Array of the specified System.Type and dimension lengths, with zero-based indexing.


[1803] Return Value: A new multidimensional System.Array of the specified System.Type with the specified length for each dimension, using zero-based indexing.


[1804] Unlike most classes, System.Array provides the System.Array.Createlnstance(System.Type,System.Int32) method, instead of public constructors, to allow for late bound access. The System.Type of System.Array to create. An array that contains the size of each dimension of the System.Array to create.


[1805] CreateInstance


[1806] [C#] public static Array CreateInstance(Type elementType, int length 1, int length 2);


[1807] [C++] public: static Array* CreateInstance(Type* elementType, int length 1, int length 2);


[1808] [VB] Public Shared Function CreateInstance(ByVal elementType As Type, ByVal length1 As Integer, ByVal length 2 As Integer) As Array


[1809] [JScript] public static function CreateInstance(elementType: Type, length1: int, length 2: int): Array;


[1810] Description


[1811] Creates a two-dimensional System.Array of the specified System.Type and dimension lengths, with zero-based indexing.


[1812] Return Value: A new two-dimensional System.Array of the specified System.Type with the specified length for each dimension, using zero-based indexing.


[1813] Unlike most classes, System.Array provides the System.Array.Createlnstance(System.Type,System.Int32) method, instead of public constructors, to allow for late bound access. The System.Type of System.Array to create. The size of the first dimension of the System.Array to create. The size of the second dimension of the System.Array to create.


[1814] CreateInstance


[1815] [C#] public static Array CreateInstance(Type elementType, int[ ] lengths, int[ ] lowerBounds);


[1816] [C++] public: static Array* CreateInstance(Type* elementType, int lengths_gc[ ], int lowerBounds gc[ ]);


[1817] [VB] Public Shared Function CreateInstance(ByVal elementType As Type, ByVal lengths( ) As Integer, ByVal lowerBounds( ) As Integer) As Array


[1818] [JScript] public static function CreateInstance(elementType: Type, lengths: int[ ], lowerBounds: int[ ]): Array;


[1819] Description


[1820] Creates a multidimensional System.Array of the specified System.Type and dimension lengths, with the specified lower bounds.


[1821] Return Value: A new multidimensional System.Array of the specified System.Type with the specified length and lower bound for each dimension.


[1822] Unlike most classes, System.Array provides the System.Array.Createlnstance(System.Type,System.Int32) method, instead of public constructors, to allow for late bound access. The System.Type of System.Array to create. A one-dimensional array that contains the size of each dimension of the System.Array to create. A one-dimensional array that contains the lower bound (starting index) of each dimension of the System.Array to create.


[1823] CreateInstance


[1824] [C#] public static Array CreateInstance(Type elementType, int length1, int length 2, int length 3);


[1825] [C++] public: static Array* CreateInstance(Type* elementType, int length1, int length 2, int length 3);


[1826] [VB] Public Shared Function CreateInstance(ByVal elementType As Type, ByVal length1 As Integer, ByVal length2 As Integer, ByVal length3 As Integer) As Array


[1827] [JScript] public static function CreateInstance(elementType: Type, length1: int, length2: int, length3: int): Array;


[1828] Description


[1829] Creates a three-dimensional System.Array of the specified System.Type and dimension lengths, with zero-based indexing.


[1830] Return Value: A new three-dimensional System.Array of the specified System.Type with the specified length for each dimension, using zero-based indexing.


[1831] Unlike most classes, System.Array provides the System.Array.CreateInstance(System.Type,System.Int32) method, instead of public constructors, to allow for late bound access. The System.Type of System.Array to create. The size of the first dimension of the System.Array to create. The size of the second dimension of the System.Array to create. The size of the third dimension of the System.Array to create.


[1832] GetEnumerator


[1833] [C#] public virtual IEnumerator GetEnumerator( );


[1834] [C++] public: virtual IEnumerator* GetEnumerator( );


[1835] [VB] Overridable Public Function GetEnumerator( ) As IEnumerator


[1836] [JScript] public function GetEnumerator: IEnumerator;


[1837] Description


[1838] Returns an System.Collections.IEnumerator for the System.Array.


[1839] Return Value: An System.Collections.IEnumerator for the System.Array.


[1840] This method can be overridden by a derived class.


[1841] GetLength


[1842] [C#] public int GetLength(int dimension);


[1843] [C++] public: int GetLength(int dimension);


[1844] [VB] Public Function GetLength(ByVal dimension As Integer) As Integer


[1845] [JScript] public function GetLength(dimension: int): int;


[1846] Description


[1847] Gets the number of elements in the specified dimension of the System.Array.


[1848] Return Value: The number of elements in the specified dimension.


[1849] For example, GetLength(0) returns the number of elements in the first dimension of the System.Array. A zero-based dimension of the System.Array whose length needs to be determined.


[1850] GetLowerBound


[1851] [C#] public int GetLowerBound(int dimension);


[1852] [C++] public: int GetLowerBound(int dimension);


[1853] [VB] Public Function GetLowerBound(ByVal dimension As Integer) As Integer


[1854] [JScript] public function GetLowerBound(dimension: int): int;


[1855] Description


[1856] Gets the lower bound of the specified dimension in the System.Array.


[1857] Return Value: The lower bound of the specified dimension in the System.Array.


[1858] For example, GetLowerBound(0) returns the lower bound for the indexes of the first dimension of the System.Array, and GetLowerBound(Rank−1) returns the lower bound of the last dimension of the System.Array. A zero-based dimension of the System.Array whose lower bound needs to be determined.


[1859] GetUpperBound


[1860] [C#] public int GetUpperBound(int dimension);


[1861] [C++] public: int GetUpperBound(int dimension);


[1862] [VB] Public Function GetUpperBound(ByVal dimension As Integer) As Integer


[1863] [JScript] public function GetUpperBound(dimension: int): int;


[1864] Description


[1865] Gets the upper bound of the specified dimension in the System.Array.


[1866] Return Value: The upper bound of the specified dimension in the System.Array


[1867] For example, GetUpperBound(0) returns the upper bound for the indexes of the first dimension of the System.Array and GetUpperBound(Rank−1) returns the upper bound of the last dimension of the System.Array A zero-based dimension of the System.Array whose upper bound needs to be determined.


[1868] GetValue


[1869] [C#] public object GetValue(int index);


[1870] [C++] public: Object* GetValue(int index);


[1871] [VB] Public Function GetValue(ByVal index As Integer) As Object


[1872] [JScript] public function GetValue(index: int): Object;


[1873] Description


[1874] Gets the value at the specified position in a one-dimensional System.Array


[1875] Return Value: The value at the specified position in the one-dimensional System.Array.


[1876] The System.Array.GetLowerBound(System.Int32) and System.Array.GetUpperBound(System.Int32) methods can determine whether the value of index is out of bounds. The position of the value to get from the System.Array.


[1877] GetValue


[1878] [C#] public object GetValue(int[ ] indices);


[1879] [C++] public: Object* GetValue(int indices_gc[ ]);


[1880] [VB] Public Function GetValue(ByVal indices( ) As Integer) As Object


[1881] [JScript] public function GetValue(indices: int[ ]) Object; Gets the values of the System.Array elements at the specified indexes.


[1882] Description


[1883] Gets the value at the specified position in a multidimensional System.Array.


[1884] Return Value: The value at the specified position in the System.Array.


[1885] The number of elements in indices must equal the number of dimensions in the System.Array. All elements in the indices array must collectively specify the position of the desired element in the multidimensional System.Array. A one-dimensional array of indexes that specifies the position of the element to get from the System.Array.


[1886] GetValue


[1887] [C#] public object GetValue(int index 1, int index2);


[1888] [C++] public: Object* GetValue(int index1, int index2);


[1889] [VB] Public Function GetValue(ByVal index1 As Integer, ByVal index2 As Integer) As Object


[1890] [JScript] public function GetValue(index1: int, index2: int): Object;


[1891] Description


[1892] Gets the value at the specified position in a two-dimensional System.Array


[1893] Return Value: The value at the specified position in the System.Array.


[1894] The System.Array.GetLowerBound(System.Int32) and System.Array.GetUpperBound(System.Int32) methods can determine whether any of the indexes is out of bounds. The first-dimension index of the System.Array element to get. The second-dimension index of the System.Array element to get.


[1895] GetValue


[1896] [C#] public object GetValue(int index1, int index2, int index3);


[1897] [C++] public: Object* GetValue(int index1, int index2, int index3);


[1898] [VB] Public Function GetValue(ByVal index1 As Integer, ByVal index2 As Integer, ByVal index3 As Integer) As Object


[1899] [JScript] public function GetValue(index1: int, index2: int, index3: int): Object;


[1900] Description


[1901] Gets the value at the specified position in a three-dimensional System.Array.


[1902] Return Value: The value at the specified position in the System.Array.


[1903] The System.Array.GetLowerBound(System.Int32) and System.Array.GetUpperBound(System.Int32) methods can determine whether any of the indexes is out of bounds. The first-dimension index of the System.Array element to get. The second-dimension index of the System.Array element to get. The third-dimension index of the System.Array element to get.


[1904] IndexOf


[1905] [C#] public static int IndexOf(Array array, object value);


[1906] [C++] public: static int IndexOf(Array* array, Object* value);


[1907] [VB] Public Shared Function IndexOf(ByVal array As Array, ByVal value As Object) As Integer


[1908] [JScript] public static function IndexOf(array: Array, value: Object): int; Returns the index of the first occurrence of a value in a one-dimensional System.Array or in a portion of the System.Array.


[1909] Description


[1910] Searches for the specified System.Object and returns the index of the first occurrence within the entire one-dimensional System.Array.


[1911] Return Value: The index of the first occurrence of value within the entire array, if found; otherwise, the lower bound of the array −1.


[1912] The one-dimensional System.Array is searched forward starting at the first element and ending at the last element. The elements are compared to the specified value using the System.Object.Equals(System.Object) method. The one-dimensional System.Array to search. The System.Object to locate in array.


[1913] IndexOf


[1914] [C+] public static int IndexOf(Array array, object value, int startIndex);


[1915] [C++] public: static int IndexOf(Array* array, Object* value, int startIndex);


[1916] [VB] Public Shared Function IndexOf(ByVal array As Array, ByVal value As Object, ByVal startIndex As Integer) As Integer


[1917] [JScript] public static function IndexOf(array: Array, value: Object, startIndex: int): int;


[1918] Description


[1919] Searches for the specified System.Object and returns the index of the first occurrence within the section of the one-dimensional System.Array that extends from the specified index to the last element.


[1920] Return Value: The index of the first occurrence of value within the section of array that extends from startIndex to the last element, if found; otherwise, the lower bound of the array−1.


[1921] The one-dimensional System.Array is searched forward starting at startIndex and ending at the last element. The elements are compared to the specified value using the System.Object.Equals(System.Object) method. The one-dimensional System.Array to search. The System.Object to locate in array. The starting index of the search.


[1922] IndexOf


[1923] [C#] public static int IndexOf(Array array, object value, int startIndex, int count);


[1924] [C++] public: static int IndexOf(Array* array, Object* value, int startIndex, int count);


[1925] [VB] Public Shared Function IndexOf(ByVal array As Array, ByVal value As Object, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[1926] [JScript] public static function IndexOf(array: Array, value: Object, startIndex: int, count: int): int;


[1927] Description


[1928] Searches for the specified System.Object and returns the index of the first occurrence within the section of the one-dimensional System.Array that starts at the specified index and contains the specified number of elements.


[1929] Return Value: The index of the first occurrence of value within the section of array that starts at startIndex and contains count number of elements, if found; otherwise, the lower bound of the array−1.


[1930] The one-dimensional System.Array is searched forward starting at startIndex and ending at startIndex+count−1. The elements are compared to the specified value using the System.Object.Equals(System.Object) method. The one-dimensional System.Array to search. The System.Object to locate in array. The starting index of the search. The number of elements in the section to search.


[1931] Initialize


[1932] [C#] public void Initialize( );


[1933] [C++] public: void Initialize( );


[1934] [VB] Public Sub Initialize( )


[1935] [JScript] public function Initialize( );


[1936] Description


[1937] Initializes every element of the value-type System.Array by calling the default constructor of the value type.


[1938] This method must not be used on reference-type arrays.


[1939] LastIndexOf


[1940] [C#] public static int LastIndexOf(Array array, object value);


[1941] [C++] public: static int LastIndexOf(Array* array, Object* value);


[1942] [VB] Public Shared Function LastIndexOf(ByVal array As Array, ByVal value As Object) As Integer


[1943] [JScript] public static function LastIndexOf(array: Array, value: Object): int; Returns the index of the last occurrence of a value in a one-dimensional System.Array or in a portion of the System.Array


[1944] Description


[1945] Searches for the specified System.Object and returns the index of the last occurrence within the entire one-dimensional System.Array.


[1946] Return Value: The index of the last occurrence of value within the entire array, if found; otherwise, the lower bound of the array −1.


[1947] The one-dimensional System.Array is searched backward starting at the last element and ending at the first element. The elements are compared to the specified value using the System.Object.Equals(System.Object) method. The one-dimensional System.Array to search. The System.Object to locate in array.


[1948] LastIndexOf


[1949] [C#] public static int LastIndexOf(Array array, object value, int startIndex);


[1950] [C++] public: static int LastIndexOf(Array* array, Object* value, int startIndex);


[1951] [VB] Public Shared Function LastIndexOf(ByVal array As Array, ByVal value As Object, ByVal startIndex As Integer) As Integer


[1952] [JScript] public static function LastIndexOf(array: Array, value: Object, startIndex: int): int;


[1953] Description


[1954] Searches for the specified System.Object and returns the index of the last occurrence within the section of the one-dimensional System.Array that extends from the first element to the specified index.


[1955] Return Value: The index of the last occurrence of value within the section of array that extends from the first element to startIndex, if found; otherwise, the lower bound of the array−1.


[1956] The one-dimensional System.Array is searched backward starting at startIndex and ending at the first element. The elements are compared to the specified value using the System.Object.Equals(System.Object) method. The one-dimensional System.Array to search. The System.Object to locate in array. The starting index of the backward search.


[1957] LastIndexOf


[1958] [C#] public static int LastIndexOf(Array array, object value, int startIndex, int count);


[1959] [C++] public: static int LastIndexOf(Array* array, Object* value, int startIndex, int count);


[1960] [VB] Public Shared Function LastIndexOf(ByVal array As Array, ByVal value As Object, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[1961] [JScript] public static function LastIndexOf(array: Array, value: Object, startIndex: int, count: int): int;


[1962] Description


[1963] Searches for the specified System.Object and returns the index of the last occurrence within the section of the one-dimensional System.Array that contains the specified number of elements and ends at the specified index.


[1964] Return Value: The index of the last occurrence of value within the section of array that contains count number of elements and ends at startIndex, if found; otherwise, the lower bound of the array−1.


[1965] The one-dimensional System.Array is searched backward starting at startIndex and ending at startIndex−count+1. The elements are compared to the specified value using the System.Object.Equals(System.Object) method. The one-dimensional System.Array to search. The System.Object to locate in array. The starting index of the backward search. The number of elements in the section to search.


[1966] Reverse


[1967] [C#] public static void Reverse(Array array);


[1968] [C++] public: static void Reverse(Array* array);


[1969] [VB] Public Shared Sub Reverse(ByVal array As Array)


[1970] [JScript] public static function Reverse(array: Array); Reverses the order of the elements in a one-dimensional System.Array or in a portion of the System.Array


[1971] Description


[1972] Reverses the sequence of the elements in the entire one-dimensional System.Array.


[1973] After a call to this method, the element at myArray[i], where i is any index in the array, moves to myArray[j], where j equals (myArray.Length+myArray.GetLowerBound(0))−(i−myArray.GetLowerBound(0) )−1. The one-dimensional System.Array to reverse.


[1974] Reverse


[1975] [C#] public static void Reverse(Array array, int index, int length);


[1976] [C++] public: static void Reverse(Array* array, int index, int length);


[1977] [VB] Public Shared Sub Reverse(ByVal array As Array, ByVal index As Integer, ByVal length As Integer)


[1978] [JScript] public static function Reverse(array: Array, index: int, length: int);


[1979] Description


[1980] Reverses the sequence of the elements in a section of the one-dimensional System.Array.


[1981] After a call to this method, the element at myArray[i], where i is any index in the array, moves to myArray[j], where j equals ( myArray.Length+myArray.GetLowerBound(0) )−(i−myArray.GetLowerBound(0) )−1. The one-dimensional System.Array to reverse. The starting index of the section to reverse. The number of elements in the section to reverse.


[1982] SetValue


[1983] [C#] public void SetValue(object value, int index);


[1984] [C++] public: void SetValue(Object* value, int index);


[1985] [VB] Public Sub SetValue(ByVal value As Object, ByVal index As Integer)


[1986] [JScript] public function SetValue(value: Object, index: int); Sets the specified System.Array elements to the specified value.


[1987] Description


[1988] Sets a value to the element at the specified position in a one-dimensional System.Array.


[1989] The System.Array.GetLowerBound(System.Int32) and System.Array.GetUpperBound(System.Int32) methods can determine whether the value of index is out of bounds. The new value for the specified element. The position of the System.Array element to set.


[1990] SetValue


[1991] [C#] public void SetValue(object value, int[ ] indices);


[1992] [C++] public: void SetValue(Object* value, int indices_gc[ ]);


[1993] [VB] Public Sub SetValue(ByVal value As Object, ByVal indices( ) As Integer)


[1994] [JScript] public function SetValue(value: Object, indices: int[ ]);


[1995] Description


[1996] Sets a value to the element at the specified position in a multidimensional System.Array.


[1997] The number of elements in indices must equal the number of dimensions in the System.Array. All elements in the indices array must collectively specify the position of the desired element in the multidimensional System.Array. The new value for the specified element. A one-dimensional array of indexes that specifies the position of the element to set.


[1998] SetValue


[1999] [C#] public void SetValue(object value, int index1, int index2);


[2000] [C++] public: void SetValue(Object* value, int index1, int index2);


[2001] [VB] Public Sub SetValue(ByVal value As Object, ByVal index1 As Integer, ByVal index2 As Integer)


[2002] [JScript] public function SetValue(value: Object, index1: int, index2: int);


[2003] Description


[2004] Sets a value to the element at the specified position in a two-dimensional System.Array.


[2005] The System.Array.GetLowerBound(System.Int32) and System.Array.GetUpperBound(System.Int32) methods can determine whether any of the indexes is out of bounds. The new value for the specified element. The first-dimension index of the System.Array element to set. The second-dimension index of the System.Array element to set.


[2006] SetValue


[2007] [C#] public void SetValue(object value, int index1, int index2, int index3);


[2008] [C++] public: void SetValue(Object* value, int index1, int index2, int index3);


[2009] [VB] Public Sub SetValue(ByVal value As Object, ByVal index1 As Integer, ByVal index2 As Integer, ByVal index3 As Integer)


[2010] [JScript] public function SetValue(value: Object, index1: int, index2: int, index3 : int);


[2011] Description


[2012] Sets a value to the element at the specified position in a three-dimensional System.Array.


[2013] The System.Array.GetLowerBound(System.Int32) and System.Array.GetUpperBound(System.Int32) methods can determine whether any of the indexes is out of bounds. The new value for the specified element. The first-dimension index of the System.Array element to set. The second-dimension index of the System.Array element to set. The third-dimension index of the System.Array element to set.


[2014] Sort


[2015] [C#] public static void Sort(Array array);


[2016] [C++] public: static void Sort(Array* array);


[2017] [VB] Public Shared Sub Sort(ByVal array As Array)


[2018] [JScript] public static function Sort(array: Array); Sorts the elements in one-dimensional System.Array objects.


[2019] Description


[2020] Sorts the elements in an entire one-dimensional System.Array using the System.IComparable interface implemented by each element of the System.Array.


[2021] Each element of array must implement the System.IComparable interface to be capable of comparisons with every other element in array. The one-dimensional System.Array to sort.


[2022] Sort


[2023] [C#] public static void Sort(Array keys, Array items);


[2024] [C++] public: static void Sort(Array* keys, Array* items);


[2025] [VB] Public Shared Sub Sort(ByVal keys As Array, ByVal items As Array)


[2026] [JScript] public static function Sort(keys: Array, items: Array);


[2027] Description


[2028] Sorts a pair of one-dimensional System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first System.Array using the System.IComparable interface implemented by each key.


[2029] Each key in the keysSystem.Array has a corresponding item in the itemsSystem.Array. When a key is repositioned during the sorting, the corresponding item in the itemsSystem.Array is similarly repositioned. Therefore, the itemsSystem.Array is sorted according to the arrangement of the corresponding keys in the keysSystem.Array. The one-dimensional System.Array that contains the keys to sort. The one-dimensional System.Array that contains the items that correspond to each of the keys in the keysSystem.Array.


[2030] Sort


[2031] [C#] public static void Sort(Array array, IComparer comparer);


[2032] [C++] public: static void Sort(Array* array, IComparer* comparer);


[2033] [VB] Public Shared Sub Sort(ByVal array As Array, ByVal comparer As IComparer)


[2034] [JScript] public static function Sort(array: Array, comparer: IComparer);


[2035] Description


[2036] Sorts the elements in a one-dimensional System.Array using the specified System.Collections.lComparer interface.


[2037] If comparer is null, each element of array must implement the System.IComparable interface to be capable of comparisons with every other element in array. The one-dimensional System.Array to sort. The System.Collections.IComparer implementation to use when comparing elements.


[2038] Sort


[2039] [C#] public static void Sort(Array keys, Array items, IComparer comparer);


[2040] [C++] public: static void Sort(Array* keys, Array* items, IComparer* comparer);


[2041] [VB] Public Shared Sub Sort(ByVal keys As Array, ByVal items As Array, ByVal comparer As IComparer)


[2042] [JScript] public static function Sort(keys: Array, items: Array, comparer: IComparer);


[2043] Description


[2044] Sorts a pair of one-dimensional System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first System.Array using the specified System.Collections.IComparer interface.


[2045] Each key in the keysSystem.Array has a corresponding item in the itemsSystem.Array. When a key is repositioned during the sorting, the corresponding item in the itemsSystem.Array is similarly repositioned. Therefore, the itemsSystem.Array is sorted according to the arrangement of the corresponding keys in the keysSystem.Array. The one-dimensional System.Array that contains the keys to sort. The one-dimensional System.Array that contains the items that correspond to each of the keys in the keysSystem.Array. The System.Collections.IComparer implementation to use when comparing elements.


[2046] Sort


[2047] [C#] public static void Sort(Array array, int index, int length);


[2048] [C++] public: static void Sort(Array* array, int index, int length);


[2049] [VB] Public Shared Sub Sort(ByVal array As Array, ByVal index As Integer, ByVal length As Integer)


[2050] [JScript] public static function Sort(array: Array, index: int, length: int);


[2051] Description


[2052] Sorts the elements in a section of a one-dimensional System.Array using the System.IComparable interface implemented by each element of the System.Array.


[2053] Each element within the specified section of array must implement the System.IComparable interface to be capable of comparisons with every other element in array. The one-dimensional System.Array to sort. The starting index of the range to sort. The number of elements in the range to sort.


[2054] Sort


[2055] [C#] public static void Sort(Array keys, Array items, int index, int length);


[2056] [C++] public: static void Sort(Array* keys, Array* items, int index, int length);


[2057] [VB] Public Shared Sub Sort(ByVal keys As Array, ByVal items As Array, ByVal index As Integer, ByVal length As Integer)


[2058] [JScript] public static function Sort(keys: Array, items: Array, index: int, length: int);


[2059] Description


[2060] Sorts a section of a pair of one-dimensional System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first System.Array using the System.IComparable interface implemented by each key.


[2061] Each key in the keysSystem.Array has a corresponding item in the itemsSystem.Array. When a key is repositioned during the sorting, the corresponding item in the itemsSystem.Array is similarly repositioned. Therefore, the itemsSystem.Array is sorted according to the arrangement of the corresponding keys in the keysSystem.Array. The one-dimensional System.Array that contains the keys to sort. The one-dimensional System.Array that contains the items that correspond to each of the keys in the keysSystem.Array. The starting index of the range to sort. The number of elements in the range to sort.


[2062] Sort


[2063] [C#] public static void Sort(Array array, int index, int length, IComparer comparer);


[2064] [C++] public: static void Sort(Array* array, int index, int length, IComparer* comparer);


[2065] [VB] Public Shared Sub Sort(ByVal array As Array, ByVal index As Integer, ByVal length As Integer, ByVal comparer As IComparer)


[2066] [JScript] public static function Sort(array: Array, index: int, length: int, comparer : IComparer);


[2067] Description


[2068] Sorts the elements in a section of a one-dimensional System.Array using the specified System.Collections.IComparer interface.


[2069] If comparer is null, each element within the specified section of array must implement the System.IComparable interface to be capable of comparisons with every other element in array. The one-dimensional System.Array to sort. The starting index of the range to sort. The number of elements in the range to sort. The System.Collections.IComparer implementation to use when comparing elements.


[2070] Sort


[2071] [C#] public static void Sort(Array keys, Array items, int index, int length, IComparer comparer);


[2072] [C++] public: static void Sort(Array* keys, Array* items, int index, int length, IComparer* comparer);


[2073] [VB] Public Shared Sub Sort(ByVal keys As Array, ByVal items As Array, ByVal index As Integer, ByVal length As Integer, ByVal comparer As IComparer)


[2074] [JScript] public static function Sort(keys: Array, items: Array, index: int, length: int, comparer: IComparer);


[2075] Description


[2076] Sorts a section of a pair of one-dimensional System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first System.Array using the specified System.Collections.IComparer interface.


[2077] Each key in the keysSystem.Array has a corresponding item in the itemsSystem.Array. When a key is repositioned during the sorting, the corresponding item in the itemsSystem.Array is similarly repositioned. Therefore, the itemsSystem.Array is sorted according to the arrangement of the corresponding keys in the keysSystem.Array. The one-dimensional System.Array that contains the keys to sort. The one-dimensional System.Array that contains the items that correspond to each of the keys in the keysSystem.Array. The starting index of the range to sort. The number of elements in the range to sort. The System.Collections.IComparer implementation to use when comparing elements.


[2078] IList.Add


[2079] [C#] int IList.Add(object value);


[2080] [C++] int IList::Add(Object* value);


[2081] [VB] Function Add(ByVal value As Object) As Integer Implements IList.Add


[2082] [JScript] function IList.Add(value: Object): int;


[2083] IList.Clear


[2084] [C#] void IList.Clear( );


[2085] [C++] void IList::Clear( );


[2086] [VB] Sub Clear( ) Implements IList.Clear


[2087] [JScript] function IList.Clear( );


[2088] IList.Contains


[2089] [C#] bool IList.Contains(object value);


[2090] [C++] bool IList::Contains(Object* value);


[2091] [VB] Function Contains(ByVal value As Object) As Boolean Implements IList.Contains


[2092] [JScript] function IList.Contains(value: Object): Boolean;


[2093] IList.IndexOf


[2094] [C#] int IList.IndexOf(object value);


[2095] [C++] int IList::IndexOf(Object* value);


[2096] [VB] Function IndexOf(ByVal value As Object) As Integer Implements


[2097] lList.IndexOf


[2098] [JScript] function IList.IndexOf(value: Object): int;


[2099] IList.Insert


[2100] [C#] void IList.Insert(int index, object value);


[2101] [C++] void IList::Insert(int index, Object* value);


[2102] [VB] Sub Insert(ByVal index As Integer, ByVal value As Object) Implements


[2103] IList.Insert


[2104] [JScript] function IList.Insert(index: int, value: Object);


[2105] IList.Remove


[2106] [C#] void IList.Remove(object value);


[2107] [C++] void IList::Remove(Object* value);


[2108] [VB] Sub Remove(ByVal value As Object) Implements IList.Remove


[2109] [JScript] function IList.Remove(value: Object);


[2110] IList.RemoveAt


[2111] [C#] void IList.RemoveAt(int index);


[2112] [C++] void IList::RemoveAt(int index);


[2113] [VB] Sub RemoveAt(ByVal index As Integer) Implements IList.RemoveAt


[2114] [JScript] function IList.RemoveAt(index: int);


[2115] ArrayTypeMismatchException class (System)


[2116] ToString


[2117] Description


[2118] The exception that is thrown when an attempt is made to store an element of the wrong type within an array.


[2119] System.ArrayTypeMismatchException uses the HRESULT COR_E_ARRAYTYPEMISMATCH, which has the value 0×80131503.


[2120] ArrayTypeMismatchException



Example Syntax

[2121] ToString


[2122] [C#] public ArrayTypeMismatchException( );


[2123] [C++] public: ArrayTypeMismatchException( );


[2124] [VB] Public Sub New( )


[2125] [JScript] public function ArrayTypeMismatchException( ); Initializes a new instance of the System.ArrayTypeMismatchException class.


[2126] Description


[2127] Initializes a new instance of the System.ArrayTypeMismatchException class with default properties.


[2128] The following table shows the initial property values for an instance of System.ArrayTypeMismatchException.


[2129] ArrayTypeMismatchException



Example Syntax

[2130] ToString


[2131] [C#] public ArrayTypeMismatchException(string message);


[2132] [C++] public: ArrayTypeMismatchException(String* message);


[2133] [VB] Public Sub New(ByVal message As String)


[2134] [JScript] public function ArrayTypeMismatchException(message: String);


[2135] Description


[2136] Initializes a new instance of the System.ArrayTypeMismatchException class with a specified error message.


[2137] The following table shows the initial property values for an instance of System.ArrayTypeMismatchException. The error message that explains the reason for the exception.


[2138] ArrayTypeMismatchException



Example Syntax

[2139] ToString


[2140] [C#] protected ArrayTypeMismatchException(SerializationInfo info, StreamingContext context);


[2141] [C++] protected: ArrayTypeMismatchException(SerializationInfo* info, StreamingContext context);


[2142] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[2143] [JScript] protected function ArrayTypeMismatchException(info: SerializationInfo, context: StreamingContext);


[2144] Description


[2145] Initializes a new instance of the System.ArrayTypeMismatchException class with serialized data.


[2146] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[2147] ArrayTypeMismatchException



Example Syntax

[2148] ToString


[2149] [C#] public ArrayTypeMismatchException(string message, Exception innerException);


[2150] [C++] public: ArrayTypeMismatchException(String* message, Exception* innerException);


[2151] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[2152] [JScript] public function ArrayTypeMismatchException(message: String, innerException: Exception);


[2153] Description


[2154] Initializes a new instance of the System.ArrayTypeMismatchException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[2155] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[2156] HelpLink


[2157] HResult


[2158] InnerException


[2159] Message


[2160] Source


[2161] StackTrace


[2162] TargetSite


[2163] AssemblyLoadEventArgs class (System)


[2164] ToString


[2165] Description


[2166] Provides data for the System.AppDomain.AssemblyLoad event.


[2167] AssemblyLoadEventArgs



Example Syntax

[2168] ToString


[2169] [C#] public AssemblyLoadEventArgs(Assembly loadedAssembly);


[2170] [C++] public: AssemblyLoadEventArgs(Assembly* loadedAssembly);


[2171] [VB] Public Sub New(ByVal loadedAssembly As Assembly)


[2172] [JScript] public function AssemblyLoadEventArgs(loadedAssembly: Assembly);


[2173] Description


[2174] Initializes a new instance of the System.AssemblyLoadEventArgs.AssemblyLoadEventArgs class, using the specified System.Reflection.Assembly object. An instance that represents the currently loaded assembly.


[2175] LoadedAssembly


[2176] ToString


[2177] [C#] public Assembly LoadedAssembly {get;}


[2178] [C++] public: _Property Assembly* get_LoadedAssembly( );


[2179] [VB] Public ReadOnly Property LoadedAssembly As Assembly


[2180] [JScript] public function get LoadedAssembly( ): Assembly;


[2181] Description


[2182] Gets an System.Reflection.Assembly object that represents the currently loaded assembly.


[2183] AssemblyLoadEventHandler delegate (System)


[2184] ToString


[2185] Description


[2186] Represents the method that will handle the System.AppDomain.AssemblyLoad event of an System.AppDomain. The source of the event. An System.AssemblyLoadEventArgs that contains the event data.


[2187] AsyncCallback delegate (System)


[2188] ToString


[2189] Description


[2190] References the callback method to be called when the asynchronous operation is completed. The result of the asynchronous operation.


[2191] System.AsyncCallback provides a way for client applications to complete an asynchronous operation. This callback delegate is supplied to the client when the asynchronous operation is initiated. The event handler referenced by System.AsyncCallback contains program logic to finish processing the asynchronous task for the client.


[2192] Attribute class (System)


[2193] ToString


[2194] Description


[2195] Base class for custom attributes.


[2196] The Attribute class contains convenience methods to access and test custom attributes. While any user-defined type can be used as an attribute, it is expected that most attributes will be instances of types derived from Attribute.


[2197] Attribute



Example Syntax

[2198] ToString


[2199] [C#] protected Attribute( );


[2200] [C++] protected: Attribute( );


[2201] [VB] Protected Sub New( )


[2202] [JScript] protected function Attribute( );


[2203] Description


[2204] Initializes a new instance of the Attribute class.


[2205] TypeId


[2206] ToString


[2207] [C#] public virtual object TypeId {get;}


[2208] [C++] public: property virtual Object* getTypeId( );


[2209] [VB] Overridable Public ReadOnly Property TypeId As Object


[2210] [JScript] public function get TypeId( ): Object;


[2211] Description


[2212] When implemented in a derived class, gets a unique identifier for this Attribute.


[2213] As implemented, this identifier is merely the System.Type of the attribute. However, it is intended that the unique identifier be used to identify two attributes of the same type.


[2214] Equals


[2215] [C#] public override bool Equals(object obj);


[2216] [C++] public: bool Equals(Object* obj);


[2217] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[2218] [JScript] public override function Equals(obj: Object): Boolean;


[2219] Description


[2220] Returns a value indicating whether this instance is equal to a specified object.


[2221] Return Value: true if obj equals the type and value of this instance; otherwise, false. An System.Object to compare with this instance or null.


[2222] GetCustomAttribute


[2223] [C#] public static Attribute GetCustomAttribute(Assembly element, Type attributeType);


[2224] [C++] public: static Attribute* GetCustomAttribute(Assembly* element, Type* attributeType);


[2225] [VB] Public Shared Function GetCustomAttribute(ByVal element As Assembly, ByVal attributeType As Type) As Attribute


[2226] [JScript] public static function GetCustomAttribute(element: Assembly, attributeType: Type): Attribute;


[2227] Description


[2228] Retrieves a custom attribute of a specified type applied to a specified assembly and its ancestors.


[2229] Return Value: null, if no custom attribute of type attributeType is applied to element. An object derived from class System.Reflection.Assembly that describes a reusable, versionable, collection of modules. The System.Type object to which the custom attributes are applied.


[2230] GetCustomAttribute


[2231] [C#] public static Attribute GetCustomAttribute(MemberInfo element, Type attributeType);


[2232] [C++] public: static Attribute* GetCustomAttribute(MemberInfo* element, Type* attributeType);


[2233] [VB] Public Shared Function GetCustomAttribute(ByVal element As MemberInfo, ByVal attributeType As Type) As Attribute


[2234] [JScript] public static function GetCustomAttribute(element: MemberInfo, attributeType: Type): Attribute;


[2235] Description


[2236] Retrieves a custom attribute of a specified type applied to a specified member of a class and its ancestors.


[2237] Return Value: null, if no custom attribute of type attributeType is applied to element. An object derived from class System.Reflection.MemberInfo that describes a constructor, event, field, method, or property member of a class. The System.Type object to which the custom attributes are applied.


[2238] GetCustomAttribute


[2239] [C#] public static Attribute GetCustomAttribute(Module element, Type attributeType);


[2240] [C++] public: static Attribute* GetCustomAttribute(Module* element, Type* attributeType);


[2241] [VB] Public Shared Function GetCustomAttribute(ByVal element As Module, ByVal attributeType As Type) As Attribute


[2242] [JScript] public static function GetCustomAttribute(element: Module, attributeType: Type): Attribute;


[2243] Description


[2244] Retrieves a custom attribute of a specified type applied to a specified module and its ancestors.


[2245] Return Value: null, if no custom attribute of type attributeType is applied to element. An object derived from class System.Reflection.Module that describes a portable executable file. The System.Type object to which the custom attributes are applied.


[2246] GetCustomAttribute


[2247] [C#] public static Attribute GetCustomAttribute(ParameterInfo element, Type attributeType);


[2248] [C++] public: static Attribute* GetCustomAttribute(ParameterInfo* element, Type* attributeType);


[2249] [VB] Public Shared Function GetCustomAttribute(ByVal element As ParameterInfo, ByVal attributeType As Type) As Attribute


[2250] [JScript] public static function GetCustomAttribute(element: ParameterInfo, attributeType: Type): Attribute;


[2251] Description p Retrieves a custom attribute of a specified type applied to a specified parameter of a member of a class and its ancestors.


[2252] Return Value: null, if no custom attribute of type attributeType is applied to element. An object derived from class System.Reflection.Parameterlnfo that describes a parameter of a member of a class. The System.Type object to which the custom attributes are applied.


[2253] GetCustomAttribute


[2254] [C#] public static Attribute GetCustomAttribute(Assembly element, Type attributeType, bool inherit);


[2255] [C++] public: static Attribute* GetCustomAttribute(Assembly* element, Type* attributeType, bool inherit);


[2256] [VB] Public Shared Function GetCustomAttribute(ByVal element As Assembly, ByVal attributeType As Type, ByVal inherit As Boolean) As Attribute


[2257] [JScript] public static function GetCustomAttribute(element: Assembly, attributeType: Type, inherit: Boolean): Attribute;


[2258] Description


[2259] Retrieves a custom attribute of a specified type applied to a specified assembly and optionally its ancestors.


[2260] Return Value: null, if no custom attribute of type attributeType is applied to element. An object derived from class System.Reflection.Assembly that describes a reusable, versionable, collection of modules. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2261] GetCustomAttribute


[2262] [C#] public static Attribute GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit);


[2263] [C++] public: static Attribute* GetCustomAttribute(MemberInfo* element, Type* attributeType, bool inherit);


[2264] [VB] Public Shared Function GetCustomAttribute(ByVal element As MemberInfo, ByVal attributeType As Type, ByVal inherit As Boolean) As Attribute


[2265] [JScript] public static function GetCustomAttribute(element: MemberInfo, attributeType: Type, inherit: Boolean): Attribute; Retrieves a custom attribute of a specified type applied to a specified member of a class.


[2266] Description


[2267] Retrieves a custom attribute of a specified type applied to a specified member of a class and optionally its ancestors.


[2268] Return Value: null, if no custom attribute of type attributetype is applied to element. An object derived from class System.Reflection.MemberInfo that describes a constructor, event, field, method, or property member of a class. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2269] GetCustomAttribute


[2270] [C#] public static Attribute GetCustomAttribute(Module element, Type attributeType, bool inherit);


[2271] [C++] public: static Attribute* GetCustomAttribute(Module* element, Type* attributeType, bool inherit);


[2272] [VB] Public Shared Function GetCustomAttribute(ByVal element As Module, ByVal attributeType As Type, ByVal inherit As Boolean) As Attribute


[2273] [JScript] public static function GetCustomAttribute(element: Module, attributeType: Type, inherit: Boolean): Attribute;


[2274] Description


[2275] Retrieves a custom attribute of a specified type applied to a specified module and optionally its ancestors.


[2276] Return Value: null, if no custom attribute of type attributeType is applied to element. An object derived from class System.Reflection.Module that describes a portable executable file. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2277] GetCustomAttribute


[2278] [C#] public static Attribute GetCustomAttribute(ParameterInfo element, Type attributeType, bool inherit);


[2279] [C++] public: static Attribute* GetCustomAttribute(ParameterInfo* element, Type* attributetype, bool inherit);


[2280] [VB] Public Shared Function GetCustomAttribute(ByVal element As ParameterInfo, ByVal attributeType As Type, ByVal inherit As Boolean) As Attribute


[2281] [JScript] public static function GetCustomAttribute(element: ParameterInfo, attributeType: Type, inherit: Boolean): Attribute;


[2282] Description


[2283] Retrieves a custom attribute of a specified type applied to a specified parameter of a member of a class and optionally its ancestors.


[2284] Return Value: null, if no custom attribute of type attributeType is applied to element. An object derived from class System.Reflection.ParameterInfo that describes a parameter of a member of a class. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2285] GetCustomAttributes


[2286] [C#] public static Attribute[ ] GetCustomAttributes(Assembly element);


[2287] [C++] public: static Attribute* GetCustomAttributes(Assembly* element) [ ];


[2288] [VB] Public Shared Function GetCustomAttributes(ByVal element As Assembly) As Attribute( )


[2289] [JScript] public static function GetCustomAttributes(element: Assembly) Attribute[ ];


[2290] Description


[2291] Retrieves an array of the custom attributes of a specified type applied to a specified assembly and its ancestors.


[2292] Return Value: An System.Attribute array containing the custom attributes applied to element. -or- An empty array if no such custom attributes exist.


[2293] Return value contains the custom attributes for ancestors of element. An object derived from class System.Reflection.Assembly that describes a reusable, versionable, collection of modules.


[2294] GetCustomAttributes


[2295] [C#] public static Attribute[ ] GetCustomAttributes(MemberInfo element);


[2296] [C++] public: static Attribute* GetCustomAttributes(MemberInfo* element) [ ];


[2297] [VB] Public Shared Function GetCustomAttributes(ByVal element As MemberInfo) As Attribute( )


[2298] [JScript] public static function GetCustomAttributes(element: MemberInfo): Attribute[ ];


[2299] Description


[2300] Retrieves an array of the custom attributes applied to a specified member of a class and its ancestors.


[2301] Return Value: An System.Attribute array containing the custom attributes applied to element. -or- An empty array if no such custom attributes exist.


[2302] Return value contains the custom attributes for ancestors of element. An object derived from class System.Reflection.MemberInfo that describes a constructor, event, field, method, or property member of a class.


[2303] GetCustomAttributes


[2304] [C#] public static Attribute[ ] GetCustomAttributes(Module element);


[2305] [C++] public: static Attribute* GetCustomAttributes(Module* element)[ ]


[2306] [VB] Public Shared Function GetCustomAttributes(ByVal element As Module) As Attribute( )


[2307] [JScript] public static function GetCustomAttributes(element: Module) Attribute[ ];


[2308] Description


[2309] Retrieves an array of the custom attributes of a specified type applied to a specified module and its ancestors.


[2310] Return Value: An System.Attribute array containing the custom attributes applied to element. -or- An empty array if no such custom attributes exist.


[2311] Return value contains the custom attributes for ancestors of element. An object derived from class System.Reflection.Module that describes a portable executable file.


[2312] GetCustomAttributes


[2313] [C#] public static Attribute[ ] GetCustomAttributes(ParameterInfo element);


[2314] [C++] public: static Attribute* GetCustomAtffributes(ParameterInfo* element) [ ];


[2315] [VB] Public Shared Function GetCustomAttributes(ByVal element As ParameterInfo) As Attribute( )


[2316] [JScript] public static function GetCustomAttributes(element: ParameterInfo) Attribute[ ];


[2317] Description


[2318] Retrieves an array of the custom attributes of a specified type applied to a specified parameter of a member of a class and its ancestors.


[2319] Return Value: An System.Attribute array containing the custom attributes applied to element. -or- An empty array if no such custom attributes exist.


[2320] Return value contains the custom attributes for ancestors of element. An object derived from class System.Reflection.ParameterInfo that describes a parameter of a member of a class.


[2321] GetCustomAttributes


[2322] [C#] public static Attribute[ ] GetCustomAttributes(Assembly element, bool inherit);


[2323] [C++] public: static Attribute* GetCustomAttributes(Assembly* element, bool inherit) [ ];


[2324] [VB] Public Shared Function GetCustonlAttributes(ByVal element As Assembly, ByVal inherit As Boolean) As Attribute( )


[2325] [JScript] public static function GetCustomAttributes(element: Assembly, inherit: Boolean): Attribute[ ];


[2326] Description


[2327] Retrieves an array of the custom attributes of a specified type applied to a specified assembly and optionally its ancestors.


[2328] Return Value: An System.Attribute array containing the custom attributes applied to element. -or- An empty array if no such custom attributes exist.


[2329] Return value contains the custom attributes for ancestors of element if inherit is true. An object derived from class System.Reflection.Assembly that describes a reusable, versionable, collection of modules. If true, specifies to also search the ancestors of element for custom attributes.


[2330] GetCustomAttributes


[2331] [C#] public static Attribute[ ] GetCustomAttributes(Assembly element, Type attributeType);


[2332] [C++] public: static Attribute* GetCustomAttributes(Assembly* element, Type* attributeType) [ ];


[2333] [VB] Public Shared Function GetCustomAttributes(ByVal element As Assembly, ByVal attributeType As Type) As Attribute( )


[2334] [JScript] public static function GetCustomAttributes(element: Assembly, attributeType: Type): Attribute[ ];


[2335] Description


[2336] Retrieves an array of the custom attributes of a specified type applied to a specified assembly and its ancestors.


[2337] Return Value: An System.Attribute array containing the custom attributes of type attributeType applied to element. -or- An empty array if no such custom attributes exist.


[2338] Return value contains the custom attributes for ancestors of element. An object derived from class System.Reflection.Assembly that describes a reusable, versionable, collection of modules. The System.Type object to which the custom attributes are applied.


[2339] GetCustomAttributes


[2340] [C#] public static Attribute[ ] GetCustomAttributes(MemberInfo element, bool inherit);


[2341] [C++] public: static Attribute* GetCustomAttributes(MemberInfo* element, bool inherit) [ ];


[2342] [VB] Public Shared Function GetCustomAttributes(ByVal element As MemberInfo, ByVal inherit As Boolean) As Attribute( )


[2343] [JScript] public static function GetCustomAttributes(element: MemberInfo, inherit: Boolean): Attribute[ ];


[2344] Description


[2345] Retrieves an array of the custom attributes of a specified member of a class and its ancestors.


[2346] Return Value: An System.Attribute array containing the custom attributes applied to element. -or- An empty array if no such custom attributes exist.


[2347] Return value contains the custom attributes for ancestors of element if inherit is true. An object derived from class System.Reflection.MemberInfo that describes a constructor, event, field, method, or property member of a class. If true, specifies to also search the ancestors of element for custom attributes.


[2348] GetCustomAttributes


[2349] [C#] public static Attribute[ ] GetCustomAttributes(MemberInfo element, Type type);


[2350] [C++] public: static Attribute* GetCustomAttributes(MemberInfo* element, Type* type) [ ];


[2351] [VB] Public Shared Function GetCustomAttributes(ByVal element As MemberInfo, ByVal type As Type) As Attribute( )


[2352] [JScript] public static function GetCustomAttributes(element: MemberInfo, type: Type): Attribute[ ]; Retrieves an array of the custom attributes of a specified type applied to a specified member of a class.


[2353] Description


[2354] Retrieves an array of the custom attributes of a specified type applied to a specified member of a class and its ancestors.


[2355] Return Value: An System.Attribute array containing the custom attributes of type type applied to element. -or- An empty array if no such custom attributes exist.


[2356] Return value contains the custom attributes for ancestors of element. An object derived from class System.Reflection.MemberInfo that describes a constructor, event, field, method, or property member of a class. The System.Type object to which the custom attributes are applied.


[2357] GetCustomAttributes


[2358] [C#] public static Attribute[ ] GetCustomAttributes(Module element, bool inherit);


[2359] [C++] public: static Attribute* GetCustomAttributes(Module* element, bool inherit) [ ];


[2360] [VB] Public Shared Function GetCustomAttributes(ByVal element As Module, ByVal inherit As Boolean) As Attribute( )


[2361] [JScript] public static function GetCustomAttributes(element: Module, inherit: Boolean): Attribute[ ];


[2362] Description


[2363] Retrieves an array of the custom attributes of a specified type applied to a specified module and optionally its ancestors.


[2364] Return Value: An System.Attribute array containing the custom attributes applied to element. -or- An empty array if no such custom attributes exist.


[2365] Return value contains the custom attributes for ancestors of element if inherit is true. An object derived from class System.Reflection.Module that describes a portable executable file. If true, specifies to also search the ancestors of element for custom attributes.


[2366] GetCustomAttributes


[2367] [C#] public static Attribute[ ] GetCustomAttributes(Module element, Type attributeType);


[2368] [C++] public: static Attribute* GetCustomAttributes(Module* element, Type* attributeType) [ ];


[2369] [VB] Public Shared Function GetCustomAttributes(ByVal element As Module, ByVal attributeType As Type) As Attribute( )


[2370] [JScript] public static function GetCustomAttributes(element: Module, attributeType: Type): Attribute[ ];


[2371] Description


[2372] Retrieves an array of the custom attributes of a specified type applied to a specified module and its ancestors.


[2373] Return Value: An System.Attribute array containing the custom attributes of type attributeType applied to element. -or- An empty array if no such custom attributes exist.


[2374] Return value contains the custom attributes for ancestors of element. An object derived from class System.Reflection.Module that describes a portable executable file. The System.Type object to which the custom attributes are applied.


[2375] GetCustomAttributes


[2376] [C#] public static Attribute[ ] GetCustomAttributes(ParameterInfo element, bool inherit);


[2377] [C++] public: static Attribute* GetCustomAttributes(ParameterInfo* element, bool inherit) [ ];


[2378] [VB] Public Shared Function GetCustomAttributes(ByVal element As ParameterInfo, ByVal inherit As Boolean) As Attribute( )


[2379] [JScript] public static function GetCustomAttributes(element: ParameterInfo, inherit: Boolean): Attribute[ ];


[2380] Description


[2381] Retrieves an array of the custom attributes of a specified type applied to a specified parameter of a member of a class and optionally its ancestors.


[2382] Return Value: An System.Attribute array containing the custom attributes applied to element. -or- An empty array if no such custom attributes exist.


[2383] Return value contains the custom attributes for ancestors of element if inherit is true. An object derived from class System.Reflection.ParameterInfo that describes a parameter of a member of a class. If true, specifies to also search the ancestors of element for custom attributes.


[2384] GetCustomAttributes


[2385] [C#] public static Attribute[ ] GetCustomAttributes(ParameterInfo element, Type attributeType); p0 [C++] public: static Attribute* GetCustomAttributes(ParameterInfo* element, Type* attributeType) [ ];


[2386] [VB] Public Shared Function GetCustomAttributes(ByVal element As ParameterInfo, ByVal attributeType As Type) As Attribute( )


[2387] [JScript] public static function GetCustomAttributes(element: ParameterInfo, attributeType: Type): Attribute[ ];


[2388] Description


[2389] Retrieves an array of the custom attributes of a specified type applied to a specified parameter of a member of a class and its ancestors.


[2390] Return Value: An System.Attribute array containing the custom attributes of type attributeType applied to element. -or- An empty array if no such custom attributes exist.


[2391] Return value contains the custom attributes for ancestors of element. An object derived from class System.Reflection.ParameterInfo that describes a parameter of a member of a class. The System.Type object to which the custom attributes are applied.


[2392] GetCustomAttributes


[2393] [C#] public static Attribute[ ] GetCustomAttributes(Assembly element, Type attributeType, bool inherit);


[2394] [C++] public: static Attribute* GetCustomAttributes(Assembly* element, Type* attributeType, bool inherit) [ ];


[2395] [VB] Public Shared Function GetCustomAttributes(ByVal element As Assembly, ByVal attributeType As Type, ByVal inherit As Boolean) As Attribute( )


[2396] [JScript] public static function GetCustomAttributes(element: Assembly, attributeType: Type, inherit: Boolean): Attribute[ ];


[2397] Description


[2398] Retrieves an array of the custom attributes of a specified type applied to a specified assembly and optionally its ancestors.


[2399] Return Value: An System.Attribute array containing the custom attributes of type attributeType applied to element. -or- An empty array if no such custom attributes exist.


[2400] Return value contains the custom attributes for ancestors of element if inherit is true. An object derived from class System.Reflection.Assembly that describes a reusable, versionable, collection of modules. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2401] GetCustomAttributes


[2402] [C#] public static Attribute[ ] GetCustomAttributes(MemberInfo element, Type type, bool inherit);


[2403] [C++] public: static Attribute* GetCustomAttributes(MemberInfo* element, Type* type, bool inherit) [ ];


[2404] [VB] Public Shared Function GetCustomAttributes(ByVal element As MemberInfo, ByVal type As Type, ByVal inherit As Boolean) As Attribute( )


[2405] [JScript] public static function GetCustomAttributes(element: MemberInfo, type: Type, inherit: Boolean): Attribute[ ];


[2406] Description


[2407] Retrieves an array of the custom attributes of a specified type applied to a specified member of a class and optionally its ancestors.


[2408] Return Value: An System.Attribute array containing the custom attributes of type type applied to element. -or- An empty array if no such custom attributes exist.


[2409] Return value contains the custom attributes for ancestors of element if inherit is true. An object derived from class System.Reflection.MemberInfo that describes a constructor, event, field, method, or property member of a class. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2410] GetCustomAttributes


[2411] [C#] public static Attribute[ ] GetCustomAttributes(Module element, Type attributeType, bool inherit);


[2412] [C++] public: static Attribute* GetCustomAttributes(Module* element, Type* attributeType, bool inherit) [ ];


[2413] [VB] Public Shared Function GetCustomAttributes(ByVal element As Module, ByVal attributeType As Type, ByVal inherit As Boolean) As Attribute( )


[2414] [JScript] public static function GetCustomAttributes(element: Module, attributeType: Type, inherit: Boolean): Attribute[ ];


[2415] Description


[2416] Retrieves an array of the custom attributes of a specified type applied to a specified module and optionally its ancestors.


[2417] Return Value: An System.Attribute array containing the custom attributes of type attributeType applied to element. -or- An empty array if no such custom attributes exist.


[2418] Return value contains the custom attributes for ancestors of element if inherit is true. An object derived from class System.Reflection.Module that describes a portable executable file. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2419] GetCustomAttributes


[2420] [C#] public static Attribute[ ] GetCustomAttributes(ParameterInfo element, Type attributeType, bool inherit);


[2421] [C++] public: static Attribute* GetCustomAttributes(ParameterInfo* element, Type* attributeType, bool inherit) [ ];


[2422] [VB] Public Shared Function GetCustomAttributes(ByVal element As ParameterInfo, ByVal attributeType As Type, ByVal inherit As Boolean) As Attribute( )


[2423] [JScript] public static function GetCustomAttributes(element: ParameterInfo, attributeType: Type, inherit: Boolean): Attribute[ ];


[2424] Description


[2425] Retrieves an array of the custom attributes of a specified type applied to a specified parameter of a member of a class and optionally its ancestors.


[2426] Return Value: An System.Attribute array containing the custom attributes of type attributeType applied to element. -or- An empty array if no such custom attributes exist.


[2427] Return value contains the custom attributes for ancestors of element if inherit is true. An object derived from class System.Reflection.ParameterInfo that describes a parameter of a member of a class. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2428] GetHashCode


[2429] [C#] public override int GetHashCode( );


[2430] [C++] public: int GetHashCode( );


[2431] [VB] Overrides Public Function GetHashCode( ) As Integer


[2432] [JScript] public override function GetHashCode( ): int;


[2433] Description


[2434] Returns the hash code for this instance.


[2435] Return Value: A 32-bit signed integer hash code.


[2436] IsDefaultAttribute


[2437] [C#] public virtual bool IsDefaultAttribute( );


[2438] [C++] public: virtual bool IsDefaultAttribute( ));


[2439] [VB] Overridable Public Function IsDefaultAttribute( ) As Boolean


[2440] [JScript] public function IsDefaultAttribute( ): Boolean;


[2441] Description


[2442] When overridden in a derived class, returns an indication whether the value of this instance is the default value for the derived class.


[2443] Return Value: true if this instance is the default attribute for the class; otherwise, false.


[2444] The default implementation of this class returns false, and must be implemented in the derived class to be useful to that class.


[2445] IsDefined


[2446] [C#] public static bool IsDefined(Assembly element, Type attributeType);


[2447] [C++] public: static bool IsDefined(Assembly* element, Type* attributeType);


[2448] [VB] Public Shared Function IsDefined(ByVal element As Assembly, ByVal attributeType As Type) As Boolean


[2449] [JScript] public static function IsDefined(element: Assembly, attributeType: Type): Boolean;


[2450] Description


[2451] Determines whether any custom attributes of a specified type are applied to a specified assembly.


[2452] Return Value: true if a custom attribute of type attributeType is applied to element ; otherwise, false.


[2453] The ancestors of element are not searched for custom attributes. An object derived from class System.Reflection.Assembly that describes a reusable, versionable, collection of modules. The System.Type object to which the custom attributes are applied.


[2454] IsDefined


[2455] [C#] public static bool IsDefined(MemberInfo element, Type attributeType);


[2456] [C++] public: static bool IsDefined(MemberInfo* element, Type* attributeType);


[2457] [VB] Public Shared Function IsDefined(ByVal element As MemberInfo, ByVal attributeType As Type) As Boolean


[2458] [JScript] public static function IsDefined(element: MemberInfo, attributeType: Type): Boolean; Determines whether any custom attributes of a specified type are applied to a specified member of a class.


[2459] Description


[2460] Determines whether any custom attributes of a specified type are applied to a specified member of a class and its ancestors.


[2461] Return Value: true if a custom attribute of type attributeType is applied to element ; otherwise, false.


[2462] The ancestors of element are searched for custom attributes if element is a method or a type. An object derived from class System.Reflection.MemberInfo that describes a constructor, event, field, method, type, or property member of a class. The System.Type object to which the custom attributes are applied.


[2463] IsDefined


[2464] [C+] public static bool IsDefined(Module element, Type attributeType);


[2465] [C++] public: static bool IsDefined(Module* element, Type* attributeType);


[2466] [VB] Public Shared Function IsDefined(ByVal element As Module, ByVal attributeType As Type) As Boolean


[2467] [JScript] public static function IsDefined(element: Module, attributeType: Type) : Boolean;


[2468] Description


[2469] Determines whether any custom attributes of a specified type are applied to a specified module.


[2470] Return Value: true if a custom attribute of type attribute Type is applied to element ; otherwise, false.


[2471] The ancestors of element are not searched for custom attributes. An object derived from class System.Reflection.Module that describes a portable executable file. The System.Type object to which the custom attributes are applied.


[2472] IsDefined


[2473] [C#] public static bool IsDefined(ParameterInfo element, Type attributeType);


[2474] [C++] public: static bool IsDefined(ParameterInfo* element, Type* attributeType);


[2475] [VB] Public Shared Function IsDefined(ByVal element As ParameterInfo, ByVal attributeType As Type) As Boolean


[2476] [JScript] public static function IsDefined(element: ParameterInfo, attributeType: Type): Boolean;


[2477] Description


[2478] Determines whether any custom attributes of a specified type are applied to a specified parameter of a member of a class and its ancestors.


[2479] Return Value: true if a custom attribute of type attributeType is applied to element ; otherwise, false.


[2480] The ancestors of element are searched for custom attributes. An object derived from class System.Reflection.ParameterInfo that describes a parameter of a member of a class. The System.Type object to which the custom attributes are applied.


[2481] IsDefined


[2482] [C#] public static bool IsDefined(Assembly element, Type attributeType, bool inherit);


[2483] [C++] public: static bool IsDefined(Assembly* element, Type* attributeType, bool inherit);


[2484] [VB] Public Shared Function IsDefined(ByVal element As Assembly, ByVal attributeType As Type, ByVal inherit As Boolean) As Boolean


[2485] [JScript] public static function IsDefined(element: Assembly, attributeType: Type, inherit: Boolean): Boolean;


[2486] Description


[2487] Determines whether any custom attributes of a specified type are applied to a specified assembly.


[2488] Return Value: true if a custom attribute of type attributeType is applied to element ; otherwise, false.


[2489] This method ignores the value of parameter inherit. The ancestors of element are not searched for custom attributes. An object derived from class System.Reflection.Assembly that describes a reusable, versionable, collection of modules. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2490] IsDefined


[2491] [C#] public static bool IsDefined(MemberInfo element, Type attributeType, bool inherit);


[2492] [C++] public: static bool IsDefined(MemberInfo* element, Type* attributeType, bool inherit);


[2493] [VB] Public Shared Function IsDefined(ByVal element As MemberInfo, ByVal attributeType As Type, ByVal inherit As Boolean) As Boolean


[2494] [JScript] public static function IsDefined(element: MemberInfo, attributeType: Type, inherit: Boolean): Boolean;


[2495] Description


[2496] Determines whether any custom attributes of a specified type are applied to a specified member of a class and optionally its ancestors.


[2497] Return Value: true if a custom attribute of type attributeType is applied to element ; otherwise, false.


[2498] The ancestors of element are searched for custom attributes if inherit is true and element is a method or a type. An object derived from class System.Reflection.MemberInfo that describes a constructor, event, field, method, type, or property member of a class. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2499] IsDefined


[2500] [C#] public static bool IsDefined(Module element, Type attributeType, bool inherit);


[2501] [C++] public: static bool IsDefined(Module* element, Type* attributeType, bool inherit);


[2502] [VB] Public Shared Function IsDefined(ByVal element As Module, ByVal attributeType As Type, ByVal inherit As Boolean) As Boolean


[2503] [JScript] public static function IsDefined(element: Module, attributeType: Type, inherit: Boolean): Boolean;


[2504] Description


[2505] Determines whether any custom attributes of a specified type are applied to a specified module.


[2506] Return Value: true if a custom attribute of type attributeType is applied to element ; otherwise, false.


[2507] This method ignores the value of parameter inherit. The ancestors of element are not searched for custom attributes. An object derived from class System.Reflection.Module that describes a portable executable file. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2508] IsDefined


[2509] [C#] public static bool IsDefined(ParameterInfo element, Type attributeType, bool inherit);


[2510] [C++] public: static bool IsDefined(ParameterInfo* element, Type* attributeType, bool inherit);


[2511] [VB] Public Shared Function IsDefined(ByVal element As ParameterInfo, ByVal attributeType As Type, ByVal inherit As Boolean) As Boolean


[2512] [JScript] public static function IsDefined(element: ParameterInfo, attributeType: Type, inherit: Boolean): Boolean;


[2513] Description


[2514] Determines whether any custom attributes of a specified type are applied to a specified parameter of a member of a class and optionally its ancestors.


[2515] Return Value: true if a custom attribute of type attributeType is applied to element ; otherwise, false.


[2516] The ancestors of element are searched for custom attributes if inherit is true and element is a method. An object derived from class System.Reflection.ParameterInfo that describes a parameter of a member of a class. The System.Type object to which the custom attributes are applied. If true, specifies to also search the ancestors of element for custom attributes.


[2517] Match


[2518] [C#] public virtual bool Match(object obj);


[2519] [C++] public: virtual bool Match(Object* obi);


[2520] [VB] Overridable Public Function Match(ByVal obj As Object) As Boolean


[2521] [JScript] public function Match(obj: Object): Boolean;


[2522] Description


[2523] When overridden in a derived class, returns a value indicating whether this instance equals a specified object.


[2524] Return Value: true if this instance equals obj; otherwise, false.


[2525] This method determines if one Attribute equals another. Its default implementation is the same as System.Attribute.Equals(System.Object), which performs a value and reference comparison. Override this method to implement support for attribute values, such as flags or bitfields, that consist of components that are meaningful in themselves. An System.Object to compare with this instance of Attribute.


[2526] AttributeTargets enumeration (System)


[2527] ToString


[2528] Description


[2529] Specifies the elements to which it is valid to apply an attribute.


[2530] AttributeTargets enumeration values can be combined with a bitwise OR operation to get the desired combination.


[2531] ToString


[2532] [C#] public const AttributeTargets All;


[2533] [C++] public: const AttributeTargets All;


[2534] [VB] Public Const All As AttributeTargets


[2535] [JScript] public var All: AttributeTargets;


[2536] Description


[2537] Attribute can be applied to any element.


[2538] ToString


[2539] [C#] public const AttributeTargets Assembly;


[2540] [C++] public: const AttributeTargets Assembly;


[2541] [VB] Public Const Assembly As AttributeTargets


[2542] [JScript] public var Assembly: AttributeTargets;


[2543] Description


[2544] Attribute can be applied to an assembly.


[2545] ToString


[2546] [C#] public const AttributeTargets Class;


[2547] [C++] public: const AttributeTargets Class;


[2548] [VB] Public Const Class As AttributeTargets


[2549] [JScript] public var Class: AttributeTargets;


[2550] Description


[2551] Attribute can be applied to a class.


[2552] ToString


[2553] [C#] public const AttributeTargets Constructor;


[2554] [C++] public: const AttributeTargets Constructor;


[2555] [VB] Public Const Constructor As AttributeTargets


[2556] [JScript] public var Constructor: AttributeTargets;


[2557] Description


[2558] Attribute can be applied to a constructor.


[2559] ToString


[2560] [C#] public const AttributeTargets Delegate;


[2561] [C++] public: const AttributeTargets Delegate;


[2562] [VB] Public Const Delegate As AttributeTargets


[2563] [JScript] public var Delegate: AttributeTargets;


[2564] Description


[2565] Attribute can be applied to a delegate.


[2566] ToString


[2567] [C#] public const AttributeTargets Enum;


[2568] [C++] public: const AttributeTargets Enum;


[2569] [VB] Public Const Enum As AttributeTargets


[2570] [JScript] public var Enum: AttributeTargets;


[2571] Description


[2572] Attribute can be applied to an enumeration.


[2573] ToString


[2574] [C#] public const AttributeTargets Event;


[2575] [C++] public: const AttributeTargets Event;


[2576] [VB] Public Const Event As AttributeTargets


[2577] [JScript] public var Event: AttributeTargets;


[2578] Description


[2579] Attribute can be applied to an event.


[2580] ToString


[2581] [C#] public const AttributeTargets Field;


[2582] [C++] public: const AttributeTargets Field;


[2583] [VB] Public Const Field As AttributeTargets


[2584] [JScript] public var Field: AttributeTargets;


[2585] Description


[2586] Attribute can be applied to a field.


[2587] ToString


[2588] [C#] public const AttibuteTargets Interface;


[2589] [C++] public: const AttributeTargets Interface;


[2590] [VB] Public Const Interface As AttributeTargets


[2591] [JScript] public var Interface: AttributeTargets;


[2592] Description


[2593] Attribute can be applied to an interface.


[2594] ToString


[2595] [C#] public const AttributeTargets Method;


[2596] [C++] public: const AttributeTargets Method;


[2597] [VB] Public Const Method As AttributeTargets


[2598] [JScript] public var Method: AttributeTargets;


[2599] Description


[2600] Attribute can be applied to a method.


[2601] ToString


[2602] [C+] public const AttributeTargets Module;


[2603] [C++] public: const AttributeTargets Module;


[2604] [VB] Public Const Module As AttributeTargets


[2605] [JScript] public var Module: AttributeTargets;


[2606] Description


[2607] Attribute can be applied to a module.


[2608] ToString


[2609] [C#] public const AttributeTargets Parameter;


[2610] [C++] public: const AttributeTargets Parameter;


[2611] [VB] Public Const Parameter As AttributeTargets


[2612] [JScript] public var Parameter: AttributeTargets;


[2613] Description


[2614] Attribute can be applied to a parameter.


[2615] ToString


[2616] [C#] public const AttributeTargets Property;


[2617] [C++] public: const AttributeTargets Property;


[2618] [VB] Public Const Property As AttributeTargets


[2619] [JScript] public var Property: AttributeTargets;


[2620] Description


[2621] Attribute can be applied to a property.


[2622] ToString


[2623] [C#] public const AttributeTargets ReturnValue;


[2624] [C++] public: const AttributeTargets ReturnValue;


[2625] [VB] Public Const ReturnValue As AttributeTargets


[2626] [JScript] public var ReturnValue: AttributeTargets;


[2627] Description


[2628] Attribute can be applied to a Return value.


[2629] ToString


[2630] [C#] public const AttributeTargets Struct;


[2631] [C++] public: const AttributeTargets Struct;


[2632] [VB] Public Const Struct As AttributeTargets


[2633] [JScript] public var Struct: AttributeTargets;


[2634] Description


[2635] Attribute can be applied to a value type.


[2636] AttributeUsageAttribute class (System)


[2637] ToString


[2638] Description


[2639] Specifies the usage of another attribute class. This class cannot be inherited.


[2640] When you are defining your own attribute class, you can control the manner in which it is used by placing an System.AttributeUsageAttribute on your attribute class. The indicated attribute class must derive from System.Attribute, either directly or indirectly.


[2641] AttributeUsageAttribute


[2642] Example Syntax:


[2643] ToString


[2644] [C#] public AttributeUsageAttribute(AttributeTargets validOn);


[2645] [C++] public: AttributeUsageAttribute(AttributeTargets validOn);


[2646] [VB] Public Sub New(ByVal validOn As AttributeTargets)


[2647] [JScript] public finction AttributeUsageAttribute(validOn: AttributeTargets);


[2648] Description


[2649] Initializes a new instance of the System.AttributeUsageAttribute class with the specified list of System.AttributeTargets, the System.AttributeUsageAttribute.AllowMultiple value, and the System.AttributeUsageAttribute.Inherited value.


[2650] You can combine several System.AttributeTargets values using a bitwise OR operation to get the desired combination of valid program elements. The set of values combined using a bitwise OR operation to indicate which program elements are valid.


[2651] AllowMultiple


[2652] ToString


[2653] [C#] public bool AllowMultiple {get; set;}


[2654] [C++] public: _property bool get_AllowMultiple( );public: _property void set_AllowMultiple(bool);


[2655] [VB] Public Property AllowMultiple As Boolean


[2656] [JScript] public function get AllowMultiple( ): Boolean;public function set AllowMultiple(Boolean);


[2657] Description


[2658] Gets or sets a Boolean value indicating whether more than one instances of the indicated attribute can be specified for a single program element.


[2659] An attribute that can be specified more than once for a program element is called a multi-use attribute. An attribute that can be specified only once is called a single-use attribute.


[2660] Inherited


[2661] ToString


[2662] [C#] public bool Inherited {get; set; }


[2663] [C++] public: _property bool get _Inherited( );public: _property void set_Inherited(bool);


[2664] [VB] Public Property Inherited As Boolean


[2665] [JScript] public function get Inherited( ): Boolean;public function set Inherited(Boolean);


[2666] Description


[2667] Gets or sets a Boolean value indicating whether the indicated attribute is inherited by derived classes or overridden members.


[2668] TypeId


[2669] ValidOn


[2670] ToString


[2671] Description


[2672] Gets a set of values identifying which program elements that the indicated attribute can be applied to.


[2673] BadImageFormatException class (System)


[2674] ToString


[2675] Description


[2676] The exception that is thrown when the file image of a DLL or an executable program is invalid.


[2677] System.BadlmageFormatException uses the HRESULT COR_E_BADIMAGEFORMAT, which has the value 0×8007000B.


[2678] BadImageFormatException


[2679] Example Syntax:


[2680] ToString


[2681] [C#] public BadImageFonmatException( );


[2682] [C++] public: BadImageFormatException( );


[2683] [VB] Public Sub New( )


[2684] [JScript] public function BadImageFormatException( ); Initializes a new instance of the System.BadImageFormatException class.


[2685] Description


[2686] Initializes a new instance of the System.BadImageFormatException class with default properties.


[2687] The following table shows the initial property values for an instance of System.BadImageFormatException


[2688] BadImageFormatException


[2689] Example Syntax:


[2690] ToString


[2691] [C#] public BadImageFormatException(string message);


[2692] [C++] public: BadImageFormatException(String* message);


[2693] [VB] Public Sub New(ByVal message As String)


[2694] [JScript] public function BadImageFormatException(message: String);


[2695] Description


[2696] Initializes a new instance of the System.BadImageFormatException class with a specified error message.


[2697] The following table shows the initial property values for an instance of System.BadImageFormatException. The error message that explains the reason for the exception.


[2698] BadImageFormatException


[2699] Example Syntax:


[2700] ToString


[2701] [C#] protected BadImageFormatException(SerializationInfo info, StreamingContext context);


[2702] [C++] protected: BadImageFormatException(SerializationInfo* info, StreamingContext context);


[2703] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[2704] [JScript] protected function BadImageFormatException(info: SerializationInfo, context: StreamingContext);


[2705] Description


[2706] Initializes a new instance of the System.BadImageFormatException class with serialized data.


[2707] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[2708] BadImageFormatException


[2709] Example Syntax:


[2710] ToString


[2711] [C#] public BadImageFormatException(string message, Exception inner);


[2712] [C++] public: BadImageFormatException(String* message, Exception* inner);


[2713] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[2714] [JScript] public function BadImageFormatException(message: String, inner: Exception);


[2715] Description


[2716] Initializes a new instance of the System.BadImageFormatException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[2717] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[2718] BadImageFormatException


[2719] Example Syntax:


[2720] ToString


[2721] [C#] public BadImageFormatException(string message, string fileName);


[2722] [C++] public: BadImageFormatException(String* message, String* filename );


[2723] [VB] Public Sub New(ByVal message As String, ByVal fileName As String)


[2724] [JScript] public function BadImageFormatException(message: String, fileName: String);


[2725] Description


[2726] Initializes a new instance of the System.BadImageFormatException class with serialized data.


[2727] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. A reference to the inner exception.


[2728] BadImageFormatException


[2729] Example Syntax:


[2730] ToString


[2731] [C#] public BadImageFormatException(string message, string fileName, Exception inner);


[2732] [C++] public: BadImageFormatException(String* message, String* fileName, Exception* inner);


[2733] [VB] Public Sub New(ByVal message As String, ByVal fileName As String, ByVal inner As Exception)


[2734] [JScript] public function BadImageFormatException(message: String, fileName: String, inner: Exception);


[2735] Description


[2736] Initializes a new instance of the System.BadImageFormatException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[2737] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[2738] FileName


[2739] ToString


[2740] [C#] public string FileName {get; }


[2741] [C++] public: _property String* get_FileName( );


[2742] [VB] Public ReadOnly Property FileName As String


[2743] [JScript] public function get FileName( ): String;


[2744] Description


[2745] Gets the name of the file that causes this exception.


[2746] FusionLog


[2747] ToString


[2748] [C#] public string FusionLog {get;}


[2749] [C++] public: _property String* get_FusionLog( );


[2750] [VB] Public ReadOnly Property FusionLog As String


[2751] [JScript] public function get FusionLog( ): String;


[2752] Description


[2753] Gets the log file that describes why loading of an assembly failed.


[2754] HelpLink


[2755] HResult


[2756] InnerException


[2757] Message


[2758] ToString


[2759] Description


[2760] Gets the error message and the name of the file that caused this exception.


[2761] Source


[2762] StackTrace


[2763] TargetSite


[2764] GetObjectData


[2765] [C#] public override void GetObjectData(SerializationInfo info, StreamingContext context);


[2766] [C++] public: void GetObjectData(SerializationInfo* info, StreamingContext context);


[2767] [VB] Overrides Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[2768] [JScript] public override function GetObjectData(info: SerializationInfo, context: StreamingContext);


[2769] Description


[2770] Sets the System.Runtime.Serialization.SerializationInfo object with the file name, fusion log, and additional exception information.


[2771] ToString


[2772] [C#] public override string ToString( );


[2773] [C++] public: String* ToString( );


[2774] [VB] Overrides Public Function ToString( ) As String


[2775] [JScript] public override function ToString( ): String;


[2776] Description


[2777] Returns the fully qualified name of this exception and possibly the error message, the name of the inner exception, and the stack trace.


[2778] Return Value: A string containing the fully qualified name of this exception and possibly the error message, the name of the inner exception, and the stack trace.


[2779] BitConverter class (System)


[2780] ToString


[2781] Description


[2782] Converts base data types to an array of bytes, and an array of bytes to base data types.


[2783] This class facilitates manipulating value types in their fundamental form. A byte is defined as an 8-bit unsigned integer.


[2784] ToString


[2785] [C#] public static readonly bool IsLittleEndian;


[2786] [C++] public: static bool IsLittleEndian;


[2787] [VB] Public Shared ReadOnly IsLittleEndian As Boolean


[2788] [JScript] public static var IsLittleEndian: Boolean;


[2789] Description


[2790] Indicates the byte order (“endianess”) in which data is stored in this computer architecture.


[2791] This value is true if the architecture is little-endian; false if it is big-endian.


[2792] DoubleToInt64Bits


[2793] [C#] public static long DoubleToInt64Bits(double value);


[2794] [C++] public: static _int64 DoubleToInt64Bits(double value);


[2795] [VB] Public Shared Function DoubleToInt64Bits(ByVal value As Double) As Long


[2796] [JScript] public static function DoubleToInt64Bits(value: double): long;


[2797] Description


[2798] Converts the specified double-precision floating point number to a 64-bit signed integer.


[2799] Return Value. A 64-bit signed integer whose value is equivalent to value. The number to convert.


[2800] GetBytes


[2801] [C#] public static byte[ ] GetBytes(bool value);


[2802] [C++] public: static unsigned char GetBytes(bool value) _gc[ ];


[2803] [VB] Public Shared Function GetBytes(ByVal value As Boolean) As Byte( )


[2804] [JScript] public static function GetBytes(value: Boolean): Byte[ ]; Converts the specified data to an array of bytes.


[2805] Description


[2806] Returns the specified Boolean value as an array of bytes.


[2807] Return Value: An array of bytes with length 1. A Boolean value.


[2808] GetBytes


[2809] [C#] public static byte[ ] GetBytes(char value);


[2810] [C++] public: static unsigned char GetBytes(_wchar_t value) _gc[ ];


[2811] [VB] Public Shared Function GetBytes(ByVal value As Char) As Byte( )


[2812] [JScript] public static function GetBytes(value: Char): Byte[ ];


[2813] Description


[2814] Returns the specified Unicode character value as an array of bytes.


[2815] Return Value: An array of bytes with length 2. A character to convert.


[2816] GetBytes


[2817] [C#] public static byte[ ] GetBytes(double value);


[2818] [C++] public: static unsigned char GetBytes(double value) _gc[ ];


[2819] [VB] Public Shared Function GetBytes(ByVal value As Double) As Byte( )


[2820] [JScript] public static function GetBytes(value: double): Byte[ ];


[2821] Description


[2822] Returns the specified double-precision floating point value as an array of bytes.


[2823] Return Value: An array of bytes with length 8. The number to convert.


[2824] GetBytes


[2825] [C#] public static byte[ ] GetBytes(short value);


[2826] [C++] public: static unsigned char GetBytes(short value) _gc[ ];


[2827] [VB] Public Shared Function GetBytes(ByVal value As Short) As Byte( )


[2828] [JScript] public static function GetBytes(value: Int16): Byte[ ];


[2829] Description


[2830] Returns the specified 16-bit signed integer value as an array of bytes.


[2831] Return Value: An array of bytes with length 2. The number to convert.


[2832] GetBytes


[2833] [C#] public static byte[ ] GetBytes(int value);


[2834] [C++] public: static unsigned char GetBytes(int value)_gc[ ];


[2835] [VB] Public Shared Function GetBytes(ByVal value As Integer) As Byte( )


[2836] [JScript] public static function GetBytes(value: int): Byte[ ];


[2837] Description


[2838] Returns the specified 32-bit signed integer value as an array of bytes.


[2839] Return Value: An array of bytes with length 4. The number to convert.


[2840] GetBytes


[2841] [C#] public static byte[ ] GetBytes(long value);


[2842] [C++] public: static unsigned char GetBytes_int64 value)_gc[ ];


[2843] [VB] Public Shared Function GetBytes(ByVal value As Long) As Byte( )


[2844] [JScript] public static function GetBytes(value: long): Byte[ ];


[2845] Description


[2846] Returns the specified 64-bit signed integer value as an array of bytes.


[2847] Return Value: An array of bytes with length 8. The number to convert.


[2848] GetBytes


[2849] [C#] public static byte[ ] GetBytes(float value);


[2850] [C++] public: static unsigned char GetBytes(float value)_gc[ ];


[2851] [VB] Public Shared Function GetBytes(ByVal value As Single) As Byte( )


[2852] [JScript] public static function GetBytes(value: float): Byte[ ];


[2853] Description


[2854] Returns the specified single-precision floating point value as an array of bytes.


[2855] Return Value: An array of bytes with length 4. The number to convert.


[2856] GetBytes


[2857] [C#] public static byte[ ] GetBytes(ushort value);


[2858] [C++] public: static unsigned char GetBytes(unsigned short value)_gc[ ];


[2859] [VB] Public Shared Function GetBytes(ByVal value As UInt 6) As Byte( )


[2860] [JScript] public static function GetBytes(value: UInt16): Byte[ ];


[2861] Description


[2862] Returns the specified 16-bit unsigned integer value as an array of bytes.


[2863] Return Value: An array of bytes with length 2. The number to convert.


[2864] GetBytes


[2865] [C#] public static byte[ ] GetBytes(uint value);


[2866] [C++] public: static unsigned char GetBytes(unsigned int value)_gc[ ];


[2867] [VB] Public Shared Function GetBytes(ByVal value As UInt32) As Byte( )


[2868] [JScript] public static function GetBytes(value: UInt32): Byte[ ];


[2869] Description


[2870] Returns the specified 32-bit unsigned integer value as an array of bytes.


[2871] Return Value: An array of bytes with length 4. The number to convert.


[2872] GetBytes


[2873] [C#] public static byte[ ] GetBytes(ulong value);


[2874] [C++] public: static unsigned char GetBytes(unsigned_int64 value)_gc[ ];


[2875] [VB] Public Shared Function GetBytes(ByVal value As UInt64) As Byte( )


[2876] [JScript] public static function GetBytes(value: UInt64): Byte[ ];


[2877] Description


[2878] Returns the specified 64-bit unsigned integer value as an array of bytes.


[2879] Return Value: An array of bytes with length 8. The number to convert.


[2880] Int64BitsToDouble


[2881] [C#] public static double Int64BitsToDouble(long value);


[2882] [C++] public: static double Int64BitsToDouble(_int64 value);


[2883] [VB] Public Shared Function Int64BitsToDouble(ByVal value As Long) As Double


[2884] [JScript] public static function Int64BitsToDouble(value: long): double;


[2885] Description


[2886] Converts the specified 64-bit signed integer to a double-precision floating point number.


[2887] Return Value: A double-precision floating point number whose value is equivalent to value. The number to convert.


[2888] ToBoolean


[2889] [C#] public static bool ToBoolean(byte[ ] value, int startIndex);


[2890] [C++] public: static bool ToBoolean(unsigned char value gc[ ], int startIndex);


[2891] [VB] Public Shared Function ToBoolean(ByVal valueo As Byte, ByVal startIndex As Integer) As Boolean


[2892] [JScript] public static function ToBoolean(value: Byte[ ], startindex: int) Boolean;


[2893] Description


[2894] Returns a Boolean value converted from one byte at a specified position in a byte array.


[2895] Return Value: true if the byte at startIndex in value is nonzero; otherwise, false. An array of bytes. The starting position within value.


[2896] ToChar


[2897] [C#] public static char ToChar(byte[ ] value, int startIndex);


[2898] [C++] public: static_wchar_t ToChar(unsigned char value_gc[ ], int startIndex);


[2899] [VB] Public Shared Function ToChar(ByVal value( ) As Byte, ByVal startIndex As Integer) As Char


[2900] [JScript] public static function ToChar(value: Byte[ ], startIndex: int): Char;


[2901] Description


[2902] Returns a Unicode character converted from two bytes at a specified position in a byte array.


[2903] Return Value: A character formed by two bytes beginning at startIndex. An array. The starting position within value.


[2904] ToDouble


[2905] [C#] public static double ToDouble(byte[ ] value, int startIndex);


[2906] [C++] public: static double ToDouble(unsigned char value_gc[ ], int startIndex);


[2907] [VB] Public Shared Function ToDouble(ByVal value( ) As Byte, ByVal startIndex As Integer) As Double


[2908] [JScript] public static function ToDouble(value: Byte[ ], startIndex: int): double;


[2909] Description


[2910] Returns a double-precision floating point number converted from eight bytes at a specified position in a byte array.


[2911] Return Value: A double precision floating point number formed by eight bytes beginning at startIndex. An array of bytes. The starting position within value.


[2912] ToInt16


[2913] [C#] public static short ToInt16(byte[ ] value, int startIndex);


[2914] [C++] public: static short ToInt16(unsigned char value_gc[ ], int startIndex);


[2915] [VB] Public Shared Function ToInt16(ByVal value( ) As Byte, ByVal startIndex As Integer) As Short


[2916] [JScript] public static function ToInt16(value: Byte[ ], startIndex: int): Int16;


[2917] Description


[2918] Returns a 16-bit signed integer converted from two bytes at a specified position in a byte array.


[2919] Return Value: A 16-bit signed integer formed by two bytes beginning at startIndex. An array of bytes. The starting position within value.


[2920] ToInt32


[2921] [C#] public static int ToInt32(byte[ ] value, int startIndex);


[2922] [C++] public: static int ToInt32(unsigned char value_gc[ ], int startIndex);


[2923] [VB] Public Shared Function ToInt32(ByVal value ( ) As Byte, ByVal startIndex As Integer) As Integer


[2924] [JScript] public static function ToInt32(value: Byte[ ], startIndex: int): int;


[2925] Description


[2926] Returns a 32-bit signed integer converted from four bytes at a specified position in a byte array.


[2927] Return Value: A 32-bit signed integer formed by four bytes beginning at startIndex.value is null. An array of bytes. The starting position within value.


[2928] ToInt64


[2929] [C#] public static long ToInt64(byte[ ] value, int startIndex);


[2930] [C++] public: static_int64 ToInt64(unsigned char value_gc[ ], int startIndex);


[2931] [VB] Public Shared Function ToInt64(ByVal value( ) As Byte, ByVal startIndex As Integer) As Long


[2932] [JScript] public static function ToInt64(value: Byte[ ], startIndex: int): long;


[2933] Description


[2934] Returns a 64-bit signed integer converted from eight bytes at a specified position in a byte array.


[2935] Return Value: A 64-bit signed integer formed by eight bytes beginning at startIndex. An array of bytes. The starting position within value.


[2936] ToSingle


[2937] [C#] public static float ToSingle(byte[ ] value, int startIndex);


[2938] [C++] public: static float ToSingle(unsigned char value_gc[ ], int startIndex);


[2939] [VB] Public Shared Function ToSingle(ByVal value( ) As Byte, ByVal startIndex As Integer) As Single


[2940] [JScript] public static function ToSingle(value: Byte[ ], startIndex: int): float;


[2941] Description


[2942] Returns a single-precision floating point number converted from four bytes at a specified position in a byte array.


[2943] Return Value: A single-precision floating point number formed by four bytes beginning at startIndex. An array of bytes. The starting position within value.


[2944] ToString


[2945] [C#] public static string ToString(byte[ ] value);


[2946] [C++] public: static String* ToString(unsigned char value_gc[ ]);


[2947] [VB] Public Shared Function ToString(ByVal value( ) As Byte) As String


[2948] [JScript] public static function ToString(value: Byte[ ]): String;


[2949] Description


[2950] Returns a String converted from the elements of a byte array.


[2951] Return Value: A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in value; for example, “7F-2C-4A”.


[2952] All the elements of value are converted. An array of bytes.


[2953] ToString


[2954] [C#] public static string ToString(byte[ ] value, int startIndex);


[2955] [C++] public: static String* ToString(unsigned char value_gc[ ], int startIndex);


[2956] [VB] Public Shared Function ToString(ByVal value( ) As Byte, ByVal startIndex As Integer) As String


[2957] [JScript] public static function ToString(value: Byte[ ], startIndex: int): String;


[2958] Description


[2959] Returns a String converted from the elements of a byte array starting at a specified array position.


[2960] Return Value: A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in value; for example, “7F-2C-4A”.


[2961] The elements from array position startIndex to the end of the array are converted. An array of bytes. The starting position within value.


[2962] ToString


[2963] [C#] public static string ToString(byte[ ] value, int startIndex, int length);


[2964] [C++] public: static String* ToString(unsigned char value_gc[ ], int startIndex, int length);


[2965] [VB] Public Shared Function ToString(ByVal value( ) As Byte, ByVal startIndex As Integer, ByVal length As Integer) As String


[2966] [JScript] public static function ToString(value: Byte[ ], startIndex: int, length: int): String; Returns a String converted from the elements of a byte array.


[2967] Description


[2968] Returns a String converted from a specified number of bytes at a specified position in a byte array.


[2969] Return Value: A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in value; for example, “7F-2C-4A”.


[2970] The length elements from array position startIndex are converted. An array of bytes. The starting position within value. The number of bytes to convert.


[2971] ToUInt16


[2972] [C#] public static ushort ToUInt16(byte[ ] value, int startIndex);


[2973] [C++] public: static unsigned short ToUInt16(unsigned char value_gc[ ], int startIndex);


[2974] [VB] Public Shared Function ToUInt16(ByVal value( ) As Byte, ByVal startIndex As Integer) As UInt16


[2975] [JScript] public static function ToUInt16(value: Byte[ ], startIndex: int): UInt16;


[2976] Description


[2977] Returns a 16-bit unsigned integer converted from two bytes at a specified position in a byte array.


[2978] Return Value: A 16-bit unsigned integer formed by two bytes beginning at startIndex . The array of bytes. The starting position within value.


[2979] ToUInt32


[2980] [C#] public static uint ToUInt32(byte[ ] value, int startIndex);


[2981] [C++] public: static unsigned int ToUInt32(unsigned char value_gc[ ], int startIndex);


[2982] [VB] Public Shared Function ToUInt32(ByVal value( ) As Byte, ByVal startIndex


[2983] As Integer) As UInt32


[2984] [JScript] public static function ToUInt32(value: Byte[ ], startIndex: int): Unt32;


[2985] Description


[2986] Returns a 32-bit unsigned integer converted from four bytes at a specified position in a byte array.


[2987] Return Value: A 32-bit unsigned integer formed by four bytes beginning at startIndex . An array of bytes. The starting position within value.


[2988] ToUInt64


[2989] [C#] public static ulong ToUInt64(byte[ ] value, int startIndex);


[2990] [C++] public: static unsigned_int64 ToUInt64(unsigned char value_gc[ ], int startIndex);


[2991] [VB] Public Shared Function ToUInt64(ByVal value( ) As Byte, ByVal startIndex As Integer) As UInt64


[2992] [JScript] public static function ToUInt64(value: Byte[ ], startIndex: int): UInt64;


[2993] Description


[2994] Returns a 64-bit unsigned integer converted from eight bytes at a specified position in a byte array.


[2995] Return Value: A 64-bit unsigned integer formed by the eight bytes beginning at startIndex. An array of bytes. The starting position within value.


[2996] Boolean structure (System)


[2997] ToUInt64


[2998] Description


[2999] Represents a boolean value.


[3000] Instances of this type have values of either true or false.


[3001] ToUInt64


[3002] [C#] public static ReadOnly string FalseString;


[3003] [C++] public: static String* FalseString;


[3004] [VB] Public Shared ReadOnly FalseString As String


[3005] [JScript] public static var FalseString: String;


[3006] Description


[3007] Represents the boolean value false as a System.String. This field is read-only.


[3008] This field is equal to the System.String “False”.


[3009] ToUInt64


[3010] [C#] public static readonly string TrueString;


[3011] [C++] public: static String* TrueString;


[3012] [VB] Public Shared ReadOnly TrueString As String


[3013] [JScript] public static var TrueString: String;


[3014] Description


[3015] Represents the boolean value true as a System.String. This field is read-only.


[3016] This field is equal to the System.String “True”.


[3017] CompareTo


[3018] [C#] public int CompareTo(object obj);


[3019] [C++] public: _sealed int CompareTo(Object* obj);


[3020] [VB] NotOverridable Public Function CompareTo(ByVal obj As Object) As Integer


[3021] [JScript] public function CompareTo(obj: Object): int;


[3022] Description


[3023] Compares this instance to a specified object and returns an indication of their relative values.


[3024] Return Value: A signed integer that indicates the relative order of this instance and obj.


[3025] obj must be null or an instance of Boolean; otherwise, an exception is thrown. An System.Object to compare to this instance. It may be a null reference.


[3026] Equals


[3027] [C#] public override bool Equals(object obj);


[3028] [C++] public: bool Equals(Object* obj);


[3029] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[3030] [JScript] public override function Equals(obj: Object): Boolean;


[3031] Description


[3032] Returns a value indicating whether this instance is equal to a specified object.


[3033] Return Value: true if obj is a Boolean and has the same value as this instance; otherwise, false.


[3034] This method overrides System.Object.Equals(System.Object). An System.Object to compare to this instance.


[3035] GetHashCode


[3036] [C#] public override int GetHashCode( );


[3037] [C++] public: int GetHashCode( );


[3038] [VB] Overrides Public Function GetHashCode( ) As Integer


[3039] [JScript] public override function GetHashCode( ): int;


[3040] Description


[3041] Returns the hash code for this instance.


[3042] Return Value: A hash code for the current System.Boolean.


[3043] The System.Boolean class implements true as the integer, one, and false as the integer, zero. However, a particular programming language might represent true and false with other values.


[3044] GetTypeCode


[3045] [C#] public TypeCode GetTypeCode( );


[3046] [C++] public: _sealed TypeCode GetTypeCode( );


[3047] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[3048] [JScript] public function GetTypeCode( ): TypeCode;


[3049] Description


[3050] Returns the TypeCode for value type Boolean.


[3051] Return Value: The enumerated constant, System.TypeCode.Boolean.


[3052] Parse


[3053] [C#] public static bool Parse(string value);


[3054] [C++] public: static bool Parse(String* value);


[3055] [VB] Public Shared Function Parse(ByVal value As String) As Boolean


[3056] [JScript] public static function Parse(value: String): Boolean;


[3057] Description


[3058] Converts the specified System.String representation of a logical value to its System.Boolean equivalent.


[3059] Return Value: true if value is equivalent to System.Boolean.TrueString; otherwise false.value is a null reference.


[3060] The value parameter, optionally preceded or trailed by white space, must contain either TrueString or FalseString; otherwise, an exception is thrown. The comparison is case-insensitive. A System.String containing the value to convert.


[3061] IConvertible.ToBoolean


[3062] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[3063] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[3064] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[3065] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[3066] IConvertible.ToByte


[3067] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[3068] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[3069] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[3070] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[3071] IConvertible.ToChar


[3072] [C#] char IConvertible.ToChar(IFormatProvider provider);


[3073] [C++] _wchar_t IConvertible::ToChar(IFormatProvider* provider);


[3074] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[3075] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[3076] IConvertible.ToDateTime


[3077] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[3078] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[3079] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[3080] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[3081] IConvertible.ToDecimal


[3082] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[3083] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[3084] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[3085] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[3086] IConvertible.ToDouble


[3087] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[3088] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[3089] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[3090] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[3091] IConvertible.ToInt16


[3092] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[3093] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[3094] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[3095] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[3096] IConvertible.ToInt32


[3097] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[3098] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[3099] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[3100] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[3101] IConvertible.ToInt64


[3102] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[3103] [C++] _int64 IConvertible::ToInt64(IFormatProvider* provider);


[3104] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[3105] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[3106] IConvertible.ToSByte


[3107] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[3108] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[3109] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[3110] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[3111] IConvertible.ToSingle


[3112] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[3113] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[3114] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[3115] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[3116] IConvertible.ToType


[3117] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[3118] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[3119] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[3120] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[3121] IConvertible.ToUInt16


[3122] [C#] ushort IConvertible.ToUInt16(IFormatProvider provider);


[3123] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[3124] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[3125] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[3126] IConvertible.ToUInt32


[3127] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[3128] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[3129] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[3130] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[3131] IConvertible.ToUInt64


[3132] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[3133] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[3134] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[3135] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[3136] ToString


[3137] [C#] public override string ToString( );


[3138] [C++] public: String* ToString( );


[3139] [VB] Overrides Public Function ToString( ) As String


[3140] [JScript] public override function ToString( ): String; Converts the value of this instance to its equivalent System.String representation.


[3141] Description


[3142] Converts the value of this instance to its equivalent System.String representation.


[3143] Return Value: System.Boolean.TrueString if the value of this instance is true, or System.Boolean.FalseString if the value of this instance is false.


[3144] ToString


[3145] [C#] public string ToString(IFormatProvider provider);


[3146] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[3147] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[3148] [JScript] public function ToString(provider: IFormatProvider): String;


[3149] Description


[3150] Converts the value of this instance to its equivalent String representation.


[3151] Return Value: System.Boolean.TrueString if the value of this instance is true, or System.Boolean.FalseString if the value of this instance is false.


[3152] The provider parameter is reserved. It does not participate in the execution of this method. (Reserved) An System.IFormatProvider object.


[3153] Buffer class (System)


[3154] ToString


[3155] Description


[3156] Manipulates unmanaged memory represented as arrays of bytes.


[3157] This class provides methods to copy bytes from one primitive array to another primitive array without respecting types, get a byte from an array, set a byte in an array, and obtain the length of an array.


[3158] BlockCopy


[3159] [C#] public static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count);


[3160] [C++] public: static void BlockCopy(Array* src, int srcOffset, Array* dst, int dstOffset, int count);


[3161] [VB] Public Shared Sub BlockCopy(ByVal src As Array, ByVal srcOffset As Integer, ByVal dst As Array, ByVal dstOffset As Integer, ByVal count As Integer)


[3162] [JScript] public static function BlockCopy(src: Array, srcOffset: int, dst: Array, dstOffset: int, count: int);


[3163] Description


[3164] Copies a specified number of bytes from a source array starting at a particular offset to a destination array starting at a particular offset.


[3165] Copies count bytes from src, beginning at srcOffset, to dst, beginning at dstOffset. The source buffer. The byte offset into src. The destination buffer. The byte offset into dst. The number of bytes to copy.


[3166] ByteLength


[3167] [C#] public static int ByteLength(Array array);


[3168] [C++] public: static int ByteLength(Array* array);


[3169] [VB] Public Shared Function ByteLength(ByVal array As Array) As Integer


[3170] [JScript] public static function ByteLength(array: Array): int;


[3171] Description


[3172] Returns the number of bytes in the specified array.


[3173] Return Value: The number of bytes in the array. An array.


[3174] GetByte


[3175] [C#] public static byte GetByte(Array array, int index);


[3176] [C++] public: static unsigned char GetByte(Array* array, int index);


[3177] [VB] Public Shared Function GetByte(ByVal array As Array, ByVal index As Integer) As Byte


[3178] [JScript] public static function GetByte(array: Array, index: int): Byte;


[3179] Description


[3180] Retrieves the byte at a specified location in a specified array.


[3181] Return Value: Returns the index byte in the array.


[3182] The GetByte method gets a particular byte out of the array. The array must be an array of primitives. An array. A location in the array.


[3183] SetByte


[3184] [C#] public static void SetByte(Array array, int index, byte value);


[3185] [C++] public: static void SetByte(Array* array, int index, unsigned char value);


[3186] [VB] Public Shared Sub SetByte(ByVal array As Array, ByVal index As Integer, ByVal value As Byte)


[3187] [JScript] public static function SetByte(array: Array, index: int, value: Byte);


[3188] Description


[3189] Assigns a specified value to a byte at a particular location in a specified array.


[3190] array must be an array of primitives. An array. A location in the array. A value to assign.


[3191] Byte structure (System)


[3192] ToString


[3193] Description


[3194] Represents an 8-bit unsigned integer.


[3195] The Byte value type represents unsigned integers with values ranging from 0 to 255.


[3196] ToString


[3197] [C#] public const byte MaxValue;


[3198] [C++] public: const unsigned char MaxValue;


[3199] [VB] Public Const MaxValue As Byte


[3200] [JScript] public var MaxValue: Byte;


[3201] Description


[3202] A constant representing the largest possible value of Byte.


[3203] The value of this constant is 255; that is, hexadecimal 0×FF.


[3204] ToString


[3205] [C#] public const byte MinValue;


[3206] [C++] public: const unsigned char MinValue;


[3207] [VB] Public Const MinValue As Byte


[3208] [JScript] public var MinValue: Byte;


[3209] Description


[3210] A constant representing the smallest possible value of Byte.


[3211] The value of this constant is 0.


[3212] CompareTo


[3213] [C#] public int CompareTo(object value);


[3214] [C++] public: _sealed int CompareTo(Object* value);


[3215] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[3216] [JScript] public function CompareTo(value: Object): int;


[3217] Description


[3218] Compares this instance to a specified object and returns an indication of their relative values.


[3219] Return Value: A signed number indicating the relative values of this instance and value.


[3220] Any instance of Byte, regardless of its value, is considered greater than null. An object to compare, or null.


[3221] Equals


[3222] [C#] public override bool Equals(object obj);


[3223] [C++] public: bool Equals(Object* obj);


[3224] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[3225] [JScript] public override function Equals(obj: Object): Boolean;


[3226] Description


[3227] Returns a value indicating whether this instance is equal to a specified object.


[3228] Return Value: true if obj is an instance of Byte and equals the value of this instance; otherwise, false. An object to compare with this instance or null.


[3229] GetHashCode


[3230] [C#] public override int GetHashCode( );


[3231] [C++] public: int GetHashCode( );


[3232] [VB] Overrides Public Function GetHashCode( ) As Integer


[3233] [JScript] public override function GetHashCode( ): int;


[3234] Description


[3235] Returns the hash code for this instance.


[3236] Return Value: A 32-bit signed integer hash code.


[3237] GetTypeCode


[3238] [C#] public TypeCode GetTypeCode( );


[3239] [C++] public: _sealed TypeCode GetTypeCode( );


[3240] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[3241] [JScript] public function GetTypeCode( ): TypeCode;


[3242] Description


[3243] Returns the TypeCode for value type Byte.


[3244] Return Value: The enumerated constant, System.TypeCode.Byte.


[3245] Parse


[3246] [C#] public static byte Parse(string s);


[3247] [C++] public: static unsigned char Parse(String* s);


[3248] [VB] Public Shared Function Parse(ByVal s As String) As Byte


[3249] [JScript] public static function Parse(s: String): Byte; Converts the String representation of a number to its 8-bit unsigned integer equivalent.


[3250] Description


[3251] Converts the String representation of a number to its 8-bit unsigned integer equivalent.


[3252] Return Value: An 8-bit unsigned integer equivalent to the number contained in s.


[3253] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert.


[3254] Parse


[3255] [C#] public static byte Parse(string s, IFormatProvider provider);


[3256] [C++] public: static unsigned char Parse(String* s, IFormatProvider* provider);


[3257] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As Byte


[3258] [JScript] public static function Parse(s String, provider: IFormatProvider): Byte;


[3259] Description


[3260] Converts the String representation of a number in a specified culture-specific format to its 8-bit unsigned integer equivalent.


[3261] Return Value: An 8-bit unsigned integer equivalent to the number specified in s.


[3262] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[3263] Parse


[3264] [C#] public static byte Parse(s string s, NumberStyles style);


[3265] [C++] public: static unsigned char parse(String* s, NumberStyles style);


[3266] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As Byte


[3267] [JScript] public static function Parse(s: String, style: NumberStyles): Byte;


[3268] Description


[3269] Converts the String representation of a number in a specified style to its 8-bit unsigned integer equivalent.


[3270] Return Value: An 8-bit unsigned integer equivalent to the number specified in s.


[3271] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStyles constants that indicate the permitted format of s.


[3272] Parse


[3273] [C#] public static byte Parse(string s, NumberStyles style, IFormatProvider provider);


[3274] [C++] public: static unsigned char Parse(String* s, NumberStyles style, IFormatProvider* provider);


[3275] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As Byte


[3276] [JScript] public static function Parse(s: String, style: NumberStyles, provider: IFormatProvider): Byte;


[3277] Description


[3278] Converts the String representation of a number in a specified style and culture-specific format to its 8-bit unsigned integer equivalent.


[3279] Return Value: An 8-bit unsigned integer equivalent to the number specified in s.


[3280] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[3281] IConvertible.ToBoolean


[3282] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[3283] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[3284] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[3285] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[3286] IConvertible.ToByte


[3287] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[3288] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[3289] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[3290] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[3291] IConvertible.ToChar


[3292] [C#] char IConvertible.ToChar(IFormatProvider provider); [C++] _wchar_t IConvertible::ToChar(IFormatProvider* provider);


[3293] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[3294] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[3295] IConvertible.ToDateTime


[3296] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[3297] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[3298] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[3299] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[3300] IConvertible.ToDecimal


[3301] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[3302] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[3303] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[3304] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[3305] IConvertible.ToDouble


[3306] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[3307] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[3308] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[3309] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[3310] IConvertible.ToInt 16


[3311] [C#] short IConvertible:ToInt16(IFormatProvider provider);


[3312] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[3313] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[3314] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int 16;


[3315] IConvertible.ToInt32


[3316] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[3317] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[3318] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[3319] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[3320] IConvertible.ToInt64


[3321] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[3322] [C++] _int64 IConvertible::ToInt64(IFormatProvider* provider);


[3323] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[3324] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[3325] IConvertible.ToSByte


[3326] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[3327] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[3328] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[3329] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[3330] IConvertible.ToSingle


[3331] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[3332] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[3333] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[3334] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[3335] IConvertible.ToType


[3336] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[3337] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[3338] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[3339] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[3340] IConvertible.ToUInt16


[3341] [C#] ushort IConvertible.ToUInt16(IFormatProvider provider);


[3342] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[3343] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[3344] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[3345] IConvertible.ToUInt32


[3346] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[3347] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[3348] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[3349] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[3350] IConvertible.ToUInt64


[3351] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[3352] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider); [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[3353] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[3354] ToString


[3355] [C#] public override string ToString( );


[3356] [C++] public: String* ToString( );


[3357] [VB] Overrides Public Function ToString( ) As String


[3358] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[3359] Description


[3360] Converts the numeric value of this instance to its equivalent String representation.


[3361] Return Value: The System.String representation of the value of this instance, consisting of a sequence of digits ranging from 0 to 9, without a sign or leading zeroes.


[3362] The return value is formatted with the general format specifier (“G”) and the System.Globalization.NumberFormatInfo for the current culture.


[3363] ToString


[3364] [C#] public string ToString(IFormatProvider provider);


[3365] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[3366] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[3367] [JScript] public function ToString(provider: IFormatProvider): String;


[3368] Description


[3369] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[3370] Return Value: The System.String representation of the value of this instance as specified by provider.


[3371] This instance is formatted with the general format specifier (“G”). An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[3372] ToString


[3373] [C#] public string ToString(string format);


[3374] [C++] public: String* ToString(String* format);


[3375] [VB] Public Function ToString(ByVal format As String) As String


[3376] [JScript] public function ToString(format: String): String;


[3377] Description


[3378] Converts the numeric value of this instance to its equivalent String representation using the specified format.


[3379] Return Value: The System.String representation of the value of this instance as specified by format.


[3380] If format is null or an empty string, the return value of this instance is formatted with the general format specifier (“G”). A format string.


[3381] ToString


[3382] [C#] public string ToString(string format, IFormatProvider provider);


[3383] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[3384] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[3385] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[3386] Description


[3387] Converts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[3388] Return Value: The System.String representation of the value of this instance as specified by format and provider.


[3389] If format is null or an empty string, the return value for this instance is formatted with the general format specifier (“G”). A format specification. An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[3390] CannotUnloadAppDomainException class (System)


[3391] ToString


[3392] Description


[3393] The exception that is thrown when an attempt to unload an application domain fails.


[3394] System.CannotUnloadAppDomainException is thrown when there is an attempt to unload: The default application domain, which must remains loaded during the lifetime of the application.


[3395] CannotUnloadAppDomainException


[3396] Example Syntax:


[3397] ToString


[3398] [C#] public CannotUnloadAppDomainException( );


[3399] [C++] public: CannotUnloadAppDomainException( );


[3400] [VB] Public Sub New( )


[3401] [JScript] public function CannotUnloadAppDomainException( ); Initializes a new instance of the System.CannotUnloadAppDomainException class.


[3402] Description


[3403] Initializes a new instance of the System.CannotUnloadAppDomainException class with default properties.


[3404] The following table shows the initial property values for an instance of System.CannotUnloadAppDomainException.


[3405] CannotUnloadAppDomainException


[3406] Example Syntax:


[3407] ToString


[3408] [C#] public CannotUnloadAppDomainException(string message);


[3409] [C++] public: CannotUnloadAppDomainException(String* message);


[3410] [VB] Public Sub New(ByVal message As String)


[3411] [JScript] public function CannotUnloadAppDomainException(message: String);


[3412] Description


[3413] Initializes a new instance of the System.CannotUnloadAppDomainException class with a specified error message.


[3414] The following table shows the initial property values for an instance of System.CannotUnloadAppDomainException. The error message that explains the reason for the exception.


[3415] CannotUnloadAppDomainException


[3416] Example Syntax:


[3417] ToString


[3418] [C#] protected CannotUnloadAppDomainException(SerializationInfo info, StreamingContext context);


[3419] [C++] protected: CannotUnloadAppDomainException(SerializationInfo* info, StreamingContext context);


[3420] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[3421] [JScript] protected function CannotUnloadAppDomainException(info: SerializationInfo, context: StreamingContext);


[3422] Description


[3423] Initializes a new instance of the System.CannotUnloadAppDomainException class from serialized data.


[3424] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[3425] CannotUnloadAppDomainException


[3426] Example Syntax:


[3427] ToString


[3428] [C#] public CannotUnloadAppDomainException(string message, Exception innerException);


[3429] [C++] public: CannotUnloadAppDomainException(String* message, Exception* innerException);


[3430] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[3431] [JScript] public function CannotUnloadAppDomainException(message: String, innerException: Exception);


[3432] Description


[3433] Initializes a new instance of the System.CannotUnloadAppDomainException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[3434] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[3435] HelpLink


[3436] HResult


[3437] InnerException


[3438] Message


[3439] Source


[3440] StackTrace


[3441] TargetSite


[3442] Char structure (System)


[3443] ToString


[3444] Description


[3445] Represents a Unicode character.


[3446] The Char value type represents Unicode characters with values ranging from hexadecimal 0×0000 to 0×FFFF.


[3447] ToString


[3448] [C#] public const char MaxValue;


[3449] [C++] public: const_wchar_t MaxValue;


[3450] [VB] Public Const MaxValue As Char


[3451] [JScript] public var MaxValue: Char;


[3452] Description


[3453] A constant representing the largest possible value of Char.


[3454] The value of this constant is hexadecimal 0×FFFF.


[3455] ToString


[3456] [C#] public const char MinValue;


[3457] [C++] public: const_wchar_t MinValue;


[3458] [VB] Public Const MinValue As Char


[3459] [JScript] public var MinValue: Char;


[3460] Description


[3461] A constant representing the smallest possible value of Char.


[3462] The value of this constant is hexadecimal 0×00.


[3463] CompareTo


[3464] [C#] public int CompareTo(object value);


[3465] [C++] public: _sealed int CompareTo(Object* value);


[3466] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[3467] [JScript] public function CompareTo(value: Object): int;


[3468] Description


[3469] Compares this instance to a specified object and returns an indication of their relative values.


[3470] Return Value: A signed number indicating the relative values of this instance and value.


[3471] Any instance of Char, regardless of its value, is considered greater than null. An object to compare, or null.


[3472] Equals


[3473] [C#] public overide bool Equals(object obj);


[3474] [C++] public: bool Equals(Object* obj);


[3475] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[3476] [JScript] public override function Equals(obj: Object): Boolean;


[3477] Description


[3478] Returns a value indicating whether this instance is equal to a specified object.


[3479] Return Value: true if obj is an instance of Char and equals the value of this instance; otherwise, false. An object to compare with this instance or null.


[3480] GetHashCode


[3481] [C#] public override int GetHashCode( );


[3482] [C++] public: int GetHashCode( );


[3483] [VB] Overrides Public Function GetHashCode( ) As Integer


[3484] [JScript] public override function GetHashCode( ): int;


[3485] Description


[3486] Returns the hash code for this instance.


[3487] Return Value: A 32-bit signed integer hash code.


[3488] GetNumericValue


[3489] [C#] public static double GetNumericValue(char c);


[3490] [C++] public: static double GetNumericValue(_wchar_t c);


[3491] [VB] Public Shared Function GetNumericValue(ByVal c As Char) As Double


[3492] [JScript] public static function GetNumericValue(c: Char): double; Converts a specified numeric Unicode character to a double-precision floating point number.


[3493] Description


[3494] Converts the specified numeric Unicode character to a double-precision floating point number.


[3495] Return Value: The numeric value of c if that character represents a number; otherwise, −1.


[3496] For example, if c is ‘5’, the return value is 5. However, if c is ‘z’, the return value is −1. A Unicode character.


[3497] GetNumeric Value


[3498] [C#] public static double GetNumericValue(string s, int index);


[3499] [C++] public: static double GetNumericValue(String* s, int index);


[3500] [VB] Public Shared Function GetNumericValue(ByVal s As String, ByVal index As Integer) As Double


[3501] [JScript] public static function GetNumericValue(s: String, index: int): double;


[3502] Description


[3503] Converts the numeric Unicode character at the specified position in a specified System.String to a double-precision floating point number.


[3504] Return Value: The numeric value of the character at position index in s if that character represents a number; otherwise, −1.


[3505] For example, if the character at position index in s is ‘5’, the return value is 5. However, if the character at position index in s is ‘z’, the return value is −1. A System.String. A 32-bit signed integer that specifies a character position in s.


[3506] GetTypeCode


[3507] [C#] public TypeCode GetTypeCode( );


[3508] [C++] public: _sealed TypeCode GetTypeCode( );


[3509] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[3510] [JScript] public function GetTypeCode( ): TypeCode;


[3511] Description


[3512] Returns the TypeCode for value type Char.


[3513] Return Value: The enumerated constant, System.TypeCode.Char.


[3514] GetUnicodeCategory


[3515] [C#] public static UnicodeCategory GetUnicodeCategory(char c);


[3516] [C++] public: static UnicodeCategory GetUnicodeCategory(_wchar_t c);


[3517] [VB] Public Shared Function GetUnicodeCategory(ByVal c As Char) As UnicodeCategory


[3518] [JScript] public static function GetUnicodeCategory(c: Char): UnicodeCategory; Categorizes a Unicode character into a group identified by a UnicodeCategory enumerated constant.


[3519] Description


[3520] Categorizes a specified Unicode character into a group identified by a UnicodeCategory enumerated constant.


[3521] Return Value: A System.Globalization.UnicodeCategory enumerated constant that identifies the group that contains c. A Unicode character.


[3522] GetUnicodeCategory


[3523] [C#] public static UnicodeCategory GetUnicodeCategory(string s, int index);


[3524] [C++] public: static UnicodeCategory GetUnicodeCategory(String* s, int index);


[3525] [VB] Public Shared Function GetUnicodeCategory(ByVal s As String, ByVal index As Integer) As UnicodeCategory


[3526] [JScript] public static function GetUnicodeCategory(s: String, index: int): UnicodeCategory;


[3527] Description


[3528] Categorizes the character at the specified position in a specified String into a group identified by a UnicodeCategory enumerated constant.


[3529] Return Value: A System.Globalization.UnicodeCategory enumerated constant that identifies the group that contains the character at position index in s.


[3530] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3531] IsControl


[3532] [C#] public static bool IsControl(char c);


[3533] [C++] public: static bool IsControl(_wchar_t c);


[3534] [VB] Public Shared Function IsControl(ByVal c As Char) As Boolean


[3535] [JScript] public static function IsControl(c: Char): Boolean; Indicates whether a specified Unicode character is categorized as a control character.


[3536] Description


[3537] Indicates whether the specified Unicode character is categorized as a control character.


[3538] Return Value: true if c is a control character; otherwise, false. A Unicode character.


[3539] IsControl


[3540] [C#] public static bool IsControl(string s, int index);


[3541] [C++] public: static bool IsControl(String* s, int index);


[3542] [VB] Public Shared Function IsControl(ByVal s As String, ByVal index As Integer) As Boolean


[3543] [JScript] public static function IsControl(s: String, index: int): Boolean;


[3544] Description


[3545] Indicates whether the character at the specified position in a specified String is categorized as a control character.


[3546] Return Value: true if the character at position index in s is a control character; otherwise, false.


[3547] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3548] IsDigit


[3549] [C#] public static bool IsDigit(char c);


[3550] [C++] public: static bool IsDigit(_wchar_t c);


[3551] [VB] Public Shared Function IsDigit(ByVal c As Char) As Boolean


[3552] [JScript] public static function IsDigit(c: Char): Boolean; Indicates whether a Unicode character is categorized as a decimal digit.


[3553] Description


[3554] Indicates whether the specified Unicode character is categorized as a decimal digit.


[3555] Return Value: true if c is a decimal digit; otherwise, false. A Unicode character.


[3556] IsDigit


[3557] [C#] public static bool IsDigit(string s, int index);


[3558] [C++] public: static bool IsDigit(String* s, int index);


[3559] [VB] Public Shared Function IsDigit(ByVal s As String, ByVal index As Integer) As Boolean


[3560] [JScript] public static function IsDigit(s: String, index: int): Boolean;


[3561] Description


[3562] Indicates whether the character at the specified position in a specified String is categorized as a decimal digit.


[3563] Return Value: true if the character at position index in s is a decimal digit; otherwise, false.


[3564] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3565] IsLetter


[3566] [C#] public static bool IsLetter(char c);


[3567] [C++] public: static bool IsLetter(_wchar_t c);


[3568] [VB] Public Shared Function IsLetter(ByVal c As Char) As Boolean


[3569] [JScript] public static function IsLetter(c: Char): Boolean; Indicates whether a Unicode character is categorized as an alphabetic letter.


[3570] Description


[3571] Indicates whether the specified Unicode character is categorized as an alphabetic letter.


[3572] Return Value: true if c is an alphabetic letter; otherwise, false.


[3573] Valid letters are members of the following categories in System.Globalization.UnicodeCategory: UppercaseLetter, LowercaseLetter, TitlecaseLetter, ModifierLetter, and OtherLetter. A Unicode character.


[3574] IsLetter


[3575] [C#] public static bool IsLetter(string s, int index);


[3576] [C++] public: static bool IsLetter(String* s, int index);


[3577] [VB] Public Shared Function IsLetter(ByVal s As String, ByVal index As Integer) As Boolean


[3578] [JScript] public static function IsLetter(s: String, index: int): Boolean;


[3579] Description


[3580] Indicates whether the character at the specified position in a specified String is categorized as an alphabetic character.


[3581] Return Value: true if the character at position index in s is an alphabetic character; otherwise, false.


[3582] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3583] IsLetterOrDigit


[3584] [C#] public static bool IsLetterOrDigit(char c);


[3585] [C++] public: static bool IsLetterOrDigit(_wchar_t c);


[3586] [VB] Public Shared Function IsLetterOrDigit(ByVal c As Char) As Boolean


[3587] [JScript] public static function IsLetterOrDigit(c: Char): Boolean; Indicates whether a Unicode character is categorized as a letter or decimal digit.


[3588] Description


[3589] Indicates whether the specified Unicode character is categorized as a letter or decimal digit.


[3590] Return Value: true if c is a letter or decimal digit; otherwise, false. A Unicode character.


[3591] IsLetterOrDigit


[3592] [C#] public static bool IsLetterOrDigit(string s, int index);


[3593] [C++] public: static bool IsLetterOrDigit(String* s, int index);


[3594] [VB] Public Shared Function IsLetterOrDigit(ByVal s As String, ByVal index As Integer) As Boolean


[3595] [JScript] public static function IsLetterOrDigit(s: String, index: int): Boolean;


[3596] Description


[3597] Indicates whether the character at the specified position in a specified String is categorized as an alphabetic character or a decimal digit.


[3598] Return Value: true if the character at position index in s is an alphabetic character or a decimal digit; otherwise, false.


[3599] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3600] IsLower


[3601] [C#] public static bool IsLower(char c);


[3602] [C++] public: static bool IsLower(_wchar_t c);


[3603] [VB] Public Shared Function IsLower(ByVal c As Char) As Boolean


[3604] [JScript] public static function IsLower(c: Char): Boolean; Indicates whether a Unicode character is categorized as a lowercase letter.


[3605] Description


[3606] Indicates whether the specified Unicode character is categorized as a lowercase letter.


[3607] Return Value: true if c is a lowercase letter; otherwise, false. A Unicode character.


[3608] IsLower


[3609] [C#] public static bool IsLower(string s, int index);


[3610] [C++] public: static bool IsLower(string* s, int index);


[3611] [VB] Public Shared Function IsLower(ByVal s As String, ByVal index As Integer) As Boolean


[3612] [JScript] public static function IsLower(s: String, index: int): Boolean;


[3613] Description


[3614] Indicates whether the character at the specified position in a specified String is categorized as a lowercase letter.


[3615] Return Value: true if the character at position index in s is a lowercase letter; otherwise, false.


[3616] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3617] IsNumber


[3618] [C#] public static bool IsNumber(char c);


[3619] [C++] public: static bool IsNumber(_wchar_t c);


[3620] [VB] Public Shared Function IsNumber(ByVal c As Char) As Boolean


[3621] [JScript] public static function IsNumber(c: Char): Boolean; Indicates whether a Unicode character is categorized as a decimal digit or hexadecimal number.


[3622] Description


[3623] Indicates whether the specified Unicode character is categorized as a decimal digit or hexadecimal number.


[3624] Return Value: true if c is a decimal digit or hexadecimal number; otherwise, false. A Unicode character.


[3625] IsNumber


[3626] [C#] public static bool IsNumber(string s, int index);


[3627] [C++] public: static bool IsNumber(String* s, int index);


[3628] [VB] Public Shared Function IsNumber(ByVal s As String, ByVal index As Integer) As Boolean


[3629] [JScript] public static function IsNumber(s: String, index: int): Boolean;


[3630] Description


[3631] Indicates whether the character at the specified position in a specified String is categorized as a decimal digit or hexadecimal number.


[3632] Return Value: true if the character at position index in s is a decimal digit or hexadecimal number; otherwise, false.


[3633] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3634] IsPunctuation


[3635] [C#] public static bool IsPunctuation(char c);


[3636] [C++] public: static bool IsPunctuation(_wchar _t c);


[3637] [VB] Public Shared Function IsPunctuation(ByVal c As Char) As Boolean


[3638] [JScript] public static function IsPunctuation(c: Char): Boolean; Indicates whether a Unicode character is categorized as a punctuation mark.


[3639] Description


[3640] Indicates whether the specified Unicode character is categorized as a punctuation mark.


[3641] Return Value: true if c is a punctuation mark; otherwise, false. A Unicode character.


[3642] IsPunctuation


[3643] [C#] public static bool IsPunctuation(string s, int index);


[3644] [C++] public: static bool IsPunctuation(String* s, int index);


[3645] [VB] Public Shared Function IsPunctuation(ByVal s As String, ByVal index As Integer) As Boolean


[3646] [JScript] public static function IsPunctuation(s: String, index: int): Boolean;


[3647] Description


[3648] Indicates whether the character at the specified position in a specified String is categorized as a punctuation mark.


[3649] Return Value: true if the character at position index in s is a punctuation mark; otherwise, false.


[3650] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3651] IsSeparator


[3652] [C#] public static bool IsSeparator(char c);


[3653] [C++] public: static bool IsSeparator(_wchar _t c);


[3654] [VB] Public Shared Function IsSeparator(ByVal c As Char) As Boolean


[3655] [JScript] public static function IsSeparator(c: Char): Boolean; Indicates whether a Unicode character is categorized as a separator character.


[3656] Description


[3657] Indicates whether the specified Unicode character is categorized as a separator character.


[3658] Return Value: true if c is a separator character; otherwise, false. A Unicode character.


[3659] IsSeparator


[3660] [C#] public static bool IsSeparator(string s, int index);


[3661] [C++] public: static bool IsSeparator(String* s, int index);


[3662] [VB] Public Shared Function IsSeparator(ByVal s As String, ByVal index As Integer) As Boolean [JScript] public static function IsSeparator(s: String, index: int): Boolean;


[3663] Description


[3664] Indicates whether the character at the specified position in a specified String is categorized as a separator character.


[3665] Return Value: true if the character at position index in s is a separator character; otherwise, false.


[3666] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3667] Is surrogate


[3668] [C#] public static bool IsSurrogate(char c);


[3669] [C++] public: static bool IsSurrogate(_wchar_t c);


[3670] [VB] Public Shared Function IsSurrogate(ByVal c As Char) As Boolean


[3671] [JScript] public static function IsSurrogate(c: Char): Boolean; Indicates whether a Unicode character is categorized as a surrogate character.


[3672] Description


[3673] Indicates whether the specified Unicode character is categorized as a surrogate character.


[3674] Return Value: true if c is a surrogate character; otherwise, false.


[3675] For more information about surrogate pairs, see the Unicode Standard at http://www.unicode.org. A Unicode character.


[3676] IsSurrogate


[3677] [C#] public static bool IsSurrogate(string s, int index);


[3678] [C++] public: static bool IsSurrogate(String* s, int index);


[3679] [VB] Public Shared Function IsSurrogate(ByVal s As String, ByVal index As Integer) As Boolean


[3680] [JScript] public static function IsSurrogate(s: String, index: int): Boolean;


[3681] Description


[3682] Indicates whether the character at the specified position in a specified String is categorized as a surrogate character.


[3683] Return Value: true if the character at position index in s is a surrogate character; otherwise, false.


[3684] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3685] IsSymbol


[3686] [C++] public static bool IsSymbol(char c);


[3687] [C++] public: static bool IsSymbol(_wchar_t c);


[3688] [VB] Public Shared Function IsSymbol(ByVal c As Char) As Boolean


[3689] [JScript] public static function IsSymbol(c: Char): Boolean; Indicates whether a Unicode character is categorized as a symbol character.


[3690] Description


[3691] Indicates whether the specified Unicode character is categorized as a symbol character.


[3692] Return Value: true if c is a symbol character; otherwise, false.


[3693] Valid symbols are members of the following categories in System.Globalization.UnicodeCategory: MathSymbol, CurrencySymbol, ModifierSymbol, and OtherSymbol. A Unicode character.


[3694] IsSymbol


[3695] [C#] public static bool IsSymbol(string s, int index);


[3696] [C++] public: static bool IsSymbol(String* s, int index);


[3697] [VB] Public Shared Function IsSymbol(ByVal s As String, ByVal index As Integer) As Boolean


[3698] [JScript] public static function IsSymbol(s: String, index: int): Boolean;


[3699] Description


[3700] Indicates whether the character at the specified position in a specified String is categorized as a symbol character.


[3701] Return Value: true if the character at position index in s is a symbol character; otherwise, false.


[3702] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3703] IsUpper


[3704] [C#] public static bool IsUpper(char c);


[3705] [C++] public: static bool IsUpper(_wchar_t c);


[3706] [VB] Public Shared Function IsUpper(ByVal c As Char) As Boolean


[3707] [JScript] public static function IsUpper(c: Char): Boolean; Indicates whether a Unicode character is categorized as an uppercase letter.


[3708] Description


[3709] Indicates whether the specified Unicode character is categorized as an uppercase letter.


[3710] Return Value: true if c is an uppercase letter; otherwise, false. A Unicode character.


[3711] IsUpper


[3712] [C#] public static bool IsUpper(string s, int index);


[3713] [C++] public: static bool IsUpper(String* s, int index);


[3714] [VB] Public Shared Function IsUpper(ByVal s As String, ByVal index As Integer) As Boolean


[3715] [JScript] public static function IsUpper(s: String, index: int): Boolean;


[3716] Description


[3717] Indicates whether the character at the specified position in a specified String is categorized as an uppercase letter.


[3718] Return Value: true if the character at position index in s is an uppercase letter; otherwise, false.


[3719] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s.


[3720] IsWhiteSpace


[3721] [C#] public static bool IsWhiteSpace(char c);


[3722] [C++] public: static bool IsWhiteSpace(_wchar_t c);


[3723] [VB] Public Shared Function IsWhiteSpace(ByVal c As Char) As Boolean


[3724] [JScript] public static function IsWhiteSpace(c: Char): Boolean; Indicates whether a Unicode character is categorized as white space.


[3725] Description


[3726] Indicates whether the specified Unicode character is categorized as white space.


[3727] Return Value: true if c is white space; otherwise, false.


[3728] Valid white space characters are members of the SpaceSeparator category in System.Globalization.UnicodeCategory, as well as these Unicode characters: hexadecimal 0x0009,0x000a,0x000c,0x000d, 0x0085, 0x2028, and 0x2029. A Unicode character.


[3729] IsWhiteSpace


[3730] [C#] public static bool IsWhiteSpace(string s, int index);


[3731] [C++] public: static bool IsWhitepace(String* s, int index);


[3732] [VB] Public Shared Function IsWhiteSpace(ByVal s As String, ByVal index As Integer) As Boolean


[3733] [JScript] public static function IsWhiteSpace(s: String, index: int): Boolean;


[3734] Description


[3735] Indicates whether the character at the specified position in a specified String is categorized as white space.


[3736] Return Value: true if the character at position index in s is white space; otherwise, false.


[3737] Character positions in a String are indexed starting from zero. A System.String. A 32-bit signed integer that specifies a character position in s. Parse


[3738] [C#] public static char Parse(string s);


[3739] [C++] public: static_wchar_t Parse(String* s);


[3740] [VB] Public Shared Function Parse(ByVal s As String) As Char


[3741] [JScript] public static function Parse(s: String): Char;


[3742] Description


[3743] Converts the value of the specified String to its equivalent Unicode character.


[3744] Return Value: A Unicode character equivalent to the sole character in s. A System.String containing a single character or null.


[3745] IConvertible.ToBoolean


[3746] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[3747] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[3748] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[3749] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[3750] IConvertible.ToByte


[3751] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[3752] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[3753] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[3754] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[3755] IConvertible.ToChar


[3756] [C#] char IConvertible.ToChar(IFormatProvider provider);


[3757] [C++]_wchar_t IConvertible::ToChar(IFormatProvider* provider);


[3758] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[3759] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[3760] IConvertible.ToDateTime


[3761] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[3762] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[3763] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[3764] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[3765] IConvertible.ToDecimal


[3766] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[3767] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[3768] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[3769] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[3770] IConvertible.ToDouble


[3771] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[3772] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[3773] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[3774] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[3775] IConvertible.ToInt16


[3776] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[3777] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[3778] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[3779] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[3780] IConvertible.ToInt32


[3781] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[3782] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[3783] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[3784] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[3785] IConvertible.ToInt64


[3786] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[3787] [C++]_int64IConvertible::ToInt64(IFormatProvider* provider);


[3788] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[3789] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[3790] IConvertible.ToSByte


[3791] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[3792] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[3793] [VB] Function ToSByte(ByVal provider As IFormnatProvider) As SByte Implements IConvertible.ToSByte


[3794] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[3795] IConvertible.ToSingle


[3796] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[3797] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[3798] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[3799] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[3800] IConvertible.ToType


[3801] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[3802] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[3803] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[3804] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[3805] IConvertible.ToUInt16


[3806] [C#] ushort IConvertible. ToUInt16(IFormatProvider* provider);


[3807] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[3808] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[3809] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[3810] IConvertible.ToUInt32


[3811] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[3812] [C++] unsigned int IConvertible::ToUInt32(FormatProvider* provider);


[3813] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[3814] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[3815] IConvertible.ToUInt64


[3816] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[3817] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[3818] [VB] Function ToUInt64 (ByVal provider As IFormatProvider) As UInt64Implements IConvertible.ToUInt64


[3819] [JScript] function IConvertible.ToUInt64(provider: IFormnatProvider): UInt64;


[3820] ToLower


[3821] [C#] public static char ToLower(char c);


[3822] [C++] public: static_wchar_t ToLower(_wchar_t c);


[3823] [VB] Public Shared Function ToLower(ByVal c As Char) As Char


[3824] [JScript] public static function ToLower(c: Char): Char;


[3825] Description


[3826] Converts the value of a specified Unicode character to its lowercase equivalent using specified culture-specific formatting information.


[3827] Return Value: The lowercase equivalent of c.


[3828] Formatting information is obtained from the current culture. A Unicode character.


[3829] ToLower


[3830] [C#] public static char ToLower(char c, CultureInfo culture);


[3831] [C++] public: static_wchar_t ToLower(_wchar_t c, CultureInfo* culture);


[3832] [VB] Public Shared Function ToLower(ByVal c As Char, ByVal culture As CultureInfo) As Char


[3833] [JScript] public static function ToLower(c: Char, culture: CultureInfo): Char;


[3834] Converts the value of a Unicode character to its lowercase equivalent.


[3835] Description


[3836] Converts the value of a specified Unicode character to its lowercase equivalent using specified culture-specific formatting information.


[3837] Return Value: The lowercase equivalent of c, formatted according to culture.


[3838] Use System.String.ToLower to convert a string to lowercase. A Unicode character. A System.Globalization.Culturelnfo object that supplies culture-specific formatting information, or null.


[3839] ToString


[3840] [C#] public override string ToString( );


[3841] [C++] public: String* ToString( );


[3842] [VB] Overrides Public Function ToString( ) As String


[3843] [JScript] public override function ToString( ): String; Converts the value of this instance to its equivalent String representation.


[3844] Description


[3845] Converts the value of this instance to its equivalent String representation.


[3846] Return Value: The System.String representation of the value of this instance.


[3847] ToString


[3848] [C#] public static string ToString(char c);


[3849] [C++] public: static String* ToString(_wchar_t c);


[3850] [VB] Public Shared Function ToString(ByVal c As Char) As String


[3851] [JScript] public static function ToString(c: Char): String;


[3852] Description


[3853] Converts the specified Unicode character to its equivalent String representation.


[3854] Return Value: The System.String representation of the value of c. A Unicode character.


[3855] ToString


[3856] [C#] public string ToString(IFormnatProvider provider);


[3857] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[3858] [VB] NotOverridable Public Function ToString(ByVal provider As


[3859] IFormatProvider) As String


[3860] [JScript] public function ToString(provider: IFormnatProvider): String;


[3861] Description


[3862] Converts the value of this instance to its equivalent String representation using the specified culture-specific format information.


[3863] Return Value: The System.String representation of the value of this instance as specified by provider.


[3864] provider is ignored; it does not participate in this operation. (Reserved) An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[3865] ToUpper


[3866] [C#] public static char ToUpper(char c);


[3867] [C++] public: static_wchar_t ToUpper(_wchar_t c);


[3868] [VB] Public Shared Function ToUpper(ByVal c As Char) As Char


[3869] [JScript] public static function ToUpper(c: Char): Char;


[3870] Description


[3871] Converts the value of a specified Unicode character to its uppercase equivalent using specified culture-specific formatting information.


[3872] Return Value: The uppercase equivalent of c.


[3873] Formatting information is obtained from the current culture. A Unicode character.


[3874] ToUpper


[3875] [C#] public static char ToUpper(char c, CultureInfo culture);


[3876] [C++] public: static_wchar_t ToUpper(_wchar_t c, CultureInfo* culture);


[3877] [VB] Public Shared Function ToUpper(ByVal c As Char, ByVal culture As CultureInfo) As Char


[3878] [JScript] public static function ToUpper(c: Char, culture: CultureInfo): Char; Converts the value of a Unicode character to its uppercase equivalent.


[3879] Description


[3880] Converts the value of a specified Unicode character to its uppercase equivalent using specified culture-specific formatting information.


[3881] Return Value: The uppercase equivalent of c, formatted according to culture.


[3882] Use System.String.ToUpper to convert a string to uppercase. A Unicode character. A System.Globalization.Culturelnfo object that supplies culture-specific formatting information, or null.


[3883] CharEnumerator class (System)


[3884] ToUpper


[3885] Description


[3886] Supports iterating over a System.String and reading its individual characters.


[3887] A System.CharEnumerator provides read-only access to the characters in a referenced System.String object. For example, the foreach statement of the Microsoft Visual Basic and C# programming languages, which iterates through the elements of a collection, retrieves a System.CharEnumerator from an instance of System.String in order to iterate through the characters in that instance.


[3888] Current


[3889] ToUpper


[3890] [C#] public char Current {get;}


[3891] [C++] public: _property_wchar_t get_Current( );


[3892] [VB] Public ReadOnly Property Current As Char


[3893] [JScript] public function get Current( ): Char;


[3894] Description


[3895] Gets the character in the enumerated string currently indexed by this instance.


[3896] This property should only be invoked when the index maintained by this instance is valid, otherwise, an exception is thrown. The index is always invalid for an empty string (“ ”)


[3897] Clone


[3898] [C#] public object Clone( );


[3899] [C++] public: _sealed Object* Clone( );


[3900] [VB] NotOverridable Public Function Clone( ) As Object


[3901] [JScript] public function Clone( ): Object;


[3902] Description


[3903] Creates a copy of this instance.


[3904] Return Value: An System.Object that is a copy of this instance.


[3905] The return value is a copy of this instance of System.CharEnumerator and its current state. This is useful for saving your state while iterating through a System.String object.


[3906] MoveNext


[3907] [C#] public bool MoveNext( );


[3908] [C++] public: _sealed bool MoveNext( );


[3909] [VB] NotOverridable Public Function MoveNext( ) As Boolean


[3910] [JScript] public function MoveNext( ): Boolean;


[3911] Description


[3912] Increments the index to the next character of the enumerated string.


[3913] Return Value: true if the index is successfully incremented and within the enumerated string; otherwise, false.


[3914] The System.CharEnumerator.MoveNext method increments the index by one. Call System.CharEnumerator.MoveNext after calling System.String.GetEnumerator or System.CharEnumerator.Reset to increment the current character position to the first character in the enumerated string. Check that the return value is true to determine that the current character position is valid.


[3915] Reset


[3916] [C#] public void Reset( );


[3917] [C++] public: _sealed void reset( );


[3918] [VB] NotOverridable Public Sub reset( )


[3919] [JScript] public function reset( );


[3920] Description


[3921] Initializes the index to a position logically before the first character of the enumerated string.


[3922] The index is set to the invalid state.


[3923] CLSCompliantAttribute class (System)


[3924] ToString


[3925] Description


[3926] Indicates whether a program element is compliant with the Common Language Specification (CLS). This class cannot be inherited.


[3927] If no System.CLSCompliantAttribute is applied to a program element, by default: The assembly is not CLS-compliant.


[3928] CLSCompliantAttribute



Example Syntax

[3929] ToString


[3930] [C#] public CLSCompliantAttribute(bool isCompliant);


[3931] [C++] public: CLSCompliantAttribute(bool isCompliant);


[3932] [VB] Public Sub New(ByVal isCompliant As Boolean)


[3933] [JScript] public function CLSCompliantAttribute(isCompliant: Boolean);


[3934] Description


[3935] Initializes an instance of the System.CLSCompliantAttribute class with a Boolean value indicating whether the indicated program element is CLS-compliant. true if CLS-compliant; otherwise, false.


[3936] IsCompliant


[3937] ToString


[3938] [C#] public bool IsCompliant {get;}


[3939] [C++] public: _property bool get_IsCompliant( );


[3940] [VB] Public ReadOnly Property IsCompliant As Boolean


[3941] [JScript] public function get IsCompliant( ): Boolean;


[3942] Description


[3943] Gets the Boolean value indicating whether the indicated program element is CLS-compliant.


[3944] Typeld


[3945] Console class (System)


[3946] ToString


[3947] Description


[3948] Represents the standard input, output, and error streams for console applications.


[3949] The System.Console class provides basic support for applications that read characters from, and write characters to, the console. If the console does not exist, as in a Windows-based application, writes to the console are not displayed and no exception is raised.


[3950] Error


[3951] ToString


[3952] [C#] public static TextWriter Error {get;}


[3953] [C++] public: _property static TextWriter* getError( );


[3954] [VB] Public Shared ReadOnly Property Error As TextWriter


[3955] [JScript] public static function get Error: TextWriter;


[3956] Description


[3957] Gets the standard error output stream.


[3958] This property is set to the standard error stream by default. This property can be set to another stream with the System.Console.SetError(System.IO.TextWriter) method.


[3959] In


[3960] ToString


[3961] [C#] public static TextReader In {get;}


[3962] [C++] public: _property static TextReader* get_In( );


[3963] [VB] Public Shared ReadOnly Property In As TextReader


[3964] [JScript] public static function get In( ): TextReader;


[3965] Description


[3966] Gets the standard input stream.


[3967] This property is set to the standard input stream by default. This property can be set to another stream with the System.Console.Setln(System.IO.TextReader) method.


[3968] Out


[3969] ToString


[3970] [C#] public static TextWriter Out {get;}


[3971] [C++] public: _property static TextWriter* get_Out( );


[3972] [VB] Public Shared ReadOnly Property Out As TextWriter


[3973] [JScript] public static function get Out( ): TextWriter;


[3974] Description


[3975] Gets the standard output stream.


[3976] This property is set to the standard output stream by default. This property can be set to another stream with the System.Console.SetOut(System.IO.TextWriter) method.


[3977] OpenStandardError


[3978] [C#] public static Stream OpenStandardError( );


[3979] [C++] public: static Stream* OpenStandardError( );


[3980] [VB] Public Shared Function OpenStandardError( ) As Stream


[3981] [JScript] public static function OpenStandardError( ): Stream; Acquires the standard error stream.


[3982] Description


[3983] Acquires the standard error stream.


[3984] Return Value: A System.IO.TextWriter object that represents the standard error stream.


[3985] This method can be used to reacquire the standard error stream after it has been changed by the System.Console.SetError(System.IO.TextWriter) method.


[3986] OpenStandardError


[3987] [C#] public static Stream OpenStandardError(int bufferSize);


[3988] [C++] public: static Stream* OpenStandardError(int bufferSize);


[3989] [VB] Public Shared Function OpenStandardError(ByVal bufferSize As Integer) As Stream


[3990] [JScript] public static function OpenStandardError(bufferSize: int): Stream;


[3991] Description


[3992] Acquires the standard error stream, set to a specified buffer size.


[3993] Return Value: A System.IO.TextWriter object that represents the standard error stream.


[3994] This method can be used to reacquire the standard error stream after it has been changed by the System.Console.SetError(System.IO.TextWriter) method. The internal stream buffer size.


[3995] OpenStandardInput


[3996] [C#] public static Stream OpenStandardInput( );


[3997] [C++] public: static Stream* OpenStandardInput( );


[3998] [VB] Public Shared Function OpenStandardInput( ) As Stream


[3999] [JScript] public static function OpenStandardInput( ): Stream; Acquires the standard input stream.


[4000] Description


[4001] Acquires the standard input stream.


[4002] Return Value: A System.IO.TextReader object that represents the standard input stream.


[4003] This method can be used to reacquire the standard input stream after it has been changed by the System.Console.Setln(System.IO.TextReader) method.


[4004] OpenStandardInput


[4005] [C#] public static Stream OpenStandardInput(int bufferSize);


[4006] [C++] public: static Stream* OpenStandardInput(int bufferSize);


[4007] [VB] Public Shared Function OpenStandardIByVabufferSize As Integer) As Stream


[4008] [JScript] public static function OpenStandardInput(bufferSize: int): Stream;


[4009] Description


[4010] Acquires the standard input stream, set to a specified buffer size.


[4011] Return Value: A System.IO.TextReader object that represents the standard output stream.


[4012] This method can be used to reacquire the standard output stream after it has been changed by the System.Console.SetIn(System.IO.TextReader) method. The internastream buffer size.


[4013] OpenStandardOutput


[4014] [C#] public static Stream OpenStandardOutput( );


[4015] [C++] public: static Stream* OpenStandardOutput( );


[4016] [VB] public Shared Function OpenStandardOutput( ) As Stream


[4017] [JScript] public static function OpenStandardOutput( ): Stream; Acquires the standard output stream.


[4018] Description


[4019] Acquires the standard output stream.


[4020] Return Value: A System.IO.TextWriter object that represents the standard output stream.


[4021] This method can be used to reacquire the standard output stream after it has been changed by the System.Console.SetOut(System.IO.TextWriter) method.


[4022] OpenStandardOutput


[4023] [C#] public static Stream OpenStandardOutput(int bufferSize);


[4024] [C++] public: static Stream* OpenStandardOutput(int bufferSize);


[4025] [VB] public Shared Function OpenStandardOutput(ByVabufferSize As Integer) As Stream


[4026] [JScript] public static function OpenStandardOutput(bufferSize: int): Stream;


[4027] Description


[4028] Acquires the standard output stream, set to a specified buffer size.


[4029] Return Value: A System.IO.TextWriter object that represents the standard output stream.


[4030] This method can be used to reacquire the standard output stream after it has been changed by the System.Console.SetOut(System.IO.TextWriter) method. The internal stream buffer size.


[4031] Read


[4032] [C#] public static int Read( );


[4033] [C++] public: static int Read( );


[4034] [VB] public Shared Function Read( ) As Integer


[4035] [JScript] public static function Read( ): int;


[4036] Description


[4037] Reads the next character from the standard input stream.


[4038] Return Value: The next character from the input stream, or negative one if no more characters are available.


[4039] This method will not return until the read operation is terminated (for example, by the user pressing the enter key). If data is available, the input stream contains what the user entered, suffixed with a carriage-return character followed by a linefeed character (“\r\n”).


[4040] ReadLine


[4041] [C#] public static string Readline( );


[4042] [C++] public: static String* Readline( );


[4043] [VB] public Shared Function Readline( ) As String


[4044] [JScript] public static function Readline( ): String;


[4045] Description


[4046] Reads the next line of characters from the standard input stream.


[4047] Return Value: The next line from the input stream, or negative if no more characters are available.


[4048] A line is defined as a sequence of characters followed by a carriage return (‘\r’\), a line feed (‘\n’), or a carriage return immediately followed by a line feed (‘\r’\). The string that is returned does not contain the terminating carriage return and/or line feed.


[4049] SetError


[4050] [C#] public static void SetError(TextWriter newError);


[4051] [C++] public: static void SetError(TextWriter* newError);


[4052] [VB] public Shared Sub SetError(ByVanewError As TextWriter)


[4053] [JScript] public static function SetError(newError: TextWriter);


[4054] Description


[4055] Sets the System.Console.Error property to the specified output stream.


[4056] By default, the System.Console.Error property is set to the standard error output stream. A System.IO.TextWriter stream that is the new standard error output.


[4057] SetIn


[4058] [C#] public static void SetIn(TextReader newIn);


[4059] [C++] public: static void SetIn(TextReader* newIn);


[4060] [VB] public Shared Sub SetIn(ByVal newIn As TextReader)


[4061] [JScript] public static function SetIn(newIn: TextReader);


[4062] Description


[4063] Sets the System.Console.In property to the specified input stream.


[4064] By default, the System.Console.In property is set to the standard input stream. A System.IO.TextReader stream that is the new standard input.


[4065] SetOut


[4066] [C#] public static void SetOut(TextWriter newout);


[4067] [C++] public: static void SetOut(TextWriter* newOut);


[4068] [VB] public Shared Sub SetOut(ByVal newOut As TextWriter)


[4069] [JScript] public static function SetOut(newOut: TextWriter);


[4070] Description


[4071] Sets the System.Console.Out property to the specified output stream.


[4072] By default, the System.Console.Out property is set to the standard output stream. A System.IO.TextWriter stream that is the new standard output.


[4073] Write


[4074] [C#] public static void Write(bool value);


[4075] [C++] public: static void Write(bool value);


[4076] [VB] public Shared Sub Write(ByVal value As Boolean)


[4077] [JScript] public static function Write(value: Boolean);


[4078] Description


[4079] Writes the text representation of the specified Boolean value to the standard output stream.


[4080] The text representation of value is produced by calling System.Boolean.ToString. The value to write.


[4081] Write


[4082] [C#] public static void Write(char value);


[4083] [C++] public: static void Write(_wchar_t value);


[4084] [VB] public Shared Sub Write(ByVal value As Char)


[4085] [JScript] public static function Write(value: Char);


[4086] Description


[4087] Writes the specified Unicode character value to the standard output stream. The value to write.


[4088] Write


[4089] [C#] public static void Write(char[ ] buffer);


[4090] [C++] public: static void Write(_wchar_t buffer_gc[ ]);


[4091] [VB] public Shared Sub Write(ByVal buffer( ) As Char)


[4092] [JScript] public static function Write(buffer: Char[ ]);


[4093] Description


[4094] Writes the specified array of Unicode characters to the standard output stream. A Unicode character array.


[4095] Write


[4096] [C#] public static void Write(decimal value);


[4097] [C++] public: static void Write(Decimal value);


[4098] [VB] public Shared Sub Write(ByVal value As Decimal)


[4099] [JScript] public static function Write(value: Decimal);


[4100] Description


[4101] Writes the text representation of the specified System.Decimal value to the standard output stream.


[4102] The text representation of value is produced by calling System.Decimal.ToString. The value to write.


[4103] Write


[4104] [C#] public static void Write(double value);


[4105] [C++] public: static void Write(double value);


[4106] [VB] public Shared Sub Write(ByVal value As Double)


[4107] [JScript] public static function Write(value: double);


[4108] Description


[4109] Writes the text representation of the specified double-precision floating point value to the standard output stream.


[4110] The text representation of value is produced by calling System.Double.ToString. The value to write.


[4111] Write


[4112] [C#] public static void Write(int value);


[4113] [C++] public: static void Write(int value);


[4114] [VB] public Shared Sub Write(ByVal value As Integer)


[4115] [JScript] public static function Write(value: int);


[4116] Description


[4117] Writes the text representation of the specified 32-bit signed integer value to the standard output stream.


[4118] The text representation of value is produced by calling System.Int32.ToString. The value to write.


[4119] Write


[4120] [C#] public static void Write(long value);


[4121] [C++] public: static void Write(_int64 value);


[4122] [VB] public Shared Sub Write(ByVal value As Long)


[4123] [JScript] public static function Write(value: long);


[4124] Description


[4125] Writes the text representation of the specified 64-bit signed integer value to the standard output stream.


[4126] The text representation of value is produced by calling System.Int64.ToString. The value to write.


[4127] Write


[4128] [C#] public static void Write(object value);


[4129] [C++] public: static void Write(Object* value);


[4130] [VB] public Shared Sub Write(ByVal value As Object)


[4131] [JScript] public static function Write(value: Object);


[4132] Description


[4133] Writes the text representation of the specified object to the standard output stream.


[4134] If value is null, nothing is written and no exception is thrown. Otherwise, the ToString method of value is called to produce its string representation, and the resulting string is written to the standard output stream. The value to write.


[4135] Write


[4136] [C+] public static void Write(float value);


[4137] [C++] public: static void Write(float value);


[4138] [VB] public Shared Sub Write(ByVal value As Single)


[4139] [JScript] public static function Write(value: float);


[4140] Description


[4141] Writes the text representation of the specified single-precision floating point value to the standard output stream.


[4142] The text representation of value is produced by calling System.Single.ToString. The value to write.


[4143] Write


[4144] [C#] public static void Write(string value);


[4145] [C++] public: static void Write(String* value);


[4146] [VB] public Shared Sub Write(ByVal value As String)


[4147] [JScript] public static function Write(value: String);


[4148] Description


[4149] Writes the specified string value to the standard output stream.


[4150] If value is null, nothing is written to the standard output stream. The value to write.


[4151] Write


[4152] [C#] public static void Write(uint value);


[4153] [C++] public: static void Write(unsigned int value);


[4154] [VB] public Shared Sub Write(ByVal value As UInt32)


[4155] [JScript] public static function Write(value: UInt32);


[4156] Description


[4157] Writes the text representation of the specified 32-bit unsigned integer value to the standard output stream.


[4158] The text representation of value is produced by calling System.UInt32.ToString. The value to write.


[4159] Write


[4160] [C#] public static void Write(ulong value);


[4161] [C++] public: static void Write(unsigned_int64 value);


[4162] [VB] public Shared Sub Write(ByVal value As UInt64)


[4163] [JScript] public static function Write(value: UInt64);


[4164] Description


[4165] Writes the text representation of the specified 64-bit unsigned integer value to the standard output stream.


[4166] The text representation of value is produced by calling System.UInt64.ToString. The value to write.


[4167] Write


[4168] [C#] public static void Write(string format, object arg0);


[4169] [C++] public: static void Write(String* format, Object* arg0);


[4170] [VB] public Shared Sub Write(ByVal format As String, ByVal arg0As Object)


[4171] [JScript] public static function Write(format: String, arg0: Object); Writes the specified information to the standard output stream.


[4172] Description


[4173] Writes the specified object to the standard output stream using the specified format information.


[4174] This method uses the same semantics as System.String.Format(System.String,System.Object). Format string. Object to write using format.


[4175] Write


[4176] [C#] public static void Write(string format, params object[ ]arg);


[4177] [C++] public: static void Write(String* format, Object* arg_gc[ ]);


[4178] [VB] public Shared Sub Write(ByVal format As String, ByVal paramArray arg( ) As Object)


[4179] [JScript] public static function Write(format: String, arg: Object[ ]);


[4180] Description


[4181] Writes the specified array of objects to the standard output stream using the specified format information.


[4182] This method uses the same semantics as System.String.Format(System.String,System.Object). Format string. An array of objects to write using format.


[4183] Write


[4184] [C#] public static void Write(char[ ] buffer, int index, int count);


[4185] [C++] public: static void Write(_wchar_t buffer_gc[ ],int index, count);


[4186] [VB] public Shared Sub Write(ByVal buffer( ) As Char, ByVal index As Integer, ByVal count As Integer)


[4187] [JScript] public static function Write(buffer: Char[ ], index: int, count: int);


[4188] Description


[4189] Writes the specified subarray of Unicode characters to the standard output stream.


[4190] This method writes count characters starting at position index of buffer to the standard output stream. An array of Unicode characters. The starting position in buffer. The number of characters to write.


[4191] Write


[4192] [C#] public static void Write(string format, object arg0, object arg1);


[4193] [C++] public: static void Write(String* format, Object* arg0, Object* arg1);


[4194] [VB] public Shared Sub Write(ByVal format As String, ByVal arg0 As Object, ByVal arg1 As Object)


[4195] [JScript] public static function Write(format: String, arg0: Object, arg1: Object);


[4196] Description


[4197] Writes the specified objects to the standard output stream using the specified format information.


[4198] This method uses the same semantics as System.String.Format(System.String,System.Object). Format string. First object to write using format. Second object to write using format.


[4199] Write


[4200] [C#] public static void Write(string format, object arg0, object arg1, object arg2);


[4201] [C++] public: static void Write(String* format, Object* arg0, Object* arg1, Object* arg2);


[4202] [VB] public Shared Sub Write(ByVal format As String, ByVal arg0 As Object, ByVal arg1As Object, ByVal arg2As Object)


[4203] [JScript] public static function Write(format: String, arg0: Object, arg1: Object, arg2: Object);


[4204] Description


[4205] Writes the specified objects to the standard output stream using the specified format information. This method uses the same semantics as System.String.Format(System.String,System.Object). Format string. First object to write using format. Second object to write using format. Third object to write using format.


[4206] Write


[4207] [C++] public: static void Write(String* format, Object* arg0, Object* arg1, Object* arg2, Object* arg3, . . . );


[4208] WriteLine


[4209] [C++] public static void WriteLine( );


[4210] [C++] public: static void WriteLine( );


[4211] [VB] public Shared Sub WriteLine( )


[4212] [JScript] public static function WriteLine( ); Writes the specified data, followed by the current line terminator, to the standard output stream.


[4213] Description


[4214] Writes the current line terminator to the standard output stream.


[4215] The default line terminator is a string whose value is a carriage return followed by a line feed (“\r\n”). Change the line terminator by setting the System.IO.TextWriter.NewLine property of the System.Console.Out property to another string.


[4216] WriteLine


[4217] [C#] public static void WriteLine(bool value);


[4218] [C++] public: static void WriteLine(bool value);


[4219] [VB] public Shared Sub WriteLine(ByVal value As Boolean)


[4220] [JScript] public static function WriteLine(value: Boolean);


[4221] Description


[4222] Writes the text representation of the specified Boolean value, followed by the current line terminator, to the standard output stream.


[4223] The text representation of value is produced by calling System.Boolean.ToString. The value to write.


[4224] WriteLine


[4225] [C#] public static void WriteLine(char value);


[4226] [C++] public: static void WriteLine(_wchar_t value);


[4227] [VB] public Shared Sub WriteLine(ByVal value As Char)


[4228] [JScript] public static function WriteLine(value: Char);


[4229] Description


[4230] Writes the specified Unicode character, followed by the current line terminator, value to the standard output stream.


[4231] For more information about the line terminator, see the Remarks section of the System.Console.WriteLine method that takes no parameters. The value to write.


[4232] WriteLine


[4233] [C#] public static void WriteLine(char[ ] buffer);


[4234] [C++] public: static void WriteLine(_wchar_t buffer_gc[ ]);


[4235] [VB] public Shared Sub WriteLine(ByVal buffers( )As Char)


[4236] [JScript] public static function WriteLine(buffer: Char[ ]);


[4237] Description


[4238] Writes the specified array of Unicode characters, followed by the current line terminator, to the standard output stream.


[4239] For more information about the line terminator, see the Remarks section of the System.Console.WriteLine method that takes no parameters. A Unicode character array.


[4240] WriteLine


[4241] [C#] public static void WriteLine(decimal value);


[4242] [C++] public: static void WriteLine(Decimal value);


[4243] [VB] public Shared Sub WriteLine(ByVal value As Decimal)


[4244] [JScript] public static function WriteLine(value: Decimal);


[4245] Description


[4246] Writes the text representation of the specified System.Decimal value, followed by the current line terminator, to the standard output stream.


[4247] The text representation of value is produced by calling System.Decimal.ToString. The value to write.


[4248] WriteLine


[4249] [C#] public static void WriteLine(double value); i


[4250] [C++] public: static void WriteLine(double value);


[4251] [VB] public Shared Sub WriteLine(ByVal value As Double)


[4252] [JScript] public static function WriteLine(value: double);


[4253] Description


[4254] Writes the text representation of the specified double-precision floating point value, followed by the current line terminator, to the standard output stream.


[4255] The text representation of value is produced by calling System.Double.ToString. The value to write.


[4256] WriteLine


[4257] [C#] public static void WriteLine(int value);


[4258] [C++] public: static void WriteLine(int value);


[4259] [VB] public Shared Sub WriteLine(ByVal value As Integer)


[4260] [JScript] public static function WriteLine(value: int); ps Description


[4261] Writes the text representation of the specified 32-bit signed integer value, followed by the current line terminator, to the standard output stream.


[4262] The text representation of value is produced by calling System.Int32.ToString. The value to write.


[4263] WriteLine


[4264] [C#] public static void WriteLine(long value);


[4265] [C++] public: static void WriteLine(_int64 value);


[4266] [VB] public Shared Sub WriteLine(ByVal value As Long)


[4267] [JScript] public static function WriteLine(value: long);


[4268] Description


[4269] Writes the text representation of the specified 64-bit signed integer value, followed by the current line terminator, to the standard output stream.


[4270] The text representation of value is produced by calling System.Int64.ToString. The value to write.


[4271] WriteLine


[4272] [C#] public static void WriteLine(object value);


[4273] [C++] public: static void WriteLine(Object* value);


[4274] [VB] public Shared Sub WriteLine(ByVal value As Object)


[4275] [JScript] public static function WriteLine(value: Object);


[4276] Description


[4277] Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.


[4278] If value is null, nothing is written and no exception is thrown. Otherwise, the ToString method of value is called to produce its string representation, and the resulting string is written to the standard output stream. The value to write.


[4279] WriteLine


[4280] [C#] public static void WriteLine(float value);


[4281] [C++] public: static void WriteLine(float value);


[4282] [VB] public Shared Sub WriteLine(ByVal value As Single)


[4283] [JScript] public static function WriteLine(value: float);


[4284] Description


[4285] Writes the text representation of the specified single-precision floating point value, followed by the current line terminator, to the standard output stream.


[4286] The text representation of value is produced by calling System.Single.ToString. The value to write.


[4287] WriteLine


[4288] [C+] public static void WriteLine(string value);


[4289] [C++] public: static void WriteLine(String* value);


[4290] [VB] public Shared Sub WriteLine(ByVal value As String)


[4291] [JScript] public static function WriteLine(value: String);


[4292] Description


[4293] Writes the specified string value, followed by the current line terminator, to the standard output stream.


[4294] If value is null, nothing is written to the standard output stream. The value to write.


[4295] WriteLine


[4296] [C#] public static void WriteLine(uint value);


[4297] [C++] public: static void WriteLine(unsigned int value);


[4298] [VB] public Shared Sub WriteLine(ByVal value As UInt32)


[4299] [JScript] public static function WriteLine(value: UInt32);


[4300] Description


[4301] Writes the text representation of the specified 32-bit unsigned integer value, followed by the current line terminator, to the standard output stream.


[4302] The text representation of value is produced by calling System.UInt32.ToString. The value to write.


[4303] WriteLine


[4304] [C#] public static void WriteLine(ulong value);


[4305] [C++] public: static void WriteLine(unsigned int64 value);


[4306] [VB] public Shared Sub WriteLine(ByVal value As UInt64)


[4307] [JScript] public static function WriteLine(value: UInt64);


[4308] Description


[4309] Writes the text representation of the specified 64-bit unsigned integer value, followed by the current line terminator, to the standard output stream.


[4310] The text representation of value is produced by calling System.Ulnt64.ToString. The value to write.


[4311] WriteLine


[4312] [C#] public static void WriteLine(string format, object arg0);


[4313] [C++] public: static void WriteLine(String* format, Object* arg0);


[4314] [VB] public Shared Sub WriteLine(ByVal format As String, ByVal arg0 As Object)


[4315] [JScript] public static function WriteLine(format: String, arg0: Object);


[4316] Description


[4317] Writes the specified object, followed by the current line terminator, to the standard output stream using the specified format information.


[4318] This method uses the same semantics as System.String.Format(System.String,System.Object). Format string. Object to write using format.


[4319] WriteLine


[4320] [C#] public static void WriteLine(string format, params object[ ] arg);


[4321] [C++] public: static void WriteLine(String* format, Object* arg_gc[ ]);


[4322] [VB] public Shared Sub WriteLine(ByVal format As String, ByVal paramArray arg0As Object)


[4323] [JScript] public static function WriteLine(format: String, arg: Object[ ]);


[4324] Description


[4325] Writes the specified array of objects, followed by the current line terminator, to the standard output stream using the specified format information.


[4326] This method uses the same semantics as System.String.Format(System.String,System.Object). Format string. An array of objects to write using format.


[4327] WriteLine


[4328] [C#] public static void WriteLine(char[ ] buffer, int index, int count);


[4329] [C++] public: static void WriteLine(_wchar_t buffer_gc[ ], int index, int count);


[4330] [VB] public Shared Sub WriteLine(ByVal buffer( ) As Char, ByVal index As Integer, ByVal count As Integer)


[4331] [JScript] public static function WriteLine(buffer: Char[ ], index: int, count: int);


[4332] Description


[4333] Writes the specified subarray of Unicode characters, followed by the current line terminator, to the standard output stream.


[4334] This method writes count characters starting at position index of buffer to the standard output stream. An array of Unicode characters. The starting position in buffer. The number of characters to write.


[4335] WriteLine


[4336] [C#] public static void WriteLine(string format, object arg0, object arg1);


[4337] [C++] public: static void WriteLine(String* format, Object* arg0, Object* arg1);


[4338] [VB] public Shared Sub WriteLine(ByVal format As String, ByVal arg0 As Object, ByVal arg1 As Object)


[4339] [JScript] public static function WriteLine(format: String, arg0: Object, arg1 Object);


[4340] Description


[4341] Writes the specified objects, followed by the current line terminator, to the standard output stream using the specified format information.


[4342] This method uses the same semantics as System.String.Format(System.String,System.Object). Format string. First object to write using format. Second object to write using format.


[4343] WriteLine


[4344] [C#] public static void WriteLine(string format, object arg0, object arg1, object arg2);


[4345] [C++] public: static void WriteLine(String* format, Object* arg0, Object* arg1, Object* arg2);


[4346] [VB] public Shared Sub WriteLine(ByVal format As String, ByVal arg0 As Object, ByVal arg1As Object, ByVal arg2 As Object)


[4347] [JScript] public static function WriteLine(format: String, arg0: Object, arg1: Object, arg2: Object);


[4348] Description


[4349] Writes the specified objects, followed by the current line terminator, to the standard output stream using the specified format information.


[4350] This method uses the same semantics as System.String.Format(System.String,System.Object). Format string. First object to write using format. Second object to write using format. Third object to write using format.


[4351] WriteLine


[4352] [C++] public: static void WriteLine(String* format, Object* arg0, Object* arg1, Object* arg2, Object* arg3, . . . );


[4353] ContextBoundObject class (System)


[4354] WriteLine


[4355] Description


[4356] Defines the base class for all context-bound classes.


[4357] Objects that reside in a context and are bound to the context rules are called context-bound objects. A context is a set of properties or usage rules that define an environment where a collection of objects resides. The rules are enforced when the objects are entering or leaving a context. Objects that are not context-bound are called agile objects.


[4358] ContextBoundObject


[4359] Example Syntax:


[4360] WriteLine


[4361] [C#] protected ContextBoundObject( );


[4362] [C++] protected: ContextBoundObject( );


[4363] [VB] protected Sub New( )


[4364] [JScript] protected function ContextBoundObject( );


[4365] ContextMarshalException class (System)


[4366] ToString


[4367] Description


[4368] The exception that is thrown when an attempt to marshal object across a context boundary fails.


[4369] Objects can marshaby value or by reference. Any attempt to pass an instance of an unmarshallable type through a context boundary will result in a System.ContextMarshalException.


[4370] ContextMarshalException


[4371] Example Syntax:


[4372] ToString


[4373] [Cg] public ContextMarshalException( );


[4374] [C++] public: ContextMarshalException( );


[4375] [VB] public Sub New( )


[4376] [JScript] public function ContextMarshalException( ); Initializes a new instance of the System.ContextMarshalException class.


[4377] Description


[4378] Initializes a new instance of the System.ContextMarshalException class with default properties.


[4379] The following table shows the initial property values for an instance of System.ContextMarshalException.


[4380] ContextMarshalException


[4381] Example Syntax:


[4382] ToString


[4383] [C#] public ContextMarshalException(string message);


[4384] [C++] public: ContextMarshalException(String* message);


[4385] [VB] public SuNew(ByVal message As String)


[4386] [JScript] public function ContextMarshalException(message: String);


[4387] Description


[4388] Initializes a new instance of the System.ContextMarshalException class with a specified error message.


[4389] The following table shows the initial property values for an instance of System.ContextMarshalException. The error message that explains the reason for the exception.


[4390] ContextMarshalException


[4391] Example Syntax:


[4392] ToString


[4393] [C#] protected ContextMarshalException(SerializationInfo info, StreamingContext context);


[4394] [C++] protected: ContextMarshalException(SerializationInfo* info, StreamingContext context);


[4395] [VB] protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[4396] [JScript] protected function ContextMarshalException(info: SerializationInfo, context: StreamingContext);


[4397] Description


[4398] Initializes a new instance of the System.ContextMarshalException class with serialized data. The object that holds the serialized object data. The contextual information about the source or destination.


[4399] ContextMarshalException


[4400] Example Syntax:


[4401] ToString


[4402] [C#] public ContextMarshalException(string message, Exception inner);


[4403] [C++] public: ContextMarshalException(String* message, Exception* inner);


[4404] [VB] public Sub New(ByVal message As String, ByVal inner As Exception)


[4405] [JScript] public function ContextMarshalException(message: String, inner: Exception);


[4406] Description


[4407] Initializes a new instance of the System.ContextMarshalException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[4408] When an Exception X is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[4409] HelpLink


[4410] HResult


[4411] InnerException


[4412] Message


[4413]

15
Source


[4414] StackTrace


[4415] TargetSite


[4416] ContextStaticAttribute class (System)


[4417] ToString


[4418] Description


[4419] Indicates that the value of a static field is unique for a particular context.


[4420] A static field marked with System.ContextStaticAttribute is not shared between contexts. If the indicated static field is accessed on a different context, it will contain a different value.


[4421] ContextStaticAttribute


[4422] Example Syntax:


[4423] ToString


[4424] [C#] public ContextStaticAttribute( );


[4425] [C++]public: ContextStaticAttribute( );


[4426] [VB] public Sub New( )


[4427] [JScript] public function ContextStaticAttribute( );


[4428] Description


[4429] Initializes a new instance of the System.ContextStaticAttribute class.


[4430] TypeId


[4431] Convert class (System)


[4432] ToString


[4433] Description


[4434] Converts base data types to other base data types.


[4435] This class returns a base type that is equivalent to the value of a specified type.


[4436] ToString


[4437] [C#] public static readonly object DBNull;


[4438] [C++] public: static Object* DBNull;


[4439] [VB] public Shared ReadOnly DBNull As Object


[4440] [JScirpt] public static var DBNull: Object;


[4441] Description


[4442] A constant representing a database column absent of data; that is, database null.


[4443] ChangeType


[4444] [C#] public static object ChangeType(object value, Type conversionType);


[4445] [C++] public: static Object* ChangeType(Object* value, Type* conversionType);


[4446] [VB] public Shared Function ChangeType(ByVal value As Object, ByVal conversionType As Type) As Object


[4447] [JScript] public static function ChangeType(value: Object, conversionType: Type): Object;


[4448] Description


[4449] Returns an Object with the specified Type and whose value is equivalent to the specified object.


[4450] Return Value: An object whose Type is conversion Type and whose value is equivalent to value.


[4451] This method uses the current thread's culture for the conversion. An System.Object that implements the System.IConvertible interface. A System.Type.


[4452] ChangeType


[4453] [C#] public static object ChangeType(object value, TypeCode typeCode);


[4454] [C++] public: static Object* ChangeType(Object* value, TypeCode typeCode);


[4455] [VB] public Shared Function ChangeType(ByVal value As Object, ByVal typeCode As TypeCode) As Object


[4456] [JScript] public static function ChangeType(value: Object, typeCode: TypeCode) : Object; Returns an Object with a specified type and whose value is equivalent to a specified object.


[4457] Description


[4458] Returns an Object with the specified TypeCode and whose value is equivalent to the specified object.


[4459] Return Value: An object whose underlying TypeCode is typeCode and whose value is equivalent to value. An System.Object that implements the System.IConvertible interface. A System.TypeCode


[4460] ChangeType


[4461] [C#] public static object ChangeType(object value, Type conversionType, IFormatprovider provider);


[4462] [C++] public: static Object* ChangeType(Object* value, Type* conversionType, IFormatprovider* provider);


[4463] [VB] public Shared Function ChangeType(ByVal value As Object, ByVal conversionType As Type, ByVal provider As IFormatprovider) As Object


[4464] [JScript] public static function ChangeType(value: Object, conversionType: Type, provider: IFormatprovider): Object;


[4465] Description


[4466] Returns an Object with the specified Type and whose value is equivalent to the specified object. A parameter supplies culture-specific formatting information.


[4467] Return Value: An object whose Type is conversiontype and whose value is equivalent to value.


[4468] provider enables the user to specify culture-specific conversion information about the contents of value. For example, if value is a String that represents a number, provider could supply culture-specific information about the notation used to represent that number. An System.Object that implements the System.IConvertible interface. A System.Type. An System.IFormatprovider interface implementation that supplies culture-specific formatting information.


[4469] ChangeType


[4470] [C#] public static object ChangeType(object value, TypeCode typeCode, IFormatprovider provider);


[4471] [C++] public: static Object* ChangeType(Object* value, TypeCode typeCode, IFormatprovider* provider);


[4472] [VB] public Shared Function ChangeType(ByVal value As Object, ByVal typeCode As TypeCode, ByVal provider As IFormatprovider) As Object


[4473] [JScript] public static function ChangeType(value: Object, typeCode: TypeCode, provider: IFormatprovider): Object;


[4474] Description


[4475] Returns an Object with the specified TypeCode and whose value is equivalent to the specified object. A parameter supplies culture-specific formatting information.


[4476] Return Value: An object whose underlying TypeCode is typeCode and whose value is equivalent to value.


[4477] provider enables the user to specify culture-specific conversion information about the contents of value. For example, if value is a String that represents a number, provider could supply culture-specific information about the notation used to represent that number. An System.Object that implements the System.IConvertible interface. A System.TypeCode. An System.IFormatprovider interface implementation that supplies culture-specific formatting information.


[4478] FromBase64CharArray


[4479] [C#] public static byte[ ] FromBase64CharArray(char[ ] inArray, int offset, int length);


[4480] [C++] public: static unsigned char FromBase64CharArray(_wchar_t inArray_gc [ ], int offset, int length)_gc[ ];


[4481] [VB] public Shared Function FromBase64CharArray(ByVal inArray( ) As Char, ByVal offset As Integer, ByVal length As Integer) As Byte( )


[4482] [JScript] public static function FromBase64CharArray(inArray: Char[ ], offset: int, length: int): Byte [ ];


[4483] Description


[4484] Converts the specified subset of an array of Unicode characters consisting of base 64 digits to an equivalent array of 8-bit unsigned integers. Parameters specify the offset and number of elements in the input array.


[4485] Return Value: An array of 8-bit unsigned integers equivalent to length elements at position offset in inArray.


[4486] The subset in inArray is composed of base 64 digits. The base 64 digits in ascending order from zero are the uppercase characters ‘A’ to ‘Z’, lowercase characters ‘a’ to ‘z’, numerals ‘0’ to ‘9’, and the symbols ‘+’ and ‘/’. The valueless character, ‘=’, is used for trailing padding. A Unicode character array. A position within inArray. The number of elements in inArray to convert.


[4487] FromBase64String


[4488] [C#] public static byte[ ] FromBase64String(string s);


[4489] [C++] public: static unsigned char FromBase64String(String* s)_gc [ ];


[4490] [VB] Public Shared Function FromBase64String(ByVal s As String) As Byte( )


[4491] [JScript] public static function FromBase64String(s: String): Byte[ ];


[4492] Description


[4493] Converts the specified String representation of a value consisting of base 64 digits to an equivalent array of 8-bit unsigned integers.


[4494] Return Value: An array of 8-bit unsigned integers equivalent to s.


[4495] s is composed of base 64 digits. The base 64 digits in ascending order from zero are the uppercase characters ‘A’ to ‘Z’, lowercase characters ‘a’ to ‘z’, numerals ‘0’ to ‘9’, and the symbols ‘+’ and ‘/’. The valueless character, ‘=’, is used for trailing padding. A System.String.


[4496] GetTypeCode


[4497] [C#] public static TypeCode GetTypeCode(object value);


[4498] [C++] public: static TypeCode GetTypeCode(Object* value);


[4499] [VB] Public Shared Function GetTypeCode(ByVal value As Object) As TypeCode


[4500] [JScript] public static function GetTypeCode(value: Object): TypeCode;


[4501] Description


[4502] Returns the TypeCode for the specified object.


[4503] Return Value: The System.TypeCode for value, or System.TypeCode.Empty if value is null. An System.Object that implements the System.IConvertible interface.


[4504] IsDBNull


[4505] [C#] public static bool IsDBNull(object value);


[4506] [C++] public: static bool IsDBNull(Object* value);


[4507] [VB] Public Shared Function IsDBNull(ByVal value As Object) As Boolean


[4508] [JScript] public static function IsDBNull(value: Object): Boolean;


[4509] Description


[4510] Returns an indication whether the specified object is of type DBNull.


[4511] Return Value: true if value is of type System.TypeCode.DBNull; otherwise, false. An object.


[4512] ToBase64CharArray


[4513] [C#] public static int ToBase64CharArray(byte[ ] inArray, int offsetIn, int length, char[ ] outArray, int offsetOut);


[4514] [C++] public: static int ToBase64CharArray(unsigned char inArray_gc[ ], int offsetIn, int length, _wchar_t outArray_gc[ ], int offsetOut);


[4515] [VB] Public Shared Function ToBase64CharArray(ByVal inArray( ) As Byte, ByVal offsetIn As Integer, ByVal length As Integer, ByVal outArray( ) As Char, ByVal offsetOut As Integer) As Integer


[4516] [JScript] public static function ToBase64CharArray(inArray: Byte[ ], offsetIn: int, length: int, outArray: Char[ ], offsetOut: int): int;


[4517] Description


[4518] Converts the value of a subset of an 8-bit unsigned integer array to an equivalent subset of a Unicode character array consisting of base 64 digits. Parameters specify the subsets as offsets of the input and output arrays and the number of elements in the input array.


[4519] Return Value: A 32-bit signed integer containing the number of bytes in outArray.


[4520] The subset of length elements of inArray starting at position offsetIn, are taken as a numeric value and converted to a subset of elements in outArray starting at position offsetOut. The return value indicates the number of converted elements in outArray. The subset of outArray consists of base 64 digits. An input array of 8-bit unsigned integers. A position within inArray. The number of elements of inArray to convert. An output array of Unicode characters. A position within outArray.


[4521] ToBase64String


[4522] [C#] public static string ToBase64String(byte[ ] inArray);


[4523] [C++] public: static String* ToBase64String(unsigned char inArray_gc[ ]);


[4524] [VB] Public Shared Function ToBase64String(ByVal inArray( ) As Byte) As String


[4525] [JScript] public static function ToBase64String(inArray: Byte[ ]): String;


[4526] Converts the value of an array of 8-bit unsigned integers to its equivalent String representation consisting of base 64 digits.


[4527] Description


[4528] Converts the value of an array of 8-bit unsigned integers to its equivalent String representation consisting of base 64 digits.


[4529] Return Value: The System.String representation, in base 64, of the contents of inArray.


[4530] The elements of inArray are taken as a numeric value and converted to a String representation consisting of base 64 digits. An array of 8-bit unsigned integers.


[4531] ToBase64String


[4532] [C#] public static string ToBase64String(byte[ ] inArray, int offset, int length);


[4533] [C++] public: static String* ToBase64String(unsigned char inArray_gc[ ], int offset, int length);


[4534] [VB] Public Shared Function ToBase64String(ByVal inArray( ) As Byte, ByVal offset As Integer, ByVal length As Integer) As String


[4535] [JScript] public static function ToBase64String(inArray: Byte[ ], offset: int, length: int): String;


[4536] Description


[4537] Converts the value of a subset of an array of 8-bit unsigned integers to its equivalent String representation consisting of base 64 digits. Parameters specify the subset as an offset and number of elements in the array.


[4538] Return Value: The System.String representation in base 64 of length elements of inArray starting at position offset.


[4539] The elements of inArray are taken as a numeric value and converted to a String representation in base 64. An array of 8-bit unsigned integers. An offset in inArray. The number of elements of inArray to convert.


[4540] ToBoolean


[4541] [C#] public static bool ToBoolean(bool value);


[4542] [C++] public: static bool ToBoolean(bool value);


[4543] [VB] Public Shared Function ToBoolean(ByVal value As Boolean) As Boolean


[4544] [JScript] public static function ToBoolean(value: Boolean): Boolean;


[4545] Description


[4546] Returns the specified Boolean value; no actual conversion is performed.


[4547] Return Value: value is returned unchanged. A Boolean.


[4548] ToBoolean


[4549] [C#] public static bool ToBoolean(byte value);


[4550] [C++] public: static bool ToBoolean(unsigned char value);


[4551] [VB] Public Shared Function ToBoolean(ByVal value As Byte) As Boolean


[4552] [JScript] public static function ToBoolean(value: Byte): Boolean;


[4553] Description


[4554] Converts the value of the specified 8-bit unsigned integer to an equivalent Boolean value.


[4555] Return Value: true if value is non-zero; otherwise, false. An 8-bit unsigned integer.


[4556] ToBoolean


[4557] [C#] public static bool ToBoolean(char value);


[4558] [C++] public: static bool ToBoolean(_wchar_t value);


[4559] [VB] Public Shared Function ToBoolean(ByVal value As Char) As Boolean


[4560] [JScript] public static function ToBoolean(value: Char): Boolean;


[4561] Description


[4562] Conversion from Char to Boolean is not supported.


[4563] Return Value: (None) Attempt to convert Char to Boolean. A Unicode character.


[4564] ToBoolean


[4565] [C#] public static bool ToBoolean(DateTime value);


[4566] [C++] public: static bool ToBoolean(DateTime value);


[4567] [VB] Public Shared Function ToBoolean(ByVal value As DateTime) As Boolean


[4568] [JScript] public static function ToBoolean(value: DateTime): Boolean;


[4569] Description


[4570] Calling this method always throws System.InvalidCastException.


[4571] This method is reserved for future use. A System.DateTime.


[4572] ToBoolean


[4573] [C#] public static bool ToBoolean(decimal value);


[4574] [C++] public: static bool ToBoolean(Decimal value);


[4575] [VB] Public Shared Function ToBoolean(ByVal value As Decimal) As Boolean


[4576] [JScript] public static function ToBoolean(value: Decimal): Boolean;


[4577] Description


[4578] Converts the value of the specified Decimal number to an equivalent Boolean value.


[4579] Return Value: true if value is non-zero; otherwise, false.


[4580] Description


[4581] Converts the value of the specified Decimal number to an equivalent Boolean value.


[4582] Return Value: true if value is non-zero; otherwise, false. A System.Decimal number.


[4583] ToBoolean


[4584] [C#] public static bool ToBoolean(double value);


[4585] [C++] public: static bool ToBoolean(double value);


[4586] [VB] Public Shared Function ToBoolean(ByVal value As Double) As Boolean


[4587] [JScript] public static function ToBoolean(value: double): Boolean;


[4588] Description


[4589] Converts the value of the specified double-precision floating point number to an equivalent Boolean value.


[4590] Return Value: true if value is non-zero; otherwise, false. A double-precision floating point number.


[4591] ToBoolean


[4592] [C#] public static bool ToBoolean(short value);


[4593] [C++] public: static bool ToBoolean(short value);


[4594] [VB] Public Shared Function ToBoolean(ByVal value As Short) As Boolean


[4595] [JScript] public static function ToBoolean(value: Int16): Boolean;


[4596] Description


[4597] Converts the value of the specified 16-bit signed integer to an equivalent Boolean value.


[4598] Return Value: true if value is non-zero; otherwise, false. A 16-bit signed integer.


[4599] ToBoolean


[4600] [C#] public static bool ToBoolean(int value);


[4601] [C++] public: static bool ToBoolean(int value);


[4602] [VB] Public Shared Function ToBoolean(ByVal value As Integer) As Boolean


[4603] [JScript] public static function ToBoolean(value: int): Boolean;


[4604] Description


[4605] Converts the value of the specified 32-bit signed integer to an equivalent Boolean value.


[4606] Return Value: true if value is non-zero; otherwise, false. A 32-bit signed integer.


[4607] ToBoolean


[4608] [C#] public static bool ToBoolean(long value);


[4609] [C++] public: static bool ToBoolean(_int64 value);


[4610] [VB] Public Shared Function ToBoolean(ByVal value As Long) As Boolean


[4611] [JScript] public static function ToBoolean(value: long): Boolean;


[4612] Description


[4613] Converts the value of the specified 64-bit signed integer to an equivalent Boolean value.


[4614] Return Value: true if value is non-zero; otherwise, false. A 64-bit signed integer.


[4615] ToBoolean


[4616] [C#] public static bool ToBoolean(object value);


[4617] [C++] public: static bool ToBoolean(Object* value);


[4618] [VB] Public Shared Function ToBoolean(ByVal value As Object) As Boolean


[4619] [JScript] public static function ToBoolean(value: Object): Boolean; Converts a specified value to an equivalent Boolean value.


[4620] Description


[4621] Converts the value of a specified Object to an equivalent Boolean value.


[4622] Return Value: false if value equals null. An System.Object that implements the System.IConvertible interface or null.


[4623] ToBoolean


[4624] [C#] public static bool ToBoolean(sbyte value);


[4625] [C++] public: static bool ToBoolean(char value);


[4626] [VB] Public Shared Function ToBoolean(ByVal value As SByte) As Boolean


[4627] [JScript] public static function ToBoolean(value: SByte): Boolean;


[4628] Description


[4629] Converts the value of the specified 8-bit signed integer to an equivalent Boolean value.


[4630] Return Value: true if value is non-zero; otherwise, false. An 8-bit signed integer.


[4631] ToBoolean


[4632] [C#] public static bool ToBoolean(float value);


[4633] [C++] public: static bool ToBoolean(float value);


[4634] [VB] Public Shared Function ToBoolean(ByVal value As Single) As Boolean


[4635] [JScript] public static function ToBoolean(value: float): Boolean;


[4636] Description


[4637] Converts the value of the specified single-precision floating point number to an equivalent Boolean value.


[4638] Return Value: true if value is non-zero; otherwise, false. A single-precision floating point number.


[4639] ToBoolean


[4640] [C#] public static bool ToBoolean(string value);


[4641] [C++] public: static bool ToBoolean(String* value);


[4642] [VB] Public Shared Function ToBoolean(ByVal value As String) As Boolean


[4643] [JScript] public static function ToBoolean(value: String): Boolean;


[4644] Description


[4645] Converts the specified String representation of a logical value to its Boolean equivalent.


[4646] Return Value: true if value equals System.Boolean.TrueString, or false if value equals System.Boolean.FalseString. A System.String that contains the value of either System.Boolean.TrueString or System.Boolean.FalseString.


[4647] ToBoolean


[4648] [C#] public static bool ToBoolean(ushort value);


[4649] [C++] public: static bool ToBoolean(unsigned short value);


[4650] [VB] Public Shared Function ToBoolean(ByVal value As UInt16) As Boolean


[4651] [JScript] public static function ToBoolean(value: UInt16): Boolean;


[4652] Description


[4653] Converts the value of the specified 16-bit unsigned integer to an equivalent Boolean value.


[4654] Return Value: true if value is non-zero; otherwise, false. A 16-bit unsigned integer.


[4655] ToBoolean


[4656] [C#] public static bool ToBoolean(uint value);


[4657] [C++] public: static bool ToBoolean(unsigned int value);


[4658] [VB] Public Shared Function ToBoolean(ByVal value As UInt32) As Boolean


[4659] [JScript] public static function ToBoolean(value: UInt32): Boolean;


[4660] Description


[4661] Converts the value of the specified 32-bit unsigned integer to an equivalent Boolean value.


[4662] Return Value: true if value is non-zero; otherwise, false. A 32-bit unsigned integer.


[4663] ToBoolean


[4664] [C#] public static bool ToBoolean(ulong value);


[4665] [C++] public: static bool ToBoolean(unsigned_int64 value);


[4666] [VB] Public Shared Function ToBoolean(ByVal value As UInt64) As Boolean


[4667] [JScript] public static function ToBoolean(value: UInt64): Boolean;


[4668] Description


[4669] Converts the value of the specified 64-bit unsigned integer to an equivalent Boolean value.


[4670] Return Value: true if value is non-zero; otherwise, false. A 64-bit unsigned integer.


[4671] ToBoolean


[4672] [C#] public static bool ToBoolean(object value, IFormatProvider provider);


[4673] [C++] public: static bool ToBoolean(Object* value, IFormatProvider* provider);


[4674] [VB] Public Shared Function ToBoolean(ByVal value As Object, ByVal provider As IFormatProvider) As Boolean


[4675] [JScript] public static function ToBoolean(value: Object, provider: IFormatProvider): Boolean;


[4676] Description


[4677] Converts the value of the specified Object to an equivalent Boolean value using the specified culture-specific formatting information.


[4678] Return Value: false if value equals null.


[4679] provider enables the user to specify culture-specific conversion information about the contents of value. For example, if value is a String that represents a number, provider could supply culture-specific information about the notation used to represent that number. An System.Object that implements the System.IConvertible interface or null. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[4680] ToBoolean


[4681] [C#] public static bool ToBoolean(string value, IFormatProvider provider);


[4682] [C++] public: static bool ToBoolean(String* value, IFormatProvider* provider);


[4683] [VB] Public Shared Function ToBoolean(ByVal value As String, ByVal provider As IFormatProvider) As Boolean


[4684] [JScript] public static function ToBoolean(value: String, provider: IFormatProvider): Boolean;


[4685] Description


[4686] Converts the specified String representation of a logical value to its Boolean equivalent using the specified culture-specific formatting information.


[4687] Return Value: true if value equals System.Boolean.TrueString, or false if value equals System.Boolean.FalseString.


[4688] provider is ignored; it does not participate in this operation. A string that contains the value of either System.Boolean.TrueString or System.Boolean.FalseString. (Reserved) An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[4689] ToByte


[4690] [C#] public static byte ToByte(bool value);


[4691] [C++] public: static unsigned char ToByte(bool value);


[4692] [VB] Public Shared Function ToByte(ByVal value As Boolean) As Byte


[4693] [JScript] public static function ToByte(value: Boolean): Byte;


[4694] Description


[4695] Converts the value of the specified Boolean value to the equivalent 8-bit unsigned integer.


[4696] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[4697] ToByte


[4698] [C#] public static byte ToByte(byte value);


[4699] [C++] public: static unsigned char ToByte(unsigned char value);


[4700] [VB] Public Shared Function ToByte(ByVal value As Byte) As Byte


[4701] [JScript] public static function ToByte(value: Byte): Byte;


[4702] Description


[4703] Returns the specified 8-bit unsigned integer; no actual conversion is performed.


[4704] Return Value: value is returned unchanged. An 8-bit unsigned integer.


[4705] ToByte


[4706] [C#] public static byte ToByte(char value);


[4707] [C++] public: static unsigned char ToByte(_wchar_t value);


[4708] [VB] Public Shared Function ToByte(ByVal value As Char) As Byte


[4709] [JScript] public static function ToByte(value: Char): Byte;


[4710] Description


[4711] Converts the value of the specified Unicode character to the equivalent 8-bit unsigned integer.


[4712] Return Value: The 8-bit unsigned integer equivalent to value. A Unicode character.


[4713] ToByte


[4714] [C#] public static byte ToByte(DateTime value);


[4715] [C++] public: static unsigned char ToByte(DateTime value);


[4716] [VB] Public Shared Function ToByte(ByVal value As DateTime) As Byte


[4717] [JScript] public static function ToByte(value: DateTime): Byte;


[4718] Description


[4719] Calling this method always throws System.InvalidCastException.


[4720] This method is reserved for future use. A System.DateTime.


[4721] ToByte


[4722] [C#] public static byte ToByte(decimal value);


[4723] [C++] public: static unsigned char ToByte(Decimal value);


[4724] [VB] Public Shared Function ToByte(ByVal value As Decimal) As Byte


[4725] [JScript] public static function ToByte(value: Decimal): Byte;


[4726] Description


[4727] Converts the value of the specified Decimal number to an equivalent 8-bit unsigned integer.


[4728] Return Value: value rounded to the nearest 8-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A System.Decimal number.


[4729] ToByte


[4730] [C#] public static byte ToByte(double value);


[4731] [C++] public: static unsigned char ToByte(double value);


[4732] [VB] Public Shared Function ToByte(ByVal value As Double) As Byte


[4733] [JScript] public static function ToByte(value: double): Byte;


[4734] Description


[4735] Converts the value of the specified double-precision floating point number to an equivalent 8-bit unsigned integer.


[4736] Return Value: value rounded to the nearest 8-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A double-precision floating point number.


[4737] ToByte


[4738] [C#] public static byte ToByte(short value);


[4739] [C++] public: static unsigned char ToByte(short value);


[4740] [VB] Public Shared Function ToByte(ByVal value As Short) As Byte


[4741] [JScript] public static function ToByte(value: Int16): Byte;


[4742] Description


[4743] Converts the value of the specified 16-bit signed integer to an equivalent 8-bit unsigned integer.


[4744] Return Value: An 8-bit unsigned integer equivalent to the value of value. A 16-bit signed integer.


[4745] ToByte


[4746] [C#] public static byte ToByte(int value);


[4747] [C++] public: static unsigned char ToByte(int value);


[4748] [VB] Public Shared Function ToByte(ByVal value As Integer) As Byte


[4749] [JScript] public static function ToByte(value: int): Byte;


[4750] Description


[4751] Converts the value of the specified 32-bit signed integer to an equivalent 8-bit unsigned integer.


[4752] Return Value: An 8-bit unsigned integer equivalent to the value of value. A 32-bit signed integer.


[4753] ToByte


[4754] [C#] public static byte ToByte(long value);


[4755] [C++] public: static unsigned char ToByte(_int64 value);


[4756] [VB] Public Shared Function ToByte(ByVal value As Long) As Byte


[4757] [JScript] public static function ToByte(value: long): Byte;


[4758] Description


[4759] Converts the value of the specified 64-bit signed integer to an equivalent 8-bit unsigned integer.


[4760] Return Value: An 8-bit unsigned integer equivalent to the value of value. A 64-bit signed integer.


[4761] ToByte


[4762] [C#] public static byte ToByte(object value);


[4763] [C++] public: static unsigned char ToByte(Object* value);


[4764] [VB] Public Shared Function ToByte(ByVal value As Object) As Byte


[4765] [JScript] public static function ToByte(value: Object): Byte;


[4766] Converts a specified value to an 8-bit unsigned integer.


[4767] Description


[4768] Converts the value of the specified Object to an 8-bit unsigned integer.


[4769] Return Value: An 8-bit unsigned integer equivalent to the value of value, or zero if value is null.


[4770] The return value is the result of invoking the IConvertible.ToByte method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[4771] ToByte


[4772] [C#] public static byte ToByte(sbyte value);


[4773] [C++] public: static unsigned char ToByte(char value);


[4774] [VB] Public Shared Function ToByte(ByVal value As SByte) As Byte


[4775] [JScript] public static function ToByte(value: SByte): Byte;


[4776] Description


[4777] Converts the value of the specified 8-bit signed integer to an equivalent 8-bit unsigned integer.


[4778] Return Value: An 8-bit unsigned integer equivalent to the value of value An 8-bit signed integer.


[4779] ToByte


[4780] [C+] public static byte ToByte(float value);


[4781] [C++] public: static unsigned char ToByte(float value);


[4782] [VB] Public Shared Function ToByte(ByVal value As Single) As Byte


[4783] [JScript] public static function ToByte(value: float): Byte;


[4784] Description


[4785] Converts the value of the specified single-precision floating point number to an equivalent 8-bit unsigned integer.


[4786] Return Value: value rounded to the nearest 8-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A single-precision floating point number.


[4787] ToByte


[4788] [C#] public static byte ToByte(string value);


[4789] [C++] public: static unsigned char ToByte(String* value);


[4790] [VB] Public Shared Function ToByte(ByVal value As String) As Byte


[4791] [JScript] public static function ToByte(value: String): Byte;


[4792] Description


[4793] Converts the specified String representation of a number to an equivalent 8-bit unsigned integer.


[4794] Return Value: An 8-bit unsigned integer equivalent to the value of value. A System.String containing a number to convert.


[4795] ToByte


[4796] [C#] public static byte ToByte(ushort value);


[4797] [C++] public: static unsigned char ToByte(unsigned short value);


[4798] [VB] Public Shared Function ToByte(ByVal value As UInt16) As Byte


[4799] [JScript] public static function ToByte(value: UInt16): Byte;


[4800] Description


[4801] Converts the value of the specified 16-bit unsigned integer to an equivalent 8-bit unsigned integer.


[4802] Return Value: An 8-bit unsigned integer equivalent to the value of value. A 16-bit unsigned integer.


[4803] ToByte


[4804] [C#] public static byte ToByte(uint value);


[4805] [C++] public: static unsigned char ToByte(unsigned int value);


[4806] [VB] Public Shared Function ToByte(ByVal value As UInt32) As Byte


[4807] [JScript] public static function ToByte(value: UInt32): Byte;


[4808] Description


[4809] Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit unsigned integer.


[4810] Return Value: An 8-bit unsigned integer equivalent to the value of value. A 32-bit unsigned integer.


[4811] ToByte


[4812] [C#] public static byte ToByte(ulong value);


[4813] [C++] public: static unsigned char ToByte(unsigned—int64 value);


[4814] [VB] Public Shared Function ToByte(ByVal value As UInt64) As Byte


[4815] [JScript] public static function ToByte(value: UInt64): Byte;


[4816] Description


[4817] Converts the value of the specified 64-bit unsigned integer to an equivalent -bit unsigned integer.


[4818] Return Value: An 8-bit unsigned integer equivalent to the value of value. A 64-bit unsigned integer.


[4819] ToByte


[4820] [C#] public static byte ToByte(object value, IFormatProvider provider);


[4821] [C++] public: static unsigned char ToByte(Object* value, IFormatProvider* provider);


[4822] [VB] Public Shared Function ToByte(ByVal value As Object, ByVal provider As IFormatProvider) As Byte


[4823] [JScript] public static function ToByte(value: Object, provider: IFormatProvider) : Byte;


[4824] Description


[4825] Converts the value of the specified Object to an 8-bit unsigned integer using the specified culture-specific formatting information.


[4826] Return Value: An 8-bit unsigned integer equivalent to the value of value, or zero if value is null.


[4827] provider enables the user to specify culture-specific conversion information about the contents of value. For example, if value is a String that represents a number, provider could supply culture-specific information about the notation used to represent that number. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[4828] ToByte


[4829] [C#] public static byte ToByte(string value, IFormatProvider provider);


[4830] [C++] public: static unsigned char ToByte(String* value, IFormatProvider* provider);


[4831] [VB] Public Shared Function ToByte(ByVal value As String, ByVal provider As IFormatProvider) As Byte


[4832] [JScript] public static function ToByte(value: String, provider: IFormatProvider) : Byte;


[4833] Description


[4834] Converts the specified String representation of a number to an equivalent 8-bit signed integer using specified culture-specific formatting information.


[4835] Return Value: An 8-bit signed integer equivalent to the value of value.


[4836] provider is an IFormatProvider instance that obtains a System.Globalization.NumberFormatInfo object. The NumberFormatInfo object provides culture-specific information about the format of value. If provider is null, the NumberFormatInfo for the current culture is used. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[4837] ToByte


[4838] [C#] public static byte ToByte(string value, int fromBase);


[4839] [C++] public: static unsigned char ToByte(String* value, int fromBase);


[4840] [VB] Public Shared Function ToByte(ByVal value As String, ByVal fromBase As Integer) As Byte


[4841] [JScript] public static function ToByte(value: String, fromBase: int): Byte;


[4842] Description


[4843] Converts the String representation of a number in a specified base to an equivalent 8-bit unsigned integer.


[4844] Return Value: An 8-bit unsigned integer equivalent to the number in value. A System.String containing a number. The base of the number in value, which must be 2, 8, 10, or 16.


[4845] ToChar


[4846] [C+] public static char ToChar(bool value);


[4847] [C++] public: static_wchar_t ToChar(bool value);


[4848] [VB] Public Shared Function ToChar(ByVal value As Boolean) As Char


[4849] [JScript] public static function ToChar(value: Boolean): Char;


[4850] Description


[4851] Calling this method always throws System.InvalidCastException.


[4852] This method is reserved for future use. A System.Boolean value.


[4853] ToChar


[4854] [C#] public static char ToChar(byte value);


[4855] [C++] public: static_wchar_t ToChar(unsigned char value);


[4856] [VB] Public Shared Function ToChar(ByVal value As Byte) As Char


[4857] [JScript] public static function ToChar(value: Byte): Char;


[4858] Description


[4859] Converts the value of the specified 8-bit unsigned integer to its equivalent Unicode character.


[4860] Return Value: The Unicode character equivalent to the value of value. An 8-bit unsigned integer.


[4861] ToChar


[4862] [C#] public static char ToChar(char value);


[4863] [C++] public: static_wchar_t ToChar(_wchar_t value);


[4864] [VB] Public Shared Function ToChar(ByVal value As Char) As Char


[4865] [JScript] public static function ToChar(value: Char): Char;


[4866] Description


[4867] Returns the specified Unicode character value; no actual conversion is performed.


[4868] Return Value: value is returned unchanged. A Unicode character.


[4869] ToChar


[4870] [C#] public static char ToChar(DateTime value);


[4871] [C++] public: static_wchar_t ToChar(DateTime value);


[4872] [VB] Public Shared Function ToChar(ByVal value As DateTime) As Char


[4873] [JScript] public static function ToChar(value: DateTime): Char;


[4874] Description


[4875] Calling this method always throws System.InvalidCastException.


[4876] This method is reserved for future use. A System.DateTime.


[4877] ToChar


[4878] [C#] public static char ToChar(decimal value);


[4879] [C++] public: static_wchar_t ToChar(Decimal value);


[4880] [VB] Public Shared Function ToChar(ByVal value As Decimal) As Char


[4881] [JScript] public static function ToChar(value: Decimal): Char;


[4882] Description


[4883] Converts the value of the specified Decimal number to its equivalent Unicode character.


[4884] Return Value: A Unicode character equivalent to the value of value.


[4885] The return value is the result of invoking the IConvertible.ToChar method of the underlying type of value. An System.Decimal number.


[4886] ToChar


[4887] [C#] public static char ToChar(double value);


[4888] [C++] public: static_wchar_t ToChar(double value);


[4889] [VB] Public Shared Function ToChar(ByVal value As Double) As Char


[4890] [JScript] public static function ToChar(value: double): Char;


[4891] Description


[4892] Converts the value of the specified double-precision floating point number to its equivalent Unicode character.


[4893] Return Value: The Unicode character equivalent to the value of value.


[4894] The return value is the result of invoking the IConvertible.ToChar method of the underlying type of value. A double-precision floating point number.


[4895] ToChar


[4896] [C#] public static char ToChar(short value);


[4897] [C++] public: static_wchar_t ToChar(short value);


[4898] [VB] Public Shared Function ToChar(ByVal value As Short) As Char


[4899] [JScript] public static function ToChar(value: Int16): Char;


[4900] Description


[4901] Converts the value of the specified 16-bit signed integer to its equivalent Unicode character.


[4902] Return Value: The Unicode character equivalent to the value of value. A 16-bit signed integer.


[4903] ToChar


[4904] [C#] public static char ToChar(int value);


[4905] [C++] public: static_wchar_t ToChar(int value);


[4906] [VB] Public Shared Function ToChar(ByVal value As Integer) As Char


[4907] [JScript] public static function ToChar(value: int): Char;


[4908] Description


[4909] Converts the value of the specified 32-bit signed integer to its equivalent Unicode character.


[4910] Return Value: The Unicode character equivalent to the value of value. A 32-bit signed integer.


[4911] ToChar


[4912] [C#] public static char ToChar(long value);


[4913] [C++] public: static_wchar_ToChar(_int64 value);


[4914] [VB] Public Shared Function ToChar(ByVal value As Long) As Char


[4915] [JScript] public static function ToChar(value: long): Char;


[4916] Description


[4917] Converts the value of the specified 64-bit signed integer to its equivalent Unicode character.


[4918] Return Value: The Unicode character equivalent to the value of value. A 64-bit signed integer.


[4919] ToChar


[4920] [C#] public static char ToChar(object value);


[4921] [C++] public: static_wchar_ToChar(Object* value);


[4922] [VB] Public Shared Function ToChar(ByVal value As Object) As Char


[4923] [JScript] public static function ToChar(value: Object): Char; Converts a specified value to a Unicode character.


[4924] Description


[4925] Converts the value of the specified Object to a Unicode character.


[4926] Return Value: The Unicode character equivalent to the value of value.


[4927] The return value is the result of invoking the IConvertible.ToChar method of the underlying type of value. An System.Object that implements the System.IConvertible interface.


[4928] ToChar


[4929] [C#] public static char ToChar(sbyte value);


[4930] [C++] public: static c_wchar_t ToChar(char value);


[4931] [VB] Public Shared Function ToChar(ByVal value As SByte) As Char


[4932] [JScript] public static function ToChar(value: SByte): Char;


[4933] Description


[4934] Converts the value of the specified 8-bit signed integer to its equivalent Unicode character.


[4935] Return Value: The Unicode character equivalent to the value of value. An 8-bit signed integer.


[4936] ToChar


[4937] [C#] public static char ToChar(float value);


[4938] [C++] public: static_wchar_ToChar(float value);


[4939] [VB] Public Shared Function ToChar(ByVal value As Single) As Char


[4940] [JScript] public static function ToChar(value: float): Char;


[4941] Description


[4942] Converts the value of the specified single-precision floating point number to its equivalent Unicode character.


[4943] Return Value: The Unicode character equivalent to the value of value.


[4944] The return value is the result of invoking the IConvertible.ToChar method of the underlying type of value. An single-precision floating point number.


[4945] ToChar


[4946] [C#] public static char ToChar(string value);


[4947] [C++] public: static_wchar_t ToChar(String* value);


[4948] [VB] Public Shared Function ToChar(ByVal value As String) As Char


[4949] [JScript] public static function ToChar(value: String): Char;


[4950] Description


[4951] Converts the first character of a String to a Unicode character.


[4952] Return Value: The Unicode character equivalent to the first and only character in value.value is null.


[4953] value must be null or a String containing a single character. A System.String of length 1 or null.


[4954] ToChar


[4955] [C#] public static char ToChar(ushort value);


[4956] [C++] public: static_wchar_t ToChar(unsigned short value);


[4957] [VB] Public Shared Function ToChar(ByVal value As UInt16) As Char


[4958] [JScript] public static function ToChar(value: UInt16): Char;


[4959] Description


[4960] Converts the value of the specified 16-bit unsigned integer to its equivalent Unicode character.


[4961] Return Value: The Unicode character equivalent to the value of value. A 16-bit unsigned integer.


[4962] ToChar


[4963] [C#] public static char ToChar(uint value);


[4964] [C++] public: static_wchar_t ToChar(unsigned int value);


[4965] [VB] Public Shared Function ToChar(ByVal value As UInt32) As Char


[4966] [JScript] public static function ToChar(value: UInt32): Char;


[4967] Description


[4968] Converts the value of the specified 32-bit unsigned integer to its equivalent Unicode character.


[4969] Return Value: The Unicode character equivalent to the value of value. A 32-bit unsigned integer.


[4970] ToChar


[4971] [C#] public static char ToChar(ulong value);


[4972] [C++] public: static_wchar_t ToChar(unsigned_int64 value);


[4973] [VB] Public Shared Function ToChar(ByVal value As UInt64) As Char


[4974] [JScript] public static function ToChar(value: UInt64): Char;


[4975] Description


[4976] Converts the value of the specified 64-bit unsigned integer to its equivalent Unicode character.


[4977] Return Value: The Unicode character equivalent to the value of value. A 64-bit unsigned integer.


[4978] ToChar


[4979] [C#] public static char ToChar(object value, IFormatProvider provider);


[4980] [C++] public: static_wchar_t ToChar(Object* value, IFormatProvider* provider);


[4981] [VB] Public Shared Function ToChar(ByVal value As Object, ByVal provider As IFormatProvider) As Char


[4982] [JScript] public static function ToChar(value: Object, provider: IFormatProvider) :Char;


[4983] Description


[4984] Converts the value of the specified Object to its equivalent Unicode character using the specified culture-specific formatting information.


[4985] Return Value: The Unicode character equivalent to the value of value.


[4986] The return value is the result of invoking the IConvertible.ToChar method of the underlying type of value. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[4987] ToChar


[4988] [C#] public static char ToChar(string value, IFormatProvider provider);


[4989] [C++] public: static_wchar_t ToChar(String* value, IFormatProvider* provider);


[4990] [VB] Public Shared Function ToChar(ByVal value As String, ByVal provider As IFormatProvider) As Char


[4991] [JScript] public static function ToChar(value: String, provider: IFormatProvider) : Char;


[4992] Description


[4993] Converts the first character of a String to a Unicode character using specified culture-specific formatting information.


[4994] Return Value: The Unicode character equivalent to the first and only character in value.value is null.


[4995] value must be null or a String containing a single character. A System.String of length 1 or null. (Reserved) An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[4996] ToDateTime


[4997] [C#] public static DateTime ToDateTime(bool value);


[4998] [C++] public: static DateTime ToDateTime(bool value);


[4999] [VB] Public Shared Function ToDateTime(ByVal value As Boolean) As DateTime


[5000] [JScript] public static function ToDateTime(value: Boolean): DateTime;


[5001] Description


[5002] Calling this method always throws System.InvalidCastException.


[5003] This method is reserved for future use. A Boolean value.


[5004] ToDateTime


[5005] [C#] public static DateTime ToDateTime(byte value);


[5006] [C++] public: static DateTime ToDateTime(unsigned char value);


[5007] [VB] Public Shared Function ToDateTime(ByVal value As Byte) As DateTime


[5008] [JScript] public static function ToDateTime(value: Byte): DateTime;


[5009] Description


[5010] Calling this method always throws System.InvalidCastException.


[5011] This method is reserved for future use. An 8-bit unsigned integer.


[5012] ToDateTime


[5013] [C#] public static DateTime ToDateTime(char value);


[5014] [C++] public: static DateTime ToDateTime(_wchar_t value);


[5015] [VB] Public Shared Function ToDateTime(ByVal value As Char) As DateTime


[5016] [JScript] public static function ToDateTime(value: Char): DateTime;


[5017] Description


[5018] Calling this method always throws System.InvalidCastException.


[5019] This method is reserved for future use. A Unicode character.


[5020] ToDateTime


[5021] [C#] public static DateTime ToDateTime(DateTime value);


[5022] [C++] public: static DateTime ToDateTime(DateTime value);


[5023] [VB] Public Shared Function ToDateTime(ByVal value As DateTime) As DateTime


[5024] [JScript] public static function ToDateTime(value: DateTime): DateTime;


[5025] Converts a specified value to a DateTime.


[5026] Description


[5027] Returns the specified DateTime; no actual conversion is performed. A System.DateTime.


[5028] ToDateTime


[5029] [C#] public static DateTime ToDateTime(decimal value);


[5030] [C++] public: static DateTime ToDateTime(Decimal value);


[5031] [VB] Public Shared Function ToDateTime(ByVal value As Decimal) As DateTime


[5032] [JScript] public static function ToDateTime(value: Decimal): DateTime;


[5033] Description


[5034] Calling this method always throws System.InvalidCastException.


[5035] This method is reserved for future use. A System.Decimal value.


[5036] ToDateTime


[5037] [C#] public static DateTime ToDateTime(double value);


[5038] [C++] public: static DateTime ToDateTime(double value);


[5039] [VB] Public Shared Function ToDateTime(ByVal value As Double) As DateTime


[5040] [JScript] public static function ToDateTime(value: double): DateTime;


[5041] Description


[5042] Calling this method always throws System.InvalidCastException.


[5043] This method is reserved for future use. A double-precision floating point value.


[5044] ToDateTime


[5045] [C#] public static DateTime ToDateTime(short value);


[5046] [C++] public: static DateTime ToDateTime(short value);


[5047] [VB] Public Shared Function ToDateTime(ByVal value As Short) As DateTime


[5048] [JScript] public static function ToDateTime(value: Int16): DateTime;


[5049] Description


[5050] Calling this method always throws System.InvalidCastException.


[5051] This method is reserved for future use. A 16-bit signed integer.


[5052] ToDateTime


[5053] [C#] public static DateTime ToDateTime(int value);


[5054] [C++] public: static DateTime ToDateTime(int value);


[5055] [VB] Public Shared Function ToDateTime(ByVal value As Integer) As DateTime


[5056] [JScript] public static function ToDateTime(value: int): DateTime;


[5057] Description


[5058] Calling this method always throws System.InvalidCastException.


[5059] This method is reserved for future use. A 32-bit signed integer.


[5060] ToDateTime


[5061] [C#] public static DateTime ToDateTime(long value);


[5062] [C++] public: static DateTime ToDateTime(_int64 value);


[5063] [VB] Public Shared Function ToDateTime(ByVal value As Long) As DateTime


[5064] [JScript] public static function ToDateTime(value: long): DateTime;


[5065] Description


[5066] Calling this method always throws System.InvalidCastException.


[5067] This method is reserved for future use. A 64-bit signed integer.


[5068] ToDateTime


[5069] [C#] public static DateTime ToDateTime(object value);


[5070] [C++] public: static DateTime ToDateTime(Object* value);


[5071] [VB] Public Shared Function ToDateTime(ByVal value As Object) As DateTime


[5072] [JScript] public static function ToDateTime(value: Object): DateTime; Converts a specified value to a DateTime.


[5073] Description


[5074] Converts the value of the specified Object to a DateTime.


[5075] Return Value: A DateTime equivalent to the value of value, or zero if value is null.


[5076] The return value is the result of invoking the IConvertible.ToDateTime method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[5077] ToDateTime


[5078] [C#] public static DateTime ToDateTime(sbyte value);


[5079] [C++] public: static DateTime ToDateTime(char value);


[5080] [VB] Public Shared Function ToDateTime(ByVal value As SByte) As DateTime


[5081] [JScript] public static function ToDateTime(value: SByte): DateTime;


[5082] Description


[5083] Calling this method always throws System.InvalidCastException.


[5084] This method is reserved for future use. An 8-bit signed integer.


[5085] ToDateTime


[5086] [C#] public static DateTime ToDateTime(float value);


[5087] [C++] public: static DateTime ToDateTime(float value);


[5088] [VB] Public Shared Function ToDateTime(ByVal value As Single) As DateTime


[5089] [JScript] public static function ToDateTime(value: float): DateTime;


[5090] Description


[5091] Calling this method always throws System.InvalidCastException.


[5092] This method is reserved for future use. A single-precision floating point value.


[5093] ToDateTime


[5094] [C#] public static DateTime ToDateTime(string value);


[5095] [C++] public: static DateTime ToDateTime(String* value);


[5096] [VB] Public Shared Function ToDateTime(ByVal value As String) As DateTime


[5097] [JScript] public static function ToDateTime(value: String): DateTime;


[5098] Description


[5099] Converts the specified String representation of a date and time to an equivalent DateTime.


[5100] Return Value: A DateTime equivalent to the value of value.


[5101] The return value is the result of invoking the System.DateTime.Parse(System.String) method on value. A System.String containing a date and time to convert.


[5102] ToDateTime


[5103] [C#] public static DateTime ToDateTime(ushort value);


[5104] [C++] public: static DateTime ToDateTime(unsigned short value);


[5105] [VB] Public Shared Function ToDateTime(ByVal value As UInt16) As DateTime


[5106] [JScript] public static function ToDateTime(value: UInt16): DateTime;


[5107] Description


[5108] Calling this method always throws System.InvalidCastException.


[5109] This method is reserved for future use. A 16-bit unsigned integer.


[5110] ToDateTime


[5111] [C#] public static DateTime ToDateTime(uint value);


[5112] [C++] public: static DateTime ToDateTime(unsigned int value);


[5113] [VB] Public Shared Function ToDateTime(ByVal value As UInt32) As DateTime


[5114] [JScript] public static function ToDateTime(value: UInt32): DateTime;


[5115] Description


[5116] Calling this method always throws System.InvalidCastException.


[5117] This method is reserved for future use. A 32-bit unsigned integer.


[5118] ToDateTime


[5119] [C#] public static DateTime ToDateTime(ulong value);


[5120] [C++] public: static DateTime ToDateTime(unsigned_int64 value);


[5121] [VB] Public Shared Function ToDateTime(ByVal value As UInt64) As DateTime


[5122] [JScript] public static function ToDateTime(value: UInt64): DateTime;


[5123] Description


[5124] Calling this method always throws System.InvalidCastException.


[5125] This method is reserved for future use. A 64-bit unsigned integer.


[5126] ToDateTime


[5127] [C#] public static DateTime ToDateTime(object value, IFormatProvider provider);


[5128] [C++] public: static DateTime ToDateTime(Object* value, IFormatProvider* provider);


[5129] [VB] Public Shared Function ToDateTime(ByVal value As Object, ByVal provider As IFormatProvider) As DateTime


[5130] [JScript] public static function ToDateTime(value: Object, provider: IFormatProvider): DateTime;


[5131] Description


[5132] Converts the value of the specified Object to a DateTime using the specified culture-specific formatting information.


[5133] Return Value: A DateTime equivalent to the value of value, or zero if value is null.


[5134] The return value is the result of invoking the IConvertible.ToDateTime method of the underlying type of value. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5135] ToDateTime


[5136] [C#] public static DateTime ToDateTime(string value, IFormatprovider provider);


[5137] [C++] public: static DateTime ToDateTime(String* value, IFormatProvider* provider);


[5138] [VB] Public Shared Function ToDateTime(ByVal value As String, ByVal provider As IFormatProvider) As DateTime


[5139] [JScript] public static function ToDateTime(value: String, provider: IFormatProvider): DateTime;


[5140] Description


[5141] Converts the specified String representation of a number to an equivalent DateTime using the specified culture-specific formatting information.


[5142] Return Value: A DateTime equivalent to the value of value.


[5143] The return value is the result of invoking the System.DateTime.Parse(System.String) method on value. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5144] ToDecimal


[5145] [C#] public static decimal ToDecimal(bool value);


[5146] [C++] public: static Decimal ToDecimal(bool value);


[5147] [VB] Public Shared Function ToDecimal(ByVal value As Boolean) As Decimal


[5148] [JScript] public static function ToDecimal(value: Boolean): Decimal;


[5149] Description


[5150] Converts the value of the specified Boolean value to the equivalent Decimal number.


[5151] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[5152] ToDecimal


[5153] [C#] public static decimal ToDecimal(byte value);


[5154] [C++] public: static Decimal ToDecimal(unsigned char value);


[5155] [VB] Public Shared Function ToDecimal(ByVal value As Byte) As Decimal


[5156] [JScript] public static function ToDecimal(value: Byte): Decimal;


[5157] Description


[5158] Converts the value of the specified 8-bit unsigned integer to the equivalent Decimal number.


[5159] Return Value: The Decimal number equivalent to the value of value. An 8-bit unsigned integer.


[5160] ToDecimal


[5161] [C#] public static decimal ToDecimal(char value);


[5162] [C++] public: static Decimal ToDecimal(_wchar_t value);


[5163] [VB] Public Shared Function ToDecimal(ByVal value As Char) As Decimal


[5164] [JScript] public static function ToDecimal(value: Char): Decimal;


[5165] Description


[5166] Calling this method always throws System.InvalidCastException.


[5167] This method is reserved for future use. A Unicode character.


[5168] ToDecimal


[5169] [C#] public static decimal ToDecimal(DateTime value);


[5170] [C++] public: static Decimal ToDecimal(DateTime value);


[5171] [VB] Public Shared Function ToDecimal(ByVal value As DateTime) As Decimal


[5172] [JScript] public static function ToDecimal(value: DateTime): Decimal;


[5173] Description


[5174] Calling this method always throws System.InvalidCastException.


[5175] This method is reserved for future use. A System.DateTime.


[5176] ToDecimal


[5177] [C#] public static decimal ToDecimal(decimal value);


[5178] [C++] public: static Decimal ToDecimal(Decimal value);


[5179] [VB] Public Shared Function ToDecimal(ByVal value As Decimal) As Decimal


[5180] [JScript] public static function ToDecimal(value: Decimal): Decimal;


[5181] Description


[5182] Returns the specified Decimal number; no actual conversion is performed.


[5183] Return Value: value is returned unchanged. A Decimal number.


[5184] ToDecimal


[5185] [C+] public static decimal ToDecimal(double value);


[5186] [C++] public: static Decimal ToDecimal(double value);


[5187] [VB] Public Shared Function ToDecimal(ByVal value As Double) As Decimal


[5188] [JScript] public static function ToDecimal(value: double): Decimal;


[5189] Description


[5190] Converts the value of the specified double-precision floating point number to an equivalent Decimal number.


[5191] Return Value: A Decimal number equivalent to the value of value. A double-precision floating point number.


[5192] ToDecimal


[5193] [C#] public static decimal ToDecimal(short value);


[5194] [C++] public: static Decimal ToDecimal(short value);


[5195] [VB] Public Shared Function ToDecimal(ByVal value As Short) As Decimal


[5196] [JScript] public static function ToDecimal(value: Int16): Decimal;


[5197] Description


[5198] Converts the value of the specified 16-bit signed integer to an equivalent Decimal number.


[5199] Return Value: A Decimal number equivalent to the value of value. A 16-bit signed integer.


[5200] ToDecimal


[5201] [C#] public static decimal ToDecimal(int value);


[5202] [C++] public: static Decimal ToDecimal(int value);


[5203] [VB] Public Shared Function ToDecimal(ByVal value As Integer) As Decimal


[5204] [JScript] public static function ToDecimal(value: int): Decimal;


[5205] Description


[5206] Converts the value of the specified 32-bit signed integer to an equivalent Decimal number.


[5207] Return Value: A Decimal number equivalent to the value of value. A 32-bit signed integer.


[5208] ToDecimal


[5209] [C#] public static decimal ToDecimal(long value);


[5210] [C++] public: static Decimal ToDecimal(13 int64 value);


[5211] [VB] Public Shared Function ToDecimal(ByVal value As Long) As Decimal


[5212] [JScript] public static function ToDecimal(value: long): Decimal;


[5213] Description


[5214] Converts the value of the specified 64-bit signed integer to an equivalent Decimal number.


[5215] Return Value: A Decimal number equivalent to the value of value. A 64-bit signed integer.


[5216] ToDecimal


[5217] [C#] public static decimal ToDecimal(object value);


[5218] [C++] public: static Decimal ToDecimal(Object* value);


[5219] [VB] Public Shared Function ToDecimal(ByVal value As Object) As Decimal


[5220] [JScript] public static function ToDecimal(value: Object): Decimal; Converts a specified value to a Decimal number.


[5221] Description


[5222] Converts the value of the specified Object to a Decimal number.


[5223] Return Value: A Decimal number equivalent to the value of value, or zero if value is null.


[5224] The return value is the result of invoking the IConvertible.ToDecimal method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[5225] ToDecimal


[5226] [C#] public static decimal ToDecimal(sbyte value);


[5227] [C++] public: static Decimal ToDecimal(char value);


[5228] [VB] Public Shared Function ToDecimal(ByVal value As SByte) As Decimal


[5229] [JScript] public static function ToDecimal(value: SByte): Decimal;


[5230] Description


[5231] Converts the value of the specified 8-bit signed integer to the equivalent Decimal number.


[5232] Return Value: The 8-bit signed integer equivalent to the value of value. An 8-bit signed integer.


[5233] ToDecimal


[5234] [C#] public static decimal ToDecimal(float value);


[5235] [C++] public: static Decimal ToDecimal(float value);


[5236] [VB] Public Shared Function ToDecimal(ByVal value As Single) As Decimal


[5237] [JScript] public static function ToDecimal(value: float): Decimal;


[5238] Description


[5239] Converts the value of the specified single-precision floating point number to the equivalent Decimal number.


[5240] Return Value: A Decimal number equivalent to the value of value. A single-precision floating point number.


[5241] ToDecimal


[5242] [C#] public static decimal ToDecimal(string value);


[5243] [C++] public: static Decimal ToDecimal(String* value);


[5244] [VB] Public Shared Function ToDecimal(ByVal value As String) As Decimal


[5245] [JScript] public static function ToDecimal(value: String): Decimal;


[5246] Description


[5247] Converts the specified String representation of a number to an equivalent Decimal number.


[5248] Return Value: A Decimal number equivalent to the value of value.


[5249] The return value is the result of invoking the System.Decimal.Parse(System.String) method on value. A System.String containing a number to convert.


[5250] ToDecimal


[5251] [C#] public static decimal ToDecimal(ushort value);


[5252] [C++] public: static Decimal ToDecimal(unsigned short value);


[5253] [VB] Public Shared Function ToDecimal(ByVal value As UInt16) As Decimal


[5254] [JScript] public static function ToDecimal(value: UInt16): Decimal;


[5255] Description


[5256] Converts the value of the specified 16-bit unsigned integer to the equivalent Decimal number.


[5257] Return Value: The Decimal number equivalent to the value of value. A 16-bit unsigned integer.


[5258] ToDecimal


[5259] [C#] public static decimal ToDecimal(uint value);


[5260] [C++] public: static Decimal ToDecimal(unsigned int value);


[5261] [VB] Public Shared Function ToDecimal(ByVal value As UInt32) As Decimal


[5262] [JScript] public static function ToDecimal(value: UInt32): Decimal;


[5263] Description


[5264] Converts the value of the specified 32-bit unsigned integer to an equivalent Decimal number.


[5265] Return Value: A Decimal number equivalent to the value of value. A 32-bit unsigned integer.


[5266] ToDecimal


[5267] [C#] public static decimal ToDecimal(ulong value);


[5268] [C++] public: static Decimal ToDecimal(unsigned_int64 value);


[5269] [VB] Public Shared Function ToDecimal(ByVal value As UInt64) As Decimal


[5270] [JScript] public static function ToDecimal(value: UInt64): Decimal;


[5271] Description


[5272] Converts the value of the specified 64-bit unsigned integer to an equivalent Decimal number.


[5273] Return Value: A Decimal number equivalent to the value of value. A 64-bit unsigned integer.


[5274] ToDecimal


[5275] [C#] public static decimal ToDecimal(object value, IFormatProvider provider);


[5276] [C++] public: static Decimal ToDecimal(Object* value, IFormatProvider* provider);


[5277] [VB] Public Shared Function ToDecimal(ByVal value As Object, ByVal provider As IFormatProvider) As Decimal


[5278] [JScript] public static function ToDecimal(value: Object, provider: IFormatProvider): Decimal;


[5279] Description


[5280] Converts the value of the specified Object to an Decimal number using the specified culture-specific formatting information.


[5281] Return Value: A Decimal number equivalent to the value of value, or zero if value is null.


[5282] The return value is the result of invoking the IConvertible.ToDecimal method of the underlying type of value. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5283] ToDecimal


[5284] [C+] public static decimal ToDecimal(string value, IFormatProvider provider);


[5285] [C++] public: static Decimal ToDecimal(String* value, IFormatProvider* provider);


[5286] [VB] Public Shared Function ToDecimal(ByVal value As String, ByVal provider As IFormatProvider) As Decimal


[5287] [JScript] public static function ToDecimal(value: String, provider: IFormatProvider): Decimal;


[5288] Description


[5289] Converts the specified String representation of a number to an equivalent Decimal number using the specified culture-specific formatting information.


[5290] Return Value: A Decimal number equivalent to the value of value.


[5291] The return value is the result of invoking the System.Decimal.Parse(System.String) method on value. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5292] ToDouble


[5293] [C++] public static double ToDouble(bool value);


[5294] [C++] public: static double ToDouble(bool value);


[5295] [VB] Public Shared Function ToDouble(ByVal value As Boolean) As Double


[5296] [JScript] public static function ToDouble(value: Boolean): double;


[5297] Description


[5298] Converts the value of the specified Boolean value to the equivalent double-precision floating point number.


[5299] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[5300] ToDouble


[5301] [C#] public static double ToDouble(byte value);


[5302] [C++] public: static double ToDouble(unsigned char value);


[5303] [VB] Public Shared Function ToDouble(ByVal value As Byte) As Double


[5304] [JScript] public static function ToDouble(value: Byte): double;


[5305] Description


[5306] Converts the value of the specified 8-bit unsigned integer to the equivalent double-precision floating point number.


[5307] Return Value: The double-precision floating point number equivalent to the value of value. An 8-bit unsigned integer.


[5308] ToDouble


[5309] [C#] public static double ToDouble(char value);


[5310] [C++] public: static double ToDouble(_wchart_value);


[5311] [VB] Public Shared Function ToDouble(ByVal value As Char) As Double


[5312] [JScript] public static function ToDouble(value: Char): double;


[5313] Description


[5314] Calling this method always throws System.InvalidCastException.


[5315] This method is reserved for future use. A Unicode character.


[5316] ToDouble


[5317] [C#] public static double ToDouble(DateTime value);


[5318] [C++] public: static double ToDouble(DateTime value);


[5319] [VB] Public Shared Function ToDouble(ByVal value As DateTime) As Double


[5320] [JScript] public static function ToDouble(value DateTime): double;


[5321] Description


[5322] Calling this method always throws System.InvalidCastException.


[5323] This method is reserved for future use. A System.DateTime.


[5324] ToDouble


[5325] [C#] public static double ToDouble(decimal value);


[5326] [C++] public: static double ToDouble(Decimal value);


[5327] [VB] Public Shared Function ToDouble(ByVal value As Decimal) As Double


[5328] [JScript] public static function ToDouble(value: Decimal): double;


[5329] Description


[5330] Converts the value of the specified Decimal number to an equivalent double-precision floating point number.


[5331] Return Value: A double-precision floating point number equivalent to the value of value. A System.Decimal number.


[5332] ToDouble


[5333] [C+] public static double ToDouble(double value);


[5334] [C++] public: static double ToDouble(double value);


[5335] [VB] Public Shared Function ToDouble(ByVal value As Double) As Double


[5336] [JScript] public static function ToDouble(value: double): double;


[5337] Description


[5338] Returns the specified double-precision floating point number; no actual conversion is performed.


[5339] Return Value: value is returned unchanged. A double-precision floating point number.


[5340] ToDouble


[5341] [C#] public static double ToDouble(short value);


[5342] [C++] public: static double ToDouble(short value);


[5343] [VB] Public Shared Function ToDouble(ByVal value As Short) As Double


[5344] [JScript] public static function ToDouble(value: Intl 6): double;


[5345] Description


[5346] Converts the value of the specified 16-bit signed integer to an equivalent double-precision floating point number.


[5347] Return Value: A double-precision floating point number equivalent to the value of value. A 16-bit signed integer.


[5348] ToDouble


[5349] [C#] public static double ToDouble(int value);


[5350] [C++] public: static double ToDouble(int value);


[5351] [VB] Public Shared Function ToDouble(ByVal value As Integer) As Double


[5352] [JScript] public static function ToDouble(value: int): double;


[5353] Description


[5354] Converts the value of the specified 32-bit signed integer to an equivalent double-precision floating point number.


[5355] Return Value: A double-precision floating point number equivalent to the value of value. A 32-bit signed integer.


[5356] ToDouble


[5357] [C#] public static double ToDouble(long value);


[5358] [C++] public: static double(_ToDouble_int64 value);


[5359] [VB] Public Shared Function ToDouble(ByVal value As Long) As Double


[5360] [JScript] public static function ToDouble(value: long): double;


[5361] Description


[5362] Converts the value of the specified 64-bit signed integer to an equivalent double-precision floating point number.


[5363] Return Value: A double-precision floating point number equivalent to the value of value. A 64-bit signed integer.


[5364] ToDouble


[5365] [C#] public static double ToDouble(object value);


[5366] [C++] public: static double ToDouble(Object* value);


[5367] [VB] Public Shared Function ToDouble(ByVal value As Object) As Double


[5368] [JScript] public static function ToDouble(value: Object): double; Converts a specified value to a double-precision floating point number.


[5369] Description


[5370] Converts the value of the specified Object to a double-precision floating point number.


[5371] Return Value: A double-precision floating point number equivalent to the value of value, or zero if value is null.


[5372] The return value is the result of invoking the IConvertible.ToDouble method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[5373] ToDouble


[5374] [C#] public static double ToDouble(sbyte value);


[5375] [C++] public: static double ToDouble(char value);


[5376] [VB] Public Shared Function ToDouble(ByVal value As SByte) As Double


[5377] [JScript] public static function ToDouble(value: SByte): double;


[5378] Description


[5379] Converts the value of the specified 8-bit signed integer to the equivalent double-precision floating point number.


[5380] Return Value: The 8-bit signed integer equivalent to the value of value. An 8-bit signed integer.


[5381] ToDouble


[5382] [C#] public static double ToDouble(float value);


[5383] [C++] public: static double ToDouble(float value);


[5384] [VB] Public Shared Function ToDouble(ByVal value As Single) As Double


[5385] [JScript] public static function ToDouble(value: float): double;


[5386] Description


[5387] Converts the value of the specified single-precision floating point number to an equivalent double-precision floating point number.


[5388] Return Value: A double-precision floating point number equivalent to the value of value. A single-precision floating point number.


[5389] ToDouble


[5390] [C#] public static double ToDouble(string value);


[5391] [C++] public: static double ToDouble(String* value);


[5392] [VB] Public Shared Function ToDouble(ByVal value As String) As Double


[5393] [JScript] public static function ToDouble(value: String): double;


[5394] Description


[5395] Converts the specified String representation of a number to an equivalent double-precision floating point number.


[5396] Return Value: A double-precision floating point number equivalent to the value of value.


[5397] The return value is the result of invoking the System.Double.Parse(System.String) method on value. A System.String containing a number to convert.


[5398] ToDouble


[5399] [C#] public static double ToDouble(ushort value);


[5400] [C++] public: static double ToDouble(unsigned short value);


[5401] [VB] Public Shared Function ToDouble(ByVal value As UInt16) As Double


[5402] [JScript] public static function ToDouble(value: UInt16): double;


[5403] Description


[5404] Converts the value of the specified 16-bit unsigned integer to the equivalent double-precision floating point number.


[5405] Return Value: The double-precision floating point number equivalent to the value of value. A 16-bit unsigned integer.


[5406] ToDouble


[5407] [C#] public static double ToDouble(uint value);


[5408] [C++] public: static double ToDouble(unsigned int value);


[5409] [VB] Public Shared Function ToDouble(ByVal value As UInt32) As Double


[5410] [JScript] public static function ToDouble(value: UInt32): double;


[5411] Description


[5412] Converts the value of the specified 32-bit unsigned integer to an equivalent double-precision floating point number.


[5413] Return Value: A double-precision floating point number equivalent to the value of value. A 32-bit unsigned integer.


[5414] ToDouble


[5415] [C#] public static double ToDouble(ulong value);


[5416] [C++] public: static double ToDouble(unsigned_int64 value);


[5417] [VB] Public Shared Function ToDouble(ByVal value As UInt64) As Double


[5418] [JScript] public static function ToDouble(value: UInt64): double;


[5419] Description


[5420] Converts the value of the specified 64-bit unsigned integer to an equivalent double-precision floating point number.


[5421] Return Value: A double-precision floating point number equivalent to the value of value. A 64-bit unsigned integer.


[5422] ToDouble


[5423] C#] public static double ToDouble(object value, IFormatProvider provider);


[5424] [C++] public: static double ToDouble(Object* value, IFormatProvider* provider);


[5425] [VB] Public Shared Function ToDouble(ByVal value As Object, ByVal provider As IFormatProvider) As Double


[5426] [JScript] public static function ToDouble(value: Object, provider: IFormatProvider): double;


[5427] Description


[5428] Converts the value of the specified Object to an double-precision floating point number using the specified culture-specific formatting information.


[5429] Return Value: A double-precision floating point number equivalent to the value of value, or zero if value is null.


[5430] The return value is the result of invoking the IConvertible.ToDouble >l method of the underlying type of value. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5431] ToDouble


[5432] [C#] public static double ToDouble(string value, IFormatProvider provider);


[5433] [C++] public: static double ToDouble(String* value, IFormatProvider* provider);


[5434] [VB] Public Shared Function ToDouble(ByVal value As String, ByVal provider IFormatProvider) As Double


[5435] [JScript] public static function ToDouble(value: String, provider: IFormatProvider): double;


[5436] Description


[5437] Converts the specified String representation of a number to an equivalent double-precision floating point number using the specified culture-specific formatting information.


[5438] Return Value: A double-precision floating point number equivalent to the value of value.


[5439] The return value is the result of invoking the System.Double.Parse(System.String) method on value. A System.String containing a number to convert. An System.lFormatProvider interface implementation that supplies culture-specific formatting information.


[5440] ToInt16


[5441] [C#] public static short ToInt16(bool value);


[5442] [C++] public: static short ToInt16(bool value);


[5443] [VB] Public Shared Function ToInt16(ByVal value As Boolean) As Short


[5444] [JScript] public static function ToInt16(value: Boolean): Int16;


[5445] Description


[5446] Converts the value of the specified Boolean value to the equivalent 16-bit signed integer.


[5447] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[5448] ToInt16


[5449] [C#] public static short ToInt16(byte value);


[5450] [C++] public: static short ToInt16(unsigned char value);


[5451] [VB] Public Shared Function ToInt16(ByVal value As Byte) As Short


[5452] [JScript] public static function ToInt16(value: Byte): Int 16;


[5453] Description


[5454] Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit signed integer.


[5455] Return Value: The 16-bit signed integer equivalent to the value of value. An 8-bit unsigned integer.


[5456] ToInt16


[5457] [C#] public static short ToInt16(char value);


[5458] [C++] public: static short ToInt16(_wchar_t value);


[5459] [VB] Public Shared Function ToInt16(ByVal value As Char) As Short


[5460] [JScript] public static function ToInt16(value: Char): Int16;


[5461] Description


[5462] Converts the value of the specified Unicode character to the equivalent 16-bit signed integer.


[5463] Return Value: The 16-bit signed integer equivalent to value. A Unicode character.


[5464] ToInt16


[5465] [C#] public static short ToInt16(DateTime value);


[5466] [C++] public: static short ToInt16(DateTime value);


[5467] [VB] Public Shared Function ToInt16(ByVal value As DateTime) As Short


[5468] [JScript] public static function ToInt16(value: DateTime): Int16;


[5469] Description


[5470] Calling this method always throws System.InvalidCastException.


[5471] This method is reserved for future use. A System.DateTime.


[5472] ToInt16


[5473] [C#] public static short ToInt16(decimal value);


[5474] [C++] public: static short ToInt16(Decimal value);


[5475] [VB] Public Shared Function ToInt16(ByVal value As Decimal) As Short


[5476] [JScript] public static function ToInt16(value: Decimal): Int16;


[5477] Description


[5478] Converts the value of the specified Decimal number to an equivalent 16-bit signed integer.


[5479] Return Value: value rounded to the nearest 16-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A System.Decimal number.


[5480] ToInt16


[5481] [C#] public static short ToInt16(double value);


[5482] [C++] public: static short ToInt16(double value);


[5483] [VB] Public Shared Function ToInt16(ByVal value As Double) As Short


[5484] [JScript] public static function ToInt16(value: double): Int16;


[5485] Description


[5486] Converts the value of the specified double-precision floating point number to an equivalent 16-bit signed integer.


[5487] Return Value: value rounded to the nearest 16-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A double-precision floating point number.


[5488] ToInt16


[5489] [C#] public static short ToInt16(short value);


[5490] [C++] public: static short ToInt16(short value);


[5491] [VB] Public Shared Function ToInt16(ByVal value As Short) As Short


[5492] [JScript] public static function ToInt16(value Int16): Int16;


[5493] Description


[5494] Returns the specified 16-bit signed integer; no actual conversion is performed.


[5495] Return Value: value is returned unchanged. A 16-bit signed integer.


[5496] ToInt16


[5497] [C#] public static short ToInt16(int value);


[5498] [C++] public: static short ToInt16(int value);


[5499] [VB] Public Shared Function ToInt16(ByVal value As Integer) As Short


[5500] [JScript] public static function ToInt16(value: int): Int16;


[5501] Description


[5502] Converts the value of the specified 32-bit signed integer to an equivalent 16-bit signed integer.


[5503] Return Value: The 16-bit signed integer equivalent of value. A 32-bit signed integer.


[5504] ToInt16


[5505] [C#] public static short ToInt16(long value);


[5506] [C++] public: static short ToInt16(_int64 value);


[5507] [VB] Public Shared Function ToInt16(ByVal value As Long) As Short


[5508] [JScript] public static function ToInt16(value: long): Int16;


[5509] Description


[5510] Converts the value of the specified 64-bit signed integer to an equivalent 16-bit signed integer.


[5511] Return Value: A 16-bit signed integer equivalent to the value of value. A 64-bit signed integer.


[5512] ToInt16


[5513] [C#] public static short ToInt16(object value);


[5514] [C++] public: static short ToInt16(Object* value);


[5515] [VB] Public Shared Function ToInt16(ByVal value As Object) As Short


[5516] [JScript] public static function ToInt16(value: Object): Int16; Converts a specified value to a 16-bit signed integer.


[5517] Description


[5518] Converts the value of the specified Object to a 16-bit signed integer.


[5519] Return Value: A 16-bit signed integer equivalent to the value of value, or zero if value is null.


[5520] The return value is the result of invoking the IConvertible.ToInt16 method of the underlying type of value. An System.Object that implements the System.lConvertible interface or null.


[5521] ToInt16


[5522] [C#] public static short ToInt16(sbyte value);


[5523] [C++] public: static short ToInt16(char value);


[5524] [VB] Public Shared Function ToInt16(ByVal value As SByte) As Short


[5525] [JScript] public static function ToInt16(value: SByte): Int16;


[5526] Description


[5527] Converts the value of the specified 8-bit signed integer to the equivalent 16-bit signed integer.


[5528] Return Value: The 8-bit signed integer equivalent to the value of value. An 8-bit signed integer.


[5529] ToInt16


[5530] [C#] public static short ToInt16(float value);


[5531] [C++] public: static short ToInt16(float value);


[5532] [VB] Public Shared Function ToInt16(ByVal value As Single) As Short


[5533] [JScript] public static function ToInt16(value: float): Int16;


[5534] Description


[5535] Converts the value of the specified single-precision floating point number to an equivalent 16-bit signed integer.


[5536] Return Value: value rounded to the nearest 16-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A single-precision floating point number.


[5537] ToInt16


[5538] C#] public static short ToInt16(string value);


[5539] [C++] public: static short Toint16(String* value);


[5540] [VB] Public Shared Function ToInt16(ByVal value As String) As Short


[5541] [JScript] public static function ToInt16(value: String): Int16;


[5542] Description


[5543] Converts the specified String representation of a number to an equivalent 16-bit signed integer.


[5544] Return Value: A 16-bit signed integer equivalent to the value of value. A System.String containing a number to convert.


[5545] ToInt16


[5546] [C#] public static short ToInt16(ushort value);


[5547] [C++] public: static short ToInt16(unsigned short value);


[5548] [VB] Public Shared Function ToInt16(ByVal value As UInt16) As Short


[5549] [JScript] public static function ToInt16(value: UInt16): Int16;


[5550] Description


[5551] Converts the value of the specified 16-bit unsigned integer to the equivalent 16-bit signed integer.


[5552] Return Value: The 16-bit signed integer equivalent to the value of value. A 16-bit unsigned integer.


[5553] ToInt16


[5554] [C#] public static short ToInt16(uint value);


[5555] [C++] public: static short ToInt16(unsigned int value);


[5556] [VB] Public Shared Function ToInt16(ByVal value As UInt32) As Short


[5557] [JScript] public static function ToInt16(value: UInt32): Int16;


[5558] Description


[5559] Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit signed integer.


[5560] Return Value: A 16-bit signed integer equivalent to the value of value. A 32-bit unsigned integer.


[5561] ToInt16


[5562] [C#] public static short ToInt16(ulong value);


[5563] [C++] public: static short ToInt16(unsigned int64 value);


[5564] [VB] Public Shared Function ToInt16(ByVal value As UInt64) As Short


[5565] [JScript] public static function ToInt16(value: UInt64): Int16;


[5566] Description


[5567] Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit signed integer.


[5568] Return Value: A 16-bit signed integer equivalent to the value of value. A 64-bit unsigned integer.


[5569] ToInt16


[5570] [C#] public static short ToInt16(object value, IFormatProvider provider);


[5571] [C++] public: static short ToInt16(Object* value, IFormatProvider* provider);


[5572] [VB] Public Shared Function ToInt16(ByVal value As Object, ByVal provider As IFormatProvider) As Short


[5573] [JScript] public static function ToInt16(value: Object, provider: IFormatProvider) : Int16;


[5574] Description


[5575] Converts the value of the specified Object to a 16-bit signed integer using the specified culture-specific formatting information.


[5576] Return Value: A 16-bit signed integer equivalent to the value of value, or zero if value is null.


[5577] provider enables the user to specify culture-specific conversion information about the contents of value. For example, if value is a String that represents a number, provider could supply culture-specific information about the notation used to represent that number. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5578] ToInt16


[5579] [C#] public static short ToInt16(string value, IFormatProvider provider);


[5580] [C++] public: static short ToInt16(String* value, IFormatProvider* provider);


[5581] [VB] Public Shared Function ToInt16(ByVal value As String, ByVal provider As IFormatProvider) As Short


[5582] [JScript] public static function ToInt16(value: String, provider: IFormatProvider) : Int16;


[5583] Description


[5584] Converts the specified String representation of a number to an equivalent 16-bit signed integer using specified culture-specific formatting information.


[5585] Return Value: A 16-bit signed integer equivalent to the value of value.


[5586] provider is an IFormatProvider instance that obtains a System.Globalization.NumberFormatlnfo object. The NumberFormatInfo object provides culture-specific information about the format of value. If provider is null, the NumberFormatInfo for the current culture is used. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5587] ToInt16


[5588] [C#] public static short ToInt16(string value, int fromBase);


[5589] [C++] public: static short ToInt16(String* value, int fromBase);


[5590] [VB] Public Shared Function ToInt16(ByVal value As String, ByVal fromBase As Integer) As Short


[5591] [JScript] public static function ToInt16(value: String, fromBase: int): Int16;


[5592] Description


[5593] Converts the String representation of a number in a specified base to an equivalent 16-bit signed integer.


[5594] Return Value: A 16-bit signed integer equivalent to the number in value. A System.String containing a number. The base of the number in value, which must be 2, 8, 10, or 16.


[5595] ToInt32


[5596] [C#] public static int ToInt32(bool value);


[5597] [C++] public: static int ToInt32(bool value);


[5598] [VB] Public Shared Function ToInt32(ByVal value As Boolean) As Integer


[5599] [JScript] public static function ToInt32(value: Boolean): int;


[5600] Description


[5601] Converts the value of the specified Boolean value to the equivalent 32-bit signed integer.


[5602] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[5603] ToInt32


[5604] [C#] public static int ToInt32(byte value);


[5605] [C++] public: static int ToInt32(unsigned char value);


[5606] [VB] Public Shared Function ToInt32(ByVal value As Byte) As Integer


[5607] [JScript] public static function ToInt32(value: Byte): int;


[5608] Description


[5609] Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit signed integer.


[5610] Return Value: The 32-bit signed integer equivalent to the value of value. An 8-bit unsigned integer.


[5611] ToInt32


[5612] [C#] public static int ToInt32(char value);


[5613] [C++] public: static int ToInt32(_wchar_t value);


[5614] [VB] Public Shared Function ToInt32(ByVal value As Char) As Integer


[5615] [JScript] public static function ToInt32(value: Char): int;


[5616] Description


[5617] Converts the value of the specified Unicode character to the equivalent 32-bit signed integer.


[5618] Return Value: The 32-bit signed integer equivalent to value. A Unicode character.


[5619] ToInt32


[5620] [C#] public static int ToInt32(DateTime value);


[5621] [C++] public: static int ToInt32(DateTime value);


[5622] [VB] Public Shared Function ToInt32(ByVal value As DateTime) As Integer


[5623] [JScript] public static function ToInt32(value: DateTime): int;


[5624] Description


[5625] Calling this method always throws System.InvalidCastException.


[5626] This method is reserved for future use. A System.DateTime.


[5627] ToInt32


[5628] [C+] public static int ToInt32(decimal value);


[5629] [C++] public: static int ToInt32(Decimal value);


[5630] [VB] Public Shared Function ToInt32(ByVal value As Decimal) As Integer


[5631] [JScript] public static function ToInt32(value: Decimal): int;


[5632] Description


[5633] Converts the value of the specified Decimal number to an equivalent 32-bit signed integer.


[5634] Return Value: value rounded to the nearest 32-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A System.Decimal number.


[5635] ToInt32


[5636] [C#] public static int ToInt32(double value);


[5637] [C++] public: static int ToInt32(double value);


[5638] [VB] Public Shared Function ToInt32(ByVal value As Double) As Integer


[5639] [JScript] public static function ToInt32(value: double): int;


[5640] Description


[5641] Converts the value of the specified double-precision floating point number to an equivalent 32-bit signed integer.


[5642] Return Value: value rounded to the nearest 32-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A double-precision floating point number.


[5643] ToInt32


[5644] [C#] public static int ToInt32(short value);


[5645] [C++] public: static int ToInt32(short value);


[5646] [VB] Public Shared Function ToInt32(ByVal value As Short) As Integer


[5647] [JScript] public static function ToInt32(value: Int16): int;


[5648] Description


[5649] Converts the value of the specified 16-bit signed integer to an equivalent 32-bit signed integer.


[5650] Return Value: A 32-bit signed integer equivalent to the value of value. A 16-bit signed integer.


[5651] ToInt32


[5652] [C#] public static int ToInt32(int value);


[5653] [C++] public: static int ToInt32(int value);


[5654] [VB] Pubic Shared Function ToInt32(ByVal value As Integer) As Integer


[5655] [JScript] public static function ToInt32(valaue: Int): Int;


[5656] Description


[5657] Returns the specified 32-bit signed integer; no actual conversion is


[5658] performed.


[5659] Return Value: value is returned unchanged. A 32-bit signed integer.


[5660] ToInt32


[5661] [C#] public static int ToInt32(long value);


[5662] [C++] public: static int ToInt32(_int64 value);


[5663] [VB] Public Shared Function ToInt32(ByVal value As Long) As Integer


[5664] [JScript] public static function ToInt32(value: long): int;


[5665] Description


[5666] Converts the value of the specified 64-bit signed integer to an equivalent 32-bit signed integer.


[5667] Return Value: A 32-bit signed integer equivalent to the value of value. A 64-bit signed integer.


[5668] ToInt32


[5669] [C#] public static int ToInt32(object value);


[5670] [C++] public: static int ToInt32(Object* value);


[5671] [VB] Public Shared Function ToInt32(ByVal value As Object) As Integer


[5672] [JScript] public static function ToInt32(value: Object): int; Converts a specified


[5673] value to a 32-bit signed integer.


[5674] Description


[5675] Converts the value of the specified Object to a 32-bit signed integer.


[5676] Return Value: A 32-bit signed integer equivalent to the value of value , or zero if value is null.


[5677] The return value is the result of invoking the IConvertible.ToInt32 method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[5678] ToInt32


[5679] [C#] public static int ToInt32(sbyte value);


[5680] [C++] public: static int ToInt32(char value);


[5681] [VB] Public Shared Function ToInt32(ByVal value As SByte) As Integer


[5682] [JScript] public static function ToInt32(value: SByte): int;


[5683] Description


[5684] Converts the value of the specified 8-bit signed integer to the equivalent 32-bit signed integer.


[5685] Return Value: The 8-bit signed integer equivalent to the value of value. An 8-bit signed integer.


[5686] ToInt32


[5687] [C#] public static int ToInt32(float value);


[5688] [C++] public: static int ToInt32(float value);


[5689] [VB] Public Shared Function ToInt32(ByVal value As Single) As Integer


[5690] JScript] public static function ToInt32(value: float): int;


[5691] Description


[5692] Converts the value of the specified single-precision floating point number to an equivalent 32-bit signed integer.


[5693] Return Value: value rounded to the nearest 32-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A single-precision floating point number.


[5694] ToInt32


[5695] [C#] public static int ToInt32(string value);


[5696] [C++] public: static int ToInt32(String* value);


[5697] [VB] Public Shared Function ToInt32(ByVal value As String) As Integer


[5698] [JScript] public static function ToInt32(value: String): int;


[5699] Description


[5700] Converts the specified String representation of a number to an equivalent 32-bit signed integer.


[5701] Return Value: A 32-bit signed integer equivalent to the value of value.


[5702] The return value is the result of invoking the System.Int32.Parse(System.String) method on value. A System.String containing a number to convert.


[5703] ToInt32


[5704] [C#] public static int ToInt32(ushort value);


[5705] [C++] public: static int ToInt32(unsigned short value);


[5706] [VB] Public Shared Function ToInt32(ByVal value As UInt16) As Integer


[5707] [JScript] public static function ToInt32(value: UInt16): int;


[5708] Description


[5709] Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit signed integer.


[5710] Return Value: The 32-bit signed integer equivalent to the value of value. A 16-bit unsigned integer.


[5711] ToInt32


[5712] [C#] public static int ToInt32(uint value);


[5713] [C++] public: static int ToInt32(unsigned int value);


[5714] [VB] Public Shared Function ToInt32(ByVal value As UInt32) As Integer


[5715] [JScript] public static function ToInt32(value: UInt32): int;


[5716] Description


[5717] Converts the value of the specified 32-bit unsigned integer to an equivalent 32-bit signed integer.


[5718] Return Value: A 32-bit signed integer equivalent to the value of value. A 32-bit unsigned integer.


[5719] ToInt32


[5720] [C#] public static int ToInt32(ulong value);


[5721] [C++] public: static int ToInt32(unsigned int64 value);


[5722] [VB] Public Shared Function ToInt32(ByVal value As UInt64) As Integer


[5723] [JScript] public static function ToInt32(value: UInt64): int;


[5724] Description


[5725] Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit signed integer.


[5726] Return Value: A 32-bit signed integer equivalent to the value of value. A 64-bit unsigned integer.


[5727] ToInt32


[5728] [C#] public static int ToInt32(object value, IFormatProvider provider);


[5729] [C++] public: static int ToInt32(Object* value, IFormatProvider* provider);


[5730] [VB] Public Shared Function ToInt32(ByVal value As Object, ByVal provider As IFormatProvider) As Integer


[5731] [JScript] public static function ToInt32(value: Object, provider: IFormatProvider) : int;


[5732] Description


[5733] Converts the value of the specified Object to a 32-bit signed integer using the specified culture-specific formatting information.


[5734] Return Value: A 32-bit signed integer equivalent to the value of value, or zero if value is null.


[5735] The return value is the result of invoking the IConvertible.ToInt32 method of the underlying type of value. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5736] ToInt32


[5737] [C#] public static int ToInt32(string value, IFormatProvider provider);


[5738] [C++] public: static int ToInt32(String* value, IFormatProvider* provider);


[5739] [VB] Public Shared Function ToInt32(ByVal value As String, ByVal provider As IFormatProvider) As Integer


[5740] [JScript] public static function ToInt32(value: String, provider: IFornatProvider) : int;


[5741] Description


[5742] Converts the specified String representation of a number to an equivalent 32-bit signed integer using specified culture-specific formatting information.


[5743] Return Value: A 32-bit signed integer equivalent to the value of value.


[5744] The return value is the result of invoking the System.Int32.Parse(System.String) method on value. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5745] ToInt32


[5746] [C+] public static int ToInt32(string value, int fromBase);


[5747] [C++] public: static int ToInt32(String* value, int fromBase);


[5748] [VB] Public Shared Function ToInt32(ByVal value As String, ByVal fromBase As Integer) As Integer


[5749] [JScript] public static function ToInt32(value: String, fromBase: int): int;


[5750] Description


[5751] Converts the String representation of a number in a specified base to an equivalent 32-bit signed integer.


[5752] Return Value: A 32-bit signed integer equivalent to the number in value. A System.String containing a number. The base of the number in value, which must be 2, 8, 10, or 16.


[5753] ToInt64


[5754] [C#] public static long ToInt64(bool value);


[5755] [C++] public: static_int64 ToInt64(bool value);


[5756] [VB] Public Shared Function ToInt64(ByVal value As Boolean) As Long


[5757] [JScript] public static function ToInt64(value: Boolean): long;


[5758] Description


[5759] Converts the value of the specified Boolean value to the equivalent 64-bit signed integer.


[5760] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[5761] ToInt64


[5762] [C#] public static long ToInt64(byte value);


[5763] [C++] public: static_int64 ToInt64(unsigned char value);


[5764] [VB] Public Shared Function ToInt64(ByVal value As Byte) As Long


[5765] [JScript] public static function ToInt64(value: Byte): long;


[5766] Description


[5767] Converts the value of the specified 8-bit unsigned integer to the equivalent 64-bit signed integer.


[5768] Return Value: The 64-bit signed integer equivalent to the value of value. An 8-bit unsigned integer.


[5769] ToInt64


[5770] [C#] public static long ToInt64(char value);


[5771] [C++] public: static_int64 ToInt64(_wchar_t value);


[5772] [VB] Public Shared Function ToInt64(ByVal value As Char) As Long


[5773] [JScript] public static function ToInt64(value: Char): long;


[5774] Description


[5775] Converts the value of the specified Unicode character to the equivalent 64-bit signed integer.


[5776] Return Value: The 64-bit signed integer equivalent to value. A Unicode character.


[5777] ToInt64


[5778] [C#] public static long ToInt64(DateTime value);


[5779] [C++] public: static_int64 ToInt64(DateTime value);


[5780] [VB] Public Shared Function ToInt64(ByVal value As DateTime) As Long


[5781] [JScript] public static function ToInt64(value: DateTime): long;


[5782] Description


[5783] Calling this method always throws System.InvalidCastException.


[5784] This method is reserved for future use. A System.DateTime.


[5785] ToInt64


[5786] [C#] public static long ToInt64(decimal value);


[5787] [C++] public: static_int64 ToInt64(Decimal value);


[5788] [VB] Public Shared Function ToInt64(ByVal value As Decimal) As Long


[5789] [JScript] public static function ToInt64(value: Decimal): long;


[5790] Description


[5791] Converts the value of the specified Decimal number to an equivalent 64-bit signed integer.


[5792] Return Value: value rounded to the nearest 64-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A System.Decimal number.


[5793] ToInt64


[5794] [C#] public static long ToInt64(double value);


[5795] [C++] public: static_int64 ToInt64(double value);


[5796] [VB] Public Shared Function ToInt64(ByVal value As Double) As Long


[5797] [JScript] public static function ToInt64(value: double): long;


[5798] Description


[5799] Converts the value of the specified double-precision floating point number to an equivalent 64-bit signed integer.


[5800] Return Value: value rounded to the nearest 64-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A double-precision floating point number.


[5801] ToInt64


[5802] [C#] public static long ToInt64(short value);


[5803] [C++) public: static_int64 ToInt64(short value);


[5804] [VB] Public Shared Function ToInt64(ByVal value As Short) As Long


[5805] [JScript] public static function ToInt64(value: Int16): long;


[5806] Description


[5807] Converts the value of the specified 16-bit signed integer to an equivalent 64-bit signed integer.


[5808] Return Value: A 64-bit signed integer equivalent to the value of value. A 16-bit signed integer.


[5809] ToInt64


[5810] [C#] public static long ToInt64(int value);


[5811] [C++] public: static_int64 ToInt64(int value);


[5812] [VB] Public Shared Function ToInt64(ByVal value As Integer) As Long


[5813] [JScript] public static function ToInt64(value: int): long;


[5814] Description


[5815] Converts the value of the specified 32-bit signed integer to an equivalent 64-bit signed integer.


[5816] Return Value: The 64-bit signed integer equivalent to the value of value. A 32-signed integer.


[5817] ToInt64


[5818] [C#] public static long ToInt64(long value);


[5819] [C++] public: static_int64 ToInt64(_int64 value);


[5820] [VB] Public Shared Function ToInt64(ByVal value As Long) As Long


[5821] [JScript] public static function ToInt64(value: long): long;


[5822] Description


[5823] Returns the specified 64-bit signed integer; no actual conversion is performed.


[5824] Return Value: value is returned unchanged. A 64-bit signed integer.


[5825] ToInt64


[5826] [C#] public static long ToInt64(object value);


[5827] [C++] public: static_int64 ToInt64(Object* value);


[5828] [VB] Public Shared Function ToInt64(ByVal value As Object) As Long


[5829] [JScript] public static function ToInt64(value: Object): long; Converts a specified value to a 64-bit signed integer.


[5830] Description


[5831] Converts the value of the specified Object to a 64-bit signed integer.


[5832] Return Value: A 64-bit signed integer equivalent to the value of value, or zero if value is null.


[5833] The return value is the result of invoking the IConvertible.ToInt64 method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[5834] ToInt64


[5835] [C#] public static long ToInt64(sbyte value);


[5836] [C++] public: static_int64 ToInt64(char value);


[5837] [VB] Public Shared Function ToInt64(ByVal value As SByte) As Long


[5838] [JScript] public static function ToInt64(value: SByte): long;


[5839] Description


[5840] Converts the value of the specified 8-bit signed integer to the equivalent 64-bit signed integer.


[5841] Return Value: The 8-bit signed integer equivalent to the value of value. An 8-bit signed integer.


[5842] ToInt64


[5843] [C#] public static long ToInt64(float value);


[5844] [C++] public: static_int64 ToInt64(float value);


[5845] [VB] Public Shared Function ToInt64(ByVal value As Single) As Long


[5846] [JScript] public static function ToInt64(value: float): long;


[5847] Description


[5848] Converts the value of the specified single-precision floating point number to an equivalent 64-bit signed integer.


[5849] Return Value: value rounded to the nearest 64-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A single-precision floating point number.


[5850] ToInt64


[5851] [C#] public static long ToInt64(string value);


[5852] [C++] public: static int64 ToInt64(String* value);


[5853] [VB] Public Shared Function ToInt64(ByVal value As String) As Long


[5854] [JScript] public static function ToInt64(value: String): long;


[5855] Description


[5856] Converts the specified String representation of a number to an equivalent 64-bit signed integer.


[5857] Return Value: A 64-bit signed integer equivalent to the value of value.


[5858] The return value is the result of invoking the System.Int64.Parse(System.String) method on value. A System.String containing a number to convert.


[5859] ToInt64


[5860] [C#] public static long ToInt64(ushort value);


[5861] [C++] public: static_int64 ToInt64(unsigned short value);


[5862] [VB] Public Shared Function ToInt64(ByVal value As UInt16) As Long


[5863] [JScript] public static function ToInt64(value: UInt16): long;


[5864] Description


[5865] Converts the value of the specified 16-bit unsigned integer to the equivalent 64-bit signed integer.


[5866] Return Value: The 64-bit signed integer equivalent to the value of value. A 16-bit unsigned integer.


[5867] ToInt64


[5868] [C#] public static long ToInt64(uint value);


[5869] [C++] public: static_int64 ToInt64(unsigned int value);


[5870] [VB] Public Shared Function ToInt64(ByVal value As UInt32) As Long


[5871] [JScript] public static function ToInt64(value: UInt32): long;


[5872] Description


[5873] Converts the value of the specified 32-bit unsigned integer to an equivalent 64-bit signed integer.


[5874] Return Value: A 64-bit signed integer equivalent to the value of value. A 32-bit unsigned integer.


[5875] ToInt64


[5876] [C#] public static long ToInt64(ulong value);


[5877] [C++] public: static_int64 ToInt64(unsigned_int64 value);


[5878] [VB] Public Shared Function ToInt64(ByVal value As UInt64) As Long


[5879] [JScript] public static function ToInt64(value: UInt64): long;


[5880] Description


[5881] Converts the value of the specified 64-bit unsigned integer to an equivalent 64-bit signed integer.


[5882] Return Value: A 64-bit signed integer equivalent to the value of value. A 64-bit unsigned integer.


[5883] ToInt64


[5884] [C#] public static long ToInt64(object value, IFormatProvider provider);


[5885] [C++] public: static int64 ToInt64(Object* value, IFormatProvider* provider);


[5886] [VB] Public Shared Function ToInt64(ByVal value As Object, ByVal provider As IFormatProvider) As Long


[5887] [JScript] public static function ToInt64(value: Object, provider: IFormatProvider) : long;


[5888] Description


[5889] Converts the value of the specified Object to a 64-bit signed integer using the specified culture-specific formatting information.


[5890] Return Value: A 64-bit signed integer equivalent to the value of value, or zero if value is null.


[5891] The return value is the result of invoking the IConvertible.ToInt64 method of the underlying type of value. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5892] ToInt64


[5893] [C#] public static long ToInt64(string value, IFormatProvider provider);


[5894] [C++] public: static_int64 ToInt64(String* value, IFormatProvider* provider);


[5895] [VB] Public Shared Function ToInt64(ByVal value As String, ByVal provider As IFormatProvider) As Long


[5896] [JScript] public static function ToInt64(value: String, provider: IFormatProvider) : long;


[5897] Description


[5898] Converts the specified String representation of a number to an equivalent 64-bit signed integer using the specified culture-specific formatting information.


[5899] Return Value: A 64-bit signed integer equivalent to the value of value.


[5900] The return value is the result of invoking the System.Int64.Parse(System.String) method on value. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[5901] ToInt64


[5902] [Cg] public static long ToInt64(string value, int fromBase);


[5903] [C++] public: static_int64 Toint64(String* value, int fromBase);


[5904] [VB] Public Shared Function ToInt64(ByVal value As String, ByVal fromBase As Integer) As Long


[5905] [JScript] public static function ToInt64(value: String, frombase: int): long;


[5906] Description


[5907] Converts the String representation of a number in a specified base to an equivalent 64-bit signed integer.


[5908] Return Value: A 64-bit signed integer equivalent to the number in value. A System.String containing a number. The base of the number in value, which must be 2, 8, 10, or 16.


[5909] ToSByte


[5910] [C#] public static sbyte ToSByte(bool value);


[5911] [C++] public: static char ToSByte(bool value);


[5912] [VB] Public Shared Function ToSByte(ByVal value As Boolean) As SByte


[5913] [JScript] public static function ToSByte(value: Boolean): SByte;


[5914] Description


[5915] Converts the value of the specified Boolean value to the equivalent 8-bit signed integer.


[5916] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[5917] ToSByte


[5918] [Cg] public static sbyte ToSByte(byte value);


[5919] [C++] public: static char ToSByte(unsigned char value);


[5920] [VB] Public Shared Function ToSByte(ByVal value As Byte) As SByte


[5921] [JScript] public static function ToSByte(value: Byte): SByte;


[5922] Description


[5923] Converts the value of the specified 8-bit unsigned integer to the equivalent 8-bit signed integer.


[5924] Return Value: The 8-bit signed integer equivalent to the value of value. An 8-bit unsigned integer.


[5925] ToSByte


[5926] [C#] public static sbyte ToSByte(char value);


[5927] [C++] public: static char ToSByte(_wchar_t value);


[5928] [VB] Public Shared Function ToSByte(ByVal value As Char) As SByte


[5929] [JScript] public static function ToSByte(value: Char): SByte;


[5930] Description


[5931] Converts the value of the specified Unicode character to the equivalent 8-bit signed integer.


[5932] Return Value: The 8-bit signed integer equivalent to value. A Unicode character.


[5933] ToSByte


[5934] [C+] public static sbyte ToSByte(DateTime value);


[5935] [C++] public: static char ToSByte(DateTime value);


[5936] [VB] Public Shared Function ToSByte(ByVal value As DateTime) As SByte


[5937] [JScript] public static function ToSByte(value: DateTime): SByte;


[5938] Description


[5939] Calling this method always throws System.InvalidCastException.


[5940] This method is reserved for future use. A System.DateTime.


[5941] ToSByte


[5942] [C+] public static sbyte ToSByte(decimal value);


[5943] [C++] public: static char ToSByte(Decimal value);


[5944] [VB] Public Shared Function ToSByte(ByVal value As Decimal) As SByte


[5945] [JScript] public static function ToSByte(value: Decimal): SByte;


[5946] Description


[5947] Converts the value of the specified Decimal number to an equivalent 8-bit signed integer.


[5948] Return Value: value rounded to the nearest 8-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A System.Decimal number.


[5949] ToSByte


[5950] [C#] public static sbyte ToSByte(double value);


[5951] [C++] public: static char ToSByte(double value);


[5952] [VB] Public Shared Function ToSByte(ByVal value As Double) As SByte


[5953] [JScript] public static function ToSByte(value: double): SByte;


[5954] Description


[5955] Converts the value of the specified double-precision floating point number to an equivalent 8-bit signed integer.


[5956] Return Value: value rounded to the nearest 8-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A double-precision floating point number.


[5957] ToSByte


[5958] [C#] public static sbyte ToSByte(short value);


[5959] [C++] public: static char ToSByte(short value);


[5960] [VB] Public Shared Function ToSByte(ByVal value As Short) As SByte


[5961] [JScript] public static function ToSByte(value: Int16): SByte;


[5962] Description


[5963] Converts the value of the specified 16-bit signed integer to the equivalent 8-bit signed integer.


[5964] Return Value: The 8-bit signed integer equivalent to the value of value. A 16-bit signed integer.


[5965] ToSByte


[5966] [C#] public static sbyte ToSByte(int value);


[5967] [C++] public: static char ToSByte(int value);


[5968] [VB] Public Shared Function ToSByte(ByVal value As Integer) As SByte


[5969] [JScript] public static function ToSByte(value: int): SByte;


[5970] Description


[5971] Converts the value of the specified 32-bit signed integer to an equivalent 8-bit signed integer.


[5972] Return Value: An 8-bit signed integer equivalent to the value of value


[5973] Description


[5974] Converts the value of the specified 32-bit signed integer to an equivalent 8-bit signed integer.


[5975] Return Value: The 8-bit signed integer equivalent of value. A 32-signed integer.


[5976] ToSByte


[5977] [C#] public static sbyte ToSByte(long value);


[5978] [C++] public: static char ToSByte(_int64 value);


[5979] [VB] Public Shared Function ToSByte(ByVal value As Long) As SByte


[5980] [JScript] public static function ToSByte(value: long): SByte;


[5981] Description


[5982] Converts the value of the specified 64-bit signed integer to an equivalent 8-bit signed integer.


[5983] Return Value: An 8-bit signed integer equivalent to the value of value. A 64-bit signed integer.


[5984] ToSByte


[5985] [C#] public static sbyte ToSByte(object value);


[5986] [C++] public: static char ToSByte(Object* value);


[5987] [VB] Public Shared Function ToSByte(ByVal value As Object) As SByte


[5988] [JScript] public static function ToSByte(value: Object): SByte; Converts a specified value to an 8-bit signed integer.


[5989] Description


[5990] Converts the value of the specified Object to an 8-bit signed integer.


[5991] Return Value: An 8-bit signed integer equivalent to the value of value , or zero if value is null.


[5992] The return value is the result of invoking the IConvertible.ToSByte method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[5993] ToSByte


[5994] [C#] public static sbyte ToSByte(sbyte value);


[5995] [C++] public: static char ToSByte(char value);


[5996] [VB] Public Shared Function ToSByte(ByVal value As SByte) As SByte


[5997] [JScript] public static function ToSByte(value: SByte): SByte;


[5998] Description


[5999] Returns the specified 8-bit signed integer; no actual conversion is performed.


[6000] Return Value: value is returned unchanged. An 8-bit signed integer.


[6001] ToSByte


[6002] [C#] public static sbyte ToSByte(float value);


[6003] [C++] public: static char ToSByte(float value);


[6004] [VB] Public Shared Function ToSByte(ByVal value As Single) As SByte


[6005] [JScript] public static function ToSByte(value: float): SByte;


[6006] Description


[6007] Converts the value of the specified single-precision floating point number to an equivalent 8-bit signed integer.


[6008] Return Value: value rounded to the nearest 8-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A single-precision floating point number.


[6009] ToSByte


[6010] [C#] public static sbyte ToSByte(string value);


[6011] [C++] public: static char ToSByte(String* value);


[6012] [VB] Public Shared Function ToSByte(ByVal value As String) As SByte


[6013] [JScript] public static function ToSByte(value: String): SByte;


[6014] Description


[6015] Converts the specified String representation of a number to an equivalent 8-bit signed integer.


[6016] Return Value: An 8-bit signed integer equivalent to the value of value. A System.String containing a number to convert.


[6017] ToSByte


[6018] [C#] public static sbyte ToSByte(ushort value);


[6019] [C++] public: static char ToSByte(unsigned short value);


[6020] [VB] Public Shared Function ToSByte(ByVal value As UInt16) As SByte


[6021] [JScript] public static function ToSByte(value: UInt16): SByte;


[6022] Description


[6023] Converts the value of the specified 16-bit unsigned integer to the equivalent 8-bit signed integer.


[6024] Return Value: The 8-bit signed integer equivalent to the value of value. A 16-bit unsigned integer.


[6025] ToSByte


[6026] [C#] public static sbyte ToSByte(uint value);


[6027] [C++] public: static char ToSByte(unsigned int value);


[6028] [VB] Public Shared Function ToSByte(ByVal value As UInt32) As SByte


[6029] [JScript] public static function ToSByte(value: UInt32): SByte;


[6030] Description


[6031] Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit signed integer.


[6032] Return Value: An 8-bit signed integer equivalent to the value of value. A 32-bit unsigned integer.


[6033] ToSByte


[6034] [C#] public static sbyte ToSByte(ulong value);


[6035] [C++] public: static char ToSByte(unsigned_int64 value);


[6036] [VB] Public Shared Function ToSByte(ByVal value As UInt64) As SByte


[6037] [JScript] public static function ToSByte(value: UInt64): SByte;


[6038] Description


[6039] Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit signed integer.


[6040] Return Value: An 8-bit signed integer equivalent to the value of value. A 64-bit unsigned integer.


[6041] ToSByte


[6042] [C#] public static sbyte ToSByte(object value, IFormatProvider provider);


[6043] [C++] public: static char ToSByte(Object* value, IFormatProvider* provider);


[6044] [VB] Public Shared Function ToSByte(ByVal value As Object, ByVal provider As IFormatProvider) As SByte


[6045] [JScript] public static function ToSByte(value: Object, provider: IFormatProvider): SByte;


[6046] Description


[6047] Converts the value of the specified Object to an 8-bit signed integer using the specified culture-specific formatting information.


[6048] Return Value: An 8-bit signed integer equivalent to the value of value , or zero if value is null.


[6049] provider enables the user to specify culture-specific conversion information about the contents of value. For example, if value is a String that represents a number, provider could supply culture-specific information about the notation used to represent that number. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6050] ToSByte


[6051] [C#] public static sbyte ToSByte(string value, IFormatProvider provider);


[6052] [C++] public: static char ToSByte(String* value, IFormatProvider* provider);


[6053] [VB] Public Shared Function ToSByte(ByVal value As String, ByVal provider As IFormatProvider) As SByte


[6054] [JScript] public static function ToSByte(value: String, provider: IFormatProvider): SByte;


[6055] Description


[6056] Converts the specified String representation of a number to an equivalent 8-bit signed integer using specified culture-specific formatting information.


[6057] Return Value: An 8-bit signed integer equivalent to the value of value. provider is an IFormatProvider instance that obtains a System.Globalization.NumberFormatInfo object. The NumberFormatInfo object provides culture-specific information about the format of value. If provider is null, the NumberFormatInfo for the current culture is used. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6058] ToSByte


[6059] [C#] public static sbyte ToSByte(string value, int fromBase);


[6060] [C++] public: static char ToSByte(String* value, int fromBase);


[6061] [VB] Public Shared Function ToSByte(ByVal value As String, ByVal fromBase As Integer) As SByte


[6062] [JScript] public static function ToSByte(value: String, fromBase: int): SByte;


[6063] Description


[6064] Converts the String representation of a number in a specified base to an equivalent 8-bit signed integer.


[6065] Return Value: An 8-bit signed integer equivalent to the number in value. A System.String containing a number. The base of the number in value, which must be 2, 8, 10, or 16.


[6066] ToSingle


[6067] [C#] public static float ToSingle(bool value);


[6068] [C++] public: static float ToSingle(bool value);


[6069] [VB] Public Shared Function ToSingle(ByVal value As Boolean) As Single


[6070] [JScript] public static function ToSingle(value: Boolean): float;


[6071] Description


[6072] Converts the value of the specified Boolean value to the equivalent single-precision floating point number.


[6073] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[6074] ToSingle


[6075] [C#] public static float ToSingle(byte value);


[6076] [C++] public: static float ToSingle(unsigned char value);


[6077] [VB] Public Shared Function ToSingle(ByVal value As Byte) As Single


[6078] [JScript] public static function ToSingle(value: Byte): float;


[6079] Description


[6080] Converts the value of the specified 8-bit unsigned integer to the equivalent single-precision floating point number.


[6081] Return Value: The single-precision floating point number equivalent to the value of value. An 8-bit unsigned integer.


[6082] ToSingle


[6083] [C#] public static float ToSingle(char value);


[6084] [C++] public: static float ToSingle(_wchar_t value);


[6085] [VB] Public Shared Function ToSingle(ByVal value As Char) As Single


[6086] [JScript] public static function ToSingle(value: Char): float;


[6087] Description


[6088] Calling this method always throws System.InvalidCastException.


[6089] This method is reserved for future use. A Unicode character.


[6090] ToSingle


[6091] [C#] public static float ToSingle(DateTime value);


[6092] [C++] public: static float ToSingle(DateTime value);


[6093] [VB] Public Shared Function ToSingle(ByVal value As DateTime) As Single


[6094] [JScript] public static function ToSingle(value: DateTime): float;


[6095] Description


[6096] Calling this method always throws System.InvalidCastException. This method is reserved for future use. A System.DateTime.


[6097] ToSingle


[6098] [C#] public static float ToSingle(decimal value);


[6099] [C++] public: static float ToSingle(Decimal value);


[6100] [VB] Public Shared Function ToSingle(ByVal value As Decimal) As Single


[6101] [JScript] public static function ToSingle(value: Decimal): float;


[6102] Description


[6103] Converts the value of the specified Decimal number to an equivalent single-precision floating point number.


[6104] Return Value: A single-precision floating point number equivalent to the value of value. A System.Decimal number.


[6105] ToSingle


[6106] [C#] public static float ToSingle(double value);


[6107] [C++] public: static float ToSingle(double value);


[6108] [VB] Public Shared Function ToSingle(ByVal value As Double) As Single


[6109] [JScript] public static function ToSingle(value: double): float;


[6110] Description


[6111] Converts the value of the specified double-precision floating point number to an equivalent single-precision floating point number.


[6112] Return Value: A single-precision floating point number equivalent to the value of value. A double-precision floating point number.


[6113] ToSingle


[6114] [C#] public static float ToSingle(short value);


[6115] [C++] public: static float ToSingle(short value);


[6116] [VB] Public Shared Function ToSingle(ByVal value As Short) As Single


[6117] [JScript] public static function ToSingle(value: Int16): float;


[6118] Description


[6119] Converts the value of the specified 16-bit signed integer to an equivalent single-precision floating point number.


[6120] Return Value: A single-precision floating point number equivalent to the value of value. A 16-bit signed integer.


[6121] ToSingle


[6122] [C#] public static float ToSingle(int value);


[6123] [C++] public: static float ToSingle(int value);


[6124] [VB] Public Shared Function ToSingle(ByVal value As Integer) As Single


[6125] [JScript] public static function ToSingle(value: int): float;


[6126] Description


[6127] Converts the value of the specified 32-bit signed integer to an equivalent single-precision floating point number.


[6128] Return Value: A single-precision floating point number equivalent to the value of value. A 32-bit signed integer.


[6129] ToSingle


[6130] [C#] public static float ToSingle(long value);


[6131] [C++] public: static float ToSingle(_int64 value);


[6132] [VB] Public Shared Function ToSingle(ByVal value As Long) As Single


[6133] [JScript] public static function ToSingle(value: long): float;


[6134] Description


[6135] Converts the value of the specified 64-bit signed integer to an equivalent single-precision floating point number.


[6136] Return Value: A single-precision floating point number equivalent to the value of value. A 64-bit signed integer.


[6137] ToSingle


[6138] [C#] public static float ToSingle(object value);


[6139] [C++] public: static float ToSingle(Object* value);


[6140] [VB] Public Shared Function ToSingle(ByVal value As Object) As Single


[6141] [JScript] public static function ToSingle(value: Object): float; Converts a specified value to a single-precision floating point number.


[6142] Description


[6143] Converts the value of the specified Object to a single-precision floating point number.


[6144] Return Value: A single-precision floating point number equivalent to the value of value, or zero if value is null.


[6145] The return value is the result of invoking the IConvertible.ToSingle method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[6146] ToSingle


[6147] [C#] public static float ToSingle(sbyte value);


[6148] [C++] public: static float ToSingle(char value);


[6149] [VB] Public Shared Function ToSingle(ByVal value As SByte) As Single


[6150] [JScript] public static function ToSingle(value: SByte): float;


[6151] Description


[6152] Converts the value of the specified 8-bit signed integer to the equivalent single-precision floating point number.


[6153] Return Value: The 8-bit signed integer equivalent to the value of value. An 8-bit signed integer.


[6154] ToSingle


[6155] [C#] public static float ToSingle(float value);


[6156] [C++] public: static float ToSingle(float value);


[6157] [VB] Public Shared Function ToSingle(ByVal value As Single) As Single


[6158] [JScript] public static function ToSingle(value: float): float;


[6159] Description


[6160] Returns the specified single-precision floating point number; no actual conversion is performed.


[6161] Return Value: value is returned unchanged. A single-precision floating point number.


[6162] ToSingle


[6163] [C#] public static float ToSingle(string value);


[6164] [C++] public: static float ToSingle(String* value);


[6165] [VB] Public Shared Function ToSingle(ByVal value As String) As Single


[6166] [JScript] public static function ToSingle(value: String): float;


[6167] Description


[6168] Converts the specified String representation of a number to an equivalent single-precision floating point number.


[6169] Return Value: A single-precision floating point number equivalent to the value of value.


[6170] The return value is the result of invoking the System.Single.Parse(System.String) method on value. A System.String containing a number to convert.


[6171] ToSingle


[6172] [C#] public static float ToSingle(ushort value);


[6173] [C++] public: static float ToSingle(unsigned short value);


[6174] [VB] Public Shared Function ToSingle(ByVal value As UInt16) As Single


[6175] [JScript] public static function ToSingle(value: UInt16): float;


[6176] Description


[6177] Converts the value of the specified 16-bit unsigned integer to the equivalent single-precision floating point number.


[6178] Return Value: The single-precision floating point number equivalent to the value of value. A 16-bit unsigned integer.


[6179] ToSingle


[6180] [C#] public static float ToSingle(uint value);


[6181] [C++] public: static float ToSingle(unsigned int value);


[6182] [VB] Public Shared Function ToSingle(ByVal value As UInt32) As Single


[6183] [JScript] public static function ToSingle(value: UInt32): float;


[6184] Description


[6185] Converts the value of the specified 32-bit unsigned integer to an equivalent single-precision floating point number.


[6186] Return Value: A single-precision floating point number equivalent to the value of value. A 32-bit unsigned integer.


[6187] ToSingle


[6188] [C#] public static float ToSingle(ulong value);


[6189] [C++] public: static float ToSingle(unsigned_int64 value);


[6190] [VB] Public Shared Function ToSingle(ByVal value As UInt64) As Single


[6191] [JScript] public static function ToSingle(value: UInt64): float;


[6192] Description


[6193] Converts the value of the specified 64-bit unsigned integer to an equivalent single-precision floating point number.


[6194] Return Value: A single-precision floating point number equivalent to the value of value. A 64-bit unsigned integer.


[6195] ToSingle


[6196] [C#] public static float ToSingle(object value, IFormatProvider provider);


[6197] [C++] public: static float ToSingle(Object* value, IFormatProvider* provider);


[6198] [VB] Public Shared Function ToSingle(ByVal value As Object, ByVal provider As IFormatProvider) As Single


[6199] [JScript] public static function ToSingle(value: Object, provider: IFormatProvider): float;


[6200] Description


[6201] Converts the value of the specified Object to an single-precision floating point number using the specified culture-specific formatting information.


[6202] Return Value: A single-precision floating point number equivalent to the value of value, or zero if value is null.


[6203] The return value is the result of invoking the IConvertible.ToSingle method of the underlying type of value. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6204] ToSingle


[6205] [C#] public static float ToSingle(string value, IFormatProvider provider);


[6206] [C++] public: static float ToSingle(String* value, IFormatProvider* provider);


[6207] [VB] Public Shared Function ToSingle(ByVal value As String, ByVal provider As IFormatProvider) As Single


[6208] [JScript] public static function ToSingle(value: String, provider: IFormatProvider): float;


[6209] Description


[6210] Converts the specified String representation of a number to an equivalent single-precision floating point number using the specified culture-specific formatting information.


[6211] Return Value: A single-precision floating point number equivalent to the value of value.


[6212] The return value is the result of invoking the System.Single.Parse(System.String) method on value. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6213] ToString


[6214] [C#] public static string ToString(bool value);


[6215] [C++] public: static String* ToString(bool value);


[6216] [VB] Public Shared Function ToString(ByVal value As Boolean) As String


[6217] [JScript] public static function ToString(value: Boolean): String;


[6218] Description


[6219] Converts the value of the specified Boolean to its equivalent String representation.


[6220] Return Value: The System.String equivalent of the value of value.


[6221] This implementation is identical to System.Boolean.ToString. A Boolean value.


[6222] ToString


[6223] [C#] public static string ToString(byte value);


[6224] [C++] public: static String* ToString(unsigned char value);


[6225] [VB] Public Shared Function ToString(ByVal value As Byte) As String


[6226] [JScript] public static function ToString(value: Byte): String;


[6227] Description


[6228] Converts the value of the specified 8-bit unsigned integer to its equivalent String representation.


[6229] Return Value: The System.String equivalent of the value of value.


[6230] This implementation is identical to System.Byte.ToString. An 8-bit unsigned integer.


[6231] ToString


[6232] [C#] public static string ToString(char value);


[6233] [C++] public: static String* ToString(_wchar_t value);


[6234] [VB] Public Shared Function ToString(ByVal value As Char) As String


[6235] [JScript] public static function ToString(value: Char): String;


[6236] Description


[6237] Converts the value of the specified Unicode character to its equivalent String representation.


[6238] Return Value: The System.String equivalent of the value of value.


[6239] This implementation is identical to System.Char.ToString. A Unicode character.


[6240] ToString


[6241] [C#] public static string ToString(DateTime value);


[6242] [C++] public: static String* ToString(DateTime value);


[6243] [VB] Public Shared Function ToString(ByVal value As DateTime) As String


[6244] [JScript] public static function ToString(value: DateTime): String;


[6245] Description


[6246] Converts the value of the specified DateTime to its equivalent String representation.


[6247] Return Value: The System.String equivalent of the value of value.


[6248] This implementation is identical to System.DateTime.ToString. A DateTime.


[6249] ToString


[6250] [C#] public static string ToString(decimal value);


[6251] [C++] public: static String* ToString(Decimal value);


[6252] [VB] Public Shared Function ToString(ByVal value As Decimal) As String


[6253] [JScript] public static function ToString(value: Decimal): String;


[6254] Description


[6255] Converts the value of the specified Decimal number to its equivalent String representation.


[6256] Return Value: The System.String equivalent of the value of value.


[6257] This implementation is identical to System.Decimal.ToString. A Decimal number.


[6258] ToString


[6259] [C#] public static string ToString(double value);


[6260] [C++] public: static String* ToString(double value);


[6261] [VB] Public Shared Function ToString(ByVal value As Double) As String


[6262] [JScript] public static function ToString(value: double): String;


[6263] Description


[6264] Converts the value of the specified double-precision floating point number to its equivalent String representation.


[6265] Return Value: The System.String equivalent of the value of value.


[6266] This implementation is identical to System.Double.ToString. A double-precision floating point number.


[6267] ToString


[6268] [C#] public static string ToString(short value);


[6269] [C++] public: static String* ToString(short value);


[6270] [VB] Public Shared Function ToString(ByVal value As Short) As String


[6271] [JScript] public static function ToString(value: Int16): String;


[6272] Description


[6273] Converts the value of the specified 16-bit signed integer to its equivalent String representation.


[6274] Return Value: The System.String equivalent of the value of value.


[6275] This implementation is identical to System.Int16.ToString. A 16-bit signed integer.


[6276] ToString


[6277] [C#] public static string ToString(int value);


[6278] [C++] public: static String* ToString(int value);


[6279] [VB] Public Shared Function ToString(ByVal value As Integer) As String


[6280] [JScript] public static function ToString(value: int): String;


[6281] Description


[6282] Converts the value of the specified 32-bit signed integer to its equivalent String representation.


[6283] Return Value: The System.String equivalent of the value of value.


[6284] This implementation is identical to System.Int32.ToString. A 32-bit signed integer.


[6285] ToString


[6286] [C#] public static string ToString(long value);


[6287] [C++] public: static String* ToString(_int64 value);


[6288] [VB] Public Shared Function ToString(ByVal value As Long) As String


[6289] [JScript] public static function ToString(value: long): String;


[6290] Description


[6291] Converts the value of the specified 64-bit signed integer to its equivalent String representation.


[6292] Return Value: The System.String equivalent of the value of value.


[6293] This implementation is identical to System.Int64.ToString. A 64-bit signed integer.


[6294] ToString


[6295] [C#] public static string ToString(object value);


[6296] [C++] public: static String* ToString(Object* value);


[6297] [VB] Public Shared Function ToString(ByVal value As Object) As String


[6298] [JScript] public static function ToString(value: Object): String; Converts the specified value to its equivalent String representation.


[6299] Description


[6300] Converts the value of the specified Object to its String representation.


[6301] Return Value: The System.String representation of the value of value, or System.String.Empty if value is null.


[6302] The return value is the result of invoking the ToString method of the underlying type of value. An System.Object or null.


[6303] ToString


[6304] [C+#] public static string ToString(sbyte value);


[6305] [C++] public: static String* ToString(char value);


[6306] [VB] Public Shared Function ToString(ByVal value As SByte) As String


[6307] [JScript] public static function ToString(value: SByte): String;


[6308] Description


[6309] Converts the value of the specified 8-bit signed integer to its equivalent String representation.


[6310] Return Value: The System.String equivalent of the value of value.


[6311] This implementation is identical to System.SByte.ToString. An 8-bit signed integer.


[6312] ToString


[6313] [C#] public static string ToString(float value);


[6314] [C++] public: static String* ToString(float value);


[6315] [VB] Public Shared Function ToString(ByVal value As Single) As String


[6316] [JScript] public static function ToString(value: float): String;


[6317] Description


[6318] Converts the value of the specified single-precision floating point number to its equivalent String representation.


[6319] Return Value: The System.String equivalent of the value of value.


[6320] This implementation is identical to System.Single.ToString. A single-precision floating point number.


[6321] ToString


[6322] [C#] public static string ToString(string value);


[6323] [C++] public: static String* ToString(String* value);


[6324] [VB] Public Shared Function ToString(ByVal value As String) As String


[6325] [JScript] public static function ToString(value: String): String;


[6326] Description


[6327] Returns the specified instance of System.String; no actual conversion is performed.


[6328] Return Value: value is returned unchanged. A System.String.


[6329] ToString


[6330] [C#] public static string ToString(ushort value);


[6331] [C++] public: static String* ToString(unsigned short value);


[6332] [VB] Public Shared Function ToString(ByVal value As UInt16) As String


[6333] [JScript] public static function ToString(value: UInt16): String;


[6334] Description


[6335] Converts the value of the specified 16-bit unsigned integer to its equivalent String representation.


[6336] Return Value: The System.String equivalent of the value of value.


[6337] This implementation is identical to System.UInt16.ToString. A 16-bit unsigned integer.


[6338] ToString


[6339] [C#] public static string ToString(uint value);


[6340] [C++] public: static String* ToString(unsigned int value);


[6341] [VB] Public Shared Function ToString(ByVal value As UInt32) As String


[6342] [JScript] public static function ToString(value: UInt32): String;


[6343] Description


[6344] Converts the value of the specified 32-bit unsigned integer to its equivalent String representation.


[6345] Return Value: The System.String equivalent of the value of value.


[6346] This implementation is identical to System.Ulnt32.ToString. A 32-bit unsigned integer.


[6347] ToString


[6348] [C#] public static string ToString(ulong value);


[6349] [C++] public: static String* ToString(unsigned _int64 value);


[6350] [VB] Public Shared Function ToString(ByVal value As UInt64) As String


[6351] [JScript] public static function ToString(value: UInt64): String;


[6352] Description


[6353] Converts the value of the specified 64-bit unsigned integer to its equivalent String representation.


[6354] Return Value: The System.String equivalent of the value of value.


[6355] This implementation is identical to System.UInt64.ToString. A 64-bit unsigned integer.


[6356] ToString


[6357] [C#] public static string ToString(bool value, IFormatProvider provider);


[6358] [C++] public: static String* ToString(bool value, IFormatProvider* provider);


[6359] [VB] Public Shared Function ToString(ByVal value As Boolean, ByVal provider As IFormatProvider) As String


[6360] [JScript] public static function ToString(value: Boolean, provider: IFormatProvider): String;


[6361] Description


[6362] Converts the value of the specified Boolean to its equivalent String representation.


[6363] Return Value: The System.String equivalent of the value of value.


[6364] This implementation is identical to System.Boolean.ToString. A Boolean value. (Reserved) An instance of an System.IFormatProvider interface implementation.


[6365] ToString


[6366] [C#] public static string ToString(byte value, IFormatProvider provider);


[6367] [C++] public: static String* ToString(unsigned char value, IFormatProvider* provider);


[6368] [VB] Public Shared Function ToString(ByVal value As Byte, ByVal provider As IFormatProvider) As String


[6369] [JScript] public static function ToString(value: Byte, provider: IFormatProvider): String;


[6370] Description


[6371] Converts the value of the specified 8-bit unsigned integer to its equivalent String representation.


[6372] Return Value: The System.String equivalent of the value of value.


[6373] This implementation is identical to System.Byte.ToString. An 8-bit unsigned integer. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6374] ToString


[6375] [C#] public static string ToString(byte value, int toBase);


[6376] [C++] public: static String* ToString(unsigned char value, int toBase);


[6377] [VB] Public Shared Function ToString(ByVal value As Byte, ByVal toBase As Integer) As String


[6378] [JScript] public static function ToString(value: Byte, toBase: int): String;


[6379] Description


[6380] Converts the value of an 8-bit unsigned integer to its equivalent String representation in a specified base.


[6381] Return Value: The String representation of value in base toBase. An 8-bit unsigned integer. The base of the return value, which must be 2, 8, 10, or 16.


[6382] ToString


[6383] [C#] public static string ToString(char value, IFormatProvider provider);


[6384] [C++] public: static String* ToString(_wchar_t value, IFormatProvider* provider);


[6385] [VB] Public Shared Function ToString(ByVal value As Char, ByVal provider As IFormatProvider) As String


[6386] [JScript] public static function ToString(value: Char, provider: IFormatProvider): String;


[6387] Description


[6388] Converts the value of the specified Unicode character to its equivalent String representation.


[6389] Return Value: The System.String equivalent of the value of value.


[6390] This implementation is identical to System.Char.ToString. A Unicode character. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6391] ToString


[6392] [C#] public static string ToString(DateTime value, IFormatProvider provider);


[6393] [C++] public: static String* ToString(DateTime value, IFormatProvider* provider);


[6394] [VB] Public Shared Function ToString(ByVal value As DateTime, ByVal provider As IFormatProvider) As String


[6395] [JScript] public static function ToString(value: DateTime, provider: IFormatProvider): String;


[6396] Description


[6397] Converts the value of the specified DateTime to its equivalent String representation.


[6398] Return Value: The System.String equivalent of the value of value.


[6399] This implementation is identical to System.DateTime.ToString. A DateTime. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6400] ToString


[6401] [C#] public static string ToString(decimal value, IFormatProvider provider);


[6402] [C++] public: static String* ToString(Decimal value, IFormatProvider* provider);


[6403] [VB] Public Shared Function ToString(ByVal value As Decimal, ByVal provider As IFormatProvider) As String


[6404] [JScript] public static function ToString(value: Decimal, provider: IFormatProvider): String;


[6405] Description


[6406] Converts the value of the specified Decimal number to its equivalent String representation.


[6407] Return Value: The System.String equivalent of the value of value.


[6408] This implementation is identical to System.Decimal.ToString. A Decimal number. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6409] ToString


[6410] [C#] public static string ToString(double value, IFormatProvider provider);


[6411] [C++] public: static String* ToString(double value, IFormatProvider* provider);


[6412] [VB] Public Shared Function ToString(ByVal value As Double, ByVal provider As IFormatProvider) As String


[6413] [JScript] public static function ToString(value: double, provider: IFormatProvider): String;


[6414] Description


[6415] Converts the value of the specified double-precision floating point number to its equivalent String representation.


[6416] Return Value: The System.String equivalent of the value of value.


[6417] This implementation is identical to System.Double.ToString. A double-precision floating point number. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6418] ToString


[6419] [C#] public static string ToString(short value, IFormatProvider provider);


[6420] [C++] public: static String* ToString(short value, IFormatProvider* provider);


[6421] [VB] Public Shared Function ToString(ByVal value As Short, ByVal provider As IFormatProvider) As String


[6422] [JScript] public static function ToString(value: Int16, provider: IFormatProvider): String;


[6423] Description


[6424] Converts the value of the specified 16-bit signed integer to its equivalent String representation.


[6425] Return Value: The System.String equivalent of the value of value.


[6426] This implementation is identical to System.Int16.ToString. A 16-bit signed integer. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6427] ToString


[6428] [C#] public static string ToString(short value, int toBase);


[6429] [C++] public: static String* ToString(short value, int toBase);


[6430] [VB] Public Shared Function ToString(ByVal value As Short, ByVal toBase As Integer) As String


[6431] [JScript] public static function ToString(value: Int6, toBase: int): String;


[6432] Description


[6433] Converts the value of a 16-bit signed integer to its equivalent String representation in a specified base.


[6434] Return Value: The String representation of value in base toBase. A 16-bit signed integer. The base of the return value, which must be 2, 8, 10, or 16.


[6435] ToString


[6436] [C#] public static string ToString(int value, IFormatProvider provider);


[6437] [C++] public: static String* ToString(int value, IFormatProvider* provider);


[6438] [VB] Public Shared Function ToString(ByVal value As Integer, ByVal provider As IFormatProvider) As String


[6439] [JScript] public static function ToString(value: int, provider: IFormatProvider): String;


[6440] Description


[6441] Converts the value of the specified 32-bit signed integer to its equivalent String representation.


[6442] Return Value: The System.String equivalent of the value of value.


[6443] This implementation is identical to System.Int32.ToString. A 32-bit signed integer. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6444] ToString


[6445] [C#] public static string ToString(int value, int toBase);


[6446] [C++] public: static String* ToString(int value, int toBase);


[6447] [VB] Public Shared Function ToString(ByVal value As Integer, ByVal toBase As Integer) As String


[6448] [JScript] public static function ToString(value: int, toBase: int): String;


[6449] Description


[6450] Converts the value of a 32-bit signed integer to its equivalent String representation in a specified base.


[6451] Return Value: The String representation of value in base toBase. A 32-bit signed integer. The base of the return value, which must be 2, 8, 10, or 16.


[6452] ToString


[6453] [C#] public static string ToString(long value, IFormatProvider provider);


[6454] [C++] public: static String* ToString(_int64 value, IFormatProvider* provider);


[6455] [VB] Public Shared Function ToString(ByVal value As Long, ByVal provider As IFormatProvider) As String


[6456] [JScript] public static function ToString(value: long, provider: IFormatProvider): String;


[6457] Description


[6458] Converts the value of the specified 64-bit signed integer to its equivalent String representation.


[6459] Return Value: The System.String equivalent of the value of value.


[6460] This implementation is identical to System.Int64.ToString. A 64-bit signed integer. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6461] ToString


[6462] [C#] public static string ToString(long value, int toBase);


[6463] [C++] public: static String* ToString(_int64 value, int toBase);


[6464] [VB] Public Shared Function ToString(ByVal value As Long, ByVal toBase As Integer) As String


[6465] [JScript] public static function ToString(value: long, toBase: int): String;


[6466] Description


[6467] Converts the value of a 64-bit signed integer to its equivalent String representation in a specified base.


[6468] Return Value: The String representation of value in base toBase. A 64-bit signed integer. The base of the return value, which must be 2, 8, 10, or 16.


[6469] ToString


[6470] [C#] public static string ToString(object value, IFormatProvider provider);


[6471] [C++] public: static String* ToString(Object* value, IFormatProvider* provider);


[6472] [VB] Public Shared Function ToString(ByVal value As Object, ByVal provider As IFormatProvider) As String


[6473] [JScript] public static function ToString(value: Object, provider: IFormatProvider): String;


[6474] Description


[6475] Converts the value of the specified Object to its equivalent String representation using the specified culture-specific formatting information.


[6476] Return Value: The System.String representation of the value of value, or System.String.Empty if value is null.


[6477] provider enables the user to specify culture-specific conversion information about the contents of value. For example, if value is a String that represents a number, provider could supply culture-specific information about the notation used to represent that number. An System.Object or null. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6478] ToString


[6479] [C#] public static string ToString(sbyte value, IFormatProvider provider);


[6480] [C++] public: static String* ToString(char value, IFormatProvider* provider);


[6481] [VB] Public Shared Function ToString(ByVal value As SByte, ByVal provider As IFormatProvider) As String


[6482] [JScript] public static function ToString(value: SByte, provider: IFormatProvider): String;


[6483] Description


[6484] Converts the value of the specified 8-bit signed integer to its equivalent String representation.


[6485] Return Value: The System.String equivalent of the value of value.


[6486] This implementation is identical to System.SByte.ToString. An 8-bit signed integer. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6487] ToString


[6488] [C#] public static string ToString(float value, IFormatProvider provider);


[6489] [C++] public: static String* ToString(float value, IFormatProvider* provider);


[6490] [VB] Public Shared Function ToString(ByVal value As Single, ByVal provider As IFormatProvider) As String


[6491] [JScript] public static function ToString(value: float, provider: IFormatProvider): String;


[6492] Description


[6493] Converts the value of the specified single-precision floating point number to its equivalent String representation.


[6494] Return Value: The System.String equivalent of the value of value.


[6495] This implementation is identical to System.Single.ToString. A single-precision floating point number. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6496] ToString


[6497] [C#] public static string ToString(string value, IFormatProvider provider);


[6498] [C++] public: static String* ToString(String* value, IFormatProvider* provider);


[6499] [VB] Public Shared Function ToString(ByVal value As String, ByVal provider As IFormatProvider) As String


[6500] [JScript] public static function ToString(value: String, provider: IFormatProvider): String;


[6501] Description


[6502] Returns the specified instance of System.String; no actual conversion is performed.


[6503] Return Value: value is returned unchanged.


[6504] This method ignores the provider parameter. A System.String. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6505] ToString


[6506] [C#] public static string ToString(ushort value, IFormatProvider provider);


[6507] [C++] public: static String* ToString(unsigned short value, IFormatProvider* provider);


[6508] [VB] Public Shared Function ToString(ByVal value As UInt6, ByVal provider As IFormatProvider) As String


[6509] [JScript] public static function ToString(value: UInt6, provider: IFormatProvider): String;


[6510] Description


[6511] Converts the value of the specified 16-bit unsigned integer to its equivalent String representation.


[6512] Return Value: The System.String equivalent of the value of value.


[6513] This implementation is identical to System.UInt16.ToString. A 16-bit unsigned integer. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6514] ToString


[6515] [C#] public static string ToString(uint value, IFormatProvider provider);


[6516] [C++] public: static String* ToString(unsigned int value, IFormatProvider* provider);


[6517] [VB] Public Shared Function ToString(ByVal value As UInt32, ByVal provider As IFormatProvider) As String


[6518] [JScript] public static function ToString(value: UInt32, provider: IFormatProvider): String;


[6519] Description


[6520] Converts the value of the specified 32-bit unsigned integer to its equivalent String representation.


[6521] Return Value: The System.String equivalent of the value of value.


[6522] This implementation is identical to System.UInt32.ToString. A 32-bit unsigned integer. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6523] ToString


[6524] [C#] public static string ToString(ulong value, IFormatProvider provider);


[6525] [C++] public: static String* ToString(unsigned _int64 value, IFormatProvider* provider);


[6526] [VB] Public Shared Function ToString(ByVal value As UInt64, ByVal provider As IFormatProvider) As String


[6527] [JScript] public static function ToString(value: UInt64, provider: IFormatProvider): String;


[6528] Description


[6529] Converts the value of the specified 64-bit unsigned integer to its equivalent String representation.


[6530] Return Value: The System.String equivalent of the value of value.


[6531] This implementation is identical to System.UInt64.ToString. A 64-bit unsigned integer. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6532] ToUInt16


[6533] [C#] public static ushort ToUInt16(bool value);


[6534] [C++] public: static unsigned short ToUInt16(bool value);


[6535] [VB] Public Shared Function ToUInt16(ByVal value As Boolean) As UInt16


[6536] [JScript] public static function ToUInt16(value: Boolean): UInt16


[6537] Description


[6538] Converts the value of the specified Boolean value to the equivalent 16-bit unsigned integer.


[6539] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[6540] ToUInt16


[6541] [C#] public static ushort ToUInt16(byte value);


[6542] [C++] public: static unsigned short ToUInt16(unsigned char value);


[6543] [VB] Public Shared Function ToUInt16(ByVal value As Byte) As UInt16


[6544] [JScript] public static function ToUInt16(value: Byte): UInt16;


[6545] Description


[6546] Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit unsigned integer.


[6547] Return Value: The 16-bit unsigned integer equivalent to the value of value. An 8-bit unsigned integer.


[6548] ToUInt16


[6549] [C#] public static ushort ToUInt16(char value);


[6550] [C++] public: static unsigned short ToUInt16(_wchar_t value);


[6551] [VB] Public Shared Function ToUInt16(ByVal value As Char) As UInt16


[6552] [JScript] public static function ToUInt16(value: Char): UInt16;


[6553] Description


[6554] Converts the value of the specified Unicode character to the equivalent 16-bit unsigned integer.


[6555] Return Value: The 16-bit unsigned integer equivalent to value. A Unicode character.


[6556] ToUInt16


[6557] [C#] public static ushort ToUInt16(DateTime value);


[6558] [C++] public: static unsigned short ToUInt16(DateTime value);


[6559] [VB] Public Shared Function ToUInt16(ByVal value As DateTime) As UInt16


[6560] [JScript] public static function ToUInt16(value: DateTime): UInt16;


[6561] Description


[6562] Calling this method always throws System.InvalidCastException.


[6563] This method is reserved for future use. A System.DateTime.


[6564] ToUInt16


[6565] [C#] public static ushort ToUIntl16(decimal value);


[6566] [C++] public: static unsigned short ToUInt16(Decimal value);


[6567] [VB] Public Shared Function ToUInt16(ByVal value As Decimal) As UInt16


[6568] [JScript] public static function ToUInt16(value: Decimal): UInt 16;


[6569] Description


[6570] Converts the value of the specified Decimal number to an equivalent 16-bit unsigned integer.


[6571] Return Value: value rounded to the nearest 16-bit unsigned integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A System.Decimal number.


[6572] ToUInt16


[6573] [C#] public static ushort ToUInt16(double value);


[6574] [C++] public: static unsigned short ToUInt16(double value);


[6575] [VB] Public Shared Function ToUInt16(ByVal value As Double) As UInt16


[6576] [JScript] public static function ToUInt16(value: double): UInt16;


[6577] Description


[6578] Converts the value of the specified double-precision floating point number to an equivalent 16-bit unsigned integer.


[6579] Return Value: value rounded to the nearest 16-bit unsigned integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A double-precision floating point number.


[6580] ToUInt16


[6581] [C#] public static ushort ToUInt16(short value);


[6582] [C++] public: static unsigned short ToUInt16(short value);


[6583] [VB] Public Shared Function ToUInt16(ByVal value As Short) As UInt 16


[6584] [JScript] public static function ToUInt16(value:Int 16): UInt16;


[6585] Description


[6586] Converts the value of the specified 16-bit signed integer to the equivalent 16-bit unsigned integer.


[6587] Return Value: The 16-bit unsigned integer equivalent to the value of value. A 16-bit signed integer.


[6588] ToUInt16


[6589] [C#] public static ushort ToUInt16(int value);


[6590] [C++] public: static unsigned short ToUInt16(int value);


[6591] [VB] Public Shared Function ToUInt16(ByVal value As Integer) As UInt16


[6592] [JScript] public static function ToUInt16(value: int): UInt16;


[6593] Description


[6594] Converts the value of the specified 32-bit signed integer to an equivalent 16-bit unsigned integer.


[6595] Return Value: The 16-bit unsigned integer equivalent of value. A 32-bit signed integer.


[6596] ToUInt16


[6597] [C#] public static ushort ToUInt16(long value);


[6598] [C++] public: static unsigned short ToUInt16(_int64 value);


[6599] [VB] Public Shared Function ToUInt16(ByVal value As Long) As UInt16


[6600] [JScript] public static function ToUInt16(value: long): UInt16;


[6601] Description


[6602] Converts the value of the specified 64-bit signed integer to an equivalent 16-bit unsigned integer. Return Value: A 16-bit unsigned integer equivalent to the value of value. A 64-bit signed integer.


[6603] ToUInt16


[6604] [C#] public static ushort ToUInt16(object value);


[6605] [C++] public: static unsigned short ToUInt16(Object* value);


[6606] [VB] Public Shared Function ToUInt16(ByVal value As Object) As UInt16


[6607] [JScript] public static function ToUInt16(value: Object): UInt16; Converts a specified value to a 16-bit unsigned integer.


[6608] Description


[6609] Converts the value of the specified Object to a 16-bit unsigned integer.


[6610] Return Value: A 16-bit unsigned integer equivalent to the value of value, or zero if value is null.


[6611] The return value is the result of invoking the IConvertible.ToUInt16 method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[6612] ToUInt16


[6613] [C#] public static ushort ToUInt16(sbyte value);


[6614] [C++] public: static unsigned short ToUInt16(char value);


[6615] [VB] Public Shared Function ToUInt16(ByVal value As SByte) As UInt16


[6616] [JScript] public static function ToUItntI16(value: SByte): UInt16;


[6617] Description


[6618] Converts the value of the specified 8-bit signed integer to the equivalent 16-bit unsigned integer.


[6619] Return Value: The 8-bit unsigned integer equivalent to the value of value. An 8-bit signed integer.


[6620] ToUInt16


[6621] [C+] public static ushort ToUInt16(float value);


[6622] [C++] public: static unsigned short ToUInt16(float value);


[6623] [VB] Public Shared Function ToUInt16(ByVal value As Single) As UInt16


[6624] [JScript] public static function ToUInt16(value: float): UInt16;


[6625] Description


[6626] Converts the value of the specified single-precision floating point number to an equivalent 16-bit unsigned integer.


[6627] Return Value: value rounded to the nearest 16-bit unsigned integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A single-precision floating point number.


[6628] ToUInt16


[6629] [C#] public static ushort ToUInt16(string value);


[6630] [C++] public: static unsigned short ToUInt16(String* value);


[6631] [VB] Public Shared Function ToUInt16(ByVal value As String) As UInt16


[6632] [JScript] public static function ToUInt16(value: String): UInt16;


[6633] Description


[6634] Converts the specified String representation of a number to an equivalent 16-bit unsigned integer.


[6635] Return Value: A 16-bit unsigned integer equivalent to the value of value.


[6636] The return value is the result of invoking System.UInt16.Parse(System.String) on value. A System.String containing a number to convert.


[6637] ToUInt16


[6638] [C#] public static ushort ToUInt16(ushort value);


[6639] [C++] public: static unsigned short ToUInt16(unsigned short value);


[6640] [VB] Public Shared Function ToUInt16(ByVal value As UInt16) As UInt16


[6641] [JScript] public static function ToUInt16(value: UInt16): UInt16;


[6642] Description


[6643] Returns the specified 16-bit unsigned integer; no actual conversion is performed.


[6644] Return Value: value is returned unchanged. A 16-bit unsigned integer.


[6645] ToUInt16


[6646] [C#] public static ushort ToUInt16(uint value);


[6647] [C++] public: static unsigned short ToUInt16(unsigned int value);


[6648] [VB] Public Shared Function ToUInt16(ByVal value As UInt32) As UInt16


[6649] [JScript] public static function ToUInt16(value: UInt32): UInt16;


[6650] Description


[6651] Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit unsigned integer.


[6652] Return Value: A 16-bit unsigned integer equivalent to the value of value. A 32-bit unsigned integer.


[6653] ToUInt16


[6654] [C#] public static ushort ToUInt16(ulong value);


[6655] [C++] public: static unsigned short ToUInt16(unsigned_int64 value);


[6656] [VB] Public Shared Function ToUInt16(ByVal value As UInt64) As UInt16


[6657] [JScript] public static function ToUInt16(value: UInt64): UInt16;


[6658] Description


[6659] Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit unsigned integer.


[6660] Return Value: A 16-bit unsigned integer equivalent to the value of value. A 64-bit unsigned integer.


[6661] ToUInt16


[6662] [C#] public static ushort ToUInt16(object value, IFormatProvider provider);


[6663] [C++] public: static unsigned short ToUInt16(Object* value, IFormatProvider* provider);


[6664] [VB] Public Shared Function ToUInt16(ByVal value As Object, ByVal provider As IFormatProvider) As UInt16


[6665] [JScript] public static function ToUInt16(value: Object, provider: IFormatProvider): UInt16;


[6666] Description


[6667] Converts the value of the specified Object to a 16-bit unsigned integer using the specified culture-specific formatting information.


[6668] Return Value: A 16-bit unsigned integer equivalent to the value of value, or zero if value is null.


[6669] The return value is the result of invoking the IConvertible.ToUInt16 method of the underlying type of value. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6670] ToUInt16


[6671] [C#] public static ushort ToUInt16(string value, IFormatProvider provider);


[6672] [C++] public: static unsigned short ToUIntl16(String* value, IFormatProvider* provider);


[6673] [VB] Public Shared Function ToUInt16(ByVal value As String, ByVal provider As IFormatProvider) As UInt16


[6674] [JScript] public static function ToUInt16(value: String, provider: IFormatProvider): UInt16;


[6675] Description


[6676] Converts the specified String representation of a number to an equivalent 16-bit unsigned integer using specified culture-specific formatting information.


[6677] Return Value: A 16-bit unsigned integer equivalent to the value of value.


[6678] The return value is the result of invoking System.UInt16.Parse(System.String) on value. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6679] ToUInt16


[6680] [C#] public static ushort ToUInt16(string value, int fromBase);


[6681] [C++] public: static unsigned short ToUInt16(String* value, int fromBase);


[6682] [VB] Public Shared Function ToUInt16(ByVal value As String, ByVal frombase As Integer) As UInt16


[6683] [JScript] public static function ToUInt16(value: String, fromBase: int): UInt16;


[6684] Description


[6685] Converts the String representation of a number in a specified base to an equivalent 16-bit unsigned integer.


[6686] Return Value: A 16-bit unsigned integer equivalent to the number in value. A System.String containing a number. The base of the number in value, which must be 2, 8, 10, or 16.


[6687] ToUInt32


[6688] [C#] public static uint ToUInt32(bool value);


[6689] [C++] public: static unsigned int ToUInt32(bool value);


[6690] [VB] Public Shared Function ToUInt32(ByVal value As Boolean) As UInt32


[6691] [JScript] public static function ToUInt32(value: Boolean): UInt32;


[6692] Description


[6693] Converts the value of the specified Boolean value to the equivalent 32-bit unsigned integer.


[6694] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[6695] ToUInt32


[6696] [C#] public static uint ToUInt32(byte value);


[6697] [C++] public: static unsigned int ToUInt32(unsigned char value);


[6698] [VB] Public Shared Function ToUInt32(ByVal value As Byte) As UInt32


[6699] [JScript] public static function ToUInt32(value: Byte): UInt32;


[6700] Description


[6701] Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit signed integer.


[6702] Return Value: The 32-bit signed integer equivalent to the value of value. An 8-bit unsigned integer.


[6703] ToUInt32


[6704] [C#] public static uint ToUInt32(char value);


[6705] [C++] public: static unsigned int ToUInt32(_wchar_t value);


[6706] [VB] Public Shared Function ToUInt32(ByVal value As Char) As UInt32


[6707] [JScript] public static function ToUInt32(value: Char): UInt32;


[6708] Description


[6709] Converts the value of the specified Unicode character to the equivalent 32-bit unsigned integer.


[6710] Return Value: The 32-bit unsigned integer equivalent to value. A Unicode character.


[6711] ToUInt32


[6712] [C#] public static uint ToUInt32(DateTime value);


[6713] [C++] public: static unsigned int ToUInt32(DateTime value);


[6714] [VB] Public Shared Function ToUInt32(ByVal value As DateTime) As UInt32


[6715] [JScript] public static function ToUInt32(value: DateTime): UInt32;


[6716] Description


[6717] Calling this method always throws System.InvalidCastException.


[6718] This method is reserved for future use. A System.DateTime.


[6719] ToUInt32


[6720] [C#] public static uint ToUInt32(decimal value);


[6721] [C++] public: static unsigned int ToUInt32(Decimal value);


[6722] [VB] Public Shared Function ToUInt32(ByVal value As Decimal) As UInt32


[6723] [JScript] public static function ToUInt32(value: Decimal): UInt32;


[6724] Description


[6725] Converts the value of the specified Decimal number to an equivalent 32-bit unsigned integer.


[6726] Return Value: value rounded to the nearest 32-bit unsigned integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A System.Decimal number.


[6727] ToUInt32


[6728] [C#] public static uint ToUInt32(double value);


[6729] [C++] public: static unsigned int ToUInt32(double value);


[6730] [VB] Public Shared Function ToUInt32(ByVal value As Double) As UInt32


[6731] [JScript] public static function ToUInt32(value: double): UInt32;


[6732] Description


[6733] Converts the value of the specified double-precision floating point number to an equivalent 32-bit unsigned integer.


[6734] Return Value: value rounded to the nearest 32-bit unsigned integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A double-precision floating point number.


[6735] ToUInt32


[6736] [C#] public static uint ToUInt32(short value);


[6737] [C++] public: static unsigned int ToUInt32(short value);


[6738] [VB] Public Shared Function ToUInt32(ByVal value As Short) As UInt32


[6739] [JScript] public static function ToUInt32(value: Int16): UInt32;


[6740] Description


[6741] Converts the value of the specified 16-bit signed integer to the equivalent 32-bit unsigned integer.


[6742] Return Value: The 32-bit unsigned integer equivalent to the value of value. A 32-bit signed integer.


[6743] ToUInt32


[6744] [C#] public static uint ToUInt32(int value);


[6745] [C++] public: static unsigned int ToUInt32(int value);


[6746] [VB] Public Shared Function ToUInt32(ByVal value As Integer) As UInt32


[6747] [JScript] public static function ToUInt32(value: int): UInt32;


[6748] Description


[6749] Converts the value of the specified 32-bit signed integer to an equivalent 32-bit unsigned integer.


[6750] Return Value: The 32-bit unsigned integer equivalent of value. A 32-bit signed integer.


[6751] ToUInt32


[6752] [C#] public static uint ToUInt32(long value);


[6753] [C++] public: static unsigned int ToUInt32(_int64 value);


[6754] [VB] Public Shared Function ToUInt32(ByVal value As Long) As UInt32


[6755] [JScript] public static function ToUInt32(value: long): UInt32;


[6756] Description


[6757] Converts the value of the specified 64-bit signed integer to an equivalent 32-bit unsigned integer.


[6758] Return Value: A 32-bit unsigned integer equivalent to the value of value. A 64-bit signed integer.


[6759] ToUInt32


[6760] [C#] public static uint ToUInt32(object value);


[6761] [C++] public: static unsigned int ToUInt32(Object* value);


[6762] [VB] Public Shared Function ToUInt32(ByVal value As Object) As UInt32


[6763] [JScript] public static function ToUInt32(value: Object): UInt32; Converts a specified value to a 32-bit unsigned integer.


[6764] Description


[6765] Converts the value of the specified Object to a 32-bit unsigned integer.


[6766] Return Value: A 32-bit unsigned integer equivalent to the value of value, or zero if value is null.


[6767] The return value is the result of invoking the IConvertible.ToUInt32 method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[6768] ToUInt32


[6769] [C#] public static uint ToUInt32(sbyte value);


[6770] [C++] public: static unsigned int ToUInt32(char value);


[6771] [VB] Public Shared Function ToUInt32(ByVal value As SByte) As UInt32


[6772] [JScript] public static function ToUInt32(value: SByte): UInt32;


[6773] Description


[6774] Converts the value of the specified 8-bit signed integer to the equivalent 32-bit unsigned integer.


[6775] Return Value: The 8-bit unsigned integer equivalent to the value of value. An 8-bit signed integer.


[6776] ToUInt32


[6777] [C#] public static uint ToUInt32(float value);


[6778] [C++] public: static unsigned int ToUInt32(float value);


[6779] [VB] Public Shared Function ToUInt32(ByVal value As Single) As UInt32


[6780] [JScript] public static function ToUInt32(value: float): UInt32;


[6781] Description


[6782] Converts the value of the specified single-precision floating point number to an equivalent 32-bit unsigned integer.


[6783] Return Value: value rounded to the nearest 32-bit unsigned integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A single-precision floating point number.


[6784] ToUInt32


[6785] [C#] public static uint ToUInt32(string value);


[6786] [C++] public: static unsigned int ToUInt32(String* value);


[6787] [VB] Public Shared Function ToUInt32(ByVal value As String) As UInt32


[6788] [JScript] public static function ToUInt32(value: String): UInt32;


[6789] Description


[6790] Converts the specified String representation of a number to an equivalent 32-bit signed integer.


[6791] Return Value: A 32-bit signed integer equivalent to the value of value.


[6792] The return value is the result of invoking the System.Int32.Parse(System.String) method on value. A System.String containing a number to convert.


[6793] ToUInt32


[6794] [C#] public static uint ToUInt32(ushort value);


[6795] [C++] public: static unsigned int ToUInt32(unsigned short value);


[6796] [VB] Public Shared Function ToUInt32(ByVal value As UInt 16) As UInt32


[6797] [JScript] public static function ToUInt32(value: UInt16): UInt32;


[6798] Description


[6799] Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit unsigned integer.


[6800] Return Value: The 32-bit unsigned integer equivalent to the value of value. A 32-bit signed integer.


[6801] ToUInt32


[6802] [C#] public static uint ToUInt32(uint value);


[6803] [C++] public: static unsigned int ToUInt32(unsigned int value);


[6804] [VB] Public Shared Function ToUInt32(ByVal value As UInt32) As UInt32


[6805] [JScript] public static function ToUInt32(value: UInt32): UInt32;


[6806] Description


[6807] Returns the specified 32-bit unsigned integer; no actual conversion is performed.


[6808] Return Value: value is returned unchanged. A 32-bit unsigned integer.


[6809] ToUInt32


[6810] [C#] public static uint ToUInt32(ulong value);


[6811] [C++] public: static unsigned int ToUInt32(unsigned_int64 value);


[6812] [VB] Public Shared Function ToUInt32(ByVal value As UInt64) As UInt32


[6813] [JScript] public static function ToUInt32(value: UInt64): UInt32;


[6814] Description


[6815] Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit unsigned integer.


[6816] Return Value: A 32-bit unsigned integer equivalent to the value of value. A 64-bit unsigned integer.


[6817] ToUInt32


[6818] [C#] public static uint ToUInt32(object value, IFormatProvider provider);


[6819] [C++] public: static unsigned int ToUInt32(Object* value, IFormatProvider* provider);


[6820] [VB] Public Shared Function ToUInt32(ByVal value As Object, ByVal provider As IFormatProvider) As UInt32


[6821] [JScript] public static function ToUInt32(value: Object, provider: IFormatProvider): UInt32;


[6822] Description


[6823] Converts the value of the specified Object to a 32-bit unsigned integer using the specified culture-specific formatting information.


[6824] Return Value: A 32-bit unsigned integer equivalent to the value of value , or zero if value is null.


[6825] The return value is the result of invoking the IConvertible.ToUInt32 method of the underlying type of value. An System.Object that implements the System.IConvertible interface. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6826] ToUInt32


[6827] [C#] public static uint ToUInt32(string value, IFormatProvider provider);


[6828] [C++] public: static unsigned int ToUInt32(String* value, IFormatProvider* provider);


[6829] [VB] Public Shared Function ToUInt32(ByVal value As String, ByVal provider As IFormatProvider) As UInt32


[6830] [JScript] public static function ToUInt32(value: String, provider: IFormatProvider): UInt32;


[6831] Description


[6832] Converts the specified String representation of a number to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.


[6833] Return Value. A 32-bit unsigned integer equivalent to the value of value.


[6834] The return value is the result of invoking System.UInt32.Parse(System.String) on value. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6835] ToUInt32


[6836] [C#] public static uint ToUInt32(string value, int fromBase);


[6837] [C++] public: static unsigned int ToUInt32(String* value, int fromBase);


[6838] [VB] Public Shared Function ToUInt32(ByVal value As String, ByVal fromBase As Integer) As UInt32


[6839] [JScript] public static function ToUInt32(value: String, fromBase: int): UInt32;


[6840] Description


[6841] Converts the String representation of a number in a specified base to an equivalent 32-bit unsigned integer.


[6842] Return Value: A 32-bit unsigned integer equivalent to the number in value. A System.String containing a number. The base of the number in value, which must be 2,8,10,or 16.


[6843] ToUInt64


[6844] [C#] public static ulong ToUInt64(bool value);


[6845] [C++] public: static unsigned_int64 ToUInt64(bool value);


[6846] [VB] Public Shared Function ToUInt64(ByVal value As Boolean) As UInt64


[6847] [JScript] public static function ToUInt64(value: Boolean): UInt64;


[6848] Description


[6849] Converts the value of the specified Boolean value to the equivalent 64-bit unsigned integer.


[6850] Return Value: The number 1 if value is true; otherwise, 0. A Boolean value.


[6851] ToUInt64


[6852] [C#] public static ulong ToUInt64(byte value);


[6853] [C++] public: static unsigned_int64 ToUInt64(unsigned char value);


[6854] [VB] Public Shared Function ToUInt64(ByVal value As Byte) As UInt64


[6855] [JScript] public static function ToUInt64(value: Byte): UInt64;


[6856] Description


[6857] Converts the value of the specified 8-bit unsigned integer to the equivalent 64-bit signed integer.


[6858] Return Value: The 64-bit signed integer equivalent to the value of value. An 8-bit unsigned integer.


[6859] ToUInt64


[6860] [C#] public static ulong ToUInt64(char value);


[6861] [C++] public: static unsigned_int64 ToUInt64(_wchar_t value);


[6862] [VB] Public Shared Function ToUInt64(ByVal value As Char) As UInt64


[6863] [JScript] public static function ToUInt64(value: Char): UInt64;


[6864] Description


[6865] Converts the value of the specified Unicode character to the equivalent 64-bit unsigned integer.


[6866] Return Value: The 64-bit unsigned integer equivalent to value. A Unicode character.


[6867] ToUInt64


[6868] [C#] public static ulong ToUInt64(DateTime value);


[6869] [C++] public: static unsigned_int64 ToUInt64(DateTime value);


[6870] [VB] Public Shared Function ToUInt64(ByVal value As DateTime) As UInt64


[6871] [JScript] public static function ToUInt64(value: DateTime): UInt64;


[6872] Description


[6873] Calling this method always throws System.InvalidCastException.


[6874] This method is reserved for future use. A System.DateTime.


[6875] ToUInt64


[6876] [C#] public static ulong ToUInt64(decimal value);


[6877] [C++] public: static unsigned_int64 ToUInt64(Decimal value);


[6878] [VB] Public Shared Function ToUInt64(ByVal value As Decimal) As UInt64


[6879] [JScript] public static function ToUInt64(value: Decimal): UInt64;


[6880] Description


[6881] Converts the value of the specified Decimal number to an equivalent 64-bit unsigned integer.


[6882] Return Value: value rounded to the nearest 64-bit unsigned integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A System.Decimal number.


[6883] ToUInt64


[6884] [C#] public static ulong ToUInt64(double value);


[6885] [C++] public: static unsigned_int64 ToUInt64(double value);


[6886] [VB] Public Shared Function ToUInt64(ByVal value As Double) As UInt64


[6887] [JScript] public static function ToUInt64(value: double): UInt64;


[6888] Description


[6889] Converts the value of the specified double-precision floating point number to an equivalent 64-bit unsigned integer.


[6890] Return Value: value rounded to the nearest 64-bit unsigned integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A double-precision floating point number.


[6891] ToUInt64


[6892] [C#] public static ulong ToUInt64(short value);


[6893] [C++] public: static unsigned_int64 ToUInt64(short value);


[6894] [VB] Public Shared Function ToUInt64(ByVal value As Short) As UInt64


[6895] [JScript] public static function ToUInt64(value: Intl 6): UInt64;


[6896] Description


[6897] Converts the value of the specified 16-bit signed integer to the equivalent 64-bit unsigned integer.


[6898] Return Value: The 64-bit unsigned integer equivalent to the value of value. A 64-bit signed integer.


[6899] ToUInt64


[6900] [C#] public static ulong ToUInt64(int value);


[6901] [C++] public: static unsigned_int64 ToUInt64(int value);


[6902] [VB] Public Shared Function ToUInt64(ByVal value As Integer) As UInt64


[6903] [JScript] public static function ToUInt64(value: int): UInt64;


[6904] Description


[6905] Converts the value of the specified 32-bit signed integer to an equivalent 64-bit unsigned integer.


[6906] Return Value: The 64-bit unsigned integer equivalent of value. A 32-bit signed integer.


[6907] ToUInt64


[6908] [C#] public static ulong ToUInt64(long value);


[6909] [C++] public: static unsigned_int64 ToUInt64(_int64 value);


[6910] [VB] Public Shared Function ToUInt64(ByVal value As Long) As UInt64


[6911] [JScript] public static function ToUInt64(value: long): UInt64;


[6912] Description


[6913] Converts the value of the specified 64-bit signed integer to an equivalent 64-bit unsigned integer.


[6914] Return Value: A 64-bit unsigned integer equivalent to the value of value. A 64-bit signed integer.


[6915] ToUInt64


[6916] [C#] public static ulong ToUInt64(object value);


[6917] [C++] public: static unsigned_int64 ToUInt64(Object* value);


[6918] [VB] Public Shared Function ToUInt64(ByVal value As Object) As UInt64


[6919] [JScript] public static function ToUInt64(value: Object): UInt64; Converts a specified value to a 64-bit unsigned integer.


[6920] Description


[6921] Converts the value of the specified Object to a 64-bit unsigned integer.


[6922] Return Value: A 64-bit unsigned integer equivalent to the value of value, or zero if value is null.


[6923] The return value is the result of invoking the IConvertible.ToUInt64 method of the underlying type of value. An System.Object that implements the System.IConvertible interface or null.


[6924] ToUInt64


[6925] [C#] public static ulong ToUInt64(sbyte value);


[6926] [C++] public: static unsigned_int64 ToUInt64(char value);


[6927] [VB] Public Shared Function ToUInt64(ByVal value As SByte) As UInt64


[6928] [JScript] public static function ToUInt64(value: SByte): UInt64;


[6929] Description


[6930] Converts the value of the specified 8-bit signed integer to the equivalent 64-bit unsigned integer.


[6931] Return Value: The 8-bit unsigned integer equivalent to the value of value. An 8-bit signed integer.


[6932] ToUInt64


[6933] [C#] public static ulong ToUInt64(float value);


[6934] [C++] public: static unsigned_int64 ToUInt64(float value);


[6935] [VB] Public Shared Function ToUInt64(ByVal value As Single) As Uint64


[6936] [JScript] public static function ToUInt64(value: float): UInt64;


[6937] Description


[6938] Converts the value of the specified single-precision floating point number to an equivalent 64-bit unsigned integer.


[6939] Return Value: value rounded to the nearest 64-bit unsigned integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6. A single-precision floating point number.


[6940] ToUInt64


[6941] [C#] public static ulong ToUInt64(string value);


[6942] [C++] public: static unsigned_int64 ToUInt64(String* value);


[6943] [VB] Public Shared Function ToUInt64(ByVal value As String) As UInt64


[6944] [JScript] public static function ToUInt64(value: String): UInt64;


[6945] Description


[6946] Converts the specified String representation of a number to an equivalent 64-bit signed integer.


[6947] Return Value: A 64-bit signed integer equivalent to the value of value.


[6948] The return value is the result of invoking the System.Int64.Parse(System.String) method on value. A System.String containing a number to convert.


[6949] ToUInt64


[6950] [C#] public static ulong ToUInt64(ushort value);


[6951] [C++] public: static unsigned_int64 ToUInt64(unsigned short value);


[6952] [VB] Public Shared Function ToUInt64(ByVal value As UIntl 6) As UInt64


[6953] [JScript] public static function ToUInt64(value: UIntl6): UInt64;


[6954] Description


[6955] Converts the value of the specified 16-bit unsigned integer to the equivalent 64-bit unsigned integer.


[6956] Return Value: The 64-bit unsigned integer equivalent to the value of value. A 16-bit unsigned integer. ToUInt64


[6957] [C#] public static ulong ToUInt64(uint value);


[6958] [C++] public: static unsigned_int64 ToUInt64(unsigned int value);


[6959] [VB] Public Shared Function ToUInt64(ByVal value As UInt32) As UInt64


[6960] [JScript] public static function ToUInt64(value: UInt32): UInt64;


[6961] Description


[6962] Converts the value of the specified 32-bit unsigned integer to an equivalent 64-bit unsigned integer.


[6963] Return Value: The 64-bit unsigned integer equivalent of value. A 32-bit unsigned integer.


[6964] ToUInt64


[6965] [C#] public static ulong ToUInt64(ulong value);


[6966] [C++] public: static unsigned_int64 ToUInt64(unsigned_int64 value);


[6967] [VB] Public Shared Function ToUInt64(ByVal value As UInt64) As UInt64


[6968] [JScript] public static function ToUInt64(value: UInt64): UInt64;


[6969] Description


[6970] Returns the specified 64-bit unsigned integer; no actual conversion is performed.


[6971] Return Value: value is returned unchanged. A 64-bit unsigned integer.


[6972] ToUInt64


[6973] [C#] public static ulong ToUInt64(object value, IFormatProvider provider);


[6974] [C++] public: static unsigned_int64 ToUInt64(Object* value, IFormatProvider* provider);


[6975] [VB] Public Shared Function ToUInt64(ByVal value As Object, ByVal provider As IFormatProvider) As UInt64


[6976] [JScript] public static function ToUInt64(value: Object, provider: IFormatProvider): UInt64;


[6977] Description


[6978] Converts the value of the specified Object to a 64-bit unsigned integer using the specified culture-specific formatting information.


[6979] Return Value: A 64-bit unsigned integer equivalent to the value of value, or zero if value is null.


[6980] The return value is the result of invoking the IConvertible.ToUInt64 method of the underlying type of value. An System.Object that implements the System.lConvertible interface. An System.IFormatProvider interface 2 implementation that supplies culture-specific formatting information.


[6981] ToUInt64


[6982] [C#] public static ulong ToUInt64(string value, IFormatProvider provider);


[6983] [C++] public: static unsigned_int64 ToUInt64(String* value, IFormatProvider* provider);


[6984] [VB] Public Shared Function ToUInt64(ByVal value As String, ByVal provider As IFormatProvider) As UInt64


[6985] [JScript] public static function ToUInt64(value: String, provider: IFormatProvider): UInt64;


[6986] Description


[6987] Converts the specified String representation of a number to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.


[6988] Return Value: A 64-bit unsigned integer equivalent to the value of value.


[6989] The return value is the result of invoking System.UInt64.Parse(System.String) on value. A System.String containing a number to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[6990] ToUInt64


[6991] [C#] public static ulong ToUInt64(string value, int fromBase);


[6992] [C++] public: static unsigned_int64 ToUInt64(String* value, int fromBase);


[6993] [VB] Public Shared Function ToUInt64(ByVal value As String, ByVal fromBase As Integer) As UInt64


[6994] [JScript] public static function ToUInt64(value: String, fromBase: int): UInt64;


[6995] Description


[6996] Converts the String representation of a number in a specified base to an equivalent 64-bit unsigned integer.


[6997] Return Value: A 64-bit unsigned integer equivalent to the number in value. A System.String containing a number. The base of the number in value, which must be 2,8, 10, or 16.


[6998] CrossAppDomainDelegate delegate (System)


[6999] ToUInt64


[7000] Description


[7001] Used by System.AppDomain.DoCallBack(System.CrossAppDomainDelegate) for cross-application domain calls.


[7002] Every derived class of System.Delegate and System.MulticastDelegate has a constructor and an Invoke method. See the Managed Extensions for C++ code example given in the description for System.Delegate.


[7003] DateTime structure (System)


[7004] ToUInt64


[7005] Description


[7006] Represents an instant in time, typically expressed as a date and time of day.


[7007] The DateTime value type represents dates and times with values ranging from 12:00:00 AM, Jan. 1, 0001 CE (Common Era) to 11:59:59 PM, Dec. 12, 9999 CE.


[7008] ToUInt64


[7009] [C#] public static readonly DateTime MaxValue;


[7010] [C++] public: static DateTime MaxValue;


[7011] [VB] Public Shared ReadOnly MaxValue As DateTime


[7012] [JScript] public static var MaxValue: DateTime;


[7013] Description


[7014] A constant representing the largest possible value of DateTime.


[7015] The value of this constant is 11:59:59 PM, Dec. 31, 9999 CE.


[7016] ToUInt64


[7017] [C#] public static readonly DateTime MinValue;


[7018] [C++] public: static DateTime MinValue;


[7019] [VB] Public Shared ReadOnly MinValue As DateTime


[7020] [JScript] public static var MinValue: DateTime;


[7021] Description


[7022] A constant representing the smallest possible value of DateTime.


[7023] The value of this constant is 12:00:00 AM, Jan. 1, 0001 CE.


[7024] DateTime



Example Syntax

[7025] ToUInt64


[7026] [C#] public DateTime(long ticks);


[7027] [C++] public: DateTime(_int64 ticks);


[7028] [VB] Public Sub New(ByVal ticks As Long)


[7029] [JScript] public function DateTime(ticks: long); Initializes a new instance of the DateTime structure.


[7030] Description


[7031] Initializes a new instance of the DateTime structure to a specified number of ticks. A date and time expressed in 100-nanosecond units.


[7032] DateTime



Example Syntax

[7033] ToUInt64


[7034] [C#] public DateTime(int year, int month, int day);


[7035] [C++] public: DateTime(int year, int month, int day);


[7036] [VB] Public Sub New(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer)


[7037] [JScript] public function DateTime(year: int, month: int, day: int);


[7038] Description


[7039] Initializes a new instance of the DateTime structure to the specified year, month, and day.


[7040] The time of day for the resulting DateTime is midnight. The year (1 through 9999). The month (1 through 12). The day (1 through the number of days in month).


[7041] DateTime



Example Syntax

[7042] ToUInt64


[7043] [C#] public DateTime(int year, int month, int day, Calendar calendar);


[7044] [C++] public: DateTime(int year, int month, int day, Calendar* calendar);


[7045] [VB] Public Sub New(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal calendar As Calendar)


[7046] [JScript] public function DateTime(year: int, month: int, day: int, calendar: Calendar);


[7047] Description


[7048] Initializes a new instance of the DateTime structure to the specified year, month, and day for the specified calendar.


[7049] The time of day for the resulting DateTime is midnight. The year (1 through 9999). The month (1 through the number of months in calendar). The day (1 through the number of days in month). The calendar which applies to this DateTime.


[7050] DateTime



Example Syntax

[7051] ToUInt64


[7052] [C#l public DateTime(int year, int month, int day, int hour, int minute, int second);


[7053] [C++] public: DateTime(int year, int month, int day, int hour, int minute, int second);


[7054] [VB] Public Sub New(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer)


[7055] [JScript] public function DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int);


[7056] Description


[7057] Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, and second. The year (1 through 9999) The month (1 through 12) The day (1 through the number of days in month) The hours (0 through 23) The minutes (0 through 59) The seconds (0 through 59)


[7058] DateTime



Example Syntax

[7059] ToUInt64


[7060] [C#] public DateTime(int year, int month, int day, int hour, int minute, int second, Calendar calendar);


[7061] [C++] public: DateTime(int year, int month, int day, int hour, int minute, int second, Calendar* calendar);


[7062] [VB] Public Sub New(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal calendar As Calendar)


[7063] [JScript] public function DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, calendar: Calendar);


[7064] Description


[7065] Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, and second for the specified calendar.


[7066] The time of day for the resulting DateTime is midnight. The year (1 through 9999) The month (1 through the number of months in calendar) The day (1 through the number of days in month) The hours (0 through 23) The minutes (0 through 59) The seconds (0 through 59) The calendar which applies to this DateTime


[7067] DateTime



Example Syntax

[7068] ToUInt64


[7069] [C#] public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond);


[7070] [C++] public: DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond);


[7071] [VB] Public Sub New(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer)


[7072] [JScript] public function DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int);


[7073] Description


[7074] Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, second, and millisecond. The year (1 through 9999) The month (1 through 12) The day (1 through the number of days in month) The hours (0 through 23) The minutes (0 through 59) The seconds (0 through 59) The milliseconds


[7075] DateTime



Example Syntax

[7076] ToUInt64


[7077] [C#] public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar);


[7078] [C++] public: DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar* calendar);


[7079] [VB] Public Sub New(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal calendar As Calendar)


[7080] [JScript] public function DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, calendar: Calendar);


[7081] Description


[7082] Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, second, and millisecond for the specified calendar.


[7083] The time of day for the resulting DateTime is midnight. The year (1 through 9999) The month (1 through the number of months in calendar) The day (1 through the number of days in month) The hours (0 through 23) The minutes (0 through 59) The seconds (0 through 59) The milliseconds The calendar which applies to this System.DateTime


[7084] Date


[7085] ToUInt64


[7086] [C#] public DateTime Date {get;}


[7087] [C++] public: property DateTime get Date( );


[7088] [VB] Public ReadOnly Property Date As DateTime


[7089] [JScript] public function get Date( ): DateTime;


[7090] Description


[7091] Gets the date component of this instance.


[7092] Day


[7093] ToUInt64


[7094] [C#] public int Day {get;}


[7095] [C++] public: _property int get_Day( );


[7096] [VB] Public ReadOnly Property Day As Integer


[7097] [JScript] public function get Day( ): int;


[7098] Description


[7099] Gets the day of the month represented by this instance.


[7100] DayOfWeek


[7101] ToUInt64


[7102] [C#] public DayOfWeek DayOfWeek {get;}


[7103] [C++] public: property DayOfWeek getDayOfWeek( );


[7104] [VB] Public ReadOnly Property DayOfWeek As DayOfWeek


[7105] [JScript] public function get DayOfWeek( ): DayOfWeek;


[7106] Description


[7107] Gets the day of the week represented by this instance.


[7108] DayOfYear


[7109] ToUInt64


[7110] [C#] public int DayOfYear {get;}


[7111] [C++] public: _property int get_DayOfYear( );


[7112] [VB] Public ReadOnly Property DayOfYear As Integer


[7113] [JScript] public function get DayOfYear( ): int;


[7114] Description


[7115] Gets the day of the year represented by this instance.


[7116] Hour


[7117] ToUInt64


[7118] [C#] public int Hour {get;}


[7119] [C++] public: _property int get_Hour( );


[7120] [VB] Public ReadOnly Property Hour As Integer


[7121] [JScript] public function get Hour( ): int;


[7122] Description


[7123] Gets the hour component of the date represented by this instance.


[7124] Millisecond


[7125] ToUInt64


[7126] [C#] public int Millisecond {get;}


[7127] [C++] public: Property int get_Millisecond( );


[7128] [VB] Public ReadOnly Property Millisecond As Integer


[7129] [JScript] public function get Millisecond( ): int;


[7130] Description


[7131] Gets the milliseconds component of the date represented by this instance.


[7132] Minute


[7133] ToUInt64


[7134] [C#] public int Minute {get;}


[7135] [C++] public: _property int get Minute( );


[7136] [VB] Public ReadOnly Property Minute As Integer


[7137] [JScript] public function get Minute( ): int;


[7138] Description


[7139] Gets the minute component of the date represented by this instance.


[7140] Month


[7141] ToUInt64


[7142] [C#] public int Month {get;}


[7143] [C++] public: Property int get_Month( );


[7144] [VB] Public ReadOnly Property Month As Integer


[7145] [JScript] public function get Month( ): int;


[7146] Description


[7147] Gets the month component of the date represented by this instance.


[7148] Now


[7149] ToUInt64


[7150] [C#] public static DateTime Now {get;}


[7151] [C++] public: _property static DateTime get_Now( );


[7152] [VB] Public Shared ReadOnly Property Now As DateTime


[7153] [JScript] public static function get Now( ): DateTime;


[7154] Description


[7155] Gets a DateTime that is the current local time on this computer.


[7156] The resolution of this property depends on the system timer.


[7157] Second


[7158] ToUInt64


[7159] [C#] public int Second {get;}


[7160] [C++] public: _property int get_Second( );


[7161] [VB] Public ReadOnly Property Second As Integer


[7162] [JScript] public function get Second( ): int;


[7163] Description


[7164] Retrieves the seconds component of the date represented by this instance.


[7165] Ticks


[7166] ToUInt64


[7167] [C#] public long Ticks {get;}


[7168] [C++] public: property int64 get_Ticks( );


[7169] [VB] Public ReadOnly Property Ticks As Long


[7170] [JScript] public function get_Ticks( ): long;


[7171] Description


[7172] Gets the number of 100-nanosecond ticks that represent the date and time of this instance.


[7173] The value of this property is the number of 100-nanosecond intervals that have elapsed since Jan. 1, 0001 12:00am.


[7174] TimeOfDay


[7175] ToUInt64


[7176] [C#] public TimeSpan TimeOfDay {get;}


[7177] [C++] public: _property TimeSpan get_TimeOfDay( );


[7178] [VB] Public ReadOnly Property TimeOfDay As TimeSpan


[7179] [JScript] public function get_TimeOfDay( ): TimeSpan;


[7180] Description


[7181] Gets the time of day for this instance.


[7182] Today


[7183] ToUInt64


[7184] [C#] public static DateTime Today {get;}


[7185] [C++] public: _property static DateTime get_Today( );


[7186] [VB] Public Shared ReadOnly Property Today As DateTime


[7187] [JScript] public static function get_Today( ): DateTime;


[7188] Description


[7189] Gets the current date.


[7190] UtcNow


[7191] ToUInt64


[7192] [Cg] public static DateTime UtcNow {get;}


[7193] [C++] public: _property static DateTime get_UtcNow( );


[7194] [VB] Public Shared ReadOnly Property UtcNow As DateTime


[7195] [JScript] public static function get UtcNow( ): DateTime;


[7196] Description


[7197] Gets a DateTime that is the current local time on this computer expressed as the coordinated universal time (UTC).


[7198] The resolution of this property depends on the system timer.


[7199] Year


[7200] ToUInt64


[7201] [C#] public int Year {get;}


[7202] [C++] public: _property int get_Year( );


[7203] [VB] Public ReadOnly Property Year As Integer


[7204] [JScript] public function get_Year( ): int;


[7205] Description


[7206] Gets the year component of the date represented by this instance. Add


[7207] [C#] public DateTime Add(TimeSpan value);


[7208] [C++] public: DateTime Add(TimeSpan value);


[7209] [VB] Public Function Add(ByVal value As TimeSpan) As DateTime


[7210] [JScript] public function Add(value: TimeSpan): DateTime;


[7211] Description


[7212] Adds the value of the specified TimeSpan instance to the value of this instance.


[7213] Return Value: A DateTime whose value is the sum of the date and time represented by this instance and the time interval represented by value.


[7214] This method does not change the value of this DateTime instance. Instead, a new DateTime instance is returned whose value is the result of this operation. A time interval.


[7215] AddDays


[7216] [C+] public DateTime AddDays(double value);


[7217] [C++] public: DateTime AddDays(double value);


[7218] [VB] Public Function AddDays(ByVal value As Double) As DateTime


[7219] [JScript] public function AddDays(value: double): DateTime;


[7220] Description


[7221] Adds the specified number of days to the value of this instance.


[7222] Return Value: A DateTime whose value is the sum of the date and time represented by this instance and the number of days represented by value.


[7223] This method does not change the value of this DateTime instance. Instead, a new DateTime instance is returned whose value is the result of this operation. A number of whole and fractional days.


[7224] AddHours


[7225] [C#] public DateTime AddHours(double value);


[7226] [C++] public: DateTime AddHours(double value);


[7227] [VB] Public Function AddHours(ByVal value As Double) As DateTime


[7228] [JScript] public function AddHours(value: double): DateTime;


[7229] Description


[7230] Adds the specified number of hours to the value of this instance.


[7231] Return Value: A DateTime whose value is the sum of the date and time represented by this instance and the number of hours represented by value.


[7232] This method does not change the value of this DateTime instance. Instead, a new DateTime instance is returned whose value is the result of this operation. A number of whole and fractional hours.


[7233] AddMilliseconds


[7234] [C#] public DateTime AddMilliseconds(double value);


[7235] [C++] public: DateTime AddMilliseconds(double value);


[7236] [VB] Public Function AddMilliseconds(ByVal value As Double) As DateTime


[7237] [JScript] public function AddMilliseconds(value: double): DateTime;


[7238] Description


[7239] Adds the specified number of milliseconds to the value of this instance.


[7240] Return Value: A DateTime whose value is the sum of the date and time represented by this instance and the number of milliseconds represented by value.


[7241] This method does not change the value of this DateTime instance. Instead, a new DateTime instance is returned whose value is the result of this operation. A number of milliseconds.


[7242] AddMinutes


[7243] [C#] public DateTime AddMinutes(double value);


[7244] [C++] public: DateTime AddMinutes(double value);


[7245] [VB] Public Function AddMinutes(ByVal value As Double) As DateTime


[7246] [JScript] public function AddMinutes(value: double): DateTime;


[7247] Description


[7248] Adds the specified number of minutes to the value of this instance.


[7249] Return Value: A DateTime whose value is the sum of the date and time represented by this instance and the number of minutes represented by value.


[7250] This method does not change the value of this DateTime instance. Instead, a new DateTime instance is returned whose value is the result of this operation. A number of whole and fractional minutes.


[7251] AddMonths


[7252] [C#] public DateTime AddMonths(int months);


[7253] [C++] public: DateTime AddMonths(int months);


[7254] [VB] Public Function AddMonths(ByVal months As Integer) As DateTime


[7255] [JScript] public function AddMonths(months: int): DateTime;


[7256] Description


[7257] Adds the specified number of months to the value of this instance.


[7258] Return Value: A DateTime whose value is the sum of the date and time represented by this instance and months.


[7259] This method does not change the value of this DateTime instance. Instead, a new DateTime instance is returned whose value is the result of this operation. A number of months.


[7260] AddSeconds


[7261] [C#] public DateTime AddSeconds(double value);


[7262] [C++] public: DateTime AddSeconds(double value);


[7263] [VB] Public Function AddSeconds(ByVal value As Double) As DateTime


[7264] [JScript] public function AddSeconds(value: double): DateTime;


[7265] Description


[7266] Adds the specified number of seconds to the value of this instance.


[7267] Return Value: A DateTime whose value is the sum of the date and time represented by this instance and the number of seconds represented by value.


[7268] This method does not change the value of this DateTime instance. Instead, a new DateTime instance is returned whose value is the result of this operation. A number of whole and fractional seconds.


[7269] AddTicks


[7270] [C#] public DateTime AddTicks(long value);


[7271] [C++] public: DateTime AddTicks_int64 value);


[7272] [VB] Public Function AddTicks(ByVal value As Long) As DateTime


[7273] [JScript] public function AddTicks(value: long): DateTime;


[7274] Description


[7275] Adds the specified number of ticks to the value of this instance.


[7276] Return Value: A DateTime whose value is the sum of the date and time represented by this instance and the time represented by value.


[7277] This method does not change the value of this DateTime instance. Instead, a new DateTime instance is returned whose value is the result of this operation. A number of 100-nanosecond ticks.


[7278] AddYears


[7279] [C#] public DateTime AddYears(int value);


[7280] [C++] public: DateTime AddYears(int value);


[7281] [VB] Public Function AddYears(ByVal value As Integer) As DateTime


[7282] [JScript] public function AddYears(value: int): DateTime;


[7283] Description


[7284] Adds the specified number of years to the value of this instance.


[7285] Return Value: A DateTime whose value is the sum of the date and time represented by this instance and the number of years represented by value.


[7286] This method does not change the value of this DateTime instance. Instead, a new DateTime instance is returned whose value is the result of this operation. A number of years.


[7287] Compare


[7288] [C#] public static int Compare(DateTime t1, DateTime t2);


[7289] [C++] public: static int Compare(DateTime t1, DateTime t2);


[7290] [VB] Public Shared Function Compare(ByVal t1 As DateTime, ByVal t2 As DateTime) As Integer


[7291] [JScript] public static function Compare(t1: DateTime, t2: DateTime): int;


[7292] Description


[7293] Compares two instances of DateTime and returns an indication of their relative values.


[7294] Return Value: A signed number indicating the relative values of t] and t2. The first DateTime. The second DateTime.


[7295] CompareTo


[7296] [C#] public int CompareTo(object value);


[7297] [C++] public: _sealed int CompareTo(Object* value);


[7298] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[7299] [JScript] public function CompareTo(value: Object): int;


[7300] Description


[7301] Compares this instance to a specified object and returns an indication of their relative values.


[7302] Return Value: A signed number indicating the relative values of this instance and value.


[7303] Any instance of DateTime, regardless of its value, is considered greater than null. An object to compare, or null.


[7304] DaysInMonth


[7305] [C+] public static int DaysInMonth(int year, int month);


[7306] [C++] public: static int DaysInMonth(int year, int month);


[7307] [VB] Public Shared Function DaysInMonth(ByVal year As Integer, ByVal month As Integer) As Integer


[7308] [JScript] public static function DaysInMonth(year: int, month: int): int;


[7309] Description


[7310] Returns the number of days in the specified month of the specified year.


[7311] Return Value: The number of days in month for the specified year. The year. The s month (a number ranging from 1 to 12).


[7312] Equals


[7313] [C#] public override bool Equals(object value);


[7314] [C++] public: bool Equals(Object* value);


[7315] [VB] Overrides Public Function Equals(ByVal value As Object) As Boolean


[7316] [JScript] public override function Equals(value: Object): Boolean; Returns a value indicating whether an instance of DateTime is equal to a specified object.


[7317] Description


[7318] Returns a value indicating whether this instance is equal to a specified object.


[7319] Return Value: true if value is an instance of DateTime and equals the value of this instance; otherwise, false. An object to compare with this instance.


[7320] Equals


[7321] [C#] public static new bool Equals(DateTime t1, DateTime t2);


[7322] [C++] public: static bool Equals(DateTime t1, DateTime t2);


[7323] [VB] Shadows Public Shared Function Equals(ByVal t1 As DateTime, ByVal t2 As DateTime) As Boolean


[7324] [JScript] public static hide function Equals(t1: DateTime, t2: DateTime) Boolean;


[7325] Description


[7326] Returns a value indicating whether two instances of System.DateTime are equal.


[7327] Return Value: true if the two DateTime values are equal; otherwise, false. The first DateTime. The second DateTime.


[7328] FromFileTime


[7329] [C#] public static DateTime FromFileTime(long fileTime);


[7330] [C++] public: static DateTime FromFileTime(_int64 fileTime);


[7331] [VB] Public Shared Function FromFileTime(ByVal fileTime As Long) As DateTime


[7332] [JScript] public static function FromFileTime(fileTime: long): DateTime;


[7333] Description


[7334] Returns a DateTime equivalent to the specified operating system file timestamp.


[7335] Return Value: A DateTime value representing the date and time offileTime, adjusted to local time.


[7336] filetime is a 64-bit signed integer value representing a Windows file timestamp. The timestamp is the number of 100-nanosecond intervals that have elapsed since Jan. 1, 1601 12:00 AM coordinated universal time (UTC). A Windows file time.


[7337] FromOADate


[7338] [C#] public static DateTime FromOADate(double d);


[7339] [C++] public: static DateTime FromOADate(double d);


[7340] [VB] Public Shared Function FromOADate(ByVal d As Double) As DateTime


[7341] [JScript] public static function FromOADate(d: double): DateTime;


[7342] Description


[7343] Returns a DateTime equivalent to the specified OLE Automation Date.


[7344] Return Value: A DateTime that represents the same date and time as d.


[7345] d must be a value between negative 657435.0 through positive 2958466.0. It is stored as a double-precision floating point number. An OLE Automation Date value.


[7346] GetDateTimeFormats


[7347] [C#] public string[ ] GetDateTimeFormatso;


[7348] [C++] public: String* GetDateTimeFormats( ) _gc[ ];


[7349] [VB] Public Function GetDateTimeFormats( ) As String( )


[7350] [JScript] public function GetDateTimeFormats( ): String[ ]; Converts the value of this instance to all of the String representations supported by the standard DateTime format specifiers.


[7351] Description


[7352] Converts the value of this instance to all of the String representations supported by the standard DateTime format specifiers.


[7353] Return Value: A String array where each element is the representation of the value of this instance formatted with one of the standard DateTime formatting specifiers.


[7354] Each element of the return value is formatted using information from the current culture. For more information about culture-specific formatting information for the current culture, see System.Globalization.Culturelnfo.CurrentCulture.


[7355] GetDateTimeFormats


[7356] [C#] public string[ ] GetDateTimeFormats(char format);


[7357] [C++] public: String* GetDateTimeFormats(_wchar_t format)_gc[ ];


[7358] [ Public Function GetDateTimeFormats(ByVal format As Char) As String( )


[7359] [JScript] public function GetDateTimeFormats(format: Char): String[ ];


[7360] Description


[7361] Converts the value of this instance to all of the String representations supported by the specified standard DateTime format specifier.


[7362] Return Value: A String array where each element is the representation of the value of this instance formatted with the format standard DateTime formatting specifier.


[7363] Each element of the return value is formatted using information from the current culture. For more information about culture-specific formatting information for the current culture, see System.Globalization.CultureInfo.CurrentCulture. A Unicode character containing a format specifier.


[7364] GetDateTimeFormats


[7365] [C#] public string[ ] GetDateTimeFormats(IFormatProvider provider);


[7366] [C++] public: String* GetDateTirneFormats(IFormatProvider* provider) _gc[ ];


[7367] [VB] Public Function GetDateTimeFormats(ByVal provider As IFormatProvider) As String( )


[7368] [JScript] public function GetDateTimeFormats(provider: IFormatProvider): String[ ];


[7369] Description


[7370] Converts the value of this instance to all of the String representations supported by the standard DateTime format specifiers and the specified culture-specific formatting information.


[7371] Return Value: A String array where each element is the representation of the value of this instance formatted with one of the standard DateTime formatting specifiers.


[7372] Each element of the return value is formatted using culture-specific information supplied by provider. An System.IFormatProvider interface implementation that supplies culture-specific formatting information about this instance.


[7373] GetDateTimeFormats


[7374] [C#] public string[ ] GetDateTimeFormats(char format, IFormatProvider provider);


[7375] [C++] public: String* GetDateTimeFormats_wchar_t format, IFormatProvider* provider)_[ ];


[7376] [VB] Public Function GetDateTimeFormats(ByVal format As Char, ByVal provider As IFormatProvider) As String( )


[7377] [JScript] public function GetDateTimeFormats(format: Char, provider: IFormatProvider): String[ ];


[7378] Description


[7379] Converts the value of this instance to all of the String representations supported by the specified standard DateTime format specifier and culture-specific formatting information.


[7380] Return Value: A String array where each element is the representation of the value of this instance formatted with one of the standard DateTime formatting specifiers.


[7381] Each element of the return value is formatted using culture-specific information supplied by provider. A Unicode character containing a format specifier. An System.IFormatProvider interface implementation that supplies culture-specific formatting information about this instance.


[7382] GetHashCode


[7383] [C#] public override int GetHashCode( );


[7384] [C++] public: int GetHashCode( ); [VB] Overrides Public Function GetHashCode( ) As Integer


[7385] [JScript] public override function GetHashCode( ): int;


[7386] Description


[7387] Returns the hash code for this instance.


[7388] Return Value: A 32-bit signed integer hash code.


[7389] GetTypeCode


[7390] [C++] public TypeCode GetTypeCode( );


[7391] [C++] public: __sealed TypeCode GetTypeCode( );


[7392] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[7393] [JScript] public function GetTypeCode( ): TypeCode;


[7394] Description


[7395] Returns the TypeCode for value type DateTime.


[7396] Return Value: The enumerated constant, System.TypeCode.DateTime.


[7397] IsLeapYear


[7398] [C#] public static bool IsLeapYear(int year);


[7399] [C++] public: static bool IsLeapYear(int year);


[7400] [VB] Public Shared Function IsLeapYear(ByVal year As Integer) As Boolean


[7401] [JScript] public static function IsLeapYear(year: int): Boolean;


[7402] Description


[7403] Returns an indication whether the specified year is a leap year.


[7404] Return Value: true if the year is a leap year; otherwise, false.


[7405] year is specified as a 4-digit base 10 number; for example, 1996. A 4-digit year.


[7406] op_Addition


[7407] [C#] public static DateTime operator +(DateTime d, TimeSpan t);


[7408] [C++] public: static DateTime op_Addition(DateTime d, TimeSpan t);


[7409] [VB] returnValue=DateTime.op_Addition(d, t)


[7410] [JScript] returnValue=d+t;


[7411] Description


[7412] Adds a specified time interval to a specified date and time, yielding a new date and time.


[7413] Return Value: A DateTime that is the sum of the values of d and t. A date and time. A time interval. op_Equality


[7414] [C#] public static bool operator=(DateTime d1, DateTime d2);


[7415] [C++] public: static bool op_Equality(DateTime d1, DateTime d2);


[7416] [VB] returnaValue=DateTime.op_Equality(d1, d2)


[7417] [JScript] returnValue=d1=d2;


[7418] Description


[7419] Determines whether two specified instances of DateTime are equal.


[7420] Return Value: true if d1 and d2 represent the same date and time; otherwise, false .A DateTime. A DateTime.


[7421] op_GreaterThan


[7422] [C#] public static bool operator >( DateTime t1, DateTime t2);


[7423] [C++] public: static bool op_GreaterThan(DateTime t1, DateTime t2);


[7424] [VB] returnValue=DateTime.op_GreaterThan(t1, t2)


[7425] [JScript] returnValue=t1>t2;


[7426] Description


[7427] Determnines whether one specified DateTime is greater than another specified DateTime.


[7428] Return Value: true if t1 is greater than t2; otherwise, false. A DateTime. A DateTime.


[7429] op_GreaterThanOrEqual


[7430] [C#] public static bool operator>=(DateTime t1, DateTime t2);


[7431] [C++] public: static bool op_GreaterThanOrEqual(DateTime t1, DateTime t2);


[7432] [VB] returnValue=DateTime.op_GreaterThanOrEqual(t1, t2)


[7433] [JScript] returnValue=t1>=t2;


[7434] Description


[7435] Determines whether one specified DateTime is greater than or equal to another specified DateTime.


[7436] Return Value: true if t1 is greater than or equal to t2; otherwise, false. A DateTime. A DateTime.


[7437] op_Inequality


[7438] [C#] public static bool operator!=(DateTime d1, DateTime d2);


[7439] [C++] public: static bool op_Inequality(DateTime d1, DateTime d2);


[7440] [VB] returnValue=DateTime.op_Inequality(d1, d2)


[7441] [JScript] returnValue=d1!=(d2;


[7442] Description


[7443] Determines whether two specified instances of DateTime are not equal.


[7444] Return Value: true if d1 and d2 do not represent the same date and time; otherwise, false. A DateTime. A DateTime.


[7445] op_LessThan


[7446] [C#] public static bool operator


[7447] [C++] public: static bool op_LessThan(DateTime t1, DateTime t2);


[7448] [VB] returnValue DateTime.op_LessThan(t1, t2)


[7449] [JScript] returnValue t1<t2;


[7450] Description


[7451] Determines whether one specified DateTime is less than another specified DateTime.


[7452] Return Value: true if t1 is less than t2; otherwise, false. A DateTime. A DateTime.


[7453] op_LessThanOrEqual


[7454] [C#] public static bool operator<=(DateTime t1, DateTime t2);


[7455] [C++] public: static bool op_LessThanOrEqual(DateTime t1, DateTime t2);


[7456] [VB] returnValue=DateTime.op_LessThanOrEqual(t1, t2)


[7457] [JScript] returnValue=t1<=t2;


[7458] Description


[7459] Determines whether one specified DateTime is less than or equal to another specified DateTime.


[7460] Return Value: true if t1 is less than or equal to t2; otherwise, false. A DateTime. A DateTime.


[7461] op_Subtraction


[7462] [C#] public static TimeSpan operator-(DateTime d1, DateTime d2);


[7463] [C++] public: static TimeSpan op_Subtraction(DateTime d1, DateTime d2);


[7464] [VB] returnvalue DateTime.op_Subtraction(d1, d2)


[7465] [JScript] returnValue=d1-d2;


[7466] Description


[7467] Subtracts a specified date and time from another specified date and time, yielding a time interval.


[7468] Return Value: A System.TimeSpan that is the time interval between d1 and d2; that is, d1 minus d2. A DateTime (the minuend). A DateTime (the subtrahend).


[7469] op_Subtraction


[7470] [C#] public static DateTime operator-(DateTime d, TimeSpan t);


[7471] [C++] public: static DateTime op_Subtraction(DateTime d, TimeSpan t);


[7472] [VB] returnValue=DateTime.op_Subtraction(d, t)


[7473] [JScript] returnValue=d-t; Subtracts a specified System.DateTime or System.TimeSpan instance from a specified System.DateTime instance.


[7474] Description


[7475] Subtracts a specified time interval from a specified date and time, yielding a new date and time.


[7476] Return Value: A DateTime whose value is the value of d minus the value of t.


[7477] This method subtracts the ticks values of t from the ticks value of d. A DateTime. A System.TimeSpan.


[7478] Parse


[7479] [C#] public static DateTime Parse(string s);


[7480] [C++] public: static DateTime Parse(String* s);


[7481] [VB] Public Shared Function Parse(ByVal s As String) As DateTime


[7482] [JScript] public static function Parse(s: String): DateTime; Converts the specified String representation of a date and time to its DateTime equivalent.


[7483] Description


[7484] Converts the specified String representation of a date and time to its DateTime equivalent.


[7485] Return Value: A DateTime equivalent to the date and time contained in s.


[7486] This method attempts to parse s completely and avoid throwing FormatException. It ignores unrecognized data if possible and fills in missing month, day, and year information with the current time. A System.String containing a date and time to convert.


[7487] Parse


[7488] [C#] public static DateTime Parse(string s, IFormatProvider provider);


[7489] [C++] public: static DateTime Parse(String* s, IFormatProvider* provider);


[7490] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As DateTime


[7491] [JScript] public static function Parse(s: String, provider: IFormatProvider): DateTime;


[7492] Description


[7493] Converts the specified String representation of a date and time to its DateTime equivalent using the specified culture-specific format information.


[7494] Return Value: A DateTime equivalent to the date and time contained in s as specified by provider.


[7495] This method attempts to parse s completely and avoid throwing FormatException. It ignores unrecognized data if possible and fills in missing month, day, and year information with the current time. A System.String containing a date and time to convert. An System.IFormatProvider object that supplies culture-specific format information about s.


[7496] Parse


[7497] [C#] public static DateTime Parse(string s, IFormatProvider provider, DateTimeStyles styles);


[7498] [C++] public: static DateTime Parse(String* s, IFormatProvider* provider, DateTimeStyles styles);


[7499] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider, ByVal styles As DateTimeStyles) As DateTime


[7500] [JScript] public static function Parse(s: String, provider: IFormatProvider, styles: DateTimeStyles): DateTime;


[7501] Description


[7502] Converts the specified String representation of a date and time to its DateTime equivalent using the specified culture-specific format information and formatting style.


[7503] Return Value: A DateTime equivalent to the date and time contained in s as specified by provider and styles.


[7504] This method attempts to parse s completely and avoid throwing FormatException. It ignores unrecognized data if possible and fills in missing month, day, and year information with the current time. A System.String containing a date and time to convert. An System.IFormatProvider interface implementation that supplies culture-specific formatting information about s. The combination of one or more System.Globalization.DateTimeStyles constants that indicate the permitted format of s.


[7505] ParseExact


[7506] [C#] public static DateTime ParseExact(string s, string format, IFormatProvider provider);


[7507] [C++] public: static DateTime ParseExact(String* s, String* format, IFormatProvider* provider);


[7508] [VB] Public Shared Function ParseExact(ByVal s As String, ByVal format As String, ByVal provider As IFormatProvider) As DateTime


[7509] [JScript] public static function ParseExact(s: String, format: String, provider: IFormatProvider): DateTime; Converts the specified String representation of a date and time to its DateTime equivalent. The format of the String representation must match a specified format exactly.


[7510] Description


[7511] Converts the specified String representation of a date and time to its DateTime equivalent using the specified format and culture-specific format information. The format of the String representation must match the specified format exactly.


[7512] Return Value: A DateTime equivalent to the date and time contained in s as specified byformat and provider.


[7513] This method throws FormatException if the format of s is not exactly as specified by the format pattern in format. If format consists of a single standard format character, the format pattern that character represents is used. For more information, see the System.Globalization.DateTimeFormat1nfo topic. A System.String containing a date and time to convert. The expected format of s. An System.IFormatProvider object that supplies culture-specific format information about s.


[7514] ParseExact


[7515] [C#] public static DateTime ParseExact(string s, string format, IFormatProvider provider, DateTimeStyles style);


[7516] [C++] public: static DateTime ParseExact(String* s, String* format, IFormatProvider* provider, DateTimeStyles style);


[7517] [VBI ] Public Shared Function ParseExact(ByVal s As String, ByVal format As String, ByVal provider As IFormatProvider, ByVal style As DateTimeStyles) As DateTime


[7518] [JScript] public static function ParseExact(s: String, format: String, provider: IFormatProvider, style: DateTimeStyles): DateTime;


[7519] Description


[7520] Converts the specified String representation of a date and time to its DateTime equivalent using the specified format, culture-specific format information, and style. The format of the String representation must match the specified format exactly.


[7521] Return Value: A DateTime equivalent to the date and time contained in s as specified by format, provider, and style.


[7522] This method throws FormatException if the format of s is not exactly as specified by the format pattern in fornat. If format consists of a single standard format character, the format pattern that character represents is used. For more information, see the System.Globalization.DateTimeFormatInfo topic. A System.String containing a date and time to convert. The expected format of s. An System.IFormatProvider interface implementation that supplies culture-specific formatting information about s. The combination of one or more System.Globalization.DateTimeStylesconstants that indicate the permitted format of s.


[7523] ParseExact


[7524] [C#] public static DateTime ParseExact(string s, string[ ] formats, IFormatProvider provider, DateTimeStyles style);


[7525] [C++] public: static DateTime ParseExact(String* s, String* formats_gc[ ], IFormatProvider* provider, DateTimeStyles style);


[7526] [VB] Public Shared Function ParseExact(ByVal s As String, ByVal formats( ) As String, ByVal provider As IFormatProvider, ByVal style As DateTimeStyles) As DateTime


[7527] [JScript] public static function ParseExact(s: String, formats: String[ ], provider: IFormatProvider, style: DateTimeStyles): DateTime;


[7528] Description


[7529] Converts the specified String representation of a date and time to its DateTime equivalent using the specified array of formats, culture-specific format information, and style. The format of the String representation must match at least one of the specified formats exactly.


[7530] Return Value: A DateTime equivalent to the date and time contained in s as specified by formats, provider, and style.


[7531] This method throws FormatException if the format of s is not exactly as specified by at least one of the format patterns in formats. If an element of formats consists of a single standard format character, the format pattern that character represents is used. For more information, see the System.Globalization.DateTimeFormat1nfo topic. A System.String containing one or more dates and times to convert. An array of expected formats of s. An System.IFormatProvider object that supplies culture-specific format information about s. The combination of one or more System.Globalization.DateTimeStylesconstants that indicate the permitted format of s.


[7532] Subtract


[7533] [C#] public TimeSpan Subtract(DateTime value);


[7534] [C++] public: TimeSpan Subtract(DateTime value);


[7535] [VB] Public Function Subtract(ByVal value As DateTime) As TimeSpan


[7536] [JScript] public function Subtract(value: DateTime): TimeSpan; Subtracts the specified time or duration from this instance.


[7537] Description


[7538] Subtracts the specified date and time from this instance.


[7539] Return Value: A System.TimeSpan interval equal to the date and time represented by this instance minus the date and time represented by value.


[7540] This method does not change the value of this DateTime instance. Instead, a new TimeSpan instance is returned whose value is the result of this operation. A instance of DateTime.


[7541] Subtract


[7542] [C#] public DateTime Subtract(TimeSpan value);


[7543] [C++] public: DateTime Subtract(TimeSpan value);


[7544] [VB] Public Function Subtract(ByVal value As TimeSpan) As DateTime


[7545] [JScript] public function Subtract(value: TimeSpan): DateTime;


[7546] Description


[7547] Subtracts the specified TimeSpan from this instance.


[7548] Return Value: A new DateTime equal to the date and time represented by this instance minus time interval, value.


[7549] This method does not change the value of this DateTime instance. Instead, a new DateTime instance is returned whose value is the result of this operation. An instance of System.TimeSpan.


[7550] IConvertible.ToBoolean


[7551] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[7552] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[7553] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[7554] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[7555] IConvertible.ToByte


[7556] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[7557] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[7558] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements


[7559] IConvertible.ToByte


[7560] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[7561] IConvertible.ToChar


[7562] [C#] char IConvertible.ToChar(IFormatProvider provider);


[7563] [C++] _wchar_t IConvertible::ToChar(IFormatProvider* provider);


[7564] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[7565] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[7566] IConvertible.ToDateTime


[7567] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[7568] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[7569] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[7570] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[7571] IConvertible.ToDecimal


[7572] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[7573] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[7574] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[7575] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[7576] IConvertible.ToDouble


[7577] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[7578] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[7579] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[7580] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[7581] IConvertible.ToInt16


[7582] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[7583] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[7584] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[7585] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[7586] IConvertible.ToInt32


[7587] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[7588] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[7589] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[7590] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[7591] IConvertible.ToInt64


[7592] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[7593] [C++]_int64 IConvertible::ToInt64(IFormatrprovider* provider);


[7594] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[7595] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[7596] IConvertible. ToSByte


[7597] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[7598] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[7599] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[7600] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[7601] IConvertible.ToSingle


[7602] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[7603] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[7604] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[7605] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[7606] IConvertible.ToType


[7607] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[7608] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[7609] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[7610] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object; IConvertible.ToUInt16


[7611] [C#] ushort IConvertible.ToUInt16(IFormatProvider provider);


[7612] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[7613] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[7614] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[7615] IConvertible.ToUInt32


[7616] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[7617] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[7618] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[7619] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[7620] IConvertible.ToUInt64


[7621] [C#] ulong IConvertible.ToUInt64(IFornatProvider provider);


[7622] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[7623] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[7624] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[7625] ToFileTime


[7626] [C#] public long ToFileTime( );


[7627] [C++] public: _int64 ToFileTime( );


[7628] [VB] Public Function ToFileTime( ) As Long


[7629] [JScript] public function ToFileTime( ): long;


[7630] Description


[7631] Converts the value of this instance to the format of the local system file time.


[7632] Return Value: The value of this DateTime in the format of the local system file time.


[7633] A system file time is a 64-bit unsigned value representing the date and time as the number of 100-nanosecond intervals that have elapsed since Jan. 1, 1601 12:00 AM.


[7634] ToLocalTime


[7635] [C#] public DateTime ToLocalTime( );


[7636] [C++] public: DateTime ToLocalTime( );


[7637] [VB] Public Function ToLocalTime( ) As DateTime


[7638] [JScript] public function ToLocalTime( ): DateTime;


[7639] Description


[7640] Converts the current coordinated universal time (UTC) to local time.


[7641] Return Value: The DateTime equivalent to the current UTC time, adjusted to the local time zone and daylight saving time.


[7642] This method always uses the local time zone when making calculations.


[7643] ToLongDateString


[7644] [C#] public string ToLongDatestring( );


[7645] [C++] public: String* ToLongDateString( );


[7646] [VB] Public Function ToLongDateString( ) As String


[7647] [JScript] public function ToLongDateString( ): String;


[7648] Description


[7649] Converts the date denoted by this instance to its equivalent long date String representation.


[7650] Return Value: A String containing the name of the day of the week, the name of the month, the numeric day of the month, and the year equivalent to the date value of this instance.


[7651] The value of this instance is formatted using the long date format character, ‘D’.


[7652] ToLongTimeString


[7653] [C#] public string ToLongTimeString( );


[7654] [C++] public: String* ToLongTimeString( );


[7655] [VB] Public Function ToLongTimeString( ) As String


[7656] [JScript] public function ToLongTimeString( ): String;


[7657] Description


[7658] Converts the time denoted by this instance to its equivalent long time String representation.


[7659] Return Value: A String containing the name of the day of the week, the name of the month, the numeric day of the hours, minutes, and seconds equivalent to the time value of this instance.


[7660] The value of this instance is formatted using the long time format character, ‘T’.


[7661] ToOADate


[7662] [C#] public double ToOADate( );


[7663] [C++] public: double ToOADate( );


[7664] [VB] Public Function ToOADate( ) As Double


[7665] [JScript] public function ToOADate( ): double;


[7666] Description


[7667] Converts the value of this instance to the equivalent OLE Automation date.


[7668] Return Value: A double-precision floating point number that contains an OLE Automation date equivalent to the value of this instance.


[7669] An OLE Automation date is implemented as a floating-point number whose value is the number of days from midnight, Dec. 30, 1899. For example, midnight, Dec. 31, 1899 is represented by 1.0; 6 AM, Jan. 1, 1900 is represented by 2.25; midnight, Dec. 29, 1899 represented by −1.0; and 6 AM, Dec. 29, 1899 represented by −1.25.


[7670] ToShortDateString


[7671] [C#] public string ToShortDateString( );


[7672] [C++] public: String* ToShortDateString( );


[7673] [VB] Public Function ToShortDateString( ) As String


[7674] [JScript] public function ToShortDateString( ): String;


[7675] Description


[7676] Converts the date denoted by this instance to its equivalent short date String representation.


[7677] Return Value: A String containing the numeric month, the numeric day of the month, and the year equivalent to the date value of this instance.


[7678] The value of this instance is formatted using the short date format character, ‘D’.


[7679] ToShortTimeString


[7680] [C#] public string ToShortTimeString( );


[7681] [C++] public: String* ToShortTimeString( ));


[7682] [VB] Public Function ToShortTimeString( ) As String


[7683] [JScript] public function ToShortTimeString( ): String;


[7684] Description


[7685] Converts the time denoted by this instance to its equivalent short time String representation.


[7686] Return Value: A String containing the name of the day of the week, the name of the month, the numeric day of the hours, minutes, and seconds equivalent to the time value of this instance.


[7687] The value of this instance is formatted using the short time format character, ‘t’.


[7688] ToString


[7689] [C#] public override string ToString( );


[7690] [C++] public: String* ToString( );


[7691] [VB] Overrides Public Function ToString( ) As String


[7692] [JScript] public override function ToString( ): String; Converts the value of this instance to its equivalent String representation.


[7693] Description


[7694] Converts the value of this instance to its equivalent String.


[7695] Return Value: A String representation of value of this instance.


[7696] The value of this instance is formatted using the general format specifier, ‘G’, as described in the topic. The return value is of the following form: MM/dd/yyyy HH:mm:ss The items in the return value are as follows.


[7697] ToString


[7698] [C#] public string ToString(IFormatProvider provider);


[7699] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[7700] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[7701] [JScript] public function ToString(provider: IFormatProvider): String;


[7702] Description


[7703] Converts the value of this instance to its equivalent String representation using the specified culture-specific format information.


[7704] Return Value: A String representation of value of this instance as specified by provider.


[7705] This instance is formatted with the general format specifier, ‘G’. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[7706] ToString


[7707] [C#] pubic string ToString(string format);


[7708] [C++] public: String* ToString(string* format);


[7709] [VB] Public Function ToString(ByVal format As String) As String


[7710] [JScript] public function ToString(format: String): String;


[7711] Description


[7712] Converts the value of this instance to its equivalent String representation using the specified format.


[7713] Return Value: A String representation of value of this instance as specified by format.


[7714] The format parmeter should contain either a format specifier character or a custom format pattern. For more information, see the summary page for System.Globalization.DateTimeFormatinfo. A format string.


[7715] ToString


[7716] [C#] public string ToString(string format, IFormatProvider provider);


[7717] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[7718] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[7719] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[7720] Description


[7721] Converts the value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[7722] Return Value: A String representation of value of this instance as specified by format and provider.


[7723] The format parameter should contain either a format specifier character or a custom format pattern. For more information, see the summary page for System.Globalization.DateTimeFormatinfo. A format string. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[7724] ToUniversalTime


[7725] [C#] public DateTime ToUniversalTime( );


[7726] [C++] public: DateTime ToUniversalTime( );


[7727] [VB] Public Function ToUniversalTime( ) As DateTime


[7728] [JScript] public function ToUniversalTime( ): DateTime;


[7729] Description


[7730] Converts the current local time to coordinated universal time (UTC).


[7731] Return Value: The UTC DateTime equivalent to the current local time.


[7732] The UTC time is equal to the local time minus the UTC offset. For more information about the UTC offset, see System.TimeZone.GetUtcOffset(System.DateTime).


[7733] DayOfWeek enumeration (System)


[7734] ToUniversalTime


[7735] Description


[7736] Specifies the day of the week.


[7737] The DayOfWeek enumeration represents the day of the week in calendars that have seven days per week. This enumeration ranges from zero, indicating Sunday, to six, indicating Saturday.


[7738] ToUniversalTime


[7739] [C#] public const DayOfWeek Friday;


[7740] [C++] public: const DayOWeek Friday;


[7741] [VB] Public Const Friday As DayOfWeek


[7742] [JScript] public var Friday: DayOfWeek;


[7743] Description


[7744] Indicates Friday.


[7745] ToUniversalTime


[7746] [C#] public const DayOfWeek Monday;


[7747] [C++] public: const DayOfWeek Monday;


[7748] [VB] Public Const Monday As DayOfWeek


[7749] [JScript] public var Monday: DayOfWeek;


[7750] Description


[7751] Indicates Monday.


[7752] ToUniversalTime


[7753] [C#] public const DayOfWeek Saturday;


[7754] [C++] public: const DayOfWeek Saturday;


[7755] [VB] Public Const Saturday As DayOfWeek


[7756] [JScript] public var Saturday: DayOfWeek;


[7757] Description


[7758] Indicates Saturday.


[7759] ToUniversalTime


[7760] [C#] public const DayOfWeek Sunday;


[7761] [C++] public: const DayOfWeek Sunday;


[7762] [VB] Public Const Sunday As DayOfWeek


[7763] [JScript] public var Sunday: DayOfWeek;


[7764] Description


[7765] Indicates Sunday.


[7766] ToUniversalTime


[7767] [C#] public const DayOfWeek Thursday;


[7768] [C++] public: const DayOfWeek Thursday;


[7769] [VB] Public Const Thursday As DayOfWeek


[7770] [JScript] public var Thursday: DayOfWeek;


[7771] Description


[7772] Indicates Thursday.


[7773] ToUniversalTime


[7774] [C#] public const DayOfWeek Tuesday;


[7775] [C++] public: const DayOfWeek Tuesday;


[7776] [VB] Public Const Tuesday As DayOfWeek


[7777] [JScript] public var Tuesday: DayOfWeek;


[7778] Description


[7779] Indicates Tuesday.


[7780] ToUniversalTime


[7781] [C#] public const DayOfWeek Wednesday;


[7782] [C++] public: const DayOfWeek Wednesday;


[7783] [VB] Public Const Wednesday As DayOfWeek


[7784] [JScript] public var Wednesday: DayOfWeek;


[7785] Description


[7786] Indicates Wednesday.


[7787] DBNull class (System)


[7788] ToString


[7789] Description


[7790] Represents a null value.


[7791] This class is used to indicate the absence of a known value, typically in a database application.


[7792] ToString


[7793] [C#] public static readonly DBNull Value;


[7794] [C++] public: static DBNull* Value;


[7795] [VB] Public Shared ReadOnly Value As DBNull


[7796] [JScript] public static var Value: DBNull;


[7797] Description


[7798] Represents the sole instance of the System.DBNull class.


[7799] System.DBNull is a singleton class, which means only this instance of this class can exist.


[7800] GetObjectData


[7801] [C#] public void GetObjectData(SerializationInfo info, StreamingContext context);


[7802] [C++] public: _sealed void GetObjectData(SerializationInfo* info, StreamingContext context);


[7803] [VB] NotOverridable Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[7804] [JScript] public function GetObjectData(info: SerializationInfo, context: StreamingContext);


[7805] Description


[7806] Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the System.DBNull object. A System.Runtime.Serialization.SerializationInfo object containing information required to serialize the System.DBNull object. A System.Runtime.Serialization.StreamingContext object containing the source and destination of the serialized stream associated with the System.DBNull object.


[7807] GetTypeCode


[7808] [C#] public TypeCode GetTypeCode( );


[7809] [C++] public: _sealed TypeCode GetTypeCode( );


[7810] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[7811] [JScript] public function GetTypeCode( ): TypeCode;


[7812] Description


[7813] Gets the System.TypeCode value for System.DBNull.


[7814] Return Value: The System.TypeCode value for System.DBNull , which is System.TypeCode.DBNull.


[7815] IConvertible.ToBoolean


[7816] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[7817] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[7818] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[7819] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[7820] IConvertible.ToByte


[7821] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[7822] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[7823] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[7824] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[7825] IConvertible.ToChar


[7826] [C#] char IConvertible.ToChar(IFormatProvider provider);


[7827] [C++] _wchar_t IConvertible::ToChar(IFormatProvider* provider);


[7828] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[7829] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[7830] IConvertible.ToDateTime


[7831] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[7832] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[7833] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[7834] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[7835] IConvertible.ToDecimal


[7836] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[7837] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[7838] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[7839] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[7840] IConvertible.ToDouble


[7841] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[7842] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[7843] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[7844] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[7845] IConvertible.ToInt16


[7846] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[7847] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[7848] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[7849] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16


[7850] IConvertible.ToInt32


[7851] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[7852] [C++] int IConvertible::ToInt32(FormatProvider* provider);


[7853] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[7854] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[7855] IConvertible.ToInt64


[7856] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[7857] [C++] _int64 IConvertible::ToInt64(IFormatProvider* provider);


[7858] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[7859] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[7860] IConvertible.ToSByte


[7861] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[7862] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[7863] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[7864] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[7865] IConvertible.ToSingle


[7866] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[7867] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[7868] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[7869] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[7870] IConvertible.ToType


[7871] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[7872] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[7873] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[7874] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[7875] IConvertible.ToUInt16


[7876] [C#] ushor t IConvertible. ToUInt166(FormatProvider provider);


[7877] [C++] unsigned short IConvertible::ToUInt 16(IFormatProvider* provider);


[7878] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[7879] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[7880] IConvertible.ToUInt32


[7881] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[7882] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[7883] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[7884] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[7885] IConvertible.ToUInt64


[7886] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[7887] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[7888] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[7889] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[7890] ToString


[7891] [C#] public override string ToString( );


[7892] [C++] public: String* ToString( );


[7893] [VB] Overrides Public Function ToString( ) As String


[7894] [JScript] public override function ToString( ): String; Returns an empty string.


[7895] Description


[7896] Returns an empty string ( System.String.Empty).


[7897] Return Value: An empty string ( System.String.Empty).


[7898] ToString


[7899] [C#] public string ToString(IFormatProvider provider);


[7900] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[7901] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[7902] [JScript] public function ToString(provider: IFormatProvider): String;


[7903] Description


[7904] Returns an empty string using the specified System.IFormatProvider.


[7905] Return Value: An empty string ( System.String.Empty ). The System.IFormatProvider to be used to format the string.


[7906] Decimal structure (System)


[7907] ToString


[7908] Description


[7909] Represents a decimal number.


[7910] The Decimal value type represents decimal numbers ranging from positive 79,228,162,514,264,337,593,543,950,335 to negative 79,228,162,514,264,337,593,543,950,335. The Decimal value type is appropriate for financial calculations requiring large numbers of significant integral and fractional digits and no round-off errors.


[7911] ToString


[7912] [C#] public static readonly decimal MaxValue;


[7913] [C++] public: static Decimal MaxValue;


[7914] [VB] Public Shared ReadOnly MaxValue As Decimal


[7915] [JScript] public static var MaxValue: Decimal;


[7916] Description


[7917] A constant representing the largest possible value of Decimal.


[7918] The value of this constant is positive 79,228,162,514,264,337,593,543,950,335.


[7919] ToString


[7920] [C#] public static readonly decimal MinusOne;


[7921] [C++] public: static Decimal MinusOne;


[7922] [VB] Public Shared ReadOnly MinusOne As Decimal


[7923] [JScript] public static var MinusOne: Decimal;


[7924] Description


[7925] A constant representing the number, negative one.


[7926] ToString


[7927] [C#] public static readonly decimal MinValue;


[7928] [C++] public: static Decimal MinValue;


[7929] [VB] Public Shared ReadOnly MinValue As Decimal


[7930] [JScript] public static var MinValue: Decimal;


[7931] Description


[7932] A constant representing the smallest possible value of Decimal.


[7933] The value of this constant is negative 79,228,162,514,264,337,593,543,950,335.


[7934] ToString


[7935] [C#] public static readonly decimal One;


[7936] [C++] public: static Decimal One;


[7937] [VB] Public Shared ReadOnly One As Decimal


[7938] [JScript] public static var One: Decimal;


[7939] Description


[7940] A constant representing the number, one.


[7941] ToString


[7942] [C#] public static readonly decimal Zero;


[7943] [C++] public: static Decimal Zero;


[7944] [VB] Public Shared ReadOnly Zero As Decimal


[7945] [JScript] public static var Zero: Decimal;


[7946] Description


[7947] A constant representing the number, zero.


[7948] Decimal


[7949] Example Syntax:


[7950] ToString


[7951] [C#] public Decimal(double value);


[7952] [C++] public: Decimal(double value);


[7953] [VB] Public Sub New(ByVal value As Double)


[7954] [JScript] public function Decimal(value: double);


[7955] Description


[7956] Initializes a new instance of Decimal to the value of the specified double-precision floating point number. The value to represent as a Decimal.


[7957] Decimal


[7958] Example Syntax:


[7959] ToString


[7960] [C#] public Decimal(int value);


[7961] [C++] public: Decimal(int value);


[7962] [VB] Public Sub New(ByVal value As Integer)


[7963] [JScript] public function Decimal(value: int); Initializes a new instance of Decimal.


[7964] Description


[7965] Initializes a new instance of Decimal to the value of the specified 32-bit signed integer. The value to represent as a Decimal.


[7966] Decimal


[7967] Example Syntax:


[7968] ToString


[7969] [C#] public Decimal(int[ ] bits);


[7970] [C++] public: Decimal(int bits_gc[ ]);


[7971] [VB] Public Sub New(ByVal bits( ) As Integer)


[7972] [JScript] public function Decimal(bits: int[ ]);


[7973] Description


[7974] Initializes a new instance of Decimal to a decimal value represented in binary and contained in a specified array.


[7975] The binary representation of a Decimal number consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the integer number and specify what portion of it is a decimal fraction. The scaling factor is implicitly the number 10, raised to an exponent ranging from 0 to 28. An array of 32-bit signed integers containing a representation of a decimal value.


[7976] Decimal


[7977] Example Syntax:


[7978] ToString


[7979] [C#] public Decimal(long value);


[7980] [C++] public: Decimal(_int64 value);


[7981] [VB] Public Sub New(ByVal value As Long)


[7982] [JScript] public function Decimal(value: long);


[7983] Description


[7984] Initializes a new instance of Decimal to the value of the specified 64-bit signed integer. The value to represent as a Decimal.


[7985] Decimal


[7986] Example Syntax:


[7987] ToString


[7988] [C#] public Decimal(float value);


[7989] [C++] public: Decimal(float value);


[7990] [VB] Public Sub New(ByVal value As Single)


[7991] [JScript] public function Decimal(value: float);


[7992] Description


[7993] Initializes a new instance of Decimal to the value of the specified single-precision floating point number. The value to represent as a Decimal.


[7994] Decimal


[7995] Example Syntax:


[7996] ToString


[7997] [C+] public Decimal(uint value);


[7998] [C++] public: Decimal(unsigned int value);


[7999] [VB] Public Sub New(ByVal value As UInt32)


[8000] [JScript] public function Decimal(value: UInt32);


[8001] Description


[8002] Initializes a new instance of Decimal to the value of the specified 32-bit unsigned integer. The value to represent as a Decimal.


[8003] Decimal


[8004] Example Syntax:


[8005] ToString


[8006] [C#] public Decimal(ulong value);


[8007] [C++] public: Decimal(unsigned_int64value);


[8008] [VB] Public Sub New(ByVal value As UInt64)


[8009] [JScript] public function Decimal(value: UInt64);


[8010] Description


[8011] Initializes a new instance of Decimal to the value of the specified 64-bit unsigned integer. The value to represent as a Decimal.


[8012] Decimal


[8013] Example Syntax:


[8014] ToString


[8015] [C#] public Decimal(int lo, int mid, int hi, bool isNegative, byte scale);


[8016] [C++] public: Decimal(int lo, int mid, int hi, bool isNegative, unsigned char scale);


[8017] [VB] Public Sub New(ByVal lo As Integer, ByVal mid As Integer, ByVal hi As Integer, ByVal isNegative As Boolean, ByVal scale As Byte)


[8018] [JScript] public function Decimal(lo: int, mid: int, hi: int, isNegative: Boolean, scale: Byte);


[8019] Description


[8020] Initializes a new instance of Decimal from parameters specifying the instance's constituent parts.


[8021] The binary representation of a Decimal number consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the integer number and specify what portion of it is a decimal fraction. The scaling factor is implicitly the number 10, raised to an exponent ranging from 0 to 28. The low 32 bits of a 96-bit integer. The middle 32 bits of a 96-bit integer. The high 32 bits of a 96-bit integer. The sign; 1 is negative, 0 is positive. A power of 10 ranging from 0 to 28.


[8022] Add


[8023] [C#] public static decimal Add(decimal d1, decimal d2);


[8024] [C++] public: static Decimal Add(Decimal d1, Decimal d2);


[8025] [VB] Public Shared Function Add(ByVal d1 As Decimal, ByVal d2 As Decimal) As Decimal


[8026] [JScript] public static function Add(d1: Decimal, d2: Decimal): Decimal;


[8027] Description


[8028] Adds two specified Decimal values.


[8029] Return Value: A Decimal value that is the sum of d1 and d2. A Decimal. A Decimal.


[8030] Compare


[8031] [C#] public static int Compare(decimal d1, decimal d2);


[8032] [C++] public: static int Compare(Decimal d1, Decimal d2);


[8033] [VB] Public Shared Function Compare(ByVal d1 As Decimal, ByVal d2 As Decimal) As Integer


[8034] [JScript] public static function Compare(d1: Decimal, d2: Decimal): int;


[8035] Description


[8036] Compares two specified Decimal values.


[8037] Return Value: A signed number indicating the relative values of d1 and d2. A Decimal. A Decimal.


[8038] CompareTo


[8039] [C#] public int CompareTo(object value);


[8040] [C++] public: _sealed int CompareTo(Object* value);


[8041] [VB] NotOvernidable Public Function CompareTo(ByVal value As Object) As Integer


[8042] [JScript] public function CompareTo(value: Object): int;


[8043] Description


[8044] Compares this instance to a specified Object.


[8045] Return Value: A signed number indicating the relative values of this instance and value.


[8046] Any instance of Decimal, regardless of its value, is considered greater than null. An System.Object or null.


[8047] Divide


[8048] [C#] public static decimal Divide(decimal d1, decimal d2);


[8049] [C++] public: static Decimal Divide(Decimal d1, Decimal d2);


[8050] [VB] Public Shared Function Divide(ByVal d1 As Decimal, ByVal d2 As Decimal) As Decimal


[8051] [JScript] public static function Divide(d1: Decimal, d2: Decimal): Decimal;


[8052] Description


[8053] Divides two specified Decimal values.


[8054] Return Value: The Decimal that is the result of dividing d1 by d2. A Decimal (the dividend). A Decimal (the divisor).


[8055] Equals


[8056] [C#] public override bool Equals(object value);


[8057] [C++] public: bool Equals(Object* value);


[8058] [VB] Overrides Public Function Equals(ByVal value As Object) As Boolean


[8059] [JScript] public override function Equals(value: Object): Boolean; Returns a value indicating whether two instances of Decimal are equal.


[8060] Description


[8061] Returns a value indicating whether this instance and a specified Object are equal.


[8062] Return Value: true if value is a Decimal and equal to this instance; otherwise, false. An System.Object.


[8063] Equals


[8064] [C#] public static new bool Equals(decimal d1, decimal d2);


[8065] [C++] public: static bool Equals(Decimal d1, Decimal d2);


[8066] [VB] Shadows Public Shared Function Equals(ByVal d1 As Decimal, ByVal d2 As Decimal) As Boolean


[8067] [JScript] public static hide function Equals(d1: Decimal, d2: Decimal): Boolean;


[8068] Description


[8069] Returns a value indicating whether two specified instances of Decimal are equal.


[8070] Return Value: true if d1 and d2 are equal; otherwise, false. A Decimal. A Decimal.


[8071] Floor


[8072] [C#] public static decimal Floor(decimal d);


[8073] [C++] public: static Decimal Floor(Decimal d);


[8074] [VB] Public Shared Function Floor(ByVal d As Decimal) As Decimal


[8075] [JScript] public static function Floor(d: Decimal): Decimal;


[8076] Description


[8077] Rounds a specified Decimal number to the next lower whole number.


[8078] Return Value: If d has a fractional part, the next whole Decimal number towards negative infinity that is less than d. -or- If d doesn't have a fractional part, d is returned unchanged. A Decimal.


[8079] FromOACurrency


[8080] [C#] public static decimal FromOACurrency(long cy);


[8081] [C++] public: static Decimal FromOACurrency(_int64 cy);


[8082] [VB] Public Shared Function FromOACurrency(ByVal cy As Long) As Decimal


[8083] [JScript] public static function FromOACurrency(cy: long): Decimal;


[8084] Description


[8085] Converts the specified 64-bit signed integer, which contains an OLE Automation Currency value, to the equivalent Decimal value.


[8086] Return Value: A Decimal that contains the equivalent of cy. An OLE Automation Currency value.


[8087] GetBits


[8088] [C#] public static int[ ] GetBits(decimal d);


[8089] [C++] public: static int GetBits(Decimal d)_gc[ ];


[8090] [VB] Public Shared Function GetBits(ByVal d As Decimal) As Integer( )


[8091] [JScript] public static function GetBits(d: Decimal): int[ ];


[8092] Description


[8093] Converts the value of a specified instance of Decimal to its equivalent binary representation, and returns that representation in an array of 32-bit signed integers.


[8094] Return Value: A 32-bit integer array with four elements that contain the binary representation of d.


[8095] The binary representation of a Decimal number consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the integer number and specify what portion of it is a decimal fraction. The scaling factor is implicitly the number 10, raised to an exponent ranging from 0 to 28. A Decimal value.


[8096] GetHashCode


[8097] [C#] public override int GetHashCode( );


[8098] [C++] public: int GetHashCode( );


[8099] [VB] Overrides Public Function GetHashCode( ) As Integer


[8100] [JScript] public override function GetHashCode( ): int;


[8101] Description


[8102] Returns the hash code for this instance.


[8103] Return Value: A 32-bit signed integer hash code.


[8104] GetTypeCode


[8105] [C+] public TypeCode GetTypeCode( );


[8106] [C++] public: _sealed TypeCode GetTypeCode( );


[8107] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[8108] [JScript] public function GetTypeCode( ): TypeCode;


[8109] Description


[8110] Returns the TypeCode for value type Decimal.


[8111] Return Value: The enumerated constant, System.TypeCode.Decimal.


[8112] Multiply


[8113] [C#] public static decimal Multiply(decimal d1, decimal d2);


[8114] [C++] public: static Decimal Multiply(Decimal d1, Decimal d2);


[8115] [VB] Public Shared Function Multiply(ByVal d1 As Decimal, ByVal d2 As Decimal) As Decimal


[8116] [JScript] public static function Multiply(d1: Decimal, d2: Decimal): Decimal;


[8117] Description


[8118] Multiplies two specified Decimal values.


[8119] Return Value: A Decimal that is the result of multiplying d1 and d2. A Decimal (the multiplicand). A Decimal (the multiplier).


[8120] Negate


[8121] [C#] public static decimal Negate(decimal d);


[8122] [C++] public: static Decimal Negate(Decimal d);


[8123] [VB] Public Shared Function Negate(ByVal d As Decimal) As Decimal


[8124] [JScript] public static function Negate(d: Decimal): Decimal;


[8125] Description


[8126] Negates the value of a specified Decimal.


[8127] Return Value: A Decimal with the value of d , but the opposite sign.


[8128] The Negate method returns the negative of the specified Decimal value. For example: If d is non-zero, the result is −d. A Decimal.


[8129] op_Addition


[8130] [C#] public static decimal operator +(decimal d1, decimal d2);


[8131] [C++] public: static Decimal op_Addition(Decimal d1, Decimal d2);


[8132] [VB] returnValue=Decimal.op_Addition(d1, d2)


[8133] [JScript] returnValue=d1 +d2;


[8134] Description


[8135] Adds two specified Decimal values.


[8136] Return Value: The Decimal result of adding d1 and d2. A Decimal. A Decimal.


[8137] op_Decrement


[8138] [C#] public static decimal operator—(decimal d);


[8139] [C++] public: static Decimal op_Decrement(Decimal d);


[8140] [VB] returnValue=Decimal.op_Decrement(d)


[8141] [JScript] returnValue=d—;


[8142] Description


[8143] Decrements the Decimal operand by 1.


[8144] Return Value: The value of d decremented by 1. The Decimal operand.


[8145] op_Division


[8146] [C#] public static decimal operator /(decimal d1, decimal d2);


[8147] [C++] public: static Decimal op_Division(Decimal d1, Decimal d2);


[8148] [VB] returnValue=Decimal.op_Division(d1, d2)


[8149] [JScript] returnValue=d1 /d2;


[8150] Description


[8151] Divides two specified Decimal values.


[8152] Return Value: The Decimal result of d1 by d2. A Decimal (the dividend). A Decimal (the divisor).


[8153] op_Equality


[8154] [C#] public static bool operator==(decimal d1, decimal d2);


[8155] [C++] public: static bool op_Equality(Decimal d1, Decimal d2);


[8156] [VB] returnValue=Decimal.op_Equality(d1, d2)


[8157] [JScript] returnValue=d1==d2;


[8158] Description


[8159] Returns a value indicating whether two instances of Decimal are equal.


[8160] Return Value: true if d1 and d2 are equal; otherwise, false. A Decimal. A Decimal.


[8161] op_Explicit


[8162] [C#] public static explicit operator ushort(decimal value);


[8163] [C++] public: static unsigned short op_Explicit( );


[8164] [VB] returnValue=Decimal.op_Explicit(value)


[8165] [JScript] returnValue=UInt16(value);


[8166] Description


[8167] Converts a Decimal to a 16-bit unsigned integer.


[8168] Return Value: A 16-bit unsigned integer that represents the converted Decimal. A Decimal to convert.


[8169] op_Explicit


[8170] [C#] public static explicit operator int(decimal value);


[8171] [C++] public: static int op_Explicit( );


[8172] [VB] returnValue=Decimal.op_Explicit(value)


[8173] [JScript] returnValue=Int32(value);


[8174] Description


[8175] Converts a Decimal to a 32-bit signed integer.


[8176] Return Value: A 32-bit signed integer that represents the converted Decimal. A Decimal to convert.


[8177] op_Explicit


[8178] [C#] public static explicit operator byte(decimal value);


[8179] [C++] public: static unsigned char op_Explicit( );


[8180] [VB] returnValue=Decimal.op_Explicit(value)


[8181] [JScript] returnValue=Byte(value);


[8182] Description


[8183] Converts a Decimal to an 8-bit unsigned integer.


[8184] Return Value: An 8-bit unsigned integer that represents the converted Decimal. A Decimal to convert.


[8185] op_Explicit


[8186] [C#] public static explicit operator sbyte(decimal value);


[8187] [C++] public: static char op_Explicit( );


[8188] [VB] returnValue=Decimal.op_Explicit(value)


[8189] [JScript] returnValue=SByte(value);


[8190] Description


[8191] Converts a Decimal to an 8-bit signed integer.


[8192] Return Value: An 8-bit signed integer that represents the converted Decimal. A Decimal to convert.


[8193] op_Explicit


[8194] [C#] public static explicit operator char(decimal value);


[8195] [C++] public: static _wchar_t op_Explicit( );


[8196] [VB] returnValue=Decimal.op_Explicit(value)


[8197] [JScript] returnValue=Char(value);


[8198] Description


[8199] Converts a Decimal to a Unicode character.


[8200] Return Value: A Unicode character that represents the converted Decimal. A Decimal to convert.


[8201] op_Explicit


[8202] [C#] public static explicit operator short(decimal value);


[8203] [C++] public: static short op_Explicit( );


[8204] [VB] returnValue=Decimal.op_Explicit(value)


[8205] [JScript] returnValue=Int16(value);


[8206] Description


[8207] Converts a Decimal to a 16-bit signed integer.


[8208] Return Value: A 16-bit signed integer that represents the converted Decimal. A Decimal to convert.


[8209] op_Explicit


[8210] [C#] public static explicit operator float(decimal value);


[8211] [C++] public: static float op_Explicit( );


[8212] [VB] returnValue=Decimal.op_Explicit(value)


[8213] [JScript] returnValue=Single(value);


[8214] Description


[8215] Converts a Decimal to a single-precision floating point number.


[8216] Return Value: A single-precision floating point number that represents the converted Decimal. A Decimal to convert.


[8217] op_Explicit


[8218] [C#] public static explicit operator double(decimal value);


[8219] [C++] public: static double op_Explicit( );


[8220] [VB] returnValue=Decimal.op_Explicit(value)


[8221] [JScript] returnValue=Double(value);


[8222] Description


[8223] Converts a Decimal to a double-precision floating point number.


[8224] Return Value: A double-precision floating point number that represents the converted Decimal. A Decimal to convert.


[8225] op_Explicit


[8226] [C#] public static explicit operator ulong(decimal value);


[8227] [C++] public: static unsigned _int64 op_Explicit( );


[8228] [VB] returnValue=Decimal.op_Explicit(value)


[8229] [JScript] returnValue=UInt64(value);


[8230] Description


[8231] Converts a Decimal to a 64-bit unsigned integer.


[8232] Return Value: A 64-bit unsigned integer that represents the converted Decimal. A Decimal to convert.


[8233] op_Explicit


[8234] [C#] public static explicit operator uint(decimal value);


[8235] [C++] public: static unsigned int op_Explicit( );


[8236] [VB] returnValue=Decimal.op_Explicit(value)


[8237] [JScript] returnValue=UInt32(value);


[8238] Description


[8239] Converts a Decimal to a 32-bit unsigned integer.


[8240] Return Value: A 32-bit unsigned integer that represents the converted Decimal. A Decimal to convert.


[8241] op_Explicit


[8242] [C#] public static explicit operator long(decimal value);


[8243] [C++] public: static _int64 op_Explicit( );


[8244] [VB] returnValue=Decimal.op_Explicit(value)


[8245] [JScript] returnValue=Int64(value);


[8246] Description


[8247] Converts a Decimal to a 64-bit signed integer.


[8248] Return Value: A 64-bit signed integer that represents the converted Decimal. A Decimal to convert.


[8249] op_Explicit


[8250] [C#] public static explicit operator decimal(double value);


[8251] [C++] public: static Decimal op_Explicit(double value);


[8252] [VB] returnValue=Decimal.op_Explicit(value)


[8253] [JScript] returnValue=Decimal(value);


[8254] Description


[8255] Converts a double-precision floating point number to a Decimal


[8256] Return Value: A Decimal that represents the converted double-precision floating point number. A double-precision floating point number.


[8257] op_xplicit


[8258] [C#] public static explicit operator decimal(float value);


[8259] [C++] public: static Decimal op_Explicit(float value);


[8260] [VB] returnValue=Decimal.op_Explicit(value)


[8261] [JScript] returnValue=Decimal(value);


[8262] Description


[8263] Converts a single-precision floating point number to a Decimal.


[8264] Return Value: A Decimal that represents the converted single-precision floating point number. A single-precision floating point number.


[8265] op_GreaterThan


[8266] [C#] public static bool operator >(decimal d1, decimal d2);


[8267] [C++] public: static bool op_GreaterThan(Decimal d1, Decimal d2);


[8268] [VB] returnValue=Decimal.op_GreaterThan(d1, d2)


[8269] [JScript] returnValue=d1 >d2;


[8270] Description


[8271] Returns a value indicating whether a specified Decimal is greater than another specified Decimal.


[8272] Return Value: true if d1 is greater than d2; otherwise, false. A Decimal. A Decimal.


[8273] op_GreaterThanOrEqual


[8274] [C#] public static bool operator >=(decimal d1, decimal d2);


[8275] [C++] public: static bool op_GreaterThanOrEqual(Decimal d1, Decimal d2);


[8276] [VB] returnValue=Decimal.op_GreaterThanOrEqual(d1, d2)


[8277] [JScript] returnValue=d1 >=d2;


[8278] Description


[8279] Returns a value indicating whether a specified Decimal is greater than or equal to another specified Decimal.


[8280] Return Value: true if d1 is greater than or equal to d2; otherwise, false. A Decimal. A Decimal.


[8281] op_Implicit


[8282] [C#] public static implicit operator decimal(byte value);


[8283] [C++] public: static Decimal op_Implicit(unsigned char value);


[8284] [VB] returnValue=Decimal.op_Implicit(value)


[8285] [JScript] returnValue=value;


[8286] Description


[8287] Converts an 8-bit unsigned integer to a Decimal.


[8288] Return Value: A Decimal that represents the converted 8-bit unsigned integer. An 8-bit unsigned integer.


[8289] op_Implicit


[8290] [C#] public static implicit operator decimal(char value);


[8291] [C++] public: static Decimal op_Implicit(_wchar_t value);


[8292] [VB] returnValue=Decimal.op_Implicit(value)


[8293] [JScript] returnValue=value;


[8294] Description


[8295] Converts a Unicode character to a Decimal.


[8296] Return Value: A Decimal that represents the converted Unicode character. A Unicode character.


[8297] op_Implicit


[8298] [C#] public static implicit operator decimal(short value);


[8299] [C++] public: static Decimal op_Implicit(short value);


[8300] [VB] returnValue=Decimal.op_Implicit(value)


[8301] [JScript] returnValue=value;


[8302] Description


[8303] Converts a 16-bit signed integer to a Decimal.


[8304] Return Value: A Decimal that represents the converted 16-bit signed integer. A 16-bit signed integer.


[8305] op_Implicit


[8306] [C#] public static implicit operator decimal(int value);


[8307] [C++] public: static Decimal op_Implicit(int value);


[8308] [VB] returnValue=Decimal.op_Implicit(value)


[8309] [JScript] returnValue=value;


[8310] Description


[8311] Converts a 32-bit signed integer to a Decimal.


[8312] Return Value: A Decimal that represents the converted 32-bit signed integer. A 32-bit signed integer.


[8313] op_Implicit


[8314] [C#] public static implicit operator decimal(long value);


[8315] [C++] public: static Decimal op_Implicit(_int64 value);


[8316] [VB] returnValue=Decimal.op_Implicit(value)


[8317] [JScript] returnValue=value;


[8318] Description


[8319] Converts a 64-bit signed integer to a Decimal.


[8320] Return Value: A Decimal that represents the converted 64-bit signed integer. A 64-bit signed integer.


[8321] op_Implicit


[8322] [C#] public static implicit operator decimal(sbyte value);


[8323] [C++] public: static Decimal op_Implicit(char value);


[8324] [VB] returnValue=Decimal.op_Implicit(value)


[8325] [JScript] returnValue=value;


[8326] Description


[8327] Converts an 8-bit signed integer to a Decimal.


[8328] Return Value: A Decimal that represents the converted 8-bit signed integer. An 8-bit signed integer.


[8329] op_Implicit


[8330] [C#] public static implicit operator decimal(ushort value);


[8331] [C++] public: static Decimal op_Implicit(unsigned short value);


[8332] [VB] returnValue=Decimal.op_Implicit(value)


[8333] [JScript] returnValue=value;


[8334] Description


[8335] Converts a 16-bit unsigned integer to a Decimal.


[8336] Return Value: A Decimal that represents the converted 16-bit unsigned integer. A 16-bit unsigned integer.


[8337] op_Implicit


[8338] [C#] public static implicit operator decimal(uint value);


[8339] [C++] public: static Decimal op_Implicit(unsigned int value);


[8340] [VB] returnValue=Decimal.op_Implicit(value)


[8341] [JScript] returnValue=value;


[8342] Description


[8343] Converts a 32-bit unsigned integer to a Decimal.


[8344] Return Value: A Decimal that represents the converted 32-bit unsigned integer. A 32-bit unsigned integer.


[8345] op_Implicit


[8346] [C#] public static implicit operator decimal(ulong value);


[8347] [C++] public: static Decimal op_Implicit(unsigned int64 value);


[8348] [VB] returnValue=Decimal.op_Implicit(value)


[8349] [JScript] returnValue=value;


[8350] Description


[8351] Converts a 64-bit unsigned integer to a Decimal.


[8352] Return Value: A Decimal that represents the converted 64-bit unsigned integer. A 64-bit unsigned integer.


[8353] op_Increment


[8354] [C#] public static decimal operator ++(decimal d);


[8355] [C++] public: static Decimal op_Increment(Decimal d);


[8356] [VB] returnValue=Decimal.op_Increment(d)


[8357] [JScript] returnValue=d++;


[8358] Description


[8359] Increments the Decimal operand by 1.


[8360] Return Value: The value of d incremented by 1. The Decimal operand.


[8361] op_Inequality


[8362] [C#] public static bool operator !=(decimal d1, decimal d2);


[8363] [C++] public: static bool op_Inequality(Decimal d1, Decimal d2);


[8364] [VB] returnValue=Decimal.op_Inequality(d1, d2)


[8365] [JScript] returnValue=d1 !=d2;


[8366] Description


[8367] Returns a value indicating whether two instances of Decimal are not equal.


[8368] Return Value: true if d1 and d2 are not equal; otherwise, false. A Decimal. A Decimal.


[8369] op_LessThan


[8370] [C#] public static bool operator


[8371] [C++] public: static bool op_LessThan(Decimal d1, Decimal d2);


[8372] [VB] returnValue=Decimal.op_LessThan(d1, d2)


[8373] [JScript] returnValue=d1 <d2;


[8374] Description


[8375] Returns a value indicating whether a specified Decimal is less than another specified Decimal.


[8376] Return Value: true if d1 is less than d2; otherwise, false. A Decimal. A Decimal.


[8377] op_LessThanOrEqual


[8378] [C#] public static bool operator <=(decimal d1, decimal d2);


[8379] [C++] public: static bool op_LessThanOrEqual(Decimal d1, Decimal d2);


[8380] [VB] returnValue=Decimal.op_LessThanOrEqual(d1, d2)


[8381] [JScript] returnValue=d1 <=d2;


[8382] Description


[8383] Returns a value indicating whether a specified Decimal is less than or equal to another specified Decimal.


[8384] Return Value: true if d1 is less than or equal to d2; otherwise, false. A Decimal. A Decimal.


[8385] op_Modulus


[8386] [C#] public static decimal operator %(decimal d1, decimal d2);


[8387] [C++] public: static Decimal op_Modulus(Decimal d1, Decimal d2);


[8388] [VB] returnValue=Decimal.op_Modulus(d1, d2)


[8389] [JScript] returnValue=d1% d2;


[8390] Description


[8391] Returns the remainder resulting from dividing two specified Decimal values.


[8392] Return Value: The Decimal remainder resulting from dividing d1 by d2. A Decimal (the dividend). A Decimal (the divisor).


[8393] op_Multiply


[8394] [C#] public static decimal operator *(decimal d1, decimal d2);


[8395] [C++] public: static Decimal op_Multiply(Decimal d1, Decimal d2);


[8396] [VB] returnValue=Decimal.op_Multiply(d1, d2)


[8397] [JScript] returnValue=d1 * d2;


[8398] Description


[8399] Multiplies two specified Decimal values.


[8400] Return Value: The Decimal result of multiplying d1 by d2. A Decimal. A Decimal.


[8401] op_Subtraction


[8402] [C#] public static decimal operator -(decimal d1, decimal d2);


[8403] [C++] public: static Decimal op_Subtraction(Decimal d1, Decimal d2);


[8404] [VB] returnValue=Decimal.op_Subtraction(d1, d2)


[8405] [JScript] retumValue=d1-d2;


[8406] Description


[8407] Subtracts two specified Decimal values.


[8408] Return Value: The Decimal result of subtracting d2 from d1. A Decimal. A Decimal.


[8409] op_UnaryNegation


[8410] [C#] public static decimal operator-(decimal d);


[8411] [C++] public: static Decimal op_UnaryNegation(Decimal d);


[8412] [VB] retumValue Decimal.op_UnaryNegation(d)


[8413] [JScript] returnValue=-d;


[8414] Description


[8415] Negates the value of the Decimal operand.


[8416] Return Value: The negated value of the operand, d. The Decimal operand.


[8417] op_UnaryPlus


[8418] [C#] public static decimal operator+(decimal d);


[8419] [C++] public: static Decimal op_UnaryPlus(Decimal d);


[8420] [VB] returnValue=Decimal.op_UnaryPlus(d)


[8421] [JScript] retumValue=+d;


[8422] Description


[8423] Returns the value of the Decimal operand (the sign of the operand is unchanged).


[8424] Return Value: The value of the operand, d. The Decimal operand.


[8425] Parse


[8426] [C#] public static decimal Parse(string s);


[8427] [C++] public: static Decimal Parse(String* s);


[8428] [VB] Public Shared Function Parse(ByVal s As String) As Decimal


[8429] [JScript] public static function Parse(s: String): Decimal; Converts the String representation of a number to its Decimal equivalent.


[8430] Description


[8431] Converts the String representation of a number to its Decimal equivalent.


[8432] Return Value: The Decimal number equivalent to the number contained in s.


[8433] contains a number of the form: [ws][sign]digits[.fractional-digits][ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert.


[8434] Parse


[8435] [C#] public static decimal Parse(string s, IFormatProvider provider);


[8436] [C++] public: static Decimal Parse(String* s, IFormatProvider* provider);


[8437] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As Decimal


[8438] [JScript] public static function Parse(s: String, provider: IFormatProvider): Decimal;


[8439] Description


[8440] Converts the String representation of a number in a specified style to its Decimal equivalent.


[8441] Return Value: A Decimal with the value represented by s.


[8442] s contains a number of the form: [ws][sign]digits[.fractional-digits][ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information abouts.


[8443] Parse


[8444] [C#] public static decimal Parse(string s, NumberStyles style);


[8445] [C++] public: static Decimal Parse(String* s, NumberStyles style);


[8446] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As Decimal


[8447] [JScript] public static function Parse(s: String, style: NumberStyles): Decimal;


[8448] Description


[8449] Converts the String representation of a number in a specified style to its Decimal equivalent.


[8450] Return Value: A Decimal with the value represented by s.


[8451] s contains a number of the form: [ws][sign]digits[.fractional-digits][ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStyles constants that indicate the permitted format of s.


[8452] Parse


[8453] [C#] public static decimal Parse(string s, NumberStyles style, IFormatProvider provider);


[8454] [C++] public: static Decimal Parse(String* s, NumberStyles style, IFormatProvider* provider);


[8455] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As Decimal


[8456] [JScript] public static function Parse(s: String, style: NumberStyles, provider: IFormatProvider): Decimal;


[8457] Description


[8458] Converts the String representation of a number in a specified style and culture-specific format to its Decimal equivalent.


[8459] Return Value. A Decimal with the value represented by s.


[8460] s contains a number of the form: [ws][sign]digits[.fractional-digits][ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStyles constants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[8461] Remainder


[8462] [C#] public static decimal Remainder(decimal d1, decimal d2);


[8463] [C++] public: static Decimal Remainder(Decimal d1, Decimal d2);


[8464] [VB] Public Shared Function Remainder(ByVal d1 As Decimal, ByVal d2 As Decimal) As Decimal


[8465] [JScript] public static function Remainder(d1: Decimal, d2: Decimal): Decimal;


[8466] Description


[8467] Round


[8468] [C#] public static decimal Round(decimal d, int decimals);


[8469] [C++] public: static Decimal Round(Decimal d, int decimals);


[8470] [VB] Public Shared Function Round(ByVal d As Decimal, ByVal decimals As Integer) As Decimal


[8471] [JScript] public static function Round(d: Decimal, decimals: int): Decimal;


[8472] Description


[8473] Rounds a Decimal value to a specified number of decimal places.


[8474] Return Value: d rounded to decimals number of decimal places. A Decimal value to round. A value from 0 to 28 that specifies the number of decimal places to round to.


[8475] Subtract


[8476] [C#] public static decimal Subtract(decimal d1, decimal d2);


[8477] [C++] public: static Decimal Subtract(Decimal d1, Decimal d2);


[8478] [VB] Public Shared Function Subtract(ByVal d1 As Decimal, ByVal d2 As Decimal) As Decimal


[8479] [JScript] public static function Subtract(d1: Decimal, d2: Decimal): Decimal;


[8480] Description


[8481] Subtracts two specified Decimal values.


[8482] Return Value: The Decimal result of subtracting d2 from d1. A Decimal (the minuend). A Decimal (the subtrahend).


[8483] IConvertible.ToBoolean


[8484] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[8485] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[8486] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[8487] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[8488] IConvertible.ToByte


[8489] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[8490] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[8491] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[8492] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[8493] IConvertible.ToChar


[8494] [C#] char IConvertible.ToChar(IFormatProvider provider);


[8495] [C++]—cwhar_t IConvertible::ToChar(IFormatProvider* provider);


[8496] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[8497] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[8498] IConvertible.ToDateTime


[8499] [C#] DateTime IConvertible.ToDateTime(IFornatProvider provider);


[8500] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[8501] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[8502] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[8503] IConvertible.ToDecimal


[8504] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[8505] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[8506] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[8507] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[8508] IConvertible.ToDouble


[8509] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[8510] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[8511] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[8512] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[8513] IConvertible.ToInt16


[8514] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[8515] [C++] short IConvertible::ToInt16(IFormnatProvider* provider);


[8516] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToIntl6


[8517] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[8518] IConvertible.ToInt32


[8519] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[8520] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[8521] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[8522] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[8523] IConvertible.ToInt64


[8524] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[8525] [C++]_int64 IConvertible::ToInt64(IFormatProvider* provider);


[8526] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[8527] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[8528] IConvertible.ToSByte


[8529] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[8530] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[8531] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[8532] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[8533] IConvertible.ToSingle


[8534] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[8535] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[8536] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[8537] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[8538] IConvertible.ToType


[8539] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[8540] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[8541] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[8542] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[8543] IConvertible.ToUInt16


[8544] [C#] ushort IConvertible ToUInt16(IFonnatProvider provider);


[8545] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[8546] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[8547] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[8548] IConvertible.ToUInt32


[8549] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[8550] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[8551] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[8552] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[8553] IConvertible.ToUInt64


[8554] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[8555] [C++] unsigned—int64 IConvertible::ToUInt64(IFormatProvider* provider);


[8556] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[8557] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[8558] ToByte


[8559] [C#] public static byte ToByte(decimal value);


[8560] [C++] public: static unsigned char ToByte(Decimal value);


[8561] [VB] Public Shared Function ToByte(ByVal value As Decimal) As Byte


[8562] [JScript] public static function ToByte(value: Decimal): Byte;


[8563] Description


[8564] Converts the value of the specified Decimal to the equivalent 8-bit unsigned integer.


[8565] Return Value: An 8-bit unsigned integer equivalent to value.


[8566] value is rounded to the nearest integer value towards zero, and that result is returned. The Decimal value.


[8567] ToDouble


[8568] [C#] public static double ToDouble(decimal d);


[8569] [C++] public: static double ToDouble(Decimal d).


[8570] [VB] Public Shared Function ToDouble(ByVal d As Decimal) As Double


[8571] [JScript] public static function ToDouble(d: Decimal): double;


[8572] Description


[8573] Converts the value of the specified Decimal to the equivalent double-precision floating point number.


[8574] Return Value: A double-precision floating point number equivalent to d.


[8575] Since a Double has fewer significant digits than a Decimal, this operation can produce round-off errors. The Decimal value to convert.


[8576] ToInt16


[8577] [C#] public static short ToInt16(decimal value);


[8578] [C++] public: static short ToInt16(Decimal value);


[8579] [VB] Public Shared Function ToInt16(ByVal value As Decimal) As Short


[8580] [JScipt] public static function ToInt16(value: Decimal): Int16;


[8581] Description


[8582] Converts the value of the specified Decimal to the equivalent 16-bit signed integer.


[8583] Return Value: An 16-bit signed integer equivalent to value. A Decimal value.


[8584] ToInt32


[8585] [C#] public static int ToInt32(decimal d);


[8586] [C++] public: static it ToInt32(Decimal d);


[8587] [VB] Public Shared Function ToInt32(ByVal d As Decimal) As Integer


[8588] [JScript] public static function ToInt32(d: Decimal): int; Description Converts the value of the specified Decimal to the equivalent 32-bit signed integer.


[8589] Return Value: A 32-bit signed integer equivalent to the value of d.


[8590] The return value is the integral part of the decimal value; fractional digits are truncated. The Decimal value to convert.


[8591] ToInt64


[8592] [C#] public static long ToInt64(decimal d);


[8593] [C++] public: static_int64 ToInt64(Decimal d);


[8594] [VB] Public Shared Function ToInt64(ByVal d As Decimal) As Long


[8595] [JScript] public static function ToInt64(d: Decimal): long;


[8596] Description


[8597] Converts the value of the specified Decimal to the equivalent 64-bit signed integer.


[8598] Return Value: A 64-bit signed integer equivalent to the value of d.


[8599] The return value is the integral part of the decimal value; fractional digits are truncated. The Decimal value to convert.


[8600] ToOACurrency


[8601] [C#] public static long ToOACurrency(decimal value);


[8602] [C++] public: static_int64 ToOACurrency(Decimal value);


[8603] [VB] Public Shared Function ToOACurrency(ByVal value As Decimal) As Long


[8604] [JScript] public static function ToOACurrency(value: Decimal): long;


[8605] Description


[8606] Converts the specified Decimal value to the equivalent OLE Automation Currency value, which is contained in a 64-bit signed integer.


[8607] Return Value: A 64-bit signed integer that contains the OLE Automation equivalent of value. A Decimal value.


[8608] ToSByte


[8609] [C#] public static sbyte ToSByte(decimal value);


[8610] [C++] public: static char ToSByte(Decimal value);


[8611] [VB] Public Shared Function ToSByte(ByVal value As Decimal) As SByte


[8612] [JScript] public static function ToSByte(value: Decimal): SByte;


[8613] Description


[8614] Converts the value of the specified Decimal to the equivalent 8-bit signed integer.


[8615] Return Value: An 8-bit signed integer equivalent to value. A Decimal value.


[8616] ToSingle


[8617] [C#] public static float ToSingle(decimal d);


[8618] [C++] public: static float ToSingle(Decimal d);


[8619] [VB] Public Shared Function ToSingle(ByVal d As Decimal) As Single


[8620] [JScript] public static function ToSingle(d: Decimal): float;


[8621] Description


[8622] Converts the value of the specified Decimal to the equivalent single-precision floating point number.


[8623] Return Value: A single-precision floating point number equivalent to the value of d.


[8624] This operation can produce round-off errors because a single-precision floating point number has fewer significant digits than a Decimal. A Decimal value to convert.


[8625] ToString


[8626] [C#] public override string ToString( );


[8627] [C++] public: String* ToString( );


[8628] [VB] Overrides Public Function ToString( ) As String


[8629] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[8630] Description


[8631] Converts the numeric value of this instance to its equivalent String representation.


[8632] Return Value: A String representing the value of this instance.


[8633] The return value is formatted with the general format specifier (“G”). That is, an optional minus sign symbol followed by a sequence of integral digits (“0” through “9”), optionally followed by a decimal point symbol and a sequence of fractional digits. No leading zeroes are prefixed to the returned value.


[8634] ToString


[8635] [C#] public string ToString(IFormatProvider provider);


[8636] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[8637] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[8638] [JScript] public function ToString(provider: IFormatProvider): String;


[8639] Description


[8640] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[8641] Return Value: The String representation of the value of this instance as specified by provider.


[8642] provider is an IFormatProvider instance that obtains a System.Globalization.NumberFormatInfo object. The NumberFormatInfo object provides culture-specific format information about this instance. If provider is null, the return value for this instance is formatted with the NumberFormatInfo for the current culture. An System.lFormatProvider interface implementation which supplies culture-specific formatting information.


[8643] ToString


[8644] [C#] public string ToString(string format);


[8645] [C++] public: String* ToString(String* format);


[8646] [VB] Public Function ToString(ByVal format As String) As String


[8647] [JScript] public function ToString(format: String): String;


[8648] Description


[8649] Converts the numeric value of this instance to its equivalent String representation, using the specified format specification.


[8650] Return Value: A String representation of the value of this instance as specified by format.


[8651] If format is null or an empty string, the return value of this instance is formatted with the general format specifier (“G”). A String containing a format specification.


[8652] ToString


[8653] [C#] public string ToString(string format, IFormatProvider provider);


[8654] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[8655] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[8656] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[8657] Description


[8658] Converts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[8659] Return Value: The String representation of the value of this instance as specified by format and provider.


[8660] If format is null or an empty string, the return value for this instance is formatted with the general format specifier (“G”). A format specification. An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[8661] ToUInt16


[8662] [C#] public static ushort ToUInt16(decimal value);


[8663] [C++] public: static unsigned short ToUInt16(Decimal value);


[8664] [VB] Public Shared Function ToUInt16(ByVal value As Decimal) As UInt16


[8665] [JScript] public static function ToUInt16(value: Decimal): UInt16;


[8666] Description


[8667] Converts the value of the specified Decimal to the equivalent 16-bit unsigned integer.


[8668] Return Value: A 16-bit unsigned integer equivalent to the value of value.


[8669] The return value is the integral part of the decimal value; fractional digits are truncated. A Decimal value to convert.


[8670] ToUInt32


[8671] [C#] public static uint ToUInt32(decimal d);


[8672] [C++] public: static unsigned int ToUInt32(Decimal d);


[8673] [VB] Public Shared Function ToUInt32(ByVal d As Decimal) As UInt32


[8674] [JScript] public static function ToUInt32(d: Decimal): UInt32;


[8675] Description


[8676] Converts the value of the specified Decimal to the equivalent 32-bit unsigned integer.


[8677] Return Value: A 32-bit unsigned integer equivalent to the value of d.


[8678] The return value is the integral part of the decimal value; fractional digits are truncated. A Decimal value to convert.


[8679] ToUInt64


[8680] [C#] public static ulong ToUInt64(decimal d);


[8681] [C++] public: static unsigned_int64 ToUInt64(Decimal d);


[8682] [VB] Public Shared Function ToUInt64(ByVal d As Decimal) As UInt64


[8683] [JScript] public static function ToUInt64(d: Decimal): UInt64;


[8684] Description


[8685] Converts the value of the specified Decimal to the equivalent 64-bit unsigned integer.


[8686] Return Value: A 64-bit unsigned integer equivalent to the value of d.


[8687] The return value is the integral part of the decimal value; fractional digits are truncated. A Decimal value to convert.


[8688] Truncate


[8689] [C#] public static decimal Truncate(decimal d);


[8690] [C++] public: static Decimal Truncate(Decimal d);


[8691] [VB] Public Shared Function Truncate(ByVal d As Decimal) As Decimal


[8692] [JScript] public static function Truncate(d: Decimal): Decimal;


[8693] Description


[8694] Returns the integral digits of the specified Decimal; any fractional digits are discarded.


[8695] Return Value: d rounded toward zero, to the nearest whole number.


[8696] This method rounds parameter d towards zero to the nearest whole number, which corresponds to discarding any digits after the decimal point. A Decimal to truncate.


[8697] Delegate class (System)


[8698] Truncate


[8699] Description


[8700] Represents a delegate, which is a data structure that refers to a static method or to an object instance and an instance method of that object.


[8701] The System.Delegate class is the base class for delegates.


[8702] Delegate


[8703] Example Syntax:


[8704] Truncate


[8705] [C#] protected Delegate(object target, string method);


[8706] [C++] protected: Delegate(Object* target, String* method);


[8707] [VB] Protected Sub New(ByVal target As Object, ByVal method As String)


[8708] [JScript] protected function Delegate(target: Object, method: String); Initializes a new instance of the System.Delegate class.


[8709] Description


[8710] Creates a System.Delegate to represent the specified target System.Object and the specified method.


[8711] This protected constructor is accessible only through this class or a derived class. The System.Object to be represented by the System.Delegate. The System.String containing the name of the method to be represented by the System.Delegate.


[8712] Delegate


[8713] Example Syntax:


[8714] Truncate


[8715] [C#] protected Delegate(Type target, string method);


[8716] [C++] protected: Delegate(Type* target, String* method);


[8717] [VB] Protected Sub New(ByVal target As Type, ByVal method As String)


[8718] [JScript] protected function Delegate(target: Type, method: String);


[8719] Description


[8720] Creates a System.Delegate to represent the specified target System.Type and the specified method.


[8721] This protected constructor is accessible only through this class or a derived class. The System.Type to be represented by the System.Delegate. The System.String containing the name of the method to be represented by the System.Delegate.


[8722] Method


[8723] Truncate


[8724] [CH] public MethodInfo Method {get;}


[8725] [C++] public: _property MethodInfo* get_Method( );


[8726] [VB] Public ReadOnly Property Method As MethodInfo


[8727] [JScript] public function get Method( ): MethodInfo;


[8728] Description


[8729] Gets the static method of the class represented by the System.Delegate.


[8730] Target


[8731] Truncate


[8732] [C#] public object Target {get;}


[8733] [C++] public: _property Object* get_Target( );


[8734] [VB] Public ReadOnly Property Target As Object


[8735] [JScript] public function get Target( ): Object;


[8736] Description


[8737] Gets the class instance from which the System.Delegate was created.


[8738] An instance method is a method that is associated with an instance of a class; whereas, a static method is a method that is associated with the class itself.


[8739] Clone


[8740] [C#] public virtual object Clone( );


[8741] [C++] public: virtual Object* Clone( );


[8742] [VB] Overridable Public Function Clone( ) As Object


[8743] [JScript] public function Clone( ): Object;


[8744] Description


[8745] Creates a shallow copy of the System.Delegate.


[8746] Return Value: A shallow copy of the System.Delegate.


[8747] This method can be overridden by a derived class.


[8748] Combine


[8749] [C#] public static Delegate Combine(Delegate[ ] delegates);


[8750] [C++] public: static Delegate* Combine(Delegate* delegates[ ]);


[8751] [VB] Public Shared Function Combine(ByVal delegates( ) As Delegate) As Delegate


[8752] [JScript] public static function Combine(delegates: Delegate[ ]): Delegate;


[8753] Description


[8754] Combines the invocation lists of an array of multicast System.Delegate instances.


[8755] Return Value: A new multicast System.Delegate with an invocation list that concatenates the invocation lists of the delegates in the delegates array.


[8756] If the delegates array contains entries that are null, those entries are ignored. The array of multicast System.Delegate instances to combine.


[8757] Combine


[8758] [C#] public static Delegate Combine(Delegate a, Delegate b);


[8759] [C++] public: static Delegate* Combine(Delegate* a, Delegate* b);


[8760] [VB] Public Shared Function Combine(ByVal a As Delegate, ByVal b As Delegate) As Delegate


[8761] [JScript] public static function Combine(a: Delegate, b: Delegate): Delegate; Combines the invocation lists of the specified multicast System.Delegate instances.


[8762] Description


[8763] Combines the invocation lists of two multicast System.Delegate instances.


[8764] Return Value: A new multicast System.Delegate with an invocation list that concatenates the invocation lists of a and b in that order.


[8765] The invocation list can contain duplicate entries; that is, entries that refer to the same method on the same object. The multicast System.Delegate whose invocation list comes first. The multicast System.Delegate whose invocation list comes last.


[8766] CombineImpl


[8767] [C#] protected virtual Delegate CombineImpl(Delegate d);


[8768] [C++] protected: virtual Delegate* CombineImpl(Delegate* d);


[8769] [VB] Overridable Protected Function CombineImpl(ByVal d As Delegate) As Delegate


[8770] [JScript] protected function CombineImpl(d: Delegate): Delegate;


[8771] Description


[8772] When overridden in a derived class, combines the invocation lists of the specified multicast System.Delegate with the current multicast System.Delegate.


[8773] Return Value: When overridden in a derived class, a new System.Delegate with an invocation list that concatenates the invocation list of the current System.Delegate and the invocation list of d.


[8774] This method must be overridden by a derived class. The current implementation simply throws a System.MulticastNotSupportedException. This protected method is accessible only through this class or a derived class. The multicast System.Delegate whose invocation list to append to the end of the invocation list of the current multicast System.Delegate.


[8775] CreateDelegate


[8776] [C#] public static Delegate CreateDelegate(Type type, MethodInfo method);


[8777] [C++] public: static Delegate* CreateDelegate(Type* type, MethodInfo* method);


[8778] [VB] Public Shared Function CreateDelegate(ByVal type As Type, ByVal method As MethodInfo) As Delegate


[8779] [JScript] public static function CreateDelegate(type: Type, method: MethodInfo) : Delegate;


[8780] Description


[8781] Creates a System.Delegate of the specified type to represent the specified static method.


[8782] Return Value: A System.Delegate of the specified type to represent the specified static method.


[8783] This method creates delegates for static methods only. A static method is a method that is associated with the class itself. The System.Type of System.Delegate to create. The System.Reffection.MethodInfo describing the static method for which the System.Delegate is to be created.


[8784] CreateDelegate


[8785] [C#] public static Delegate CreateDelegate(Type type, object target, string method);


[8786] [C++] public: static Delegate* CreateDelegate(Type* type, Object* target, String* method);


[8787] [VB] Public Shared Function CreateDelegate(ByVal type As Type, ByVal target As Object, ByVal method As String) As Delegate


[8788] [JScript] public static function CreateDelegate(type: Type, target: Object, method : String): Delegate; Creates a System.Delegate of the specified System.Type.


[8789] Description


[8790] Creates a System.Delegate of the specified type to represent the specified instance method of the specified System.Object instance.


[8791] Return Value: A System.Delegate of the specified type to represent the specified instance method of the specified System.Object instance type is null.


[8792] This method creates delegates for instance methods only. An instance method is a method that is associated with an instance of a class. The System.Type of System.Delegate to create. The target System.Object instance that implements method. The name of the instance method for which the System.Delegate is to be created.


[8793] CreateDelegate


[8794] [C#] public static Delegate CreateDelegate(Type type, Type target, string method);


[8795] [C++] public: static Delegate* CreateDelegate(Type* type, Type* target, String* method);


[8796] [VB] Public Shared Function CreateDelegate(ByVal type As Type, ByVal target As Type, ByVal method As String) As Delegate


[8797] [JScript] public static function CreateDelegate(type: Type, target: Type, method: String): Delegate;


[8798] Description


[8799] Creates a System.Delegate of the specified type to represent the specified static method of the specified System.Type.


[8800] Return Value: A System.Delegate of the specified type to represent the specified static method of the specified System.Type.


[8801] This method creates delegates for static methods only. A static method is a method that is associated with the class itself, not with any particular instance of the class. The System.Type of System.Delegate to create. The target System.Type that implements method. The name of the static method for which the delegate is to be created.


[8802] DynamicInvoke


[8803] [C#] public object DynamicInvoke(object[ ] args);


[8804] [C++] public: Object* DynamicInvoke(Object* args _gc[ ]);


[8805] [VB] Public Function DynamicInvoke(ByVal args( ) As Object) As Object


[8806] [JScript] public function DynamicInvoke(args: Object[ ]): Object;


[8807] Description


[8808] Invokes the method, represented by the System.Delegate, dynamically (late-bound).


[8809] Return Value: The System.Object returned by the method represented by the System.Delegate.


[8810] This method calls the System.Delegate.Dynamiclnvokelmpl(System.Object[ ]) method. An array of System.Object instances that are the arguments to pass to the method represented by the System.Delegate.


[8811] DynamicInvokeImpl


[8812] [C#] protected virtual object DynamicInvokelmpl(object[ ] args);


[8813] [C++] protected: virtual Object* DynamicInvokeImpl(Object* args _gc[ ]);


[8814] [VB] Overridable Protected Function DynamicInvokeImpl(ByVal args( ) As Object) As Object


[8815] [JScript] protected function DynamicInvokeImpl(args: Object[ ]): Object;


[8816] Description


[8817] Invokes the method, represented by the System.Delegate, dynamically (late-bound).


[8818] Return Value: The System.Object returned by the method represented by the System.Delegate


[8819] This method can be overridden by a derived class. This protected method is accessible only through this class or a derived class. An array of System.Object instances that are the arguments to pass to the method represented by the System.Delegate.


[8820] Equals


[8821] [C#] public override bool Equals(object obj);


[8822] [C++] public: bool Equals(Object* obj);


[8823] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[8824] [JScript] public override function Equals(obj: Object): Boolean;


[8825] Description


[8826] Determines whether the specified object and the singlecast System.Delegate share the same target, method and invocation list.


[8827] Return Value: true if obj and the current System.Delegate have the same target, method and invocation list; otherwise, false.


[8828] Two delegates with the same methods, the same targets and the same invocation lists are considered equal, even if they are not both singlecast or both multicast. The System.Object to compare with the singlecast System.Delegate.


[8829] GetHashCode


[8830] [C#] public override int GetHashCode( );


[8831] [C++] public: int GetHashCode( );


[8832] [VB] Overrides Public Function GetHashCode( ) As Integer


[8833] [JScript] public override function GetHashCode( ): int;


[8834] Description


[8835] Returns a hash code for the delegate instance.


[8836] Return Value: A hash code for the delegate instance.


[8837] The return value from this method must not be persisted for two reasons. First, the hash function of a class might be altered to generate a better distribution, rendering any values from the old hash function useless. Second, the default implementation of this class does not guarantee that the same value will be returned by different instances.


[8838] GetInvocationList


[8839] [C#] public virtual Delegate[ ] GetInvocationList( );


[8840] [C++] public: virtual Delegate* GetInvocationList( )[ ];


[8841] [VB] Overridable Public Function GetInvocationList( ) As Delegate( )


[8842] [JScript] public function GetInvocationList( ): Delegate[ ];


[8843] Description


[8844] Returns the invocation list of the System.Delegate.


[8845] Return Value: An array of singlecast System.Delegate objects representing the invocation list of the current System.Delegate. If the current System.Delegate is singlecast, the array contains only one element. If the current System.Delegate is multicast, the array may contain more than one element.


[8846] This method can be overridden by a derived class.


[8847] GetMethodImpl


[8848] [C#] protected virtual MethodInfo GetMethodImpl( );


[8849] [C++] protected: virtual MethodInfo* GetMethodImpl( );


[8850] [VB] Overridable Protected Function GetMethodImpl( ) As MethodInfo


[8851] [JScript] protected function GetMethodImpl( ): MethodInfo;


[8852] Description


[8853] Gets the static method of the class represented by the System.Delegate.


[8854] Return Value: A System.Reflection.MethodInfo describing the static method represented by the System.Delegate.


[8855] This method can be overridden by a derived class. This protected method is accessible only through this class or a derived class.


[8856] GetObjectData


[8857] [C#] public virtual void GetObjectData(SerializationInfo info, StreamingContext context);


[8858] [C++] public: virtual void GetObjectData(SerializationInfo* info, StreamingContext context);


[8859] [VB] Overridable Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[8860] [JScript] public function GetObjectData(info: SerializationInfo, context: StreamingContext);


[8861] Description


[8862] Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the System.Delegate.


[8863] This method can be overridden by a derived class. A System.Runtime.Serialization.SerializationInfo object containing information required to serialize the System.Delegate. A System.Runtime.Serialization.StreamingContext object containing the source and destination of the serialized stream associated with the System.Delegate.


[8864] op_Equality


[8865] [C#] public static bool operator==(Delegate d1, Delegate d2);


[8866] [C++] public: static bool op_Equality(Delegate* d1, Delegate* d2);


[8867] [VB] returnValue=Delegate.op_Equality(d1, d2)


[8868] [JScript] retumValue=d1=d2;


[8869] Description


[8870] Determines whether the specified System.Delegate objects are equal.


[8871] Return Value: true if d1 is equal to d2; otherwise, false.


[8872] Two delegates with the same methods, the same targets and the same invocation lists are considered equal, even if they are not both singlecast or both multicast. The first System.Delegate to compare. The second System.Delegate to compare.


[8873] op_Inequality


[8874] [C#] public static bool operator !=(Delegate d1, Delegate d2);


[8875] [C++] public: static bool op_Inequality(Delegate* d1, Delegate* d2);


[8876] [VB] returnValue=Delegate.op_Inequality(d1, d2)


[8877] [JScript] returnValue=d1 !=d2;


[8878] Description


[8879] Determines whether the specified System.Delegate objects are not equal.


[8880] Return Value: true if d1 is not equal to d2; otherwise, false.


[8881] Two delegates are considered not equal if they have different methods or different targets or different invocation lists. The first System.Delegate to compare. The second System.Delegate to compare.


[8882] Remove


[8883] [C#] public static Delegate Remove(Delegate source, Delegate value);


[8884] [C++] public: static Delegate* Remove(Delegate* source, Delegate* value);


[8885] [VB] Public Shared Function Remove(ByVal source As Delegate, ByVal value As Delegate) As Delegate


[8886] [JScript] public static function Remove(source: Delegate, value: Delegate): Delegate;


[8887] Description


[8888] Removes a System.Delegate from the invocation list of another System.Delegate.


[8889] Return Value: A new System.Delegate with an invocation list formed by taking the invocation list of source and removing the last occurrence of value, if value is found in the invocation list of source.


[8890] The System.Delegate removed from the invocation list is the last delegate for which the following expression is true: value. The System.Delegate from which to remove value. The System.Delegate to remove from the invocation list of source.


[8891] RemoveImpl


[8892] [C#] protected virtual Delegate RemoveImpl(Delegate d);


[8893] [C++] protected: virtual Delegate* RemoveImpl(Delegate* d);


[8894] [VB] Overridable Protected Function RemoveImpl(ByVal d As Delegate) As Delegate


[8895] [JScript] protected function RemoveImpl(d: Delegate): Delegate;


[8896] Description


[8897] Removes a System.Delegate from the invocation list of another System.Delegate.


[8898] Return Value: source, if d is not equal to source; otherwise, null.


[8899] This method can be overridden by a derived class. This protected method is accessible only through this class or a derived class. The System.Delegate to remove from the invocation list of the current System.Delegate.


[8900] DivideByZeroException class (System)


[8901] ToString


[8902] Description


[8903] The exception that is thrown when there is an attempt to divide an integral or decimal value by zero.


[8904] Dividing a floating-point value by zero will result in either positive infinity, negative infinity, or Not-a-Number (NaN) according to the rules of IEEE 754 arithmetic. Floating-point operations never throw an exception. For more information, see System.Single and System.Double.


[8905] DivideByZeroException


[8906] Example Syntax:


[8907] ToString


[8908] [C#] public DivideByZeroException( );


[8909] [C++] public: DivideByZeroException( );


[8910] [VB] Public Sub New( )


[8911] [JScript] public function DivideByZeroException( ); Initializes a new instance of the System.DivideByZeroException class.


[8912] Description


[8913] Initializes a new instance of the System.DivideByZeroException class with default properties.


[8914] The following table shows the initial property values for an instance of System.DivideByZeroException.


[8915] DivideByZeroException


[8916] Example Syntax:


[8917] ToString


[8918] [C#] public DivideByZeroException(string message);


[8919] [C++] public: DivideByZeroException(String* message);


[8920] [VB] Public Sub New(ByVal message As String)


[8921] [JScript] public function DivideByZeroException(message: String);


[8922] Description


[8923] Initializes a new instance of the System.DivideByZeroException class with a specified error message.


[8924] The following table shows the initial property values for an instance of System.DivideByZeroException. The error message that explains the reason for the exception.


[8925] DivideByZeroException


[8926] Example Syntax:


[8927] ToString


[8928] [C#] protected DivideByZeroException(SerializationInfo info, StreamingContext context);


[8929] [C++] protected: DivideByZeroException(SerializationInfo* info, StreamingContext context);


[8930] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[8931] [JScript] protected function DivideByZeroException(info: SerializationInfo, context: StreamingContext);


[8932] Description


[8933] Initializes a new instance of the System.DivideByZeroException class with serialized data.


[8934] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[8935] DivideByZeroException


[8936] Example Syntax:


[8937] ToString


[8938] [C#] public DivideByZeroException(string message, Exception innerException);


[8939] [C++] public: DivideByZeroException(String* message, Exception* innerException);


[8940] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[8941] [JScript] public function DivideByZeroException(message: String, innerException: Exception);


[8942] Description


[8943] Initializes a new instance of the System.DivideByZeroException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[8944] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[8945] HelpLink


[8946] HResult


[8947] InnerException


[8948] Message


[8949] Source


[8950] StackTrace


[8951] TargetSite


[8952] DllNotFoundException class (System)


[8953] ToString


[8954] Description


[8955] The exception that is thrown when a DLL specified in a DLL import cannot be found.


[8956] System.DllNotFoundException uses the HRESULT COR_E_DllNOTFOUND, which has the value 0x80131524.


[8957] DllNotFoundException


[8958] Example Syntax:


[8959] ToString


[8960] [C#] public DllNotFoundException( );


[8961] [C++] public: DllNotFoundException( );


[8962] [VB] Public Sub New( )


[8963] [JScript] public function DllNotFoundException( ); Initializes a new instance of the System.DllNotFoundException class.


[8964] Description


[8965] Initializes a new instance of the System.DlINotFoundException class with default properties.


[8966] The following table shows the initial property values for an instance of System.DllNotFoundException.


[8967] DllNotFoundException


[8968] Example Syntax:


[8969] ToString


[8970] [C#] public DllNotFoundException(string message);


[8971] [C++] public: DllNotFoundException(String* message);


[8972] [VB] Public Sub New(ByVal message As String)


[8973] [JScript] public function DllNotFoundException(message: String);


[8974] Description


[8975] Initializes a new instance of the System.DllNotFoundException class with a specified error message.


[8976] The following table shows the initial property values for an instance of System.DllNotFoundException. The error message that explains the reason for the exception.


[8977] DllNotFoundException


[8978] Example Syntax:


[8979] ToString


[8980] [C#] protected DllNotFoundException(SerializationInfo info, StreamingContext context);


[8981] [C++] protected: DllNotFoundException(SerializationInfo* info, StreamingContext context);


[8982] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[8983] [JScript] protected function DllNotFoundException(info: SerializationInfo, context: StreamingContext);


[8984] Description


[8985] Initializes a new instance of the System.DllNotFoundException class with serialized data. The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.


[8986] DllNotFoundException


[8987] Example Syntax:


[8988] ToString


[8989] [C#] public DllNotFoundException(string message, Exception inner);


[8990] [C++] public: DllNotFoundException(String* message, Exception* inner);


[8991] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[8992] [JScript] public function DllNotFoundException(message: String, inner: Exception);


[8993] Description


[8994] Initializes a new instance of the System.DllNotFoundException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[8995] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[8996] HelpLink


[8997] HResult


[8998] InnerException


[8999] Message


[9000] Source


[9001] StackTrace


[9002] TargetSite


[9003] TypeName


[9004] Double structure (System)


[9005] ToString


[9006] Description


[9007] Represents a double-precision floating point number.


[9008] The Double value type represents a double-precision 64-bit number with values ranging from negative 1.79769313486232e308 to positive 1.79769313486232e308, as well as positive or negative zero, System.Double.PositiveInfinity, System.Double.NegativeInfinity, and Not-a-Number (System.Double.NaN).


[9009] ToString


[9010] [C#] public const double Epsilon;


[9011] [C++] public: const double Epsilon;


[9012] [VB] Public Const Epsilon As Double


[9013] [JScript] public var Epsilon: double;


[9014] Description


[9015] A constant representing the smallest positive Double greater than zero.


[9016] The value of this constant is 4.94065645841247e-324.


[9017] ToString


[9018] [C#] public const double MaxValue;


[9019] [C++] public: const double MaxValue;


[9020] [VB] Public Const MaxValue As Double


[9021] [JScript] public var MaxValue: double;


[9022] Description


[9023] A constant representing the largest possible value of Double.


[9024] The value of this constant is positive 1.79769313486232e308.


[9025] ToString


[9026] [C#] public const double MinValue;


[9027] [C++] public: const double MinValue;


[9028] [VB] Public Const MinValue As Double


[9029] [JScript] public var MinValue: double;


[9030] Description


[9031] A constant representing the smallest possible value of Double.


[9032] The value of this constant is negative 1.79769313486232e308.


[9033] ToString


[9034] [C#] public const double NaN;


[9035] [C++] public: const double NaN;


[9036] [VB] Public Const NaN As Double


[9037] [JScript] public var NaN: double;


[9038] Description


[9039] A constant representing Not-a-Number (NaN).


[9040] The value of this constant is the result of dividing zero by zero.


[9041] ToString


[9042] [C#] public const double NegativeInfinity;


[9043] [C++] public: const double NegativeInfinity;


[9044] [VB] Public Const NegativeInfinity As Double


[9045] [JScript] public var NegativeInfinity: double;


[9046] Description


[9047] A constant representing negative infinity.


[9048] The value of this constant is the result of dividing a negative number by zero.


[9049] ToString


[9050] [C#] public const double PositiveInfinity;


[9051] [C++] public: const double PositiveInfinity;


[9052] [VB] Public Const PositiveInfinity As Double


[9053] [JScript] public var PositiveInfinity: double;


[9054] Description


[9055] A constant representing positive infinity.


[9056] The value of this constant is the result of dividing a positive number by zero.


[9057] CompareTo


[9058] [C#] public int CompareTo(object value);


[9059] [C++] public: _sealed int CompareTo(Object* value);


[9060] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[9061] [JScript] public function CompareTo(value: Object): int;


[9062] Description


[9063] Compares this instance to a specified object and returns an indication of their relative values.


[9064] Return Value: A signed number indicating the relative values of this instance and value.


[9065] Any instance of Double, regardless of its value, is considered greater than null. An object to compare, or null.


[9066] Equals


[9067] [C#] public override bool Equals(object obj);


[9068] [C++] public: bool Equals(Object* obj);


[9069] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[9070] [JScript] public override function Equals(obj: Object): Boolean;


[9071] Description


[9072] Returns a value indicating whether this instance is equal to a specified object.


[9073] Return Value: true if obj is an instance of Double and equals the value of this instance; otherwise, false. An object to compare with this instance.


[9074] GetHashCode


[9075] [C#] public override int GetHashCode( );


[9076] [C++] public: int GetHashCode( );


[9077] [VB] Overrides Public Function GetHashCode( ) As Integer


[9078] [JScript] public override function GetHashCode( ): int;


[9079] Description


[9080] Returns the hash code for this instance.


[9081] Return Value: A 32-bit signed integer hash code.


[9082] GetTypeCode


[9083] [C#] public TypeCode GetTypeCode( );


[9084] [C++] public: _sealed TypeCode GetTypecode( );


[9085] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[9086] [JScript] public function GetTypeCode( ): TypeCode;


[9087] Description


[9088] Returns the TypeCode for value type Double.


[9089] Return Value: The enumerated constant, System.TypeCode.Double.


[9090] IsInfinity


[9091] [C#] public static bool IsInfinity(double d);


[9092] [C++] public: static bool IsInfinity(double d);


[9093] [VB] Public Shared Function IsInfinity(ByVal d As Double) As Boolean


[9094] [JScript] public static function IsInfinity(d: double): Boolean;


[9095] Description


[9096] Returns a value indicating whether the specified number evaluates to either negative or positive infinity.


[9097] Return Value: true if d evaluates to negative or positive infinity; otherwise, false. A double-precision floating point number.


[9098] IsNaN


[9099] [C#] public static bool IsNaN(double d);


[9100] [C++] public: static bool IsNaN(double d);


[9101] [VB] Public Shared Function IsNaN(ByVal d As Double) As Boolean


[9102] [JScript] public static function IsNaN(d: double): Boolean;


[9103] Description


[9104] Returns a value indicating whether the specified number evaluates to Not-a-Number (NaN).


[9105] Return Value: true if d evaluates to NaN; otherwise, false. A double-precision floating point number.


[9106] IsNegativeInfinity


[9107] [C#] public static bool IsNegativeInfinity(double d);


[9108] [C++] public: static bool IsNegativeInfinity(double d);


[9109] [VB] Public Shared Function IsNegativeInfinity(ByVal d As Double) As Boolean


[9110] [JScript] public static function IsNegativeInfinity(d: double): Boolean;


[9111] Description


[9112] Returns a value indicating whether the specified number evaluates to negative infinity.


[9113] Return Value: true if d evaluates to negative infinity; otherwise, false. A double-precision floating point number.


[9114] IsPositiveInfinity


[9115] [C#] public static bool IsPositiveInfinity(double d);


[9116] [C++] public: static bool IsPositiveInfinity(double d);


[9117] [VB] Public Shared Function IsPositiveInfinity(ByVal d As Double) As Boolean


[9118] [JScript] public static function IsPositiveInfinity(d: double): Boolean;


[9119] Description


[9120] Returns a value indicating whether the specified number evaluates to positive infinity.


[9121] Return Value: true if d evaluates to positive infinity; otherwise, false. A double-precision floating point number.


[9122] Parse


[9123] [C#] public static double Parse(string s);


[9124] [C++] public: static double Parse(String* s);


[9125] [VB] Public Shared Function Parse(ByVal s As String) As Double


[9126] [JScript] public static function Parse(s: String): double; Converts the String representation of a number to its double-precision floating point number equivalent.


[9127] Description


[9128] Converts the String representation of a number to its double-precision floating point number equivalent.


[9129] Return Value: A double-precision floating point number equivalent to the numeric value or symbol specified in s.


[9130] S can contain System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativelnfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws] Optional items are framed in square brackets (‘[’ and ‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A System.String containing a number to convert.


[9131] Parse


[9132] [C#] public static double Parse(string s, IFormatProvider provider);


[9133] [C++] public: static double Parse(String* s, IFormatProvider* provider);


[9134] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As Double


[9135] [JScript] public static function Parse(s: String, provider: IFormatProvider) double;


[9136] Description


[9137] Converts the String representation of a number in a specified culture-specific format to its double-precision floating point number equivalent.


[9138] Return Value: A double-precision floating point number equivalent to the numeric value or symbol specified in s.


[9139] S can contain System.Globalization.NumberFormatInfo.PositivelnfinitySymbol, System.Globalization.NumberFormatInfo.NegativeInfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws] Optional items are framed in square brackets (‘[’ and ‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[9140] Parse


[9141] [C#] public static double Parse(string s, NumberStyles style);


[9142] [C++] public: static double Parse(String* s, NumberStyles style);


[9143] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As Double


[9144] [JScript] public static function Parse(s: String, style: NumberStyles): double;


[9145] Description


[9146] Converts the String representation of a number in a specified style to its double-precision floating point number equivalent.


[9147] Return Value: A double-precision floating point number equivalent to the numeric value or symbol specified in s.


[9148] s can contain System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativeInfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws] Optional items are framed in square brackets (‘[’ and‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s.


[9149] Parse


[9150] [C#] public static double Parse(string s, NumberStyles style, IFormatProvider provider);


[9151] [C++] public: static double Parse(String* s, NumberStyles style, IFormatProvider* provider);


[9152] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As Double


[9153] [JScript] public static function Parse(s: String, style: NumberStyles, provider: IFormatProvider): double;


[9154] Description


[9155] Converts the String representation of a number in a specified style and culture-specific format to its double-precision floating point number equivalent.


[9156] Return Value: A double-precision floating point number equivalent to the numeric value or symbol specified in s.


[9157] s can contain System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativeInfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws] Optional items are framed in square brackets (‘[’ and‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[9158] IConvertible.ToBoolean


[9159] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[9160] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[9161] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[9162] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[9163] IConvertible.ToByte


[9164] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[9165] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[9166] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[9167] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[9168] IConvertible.ToChar


[9169] [C#] char IConvertible.ToChar(IFormatProvider* provider);


[9170] [C++]_wchart_t IConvertible::ToChar(IFormatProvider* provider);


[9171] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[9172] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[9173] IConvertible.ToDateTime


[9174] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[9175] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[9176] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[9177] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[9178] IConvertible.ToDecimal


[9179] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[9180] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[9181] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[9182] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[9183] IConvertible.ToDouble


[9184] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[9185] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[9186] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[9187] [JScript] function IConvertible.ToDoubleprovider: IFormatProvider): double;


[9188] IConvertible.ToInt16


[9189] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[9190] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[9191] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[9192] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[9193] IConvertible.ToInt32


[9194] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[9195] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[9196] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[9197] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[9198] IConvertible.ToInt64


[9199] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[9200] [C++]_int64 IConvertible::ToInt64(IFormatProvider* provider);


[9201] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[9202] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[9203] IConvertible.ToSByte


[9204] [C#] Sbyte IConvertible.ToSByte(IFormatProvider provider);


[9205] [C++] char IConlvertible::ToSByte(IFormatProvider* provider);


[9206] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[9207] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[9208] IConvertible.ToSingle


[9209] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[9210] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[9211] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[9212] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[9213] IConvertible.ToType


[9214] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[9215] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[9216] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[9217] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider):


[9218] Object;


[9219] IConvertible.ToUInt16


[9220] [C#] ushort IConvertible.ToUInt16(IFormatProvider provider);


[9221] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[9222] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[9223] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[9224] IConvertible.ToUInt32


[9225] [C#] uInt IConvertible.ToUInt32(IFormatProvider provider);


[9226] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[9227] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[9228] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[9229] IConvertible.ToUInt64


[9230] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[9231] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[9232] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[9233] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[9234] ToString


[9235] [C#] public override string ToString( );


[9236] [C++] public: String* ToString( );


[9237] [VB] Overrides Public Function ToString( ) As String


[9238] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[9239] Description


[9240] Converts the numeric value of this instance to its equivalent String representation.


[9241] Return Value: The System.String representation of the value of this instance.


[9242] The return value can be System.Globalization.NumberFormatlnfo.PositivelnfinitySymbol, System.Globalization.NumberFormatlnfo.NegativelnflnitySymbol, System.Globalization.NumberFormatlnfo.NaNSymbol, or a string of the form: [sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits] Optional items are framed in square brackets (‘[’ and‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9.


[9243] ToString


[9244] [C#] public string ToString(IFormatProvider provider);


[9245] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[9246] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[9247] [JScript] public function ToString(provider: IFormatProvider): String;


[9248] Description


[9249] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[9250] Return Value: The System.String representation of the value of this instance as specified by provider.


[9251] The return value can be System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativeInfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits] Optional items are framed in square brackets (‘[’ and‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[9252] ToString


[9253] [C#] public string ToString(string format);


[9254] [C++] public: String* ToString(String* format);


[9255] [VB] Public Function ToString(ByVal format As String) As String


[9256] [JScript] public function ToString(format: String): String;


[9257] Description


[9258] Converts the numeric value of this instance to its equivalent String representation, using the specified format.


[9259] Return Value: The System.String representation of the value of this instance as specified byformat.


[9260] The return value can be System.Globalization.NumberFormatInfo.PositiveInflnitySymbol, System.Globalization.NumberFormatInfo.NegativeInfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits] Optional items are framed in square brackets (‘[’ and‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A format string.


[9261] ToString


[9262] [C#] public string ToString(string format, IFormatProvider provider);


[9263] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[9264] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[9265] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[9266] Description


[9267] Converts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[9268] Return Value: The System.String representation of the value of this instance as specified byformat and provider.


[9269] The return value can be System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativeInfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits] Optional items are framed in square brackets (‘[’ and‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A format specification. An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[9270] TryParse


[9271] [C#] public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, out double result);


[9272] [C++] public: static bool TryParse(String* s, NumberStyles style, IFormatProvider* provider, double* result);


[9273] [VB] Public Shared Function TryParse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider, ByRef result As Double) As Boolean


[9274] [JScript] public static function TryParse(s: String, style: NumberStyles, provider: IFormatProvider, result: double): Boolean;


[9275] Description


[9276] Converts the String representation of a number in a specified style and culture-specific format to its double-precision floating point number equivalent.


[9277] Return Value: true if s is converted successfully; otherwise, false.


[9278] The system.Double.TryParse method is like the system.Double.Parse method, except this method does not throw an exception if the conversion fails. If the conversion succeeds, the return value is true and the result parameter is set to the outcome of the conversion. If the conversion fails, the return value is false and the result parameter is set to zero. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s. A double-precision floating-point number equivalent to the numeric value or symbol specified in s. If the return value is false, result is set to zero.


[9279] DuplicateWaitObjectException class (System)


[9280] TryParse


[9281] Description


[9282] The exception that is thrown when an object appears more than once in an array of synchronization objects.


[9283] The common language runtime provides a thread synchronization mechanism based on synchronization objects waiting for execution in an array of System.Threading.WaitHandle objects. If the array of System.Threading.WaitHandle objects passed to System.Threading.WaitHandle.WaitAll(System.Threading.WaitHandle [ ],Syst em.Int32,System.Boolean) or System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle [ ],Sy stem.Int32,System.Boolean) contains any duplicate operating system handles, System.DuplicateWaitObjectException is thrown. For more information, see System.Threading.WaitHandle.


[9284] DuplicateWaitObjectException


[9285] Example Syntax:


[9286] TryParse


[9287] [C#] public DuplicateWaitObjectException( );


[9288] [C++] public: DuplicateWaitObjectException( );


[9289] [VB] Public Sub New( )


[9290] [JScript] public function DuplicateWaitObjectException( ); Initializes a new instance of the System.DuplicateWaitObjectException class.


[9291] Description


[9292] Initializes a new instance of the System.DuplicateWaitObjectException class with default properties.


[9293] The following table shows the initial property values for an instance of System.DuplicateWaitObjectException.


[9294] DuplicateWaitObjectException


[9295] Example Syntax:


[9296] TryParse


[9297] [C#] public DuplicateWaitObjectException(string parameterName);


[9298] [C++] public: DuplicateWaitObjectException(String* parameterName);


[9299] [VB] Public Sub New(ByVal parameterName As String)


[9300] [JScript] public function DuplicateWaitObjectException(parameterName: String);


[9301] Description


[9302] Initializes a new instance of the System.DuplicateWaitObjectException class with the name of the parameter that causes this exception.


[9303] The following table shows the initial property values for an instance of System.DuplicateWaitObjectException. The name of the invalid parameter.


[9304] DuplicateWaitObjectException


[9305] Example Syntax:


[9306] TryParse


[9307] [C#] protected DuplicateWaitObjectException(SerializationInfo info, StreamingContext context);


[9308] [C++] protected: DuplicateWaitObjectException(SerializationInfo* info, StreamingContext context);


[9309] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[9310] [JScript] protected function DuplicateWaitObjectException(info: SerializationInfo, context: StreamingContext);


[9311] Description


[9312] Initializes a new instance of the System.DuplicateWaitObjectException class with serialized data.


[9313] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[9314] DuplicateWaitObjectException


[9315] Example Syntax:


[9316] TryParse


[9317] [C#] public DuplicateWaitObjectException(string parameterName, string message);


[9318] [C++] public: DuplicateWaitObjectException(String* parameterName, String* message);


[9319] [VB] Public Sub New(ByVal parameterName As String, ByVal message As String)


[9320] [JScript] public function DuplicateWaitObjectException(parameterName: String, message: String);


[9321] Description


[9322] Initializes a new instance of the System.DuplicateWaitObjectException class with a specified error message and the name of the parameter that causes this exception.


[9323] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The name of the invalid parameter. The error message that explains the reason for the exception.


[9324] HelpLink


[9325] HResult


[9326] InnerException


[9327] Message


[9328] ParamName


[9329] Source


[9330] StackTrace


[9331] TargetSite


[9332] EntryPointNotFoundException class (System)


[9333] ToString


[9334] Description


[9335] The exception that is thrown when an attempt to load a class fails due to the absence of an entry method.


[9336] For a list of initial property values for an instance of System.EntryPointNotFoundException, see the System.EntryPointNotFoundException.#ctor constructors.


[9337] EntryPointNotFoundException


[9338] Example Syntax:


[9339] ToString


[9340] [C#] public EntryPointNotFoundException( );


[9341] [C++] public: EntryPointNotFoundException( );


[9342] [VB] Public Sub New( )


[9343] [JScript] public function EntryPointNotFoundException( ); Initializes a new instance of the System.EntryPointNotFoundException, class.


[9344] Description


[9345] Initializes a new instance of the System.EntryPointNotFoundException class with default properties.


[9346] The following table shows the initial property values for an instance of System.EntryPointNotFoundException.


[9347] EntryPointNotFoundException


[9348] Example Syntax:


[9349] ToString


[9350] [C#] public EntryPointNotFoundException(string message);


[9351] [C++] public: EntryPointNotFoundException(String* message);


[9352] [VB] Public Sub New(ByVal message As String)


[9353] [JScript] public function EntryPointNotFoundException(message: String);


[9354] Description


[9355] Initializes a new instance of the System.EntryPointNotFoundException class with a specified error message.


[9356] The following table shows the initial property values for an instance of System.EntryPointNotFoundException. The error message that explains the reason for the exception.


[9357] EntryPointNotFoundException


[9358] Example Syntax:


[9359] ToString


[9360] [C#] protected EntryPointNotFoundException(SerializationInfo info, StreamingContext context);


[9361] [C++] protected: EntryPointNotFoundException(SerializationInfo* info, StreamingContext context);


[9362] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[9363] [JScript] protected function EntryPointNotFoundException(info: SerializationInfo, context: StreamingContext);


[9364] Description


[9365] Initializes a new instance of the System.EntryPointNotFoundException class with serialized data.


[9366] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[9367] EntryPointNotFoundException


[9368] Example Syntax:


[9369] ToString


[9370] [C#] public EntryPointNotFoundException(string message, Exception inner);


[9371] [C++] public: EntryPointNotFoundException(String* message, Exception* inner);


[9372] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[9373] [JScript] public function EntryPointNotFoundException(message: String, inner: Exception);


[9374] Description


[9375] Initializes a new instance of the System.EntryPointNotFoundException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[9376] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[9377] HelpLink


[9378] HResult


[9379] InnerException


[9380] Message


[9381] Source


[9382] StackTrace


[9383] TargetSite


[9384] TypeName


[9385] Enum class (System)


[9386] ToString


[9387] Description


[9388] Provides the base class for enumerations.


[9389] An enumeration type is a named constant whose underlying type is any integral type except System.Char. Programming languages typically provide syntax to declare an enumeration that consists of a set of named constants and their values.


[9390] Enum


[9391] Example Syntax:


[9392] ToString


[9393] [C#] protected Enum( );


[9394] [C++] protected: Enum( );


[9395] [VB] Protected Sub New( )


[9396] [JScript] protected function Enum( );


[9397] CompareTo


[9398] [C#] public int CompareTo(object target);


[9399] [C++] public: _sealed int CompareTo(Object* target);


[9400] [VB] NotOverridable Public Function CompareTo(ByVal target As Object) As Integer


[9401] [JScript] public function CompareTo(target: Object): int;


[9402] Description


[9403] Compares this instance to a specified object and returns an indication of their relative values.


[9404] Return Value: A signed number indicating the relative values of this instance and target. An object to compare, or null.


[9405] Equals


[9406] [C#] public override bool Equals(object obj);


[9407] [C++] public: bool Equals(Object* obj);


[9408] 5 [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[9409] [JScript] public override function Equals(obj: Object): Boolean;


[9410] Description


[9411] Returns a value indicating whether this instance is equal to a specified object.


[9412] Return Value: true if obj is an Enum with the same underlying type and value as this instance; otherwise, false. An object to compare with this instance.


[9413] Format


[9414] [C#] public static string Format(Type enumType, object value, string format);


[9415] [C++] public: static String* Format(Type* enumType, Object* value, String* format);


[9416] [VB] Public Shared Function Format(ByVal enumType As Type, ByVal value As Object, ByVal format As String) As String


[9417] [JScript] public static function Format(enumType: Type, value: Object, format: String): String;


[9418] Description


[9419] Converts the specified value of a specified enumerated type to its equivalent String representation according to the specified format.


[9420] Return Value: A string representation of value.


[9421] The valid format values are: Format Description “G” or “g” If value is equal to a named enumerated constant, the name of that constant is returned; otherwise, the decimal equivalent of value is returned. The enumeration type of the value to be converted. The value to be converted. The output format to use.


[9422] GetHashCode


[9423] [C#] public override int GetHashCode( );


[9424] [C++] public: int GetHashCode( );


[9425] [VB] Overrides Public Function GetHashCode( ) As Integer


[9426] [JScript] public override function GetHashCode( ): int;


[9427] Description


[9428] Returns the hash code for this instance.


[9429] Return Value: A 32-bit signed integer hash code.


[9430] GetName


[9431] [C#] public static string GetName(Type enumType, object value);


[9432] [C++] public: static String* GetName(Type* enumType, Object* value);


[9433] [VB] Public Shared Function GetName(ByVal enumType As Type, ByVal value As Object) As String


[9434] [JScript] public static function GetName(enumType: Type, value: Object): String;


[9435] Description


[9436] Retrieves the name of the constant in the specified enumeration that has the specified value.


[9437] Return Value: A System.String containing the name of the enumerated constant in enumType whose value is value, or null if no such constant is found. An enumeration. The value of a particular enumerated constant in terms of its underlying type.


[9438] GetNames


[9439] [C#] public static string[ ] GetNames(Type enumType);


[9440] [C++] public: static String* GetNames(Type* enumType)_gc[ ];


[9441] [VB] Public Shared Function GetNames(ByVal enumType As Type) As String( )


[9442] [JScript] public static function GetNames(enumType: Type): String[ ];


[9443] Description


[9444] Retrieves an array of the names of the constants in a specified enumeration.


[9445] Return Value: A System.String array of the names of the constants in enumType. The elements of the array are sorted by the values of the enumerated constants. An enumeration.


[9446] GetTypeCode


[9447] [C#] public TypeCode GetTypeCode( );


[9448] [C++] public: _sealed TypeCode GetTypeCode( );


[9449] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[9450] [JScript] public function GetTypeCode( ): TypeCode;


[9451] Description


[9452] Returns the underlying TypeCode for this instance.


[9453] Return Value: The System.TypeCode for this instance.


[9454] GetUnderlyingType


[9455] [C#] public static Type GetUnderlyingType(Type enumType);


[9456] [C++] public: static Type* GetUnderlyingType(Type* enumType);


[9457] [VB] Public Shared Function GetUnderlyingType(ByVal enumType As Type) As Type


[9458] [JScript] public static function GetUnderlyingType(enumType: Type): Type;


[9459] Description


[9460] Returns the underlying type of the specified enumeration.


[9461] Return Value: The underlying System.Type of enumType. An enumerated type.


[9462] GetValues


[9463] [C#] public static Array GetValues(Type enumType);


[9464] [C++] public: static Array* GetValues(Type* enumType);


[9465] [VB] Public Shared Function GetValues(ByVal enumType As Type) As Array


[9466] [JScript] public static function GetValues(enumType: Type): Array;


[9467] Description


[9468] Retrieves an array of the values of the constants in a specified enumeration.


[9469] Return Value: An Array of the values of the constants in enumType. The elements of the array are sorted by the values of the enumeration constants. An enumeration.


[9470] IsDefined


[9471] [C#] public static bool IsDefined(Type enumType, object value);


[9472] [C++] public: static bool IsDefined(Type * enumType, Object* value);


[9473] [VB] Public Shared Function IsDefined(ByVal enumType As Type, ByVal value As Object) As Boolean


[9474] [JScript] public static function IsDefined(enumType: Type, value: Object): Boolean;


[9475] Description


[9476] Returns an indication whether a constant with a specified value exists in a specified enumeration.


[9477] Return Value: true if a constant in enumtype has a value equal to value; otherwise, false. An enumeration. The value or name of a constant in enumType.


[9478] Parse


[9479] [C#] public static object Parse(Type enumType, string value);


[9480] [C++] public: static Object* Parse(Type* enumType, String* value);


[9481] [VB] Public Shared Function Parse(ByVal enumType As Type, ByVal value As String) As Object


[9482] [JScript] public static function Parse(enumType: Type, value: String): Object; Converts the String representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object.


[9483] Description


[9484] Converts the String representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object.


[9485] Return Value: An object of type enumType whose value is represented by value.


[9486] value contains a value, a named constant, or a list of named constants delimited by commas (“ ”). One or more blanks (“ ”) can precede or follow each value, name, or comma in value. If value is a list, the return value is the value of the specified names combined with a bitwise OR operation. The System.Typeof the enumeration. A System.String containing the name or value to convert.


[9487] Parse


[9488] [C#] public static object Parse(Type enumType, string value, bool ignoreCase);


[9489] [C++] public: static Object* Parse(Type* enumType, String* value, bool ignoreCase);


[9490] [VB] Public Shared Function Parse(ByVal enumType As Type, ByVal value As String, ByVal ignoreCase As Boolean) As Object


[9491] [JScript] public static function Parse(enumType: Type, value: String, ignorecase: Boolean): Object;


[9492] Description


[9493] Converts the String representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object. A parameter specifies whether the operation is case-sensitive.


[9494] Return Value: An object of type enumType whose value is represented by value.


[9495] value contains a value, a named constant, or a list of named constants delimited by commas (“ ”). One or more blanks (“ ”) can precede or follow each value, name, or comma in value. If value is a list, the return value is the value of the specified names combined with a bitwise OR operation. The System.Typeof the enumeration. A System.String containing the name or value to convert. If true, ignore case; otherwise, regard case.


[9496] IConvertible.ToBoolean


[9497] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[9498] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[9499] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[9500] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[9501] IConvertible.ToByte


[9502] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[9503] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[9504] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[9505] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[9506] IConvertible.ToChar


[9507] [C#] char IConvertible.ToChar(IFormatProvider provider);


[9508] [C++]_wchar_t IConvertible::ToChar(IFormatProvider* provider);


[9509] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[9510] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[9511] IConvertible.ToDateTime


[9512] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[9513] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[9514] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[9515] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[9516] IConvertible.ToDecimal


[9517] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[9518] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[9519] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[9520] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[9521] IConvertible.ToDouble


[9522] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[9523] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[9524] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[9525] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[9526]


[9527] IConvertible.ToInt16


[9528] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[9529] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[9530] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[9531] [JScript] function IConvertible.ToInt16(provider: IFormatProvider) Int16;


[9532] IConvertible.ToInt32


[9533] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[9534] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[9535] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[9536] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[9537] IConvertible.ToInt64


[9538] [C#] long IConvertible.Tolnt64((FormatProvider provider );


[9539] [C++]_int64 IConvertible::ToInt64(IFormatProvider* provider);


[9540] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[9541] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[9542] IConvertible.ToSByte


[9543] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[9544] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[9545] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[9546] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[9547] IConvertible.ToSingle


[9548] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[9549] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[9550] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[9551] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[9552] IConvertible.ToType


[9553] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[9554] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[9555] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[9556] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[9557] IConvertible.ToUInt16


[9558] [C#] ushort IConvertible. ToUInt16(IFormatProvider provider);


[9559] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[9560] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[9561] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[9562] IConvertible.ToUInt32


[9563] [C#] uint IConvertible.ToUInt32( lFormatProvider provider);


[9564] [C++] unsigned UInt IConvertible::ToUInt32(IFormatProvider* provider);


[9565] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[9566] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[9567] IConvertible.ToUInt64


[9568] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[9569] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[9570] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[9571] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[9572] ToObject


[9573] [C#] public static object ToObject(Type enumType, byte value);


[9574] [C++] public: static Object* ToObject(Type* enumtype, unsigned char value);


[9575] [VB] Public Shared Function ToObject(ByVal enumType As Type, ByVal value As Byte) As Object


[9576] [JScript] public static function ToObject(enumType: Type, value: Byte): Object;


[9577] Description


[9578] Returns an instance of the specified enumeration type set to the specified 8-bit unsigned integer value.


[9579] Return Value: An instance of the enumeration set to value. The enumeration for which to create a value. The value to set.


[9580] ToObject


[9581] [C#] public static object ToObject(Type enumtype, short value);


[9582] [C++] public: static Object* ToObject(Type* enumType, short value);


[9583] [VB] Public Shared Function ToObject(ByVal enumType As Type, ByVal value As Short) As Object


[9584] [JScript] public static function ToObject(enumType: Type, value: Int16): Object;


[9585] Description


[9586] Returns an instance of the specified enumeration type set to the specified 16-bit signed integer value.


[9587] Return Value: An instance of the enumeration set to value. The enumeration for which to create a value. The value to set.


[9588] ToObject


[9589] [C#] public static object ToObject(Type enumtype, int value);


[9590] [C++] public: static Object* ToObject(Type* enumType, int value);


[9591] [VB] Public Shared Function ToObject(ByVal enumType As Type, ByVal value As Integer) As Object


[9592] [JScript] public static function ToObject(enumType: Type, value: int): Object;


[9593] Description


[9594] Returns an instance of the specified enumeration type set to the specified 32-bit signed integer value.


[9595] Return Value: An instance of the enumeration set to value. The enumeration for which to create a value. The value to set.


[9596] ToObject


[9597] [C#] public static object ToObject(Type enumType, long value);


[9598] [C++] public: static Object* ToObject(Type* enumType, 13 int64 value);


[9599] [VB] Public Shared Function ToObject(ByVal enumType As Type, ByVal value As Long) As Object


[9600] [JScript] public static function ToObject(enumType: Type, value: long): Object;


[9601] Description


[9602] Returns an instance of the specified enumeration type set to the specified 64-bit signed integer value.


[9603] Return Value: An instance of the enumeration set to value. The enumeration for which to create a value. The value to set.


[9604] ToObject


[9605] [C#] public static object ToObject(Type enumtype, object value);


[9606] [C++] public: static Object* ToObject(Type* enumType, Object* value);


[9607] [VB] Public Shared Function ToObject(ByVal enumType As Type, ByVal value As Object) As Object [JScript] public static function ToObject(enumType: Type, value: Object) Object; Returns an instance of the specified enumeration set to the specified value.


[9608] Description


[9609] Returns an instance of the specified enumeration set to the specified value.


[9610] Return Value: An enumeration object whose value is value.


[9611] value is specified in terms of the underlying type of the enumeration. An enumeration. The value.


[9612] ToObject


[9613] [C#] public static object ToObject(Type enumType, sbyte value);


[9614] [C++] public: static Object* ToObject(Type* enumType, char value);


[9615] [VB] Public Shared Function ToObject(ByVal enumType As Type, ByVal value As SByte) As Object


[9616] [JScript] public static function ToObject(enumType: Type, value: SByte): Object; Returns an instance of the specified enumeration type set to the specified value.


[9617] Description


[9618] Returns an instance of the specified enumeration type set to the specified 8-bit signed integer value.


[9619] Return Value: An instance of the enumeration set to value. The enumeration for which to create a value. The value to set.


[9620] ToObject


[9621] [C#] public static object ToObject(Type enumType, ushort value);


[9622] [C++] public: static Object* ToObject(Type* enumType, unsigned short value);


[9623] [VB] Public Shared Function ToObject(ByVal enumType As Type, ByVal value As UInt16) As Object


[9624] [JScript] public static function ToObject(enumType: Type, value: UInt16): Object;


[9625] Description


[9626] Returns an instance of the specified enumeration type set to the specified 16-bit unsigned integer value.


[9627] Return Value: An instance of the enumeration set to value. The enumeration for which to create a value. The value to set.


[9628] ToObject


[9629] [C#] public static object ToObject(Type enumType, ushort value);


[9630] [C++] public: static Object* ToObject(Type* enumType, unsigned int value);


[9631] [VB] Public Shared Function ToObject(ByVal enumType As Type, ByVal value As UInt32) As Object


[9632] [JScript] public static function ToObject(enumType: Type, value: UInt32): Object;


[9633] Description


[9634] Returns an instance of the specified enumeration type set to the specified 32-bit unsigned integer value.


[9635] Return Value: An instance of the enumeration set to value. The enumeration for which to create a value. The value to set.


[9636] ToObject


[9637] [C#] public static object ToObject(Type enumType, ulong value);


[9638] [C++] public: static Object* ToObject(Type* enumType, unsigned_int64 value);


[9639] [VB] Public Shared Function ToObject(ByVal enumType As Type, ByVal value As UInt64) As Object


[9640] [JScript] public static function ToObject(enumType: Type, value: UInt64): Object;


[9641] Description


[9642] Returns an instance of the specified enumeration type set to the specified 64-bit unsigned integer value.


[9643] Return Value: An instance of the enumeration set to value. The enumeration for which to create a value. The value to set.


[9644] ToString


[9645] [C#] public override string ToString( );


[9646] [C++] public: String* ToString( );


[9647] [VB] Overrides Public Function ToString( ) As String


[9648] [JScript] public override function ToString( ): String;


[9649] Description


[9650] Converts the value of this instance to its equivalent String representation.


[9651] Return Value: The String representation of the value of this instance.


[9652] This method behaves as if the general format character, “G”, were specified. That is, if the System.FlagsAttribute is not applied to this enumerated type and there is a named constant equal to the value of this instance, then the return value is a string containing the name of the constant. If the System.FlagsAttribute is applied and there is a combination of one or more named constants equal to the value of this instance, then the return value is a string containing a delimiter-separated list of the names of the constants. Otherwise, the return value is the string representation of the numeric value of this instance.


[9653] ToString


[9654] [C#] public string ToString(IFormatProvider provider);


[9655] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[9656] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String [JScript] public function ToString(provider: IFormatProvider): String;


[9657] Description


[9658] Converts the value of this instance to its equivalent String representation using the specified format information.


[9659] Return Value: The String representation of the name of the value of this instance as specified by provider.


[9660] provider is reserved; it does not participate in this operation and can be specified as null. Therefore, this method is equivalent to the System.Enum.ToString(System.String) method that takes no parameters. (Reserved) An System.lFormatProvider object that supplies format information about this instance.


[9661] ToString


[9662] [C#] public string ToString(string format);


[9663] [C++] public: String* ToString(String* format);


[9664] [VB] Public Function ToString(ByVal format As String) As String


[9665] [JScript] public function ToString(format: String): String; Converts the value of this instance to its equivalent String representation.


[9666] Description


[9667] Converts the value of this instance to its equivalent String representation using the specified format.


[9668] Return Value: The String representation of the value of this instance as specified by format.


[9669] format can contain format characters “G” or “g”, “D” or “d”, “X” or “x”, and “F” or “f”. If format is null or an empty string, the general format specifier (“G”) is used. For more information about these format characters, see the Remarks section of the System.Enum.Format(System.Type,System.Object,System.String) method. For more information about formatting in general, see. A format string.


[9670] ToString


[9671] [C#] public string ToString(string format, IFormatProvider provider);


[9672] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[9673] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[9674] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[9675] Description


[9676] Converts the value of this instance to its equivalent String representation using the specified format and format information.


[9677] Return Value: The String representation of the value of this instance as specified by format andprovider.


[9678] format can contain format characters “G” or “g”, “D” or “d”, “X” or “x”, and “F” or “f”. If format is null or an empty string, the general format specifier (“G”) is used. For more information about these format characters, see the Remarks section of the System.Enum.Format(System.Type,System.Object,System.String) method. For more information about formatting in general, see. A format specification. (Reserved) An System.IFormatProvider object that supplies format information about this instance.


[9679] Environment class (System)


[9680] ToString


[9681] Description


[9682] Provides information about, and means to manipulate, the current environment and platform.


[9683] CommandLine


[9684] ToString


[9685] [C#] public static string CommandLine {get;}


[9686] [C++]_public: property static String* getCommandLine( );


[9687] [VB] Public Shared ReadOnly Property CommandLine As String


[9688] [JScript] public static function get CommandLine( ): String;


[9689] Description


[9690] Gets the command line for this process.


[9691] CurrentDirectory


[9692] ToString


[9693] [C#] public static string CurrentDirectory {get; set;}


[9694] [C++] public: _property static String* get_CurrentDirectory( );public: _property static void set_CurrentDirectory(String*);


[9695] [VB] Public Shared Property CurrentDirectory As String


[9696] [JScript] public static function get CurrentDirectory( ): String;public static function set CurrentDirectory(String);


[9697] Description


[9698] Gets and sets the fully qualified path of the current directory; that is, the directory from which this process starts.


[9699] By definition, if this process starts in the root directory of a local or network drive, the value of this property is the drive name followed by a trailing slash (for example, “C:\”). If this process starts in a subdirectory, the value of this property is the drive and subdirectory path, without a trailing slash (for example, “C:\mySubDirectory”).


[9700] ExitCode


[9701] ToString


[9702] [C#] public static int ExitCode {get; set;}


[9703] [C++] public: _property static int get_ExitCode( );public: _property static void set_ExitCode(int);


[9704] [VB] Public Shared Property ExitCode As Integer [JScript] public static function get ExitCode( ): int;public static function set ExitCode(int);


[9705] Description


[9706] Gets or sets the exit code of the process.


[9707] This property can be used to return a success code from an application. For example, it can be used to control the execution of a set of applications invoked in a script.


[9708] HasShutdownStarted


[9709] ToString


[9710] [C#] public bool HasShutdownStarted {get;}


[9711] [C++] public: _property bool get_HasShutdownStarted( );


[9712] [VB] Public ReadOnly Property HasShutdownStarted As Boolean


[9713] [JScript] public function get HasShutdownStarted( ): Boolean;


[9714] Description


[9715] MachineName


[9716] ToString


[9717] [C#] public static string MachineName {get;}


[9718] [C++] public: _property static String* get_MachineName( );


[9719] [VB] Public Shared ReadOnly Property MachineName As String


[9720] [JScript] public static function get MachineName( ): String;


[9721] Description


[9722] Gets the NetBIOS name of this local computer.


[9723] The name of this computer is established at system startup when the name is read from the registry. If this computer is a node in a cluster, the name of the node is returned.


[9724] NewLine


[9725] ToString


[9726] [C#] public static string NewLine {get;}


[9727] [C++] public: _property static String* get_NewLine( );


[9728] [VB] Public Shared ReadOnly Property NewLine As String


[9729] [JScript] public static function get NewLine( ): String;


[9730] Description


[9731] Gets the newline string defined for this environment.


[9732] The property value is a constant customized specifically for the current platform.


[9733] OSVersion


[9734] ToString


[9735] [C#] public static OperatingSystem OSVersion {get;}


[9736] [C++] public: _property static OperatingSystem* get_OSVersion( );


[9737] [VB] Public Shared ReadOnly Property OSVersion As OperatingSystem


[9738] [JScript] public static function get OSVersion( ): OperatingSystem;


[9739] Description


[9740] Gets an OperatingSystem object that contains the current platform identifier and version number.


[9741] StackTrace


[9742] ToString


[9743] [C#] public static string StackTrace {get;}


[9744] [C++] public: _property static String* get_StackTrace( );


[9745] [VB] Public Shared ReadOnly Property StackTrace As String


[9746] [JScript] public static function get StackTrace( ): String;


[9747] Description


[9748] Gets current stack trace information.


[9749] SystemDirectory


[9750] ToString


[9751] [C#] public static string SystemDirectory {get;}


[9752] [C++] public: _property static String* get_SystemDirectory( );


[9753] [VB] Public Shared ReadOnly Property SystemDirectory As String


[9754] [JScript] public static function get SystemDirectory( ): String;


[9755] Description


[9756] Gets the fully qualified path of the system directory.


[9757] An example of the value returned is the string “C:\WinNT\System32”.


[9758] TickCount


[9759] ToString


[9760] [C#] public static int TickCount {get;}


[9761] [C++] public: _property static int get_TickCount( );


[9762] [VB] Public Shared ReadOnly Property TickCount As Integer


[9763] [JScript] public static function get TickCount( ): int;


[9764] Description


[9765] Gets the number of milliseconds elapsed since the system started.


[9766] The value of this property is derived from the system timer and is stored as a 32-bit signed integer. Therefore, the elapsed time will wrap around to zero if the system is run continuously for 49.7 days.


[9767] UserDomainName


[9768] ToString


[9769] [C#] public static string UserDomainName {get;}


[9770] [C++] public: _property static String* get_UserDomainName( );


[9771] [VB] Public Shared ReadOnly Property UserDomainName As String


[9772] [JScript] public static function get UserDomainName( ): String;


[9773] Description


[9774] Gets the name of the application domain of the current user.


[9775] The value of this property is typically the host machine name, but can depend upon the application solution being deployed.


[9776] UserInteractive


[9777] ToString


[9778] [C#] public static bool UserInteractive {get;}


[9779] [C++] public: _property static bool get_UserInteractive( );


[9780] [VB] Public Shared ReadOnly Property UserInteractive As Boolean


[9781] [JScript] public static function get Userlnteractive( ): Boolean;


[9782] Description


[9783] Gets a value indicating whether the current process is running in user interactive mode.


[9784] This will be false only when running as a Service Process or from inside a Web application. When this property is false, you should not display any modal dialogs or message boxes, because there is no graphical user interface for the user to interact with.


[9785] UserName


[9786] ToString


[9787] [C#] public static string UserName {get;}


[9788] [C++] public: _property static String* get_UserName( );


[9789] [VB] Public Shared ReadOnly Property UserName As String


[9790] [JScript] public static function get UserName( ): String;


[9791] Description


[9792] Gets the user name of the person who started the current thread.


[9793] This property can be used to identify the current user to the system and application for security or access purposes. It can also be used to customize a particular application for each user.


[9794] Version


[9795] ToString


[9796] [C#] public static Version Version {get;}


[9797] [C++] public: _property static Version* get_Version( );


[9798] [VB] Public Shared ReadOnly Property Version As Version


[9799] [JScript] public static function get Version( ): Version;


[9800] Description


[9801] Gets a Version object that describes the major, minor, build, and revision numbers of the common language runtime.


[9802] WorkingSet


[9803] ToString


[9804] [C#] public static long WorkingSet {get;}


[9805] [C++] public: _property static_int64get_WorkingSet( );


[9806] [VB] Public Shared ReadOnly Property WorkingSet As Long


[9807] [JScript] public static function get WorkingSet( ): long;


[9808] Description


[9809] Gets the amount of physical memory mapped to the process context.


[9810] Exit


[9811] [C#] public static void Exit(int exitCode);


[9812] [C++] public: static void Exit(int exitCode);


[9813] [VB] Public Shared Sub Exit(ByVal exitCode As Integer)


[9814] [JScript] public static function Exit(exitCode: int);


[9815] Description


[9816] Terminates this process and gives the underlying operating system the specified exit code. Exit code to be given to the operating system.


[9817] ExpandEnvironmentVariables


[9818] [C#] public static string ExpandEnvironmentVariables(string name);


[9819] [C++] public: static String* ExpandEnvironmentVariables(String* name);


[9820] [VB] Public Shared Function ExpandEnvironmentVariables(ByVal name As String) As String


[9821] [JScript] public static function ExpandEnvironmentVariables(name: String): String;


[9822] Description


[9823] Replaces the name of each environment variable embedded in the specified string with the string equivalent of the value of the variable, then returns the resulting string.


[9824] Return Value: A System.String with each environment variable replaced by its value.


[9825] Replacement only occurs for environment variables that are set. For example, suppose name is “MyENV=%MyENV%”. If the environment variable, MyENV, is set to 42, this method returns “MyENV=42”. If MyENV is not set, no change occurs; this method returns “MyENV=%MyENV%”. A string containing the names of zero or more environment variables. Each environment variable is quoted with the percent sign character (‘%’).


[9826] GetCommandLineArgs


[9827] [C#] public static string[ ] GetCommandLineArgs( );


[9828] [C++] public: static String* GetCommandLineArgs( )_gc[ ];


[9829] [VB] Public Shared Function GetCommandLineArgs( ) As String( )


[9830] [JScript] public static function GetCommandLineArgs( ): String[ ];


[9831] Description


[9832] Returns a String array containing the command line arguments for the current process.


[9833] Return Value: An array of System.String where each element contains a command line argument. The first element is the executable file name, and the following zero or more elements contain the remaining command line arguments.


[9834] GetEnvironmentVariable


[9835] [C#] public static string GetEnvironmentVariable(string variable);


[9836] [C++] public: static String* GetEnvironmentVariable(String* variable);


[9837] [VB] Public Shared Function GetEnvironmentVariable(ByVal variable As String) As String


[9838] [JScript] public static function GetEnvironmentVariable(variable: String): String;


[9839] Description


[9840] Returns the value of the specified environment variable.


[9841] Return Value: A string containing the value of variable, or null if variable is not found. A string containing the name of an environment variable.


[9842] GetEnvironmentVariables


[9843] [C#] public static IDictionary GetEnvironmentVariables( );


[9844] [C++] public: static IDictionary* GetEnvironmentVariables( );


[9845] [VB] Public Shared Function GetEnvironmentVariables( ) As IDictionary


[9846] [JScript] public static function GetEnvironmentVariables( ): IDictionary;


[9847] Description


[9848] Returns all environment variables and their values.


[9849] Return Value: An object derived from System.Collections.IDictionary, which can return all environment variables and their values.


[9850] GetFolderPath


[9851] [C#] public static string GetFolderPath(Environment.SpecialFolder folder);


[9852] [C++] public: static String* GetFolderPath(Environment.SpecialFolder folder);


[9853] [VB] Public Shared Function GetFolderPath(ByVal folder As Environment.SpecialFolder) As String


[9854] [JScript] public static function GetFolderPath(folder: Environment.SpecialFolder): String;


[9855] Description


[9856] Gets the path to the system special folder identified by the specified enumeration.


[9857] This method retrieves the path to a system special folder, such as Program Files, Programs, System, or Startup, which can be used to access common information. The folder enumeration specifies the folder to retrieve. Special folders are set by default by the system, or explicitly by the user, when installing a version of Windows. An enumerated constant that identifies a system special folder.


[9858] GetLogicalDrives


[9859] [C#] public static string[ ] GetLogicalDrives( );


[9860] [C++] public: static String* GetLogicalDrives( )_gc[ ];


[9861] [VB] Public Shared Function GetLogicalDrives( ) As String( )


[9862] [JScript] public static function GetLogicalDrives( ): String[ ];


[9863] Description


[9864] Returns an array of String containing the names of the logical drives on the current computer.


[9865] Return Value: An array of System.String where each element contains the name of a logical drive. For example, if the computer's hard drive is the first logical drive, the first element returned is “C:\”.


[9866] EventArgs class (System)


[9867] ToString


[9868] Description


[9869] System.EventArgs is the base class for event data.


[9870] For more information about events, see the.


[9871] ToString


[9872] [C#] public static readonly EventArgs Empty;


[9873] [C++] public: static EventArgs* Empty;


[9874] [VB] Public Shared ReadOnly Empty As EventArgs


[9875] [JScript] public static var Empty: EventArgs;


[9876] Description


[9877] Represents an event with no event data.


[9878] The value of System.EventArgs.Empty is a read-only instance of System.EventArgs.


[9879] EventArgs


[9880] Example Syntax:


[9881] ToString


[9882] [C#] public EventArgs( );


[9883] [C++] public: EventArgs( );


[9884] [VB] Public Sub New( )


[9885] [JScript] public function EventArgs( );


[9886] Description


[9887] Initializes a new instance of the System.EventArgs class.


[9888] This constructor is only called by the common language runtime.


[9889] EventHandler delegate (System)


[9890] ToString


[9891] Description


[9892] Represents the method that will handle the event that has no event data. The source of the event. An EventArgs that contains the event data.


[9893] The event model in the .NET Framework is based on having an event delegate that connects an event with its handler. To raise an event, two elements are needed: A class that holds the event data. This class must derive from the base class System.EventArgs.


[9894] Exception class (System)


[9895] ToString


[9896] Description


[9897] Defines the base class for all exceptions.


[9898] Exceptions are responses to abnormal or exceptional conditions that arise while a program is executing. The common language runtime provides an exception handling model that is based on the representation of exceptions as objects, and the separation of program code and exception handling code into try block and catch block, respectively. There can be one or more catch blocks, each designed to handle a particular type of exception, or one block designed to catch a more specific exception than another block.


[9899] Exception


[9900] Example Syntax:


[9901] ToString


[9902] [C#] public Exception( );


[9903] [C++] public: Exception( );


[9904] [VB] Public Sub New( )


[9905] [JScript] public function Exception( ); Initializes a new instance of the


[9906] System.Exception class.


[9907] Description


[9908] Initializes a new instance of the System.Exception class with default properties.


[9909] All the derived classes should provide this default constructor. The following table shows the initial property values for an instance of System.Exception.


[9910] Exception


[9911] Example Syntax:


[9912] ToString


[9913] [C#] public Exception(string message);


[9914] [C++] public: Exception(String* message);


[9915] [VB] Public Sub New(ByVal message As String)


[9916] [JScript] public function Exception(message:String);


[9917] Description


[9918] Initializes a new instance of the System.Exception class with a specified error message.


[9919] The following table shows the initial property values for an instance of System.Exception. The error message that explains the reason for the exception.


[9920] Exception


[9921] Example Syntax:


[9922] ToString


[9923] [C#] protected Exception(SerializationInfo info, StreamingContext context);


[9924] [C++] protected: Exception(SerializationInfo* info, StreamingContext context);


[9925] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[9926] [JScript] protected function Exception(info: SerializationInfo, context: StreamingContext);


[9927] Description


[9928] Initializes a new instance of the System.Exception class with serialized data.


[9929] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[9930] Exception


[9931] Example Syntax:


[9932] ToString


[9933] [C#] public Exception(string message, Exception innerException);


[9934] [C++] public: Exception(String* message, Exception* innerException);


[9935] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[9936] [JScript] public function Exception(message: String, innerException: Exception);


[9937] Description


[9938] Initializes a new instance of the System.Exception class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[9939] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[9940] HelpLink


[9941] ToString


[9942] [C#] public virtual string HelpLink {get; set;}


[9943] [C++] public: _property virtual String* get_HelpLink( );public: _property virtual void set_HelpLink(String*);


[9944] [VB] Overridable Public Property HelpLink As String


[9945] [JScript] public function get HelpLink( ): String;public function set HelpLink(String);


[9946] Description


[9947] Gets or sets a link to the help file associated with this exception.


[9948] The return value, which represents a help file, is a URN or URL. For example: “file:///C:/Applications/Bazzal/help.html#ErrorNum42”


[9949] HResult


[9950] ToString


[9951] [C#] protected int HResult {get; set;}


[9952] [C++] protected: _property int get_HResult( );protected: _property void set_HResult(int);


[9953] [VB] Protected Property HResult As Integer


[9954] [JScript] protected function get HResult( ): int;protected function set HResult(int);


[9955] Description


[9956] Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.


[9957] HRESULT is a 32-bit value, divided into three different fields: a severity code, a facility code, and an error code. The severity code indicates whether the return value represents information, warning, or error. The facility code identifies the area of the system responsible for the error. The error code is a unique number that is assigned to represent the exception. Each exception is mapped to a distinct HRESULT. When managed code throws an exception, the runtime passes the HRESULT to the COM client. When unmanaged code returns an error, the HRESULT is converted to an exception, which is then thrown by the runtime.


[9958] InnerException


[9959] ToString


[9960] [C#] public Exception InnerException {get;}


[9961] [C++] public: _property Exception* get_InnerException( );


[9962] [VB] Public ReadOnly Property InnerException As Exception


[9963] [JScript] public function get InnerException( ): Exception;


[9964] Description


[9965] Gets a reference to the inner exception.


[9966] You can create a new exception that catches an earlier exception. The code that handles the second exception can make use of the additional information from the earlier exception to handle the error more appropriately.


[9967] Message


[9968] ToString


[9969] [C#] public virtual string Message {get;}


[9970] [C++] public: _property virtual String* get_Message( );


[9971] [VB] Overridable Public ReadOnly Property Message As String


[9972] [JScript] public function get Message( ): String;


[9973] Description


[9974] Gets the error message text.


[9975] Every exception should carry an error message that provides information about the exception, such as why it is thrown. The System.Exception.Message property is set when the exception object is constructed. If an exception is constructed without a supplied error message, this property provides a default message indicating the type of the exception that is thrown.


[9976] Source


[9977] ToString


[9978] [C#] public virtual string Source {get; set;}


[9979] [C++] public: _property virtual String* get_Source( );public: _property virtual void set_Source(String*);


[9980] [VB] Overridable Public Property Source As String


[9981] [JScript] public function get Source( ): String;public function set Source(String);


[9982] Description


[9983] Gets or sets a string containing the name of the application or the object that causes the error.


[9984] If System.Exception.Source is not set, the name of the assembly where the exception originated is returned.


[9985] StackTrace


[9986] ToString


[9987] [C#] public virtual string StackTrace {get;}


[9988] [C++] public: _property virtual String* get_StackTrace( );


[9989] [VB] Overridable Public ReadOnly Property StackTrace As String


[9990] [JScript] public function get StackTrace( ): String;


[9991] Description


[9992] Gets the stack trace, which identifies the location in the code where the error occurs.


[9993] The execution stack keeps track of all the methods that are in execution at a given instant. A trace of the method calls is called a stack trace with the most recent method call appearing first. The stack trace listing provides a means to follow the call sequence to the line number in the method where the exception occurs.


[9994] TargetSite


[9995] ToString


[9996] [C#] public MethodBase TargetSite {get;}


[9997] [C++] public: _property MethodBase* get_TargetSite( );


[9998] [VB] Public ReadOnly Property TargetSite As MethodBase


[9999] [JScript] public function get TargetSite( ): MethodBase;


[10000] Description


[10001] Gets the method that throws this exception.


[10002] If the method that throws this exception is not available and the stack trace is not null, System.Exception.TargetSite obtains the method from the stack trace. If the stack trace is null, System.Exception.TargetSite returns null.


[10003] GetBaseException


[10004] [C#] public virtual Exception GetBaseException( );


[10005] [C++] public: virtual Exception* GetBaseException( );


[10006] [VB] Overridable Public Function GetBaseException( ) As Exception


[10007] [JScript] public function GetBaseException( ): Exception;


[10008] Description


[10009] Gets the original exception that is thrown.


[10010] Return Value: A reference to the original exception object.


[10011] System.Exception.GetBaseException returns the original, innermost exception that causes this exception and other related exceptions linked via the System.Exception.InnerException property. If the current exception is the only one thrown, then its reference will be returned.


[10012] GetObjectData


[10013] [C#] public virtual void GetObjectData(SerializationInfo info, StreamingContext context);


[10014] [C++] public: virtual void GetObjectData(SerializationInfo* info, StreamingContext context);


[10015] [VB] Overridable Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[10016] [JScript] public function GetObjectData(info: SerializationInfo, context: StreamingContext);


[10017] Description


[10018] Sets the System.Runtime.Serialization.Serializationlnfo object with information about the exception.


[10019] System.TypeLoadException.GetObjectData(System.Runtime.Serializat ion.SerializationInfo,System.Runtime.Serialization.StreamingContext) sets a System.Runtime.Serialization.Serializationlnfo with all the exception object data targeted for serialization. During deserialization, the exception object is reconstituted from the System.Runtime.Serialization.SerializationInfo transmitted over the stream. The object that holds the serialized object data. The contextual information about the source or destination.


[10020] ToString


[10021] [C#] public override string ToString( );


[10022] [C++] public: String* ToString( );


[10023] [VB] Overrides Public Function ToString( ) As String


[10024] [JScript] public override function ToString( ): String;


[10025] Description


[10026] Returns the fully qualified name of this exception and possibly the error message, the name of the inner exception, and the stack trace.


[10027] Return Value: The fully qualified class name, plus possibly the error message, the name of the inner exception, and the stack trace.


[10028] If there is no error message or if it is an empty string (“ ”), then no error message is returned. The name of the inner exception and the stack trace are returned only if they are not null.


[10029] ExecutionEngineException class (System)


[10030] ToString


[10031] Description


[10032] 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.


[10033] System.ExecutionEngineException uses the HRESULT COR_E_EXECUTIONENGINE, which has the value 0x80131506.


[10034] ExecutionEngineException


[10035] Example Syntax:


[10036] ToString


[10037] [C#] public ExecutionEngineException( );


[10038] [C++] public: ExecutionEngineException( );


[10039] [VB] Public Sub New( )


[10040] [JScript] public function ExecutionEngineException( ); Initializes a new instance of the System.ExecutionEngineException class.


[10041] Description


[10042] Initializes a new instance of the System.ExecutionEngineException class with default properties.


[10043] The following table shows the initial property values for an instance of System.ExecutionEngineException.


[10044] ExecutionEngineException


[10045] Example Syntax:


[10046] ToString


[10047] [C#] public ExecutionEngineException(string message);


[10048] [C++] public: ExecutionEngineException(String* message);


[10049] [VB] Public Sub New(ByVal message As String)


[10050] [JScript] public function ExecutionEngineException(message: String);


[10051] Description


[10052] Initializes a new instance of the System.ExecutionEngineException class with a specified error message.


[10053] The following table shows the initial property values for an instance of System.ExecutionEngineException. The error message that explains the reason for the exception.


[10054] ExecutionEngineException


[10055] Example Syntax:


[10056] ToString


[10057] [C#] public ExecutionEngineException(string message, Exception innerException);


[10058] [C++] public: ExecutionEngineException(String* message, Exception* innerException);


[10059] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[10060] [JScript] public function ExecutionEngineException(message: String, innerException: Exception);


[10061] Description


[10062] Initializes a new instance of the System.ExecutionEngineException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[10063] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[10064] HelpLink


[10065] HResult


[10066] InnerException


[10067] Message


[10068] Source


[10069] StackTrace


[10070] TargetSite


[10071] FieldAccessException class (System)


[10072] ToString


[10073] Description


[10074] The exception that is thrown when there is an illegal attempt to access a private or protected field inside a class.


[10075] System.FieldAccessException uses the HRESULT COR_E_FIELDACCESS, which has the value 0x80131507.


[10076] FieldAccessException


[10077] Example Syntax:


[10078] ToString


[10079] [C+] public FieldAccessException( );


[10080] [C++] public: FieldAccessException( );


[10081] [VB] Public Sub New( )


[10082] [JScript] public function FieldAccessException( ); Initializes a new instance of the System.FieldAccessException class.


[10083] Description


[10084] Initializes a new instance of the System.FieldAccessException class with default properties.


[10085] The following table shows the initial property values for an instance of System.FieldAccessException.


[10086] FieldAccessException


[10087] Example Syntax:


[10088] ToString


[10089] [C#] public FieldAccessException(string message);


[10090] [C++] public: FieldAccessException(String* message);


[10091] [VB] Public Sub New(ByVal message As String)


[10092] [JScript] public function FieldAccessException(message: String);


[10093] Description


[10094] Initializes a new instance of the System.FieldAccessException class with a specified error message.


[10095] The following table shows the initial property values for an instance of System.FieldAccessException. The error message that explains the reason for the exception.


[10096] FieldAccessException


[10097] Example Syntax:


[10098] ToString


[10099] [C#] protected FieldAccessException(SerializationInfo info, StreamingContext context);


[10100] [C++] protected: FieldAccessException(SerializationInfo* info, StreamingContext context);


[10101] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[10102] [JScript] protected function FieldAccessException(info: SerializationInfo, context : StreamingContext);


[10103] Description


[10104] Initializes a new instance of the System.FieldAccessException class with serialized data.


[10105] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[10106] FieldAccessException


[10107] Example Syntax:


[10108] ToString


[10109] [C#] public FieldAccessException(string message, Exception inner);


[10110] [C++] public: FieldAccessException(String* message, Exception* inner);


[10111] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[10112] [JScript] public function FieldAccessException(message: String, inner: Exception);


[10113] Description


[10114] Initializes a new instance of the System.FieldAccessException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[10115] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[10116] HelpLink


[10117] HResult


[10118] InnerException


[10119] Message


[10120] Source


[10121] StackTrace


[10122] TargetSite


[10123] FlagsAttribute class (System)


[10124] ToString


[10125] Description


[10126] Custom attribute indicating an enumeration should be treated as a bitfield; that is, a set of flags.


[10127] Bitfields can be combined using a bitwise OR operation, whereas enumerated constants cannot.


[10128] FlagsAttribute


[10129] Example Syntax:


[10130] ToString


[10131] [C#] public FlagsAttribute( );


[10132] [C++] public: FlagsAttribute( );


[10133] [VB] Public Sub New( )


[10134] [JScript] public function FlagsAttribute( );


[10135] Description


[10136] Initializes a new instance of the FlagsAttribute class.


[10137] TypeId


[10138] FormatException class (System)


[10139] ToString


[10140] Description


[10141] The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method.


[10142] System.FormatException is thrown when the format of an argument in a method invocation does not match the format of the corresponding formal parameter type. For example, if a method specifies a System.String parameter consisting of two digits with an embedded period, passing a corresponding string argument containing only two digits to that method would cause System.FormatException to be thrown.


[10143] FormatException


[10144] Example Syntax:


[10145] ToString


[10146] [C#] public FormatException( );


[10147] [C++] public: FormnatException( );


[10148] [VB] Public Sub New( )


[10149] [JScript] public function FormatException( ); Initializes a new instance of the System.FormatException class.


[10150] Description


[10151] Initializes a new instance of the System.FormatException class with default properties.


[10152] The following table shows the initial property values for an instance of System.FormatException.


[10153] FormatException


[10154] Example Syntax:


[10155] ToString


[10156] [C#] public FormatException(string message);


[10157] [C++] public: FormatExcepfion(String* message);


[10158] [VB] Public Sub New(ByVal message As String)


[10159] [JScript] public function FormatException(message: String);


[10160] Description


[10161] Initializes a new instance of the System.FormatException class with a specified error message.


[10162] The following table shows the initial property values for an instance of System.FormatException. The error message that explains the reason for the exception.


[10163] FormatException


[10164] Example Syntax:


[10165] ToString


[10166] [C#] protected FormatException(SerializationInfo info, StreamingContext context);


[10167] [C++] protected: FormatException(SerializationInfo* info, StreamingContext context);


[10168] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[10169] [JScript] protected function FormatException(info: SerializationInfo, context: StreamingContext);


[10170] Description


[10171] Initializes a new instance of the System.FormatException class with serialized data.


[10172] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[10173] FormatException


[10174] Example Syntax:


[10175] ToString


[10176] [C#] public FormatException(string message, Exception innerException);


[10177] [C++] public: FormatException(String* message, Exception* innerException);


[10178] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[10179] [JScript] public function FormatException(message: String, innerException: Exception);


[10180] Description


[10181] Initializes a new instance of the System.FormatException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[10182] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[10183] HelpLink


[10184] HResult


[10185] InnerException


[10186] Message


[10187] Source


[10188] StackTrace


[10189] TargetSite


[10190] GC class (System)


[10191] ToString


[10192] Description


[10193] Controls the system garbage collector, a service that automatically reclaims unused memory.


[10194] Methods in this class influence when an object is garbage collected and when resources allocated by an object are released (“finalized”). Properties in this class provide information about the total amount of memory available in the system and the age category, or “generation”, of memory allocated to an object.


[10195] MaxGeneration


[10196] ToString


[10197] [C#] public static int MaxGeneration {get;}


[10198] [C++] public: _property static int get_MaxGeneration( );


[10199] [VB] Public Shared ReadOnly Property MaxGeneration As Integer


[10200] [JScript] public static function get MaxGeneration( ): int;


[10201] Description


[10202] Gets the maximum number of generations the system currently supports.


[10203] A “generation” number indicates the relative age of each segment of allocated memory. The newest memory is in generation zero and the oldest memory is in generation MaxGeneration. The garbage collector service improves its performance by adjusting generation numbers each time it reclaims memory, then taking into consideration newer memory is more likely to be eligible for garbage collection than older memory.


[10204] Collect


[10205] [C#] public static void Collect( );


[10206] [C++] public: static void Collect( );


[10207] [VB] Public Shared Sub Collect( )


[10208] [JScript] public static function Collect( );


[10209] Description


[10210] Forces garbage collection of all generations.


[10211] Collect


[10212] [C#] public static void Collect(int generation);


[10213] [C++] public: static void Collect(int generation);


[10214] [VB] Public Shared Sub Collect(ByVal generation As Integer)


[10215] [JScript] public static function Collect(generation: int); Forces garbage collection.


[10216] Description


[10217] Forces garbage collection from generation zero through a specified generation. The maximum generation to garbage collect.


[10218] GetGeneration


[10219] [C#] public static int GetGeneration(object obj);


[10220] [C++] public: static int GetGeneration(Object* obj);


[10221] [VB] Public Shared Function GetGeneration(ByVal obj As Object) As Integer


[10222] [JScript] public static function GetGeneration(obj: Object): int; Returns the current generation of an object.


[10223] Description


[10224] Returns the current generation of a specified object.


[10225] Return Value: The current generation of obj. The object for which generation information is retrieved.


[10226] GetGeneration


[10227] [C#] public static int GetGeneration(WeakReference wo);


[10228] [C++] public: static int GetGeneration(WeakReference* wo);


[10229] [VB] Public Shared Function GetGeneration(ByVal wo As WeakReference) As Integer


[10230] [JScript] public static function GetGeneration(wo: WeakReference): int;


[10231] Description


[10232] Returns the current generation of the target of a specified weak reference.


[10233] Return Value: The current generation of the target of wo. The weak reference of a target.


[10234] GetTotalMemory


[10235] [C#] public static long GetTotalMemory(bool forceFullCollection);


[10236] [C++] public: static_int64 GetTotalMemory(bool forceFullCollection);


[10237] [VB] Public Shared Function GetTotalMemory(ByVal forceFullCollection As Boolean) As Long


[10238] [JScript] public static function GetTotalMemory(forceFullCollection: Boolean): long;


[10239] Description


[10240] Retrieves the number of bytes currently thought to be allocated. A parameter indicates whether this method should wait a short interval before returning while the system garbage collects and finalizes objects.


[10241] If forceFullCollection is true, this method waits a short interval before returning while the system garbage collects and finalizes objects. The duration of the interval is an internally specified limit determined by the number of garbage collection cycles completed and the change in the amount of memory recovered between cycles. A Boolean value, which if true indicates this method should wait before returning.


[10242] KeepAlive


[10243] [C#] public static void KeepAlive(object obj);


[10244] [C++] public: static void KeepAlive(Object* obj);


[10245] [VB] Public Shared Sub KeepAlive(ByVal obj As Object)


[10246] [JScript] public static function KeepAlive(obj: Object);


[10247] Description


[10248] References the specified object, making it ineligible for garbage collection from the start of the current routine to the point where this method is called.


[10249] When calling methods in unmanaged code (such as Win32 APIs, unmanaged DLLs, or methods using COM), it is sometimes necessary to indicate a particular object should not be garbage collected, even though there are no references to it from managed code or data. The object to reference.


[10250] ReRegisterForFinalize


[10251] [C#] public static void ReRegisterForFinalize(object obj);


[10252] [C++] public: static void ReRegisterForFinalize(Object* obj);


[10253] [VB] Public Shared Sub ReRegisterForFinalize(ByVal obj As Object)


[10254] [JScript] public static function ReRegisterForFinalize(obj: Object);


[10255] Description


[10256] Requests the system call the finalizer method for the specified object, for which SuppressFinalize has previously been called.


[10257] A finalizer can use this method to resurrect itself or an object it references. The object for which a finalizer should be called.


[10258] SuppressFinalize


[10259] [C#] public static void SuppressFinalize(object obj);


[10260] [C++] public: static void SuppressFinalize(Object* obj);


[10261] [VB] Public Shared Sub SuppressFinalize(ByVal obj As Object)


[10262] [JScript] public static function SuppressFinalize(obj: Object);


[10263] Description


[10264] Requests the system not call the finalizer method for the specified object. The object for which a finalizer should not be called.


[10265] WaitForPendingFinalizers


[10266] [C#] public static void WaitForPendingFinalizers( );


[10267] [C++] public: static void WaitForPendingFinalizers( );


[10268] [VB] Public Shared Sub WaitForPendingFinalizers( )


[10269] [JScript] public static function WaitForPendingFinalizers( );


[10270] Description


[10271] Suspends the current thread until the thread processing the queue of finalizers has emptied that queue.


[10272] Finalizers are run on a separate thread of execution, so there is no guarantee this method will terminate. However, this thread can be interrupted by another thread while this method is in progress. This means you can start another thread that waits for a period of time, then interrupts this thread if it is still suspended.


[10273] Guid structure (System)


[10274] WaitForPendingFinalizers


[10275] Description


[10276] Represents a globally unique identifier (GUID).


[10277] A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated.


[10278] WaitForPendingFinalizers


[10279] [C#] public static readonly Guid Empty;


[10280] [C++] public: static Guid Empty;


[10281] [VB] Public Shared ReadOnly Empty As Guid


[10282] [JScript] public static var Empty: Guid;


[10283] Description


[10284] Initializes a new instance of the Guid class.


[10285] Guid


[10286] Example Syntax:


[10287] WaitForPendingFinalizers


[10288] [C#] public Guid(byte[ ] b);


[10289] [C++] public: Guid(unsigned char b_gc[ ]);


[10290] [VB] Public Sub New(ByVal b( ) As Byte)


[10291] [JScript] public function Guid(b: Byte[ ]); Initializes a new instance of the Guid class.


[10292] Description


[10293] Initializes a new instance of the Guid class using the specified array of bytes. A 16 element byte array containing values with which to initialize the GUID.


[10294] Guid


[10295] Example Syntax:


[10296] WaitForPendingFinalizers


[10297] [C#] public Guid(string g);


[10298] [C++] public: Guid(String* g);


[10299] [VB] Public Sub New(ByVal g As String)


[10300] [JScript] public function Guid(g: String);


[10301] Description


[10302] Initializes a new instance of the Guid class using the value represented by the specified string.


[10303] The string may begin and end with braces: ‘{‘, and‘,}‘. A String that contains a GUID in the following format: hexadecimal digits are arranged in groups of 8, 4, 4, 4, and 12 digits with hyphens between the groups. The GUID can optionally be enclosed in matching braces. For example: dddddddd-dddd-dddd -dddd-dddddddddddd or {dddddddd-dddd-dddd-dddd-dddddddddddd}.


[10304] Guid


[10305] Example Syntax:


[10306] WaitForPendingFinalizers


[10307] [C#] public Guid(int a, short b, short c, byte[ ] d);


[10308] [C++] public: Guid(int a, short b, short c, unsigned char d—gc[ ]);


[10309] [VB] Public Sub New(ByVal a As Integer, ByVal b As Short, ByVal c As Short, ByVal d( ) As Byte)


[10310] [JScript] public function Guid(a: int, b: Int16, c: Int16, d: Byte[ ]);


[10311] Description


[10312] Initializes a new instance of the Guid class using the specified integers and byte array. The first 4 bytes of the GUID. The next 2 bytes of the GUID. The next 2 bytes of the GUID. The remaining 8 bytes of the GUID.


[10313] Guid


[10314] Example Syntax:


[10315] WaitForPendingFinalizers


[10316] [C#] public Guid(int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k);


[10317] [C++] public: Guid(int a, short b, short c, unsigned char d, unsigned char e, unsigned char f, unsigned char g, unsigned char h, unsigned char i, unsigned char j, unsigned char k);


[10318] [VB] Public Sub New(ByVal a As Integer, ByVal b As Short, ByVal c As Short, ByVal d As Byte, ByVal e As Byte, ByVal f As Byte, ByVal g As Byte, ByVal h As Byte, ByVal i As Byte, ByVal j As Byte, ByVal k As Byte)


[10319] [JScript] public function Guid(a: int, b: Int16, c: Int16, d: Byte, e: Byte, f: Byte, g: Byte, h: Byte, i: Byte, j: Byte, k: Byte);


[10320] Description


[10321] Initializes a new instance of the Guid class using the specified integers and bytes.


[10322] Specifying individual bytes in this manner can be used to circumvent byte order restrictions (“big endian” or “little endian” byte order) on particular types of computers. The first 4 bytes of the GUID. The next 2 bytes of the GUID. The next 2 bytes of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID.


[10323] Guid


[10324] Example Syntax:


[10325] WaitForPendingFinalizers


[10326] [C#] public Guid(uint a, ushort b, ushort c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k);


[10327] [C++] public: Guid(unsigned int a, unsigned short b, unsigned short c, unsigned char d, unsigned char e, unsigned char f, unsigned char g, unsigned char h, unsigned char i, unsigned char j, unsigned char k);


[10328] [VB] Public Sub New(ByVal a As UInt32, ByVal b As UInt16, ByVal c As UInt16, ByVal d As Byte, ByVal e As Byte, ByVal f As Byte, ByVal g As Byte, ByVal h As Byte, ByVal i As Byte, ByVal j As Byte, ByVal k As Byte)


[10329] [JScript] public function Guid(a: UInt32, b: UInt16, c: UInt16, d: Byte, e: Byte, f: Byte, g: Byte, h: Byte, i: Byte,: Byte, k: Byte);


[10330] Description


[10331] Initializes a new instance of the Guid class using the specified unsigned integers and bytes.


[10332] Specifying the bytes in this manner avoids endianness issues. The first 4 bytes of the GUID. The next 2 bytes of the GUID. The next 2 bytes of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID. The next byte of the GUID.


[10333] CompareTo


[10334] [C#] public int CompareTo(object value);


[10335] [C++] public: _sealed int CompareTo(Object* value);


[10336] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[10337] [JScript] public function CompareTo(value: Object): int;


[10338] Description


[10339] Compares this instance to a specified object and returns an indication of their relative values.


[10340] Return Value: A signed number indicating the relative values of this instance and value.


[10341] Any instance of Guid, regardless of its value, is considered greater than null. An object to compare, or null.


[10342] Equals


[10343] [C#] public override bool Equals(object o);


[10344] [C++] public: bool Equals(Object* o);


[10345] [VB] Overrides Public Function Equals(ByVal o As Object) As Boolean


[10346] [JScript] public override function Equals(o: Object): Boolean;


[10347] Description


[10348] Returns a value indicating whether this instance is equal to a specified object.


[10349] Return Value: true if o is a Guid that has the same value as this instance; otherwise, false. The object to compare with this instance.


[10350] GetHashCode


[10351] [C#] public override int GetHashCode( );


[10352] [C++] public: int GetHashCode( );


[10353] [VB] Overrides Public Function GetHashCode( ) As Integer


[10354] [JScript] public override function GetHashCode( ): int;


[10355] Description


[10356] Returns the hash code for this instance.


[10357] Return Value: The hash code for this instance.


[10358] NewGuid


[10359] [C#] public static Guid NewGuid( );


[10360] [C++] public: static Guid NewGuid( );


[10361] [VB] Public Shared Function NewGuid( ) As Guid


[10362] [JScript] public static function NewGuid( ): Guid;


[10363] Description


[10364] Initializes a new instance of the Guid class.


[10365] Return Value: A new Guid object.


[10366] This is a convenient static method that you can call to get a new Guid. op_Equality


[10367] [C#] public static bool operator==(Guid a, Guid b);


[10368] [C++] public: static bool op_Equality(Guid a, Guid b);


[10369] [VB] returnValue=Guid.op_Equality(a, b)


[10370] [JScript] returnValue=a==b;


[10371] Description


[10372] Returns an indication whether the values of two specified Guid objects are equal.


[10373] Return Value: true if a and b are equal; otherwise, false. A Guid object. A Guid object.


[10374] op_Inequality


[10375] [C#] public static bool operator !=(Guid a, Guid b);


[10376] [C++] public: static bool op_Inequality(Guid a, Guid b);


[10377] [VB] retrnValue=Guid.op_Inequality(a, b)


[10378] [JScript] returnValue=a !=b;


[10379] Description


[10380] Returns an indication whether the values of two specified Guid objects are not equal.


[10381] Return Value: true if a and b are not equal; otherwise, false. A Guid object. A Guid object.


[10382] ToByteArray


[10383] [C#] public byte[ ] ToByteArray( );


[10384] [C++] public: unsigned char ToByteArray( )_gc[ ];


[10385] [VB] Public Function ToByteArray( ) As Byte( )


[10386] [JScript] public function ToByteArray( ): Byte[ ];


[10387] Description


[10388] Returns a 16-element byte array that contains the value of the GUID.


[10389] Return Value: A 16-element byte array.


[10390] ToString


[10391] [C#] public override string ToString( );


[10392] [C++] public: String* ToString( );


[10393] [VB] Overrides Public Function ToString( ) As String


[10394] [JScript] public override function ToString( ): String; Returns a String representation of the value of this instance of the Guid class.


[10395] Description


[10396] Returns a String representation of the value of this instance in Registry format.


[10397] Return Value: A String formatted in this pattern: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx where the value of the GUID is represented as a series of lower-case hexadecimal digits in groups of 8, 4, 4, 4, and 12 digits and separated by hyphens. An example of a return value is “382c74c3-721d-4f34-80e5-57657 b6cbc27”.


[10398] This method provides a default GUID format that is sufficient for typical use; however, other versions of this method that take a format parameter provide a few common format variations.


[10399] ToString


[10400] [C#] public string ToString(string format);


[10401] [C++] public: String* ToString(String* format);


[10402] [VB] Public Function ToString(ByVal format As String) As String


[10403] [JScript] public function ToString(format: String): String;


[10404] Description


[10405] Returns a String representation of the value of this Guid instance, according to the provided format specifier.


[10406] Return Value: A System.String representation of the value of this Guid instance.


[10407] format can contain the following format specifiers. In the table that follows, all digits in the return value are hexadecimal. Each character ‘x’ represents a hexadecimal digit; each hyphen (‘-’), bracket (‘{‘,’}’), and parenthesis (‘(‘,’)’) appears as shown. A String containing a single format specifier character is indicating how the GUID value should be formatted.


[10408] ToString


[10409] [C#] public string ToString(string format, IFormatProvider provider);


[10410] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[10411] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[10412] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[10413] Description


[10414] Returns a String representation of the value of this instance of the Guid class, according to the provided format specifier and culture-specific format information.


[10415] Return Value: A System.String representation of the value of this Guid instance.


[10416] format can contain the following format specifiers. In the table that follows, all digits in the return value are hexadecimal. Each character ‘x’ represents a hexadecimal digit; each hyphen (‘-’), bracket (‘{‘, ’}’), and parenthesis (‘(‘, ’)’) appears as shown. A String containing a single format specifier character indicating how the GUID value should be formatted. (Reserved) An IFormatProvider reference that supplies culture-specific formatting services.


[10417] IAppDomainSetup interface (System)


[10418] ToStrng


[10419] Description


[10420] ApplicationBase


[10421] ToString


[10422] [C#] string ApplicationBase {get; set;}


[10423] [C++] String* get_ApplicationBase( );void set_ApplicationBase(String*);


[10424] [VB] Property ApplicationBase As String


[10425] [JScript] abstract function get ApplicationBase( ): String;public abstract function set ApplicationBase(String);


[10426] Description


[10427] ApplicationName


[10428] ToString


[10429] [C#] string ApplicationName {get; set;}


[10430] [C++] String* get_ApplicationName( );void set_ApplicationName(String*);


[10431] [VB] Property ApplicationName As String


[10432] [JScript] abstract function get ApplicationName( ): String;public abstract function set ApplicationName(String);


[10433] Description


[10434] CachePath


[10435] ToString


[10436] [C#] string CachePath {get; set;}


[10437] [C++] String* get_CachePath( );void set_CachePath(String*);


[10438] [VB] Property CachePath As String


[10439] [JScript] abstract function get CachePath( ): String;public abstract function set CachePath(String);


[10440] Description


[10441] ConfigurationFile


[10442] ToString


[10443] [C#] string ConfigurationFile {get; set;}


[10444] [C++] String* get_ConfigurationFile( );void set_ConfigurationFile(String*);


[10445] [VB] Property ConfigurationFile As String


[10446] [JScript] abstract function get ConfigurationFile( ): String;public abstract function set ConfigurationFile(String);


[10447] Description


[10448] DynamicBase


[10449] ToString


[10450] [C#] string DynamicBase {get; set;}


[10451] [C++] String* get_DynamicBase( );void set_DynamicBase(String*);


[10452] [VB] Property DynamicBase As String


[10453] [JScript] abstract function get DynamicBasce( ): String;public abstract function set DynamicBase(String);


[10454] Description


[10455] LicenseFile


[10456] ToString


[10457] [C#] string LicenseFile {get; set;}


[10458] [C++] String* get_LicenseFile( );void set_LicenseFile(String*);


[10459] [VB] Property LicenseFile As String


[10460] [JScript] abstract function get LicenseFile( ): String;public abstract function set LicenseFile(String);


[10461] Description


[10462] PrivateBinPath


[10463] ToString


[10464] [C#] string PrivateBinPath {get; set;}


[10465] [C++] String* get_PrivateBinPath( );void set_PrivateBinPath(String*);


[10466] [VB] Property PrivateBinPath As String


[10467] [JScript] abstract function get PrivateBinPath( ): String;public abstract function set PrivateBinPath(String);


[10468] Description


[10469] PrivateBinPathProbe


[10470] ToString


[10471] [C#] string PrivateBinPathProbe {get; set;}


[10472] [C++] String* get_PrivateBinPathProbe( );void set_PrivateBinpathProbe(String*);


[10473] [VB] Property PrivateBinPathProbe As String


[10474] [JScript] abstract function get PrivateBinPathProbe( ): String;public abstract function set PrivateBinPathProbe(String);


[10475] Description


[10476] ShadowCopyDirectories


[10477] ToString


[10478] [C#] string ShadowCopyDirectories {get; set;}


[10479] [C++] String* get_ShadowCopyDirectories( );void set_ShadowCopyDirectories(String*);


[10480] [VB] Property ShadowCopyDirectories As String


[10481] [JScript] abstract function get ShadowCopyDirectories( ): String;public abstract function set ShadowCopyDirectories(String);


[10482] Description


[10483] ShadowCopyFiles


[10484] ToString


[10485] [C#] string ShadowCopyFiles {get; set;}


[10486] [C++] String* get_ShadowCopyFiles( );void set_ShadowCopyFiles(String*);


[10487] [VB] Property ShadowCopyFiles As String


[10488] [JScript] abstract function get ShadowCopyFiles( ): String;public abstract function set ShadowCopyFiles(String);


[10489] Description


[10490] IAsyncResult interface (System)


[10491] ToString


[10492] Description


[10493] Represents the the status on an asynchronous operation.


[10494] The System.IAsyncResult interface is implemented by classes containing methods that can operate asynchronously. It is the return type of the “BeginXXX” method that initiates an asynchronous operation, and is the type of the third parameter of the “EndXXX” method that concludes an asynchronous operation.


[10495] AsyneState


[10496] ToString


[10497] [C#] object AsyncState {get;}


[10498] [C++] Object* get_AsyncState( );


[10499] [VB] ReadOnly Property AsyncState As Object


[10500] [JScript] abstract function get AsyncState( ): Object;


[10501] Description


[10502] Gets a user-defined object that qualifies or contains information about an asynchronous operation.


[10503] This property returns the object that is the last parameter of the “BeginXXX” method that initiates an asynchronous operation.


[10504] AsyncWaitHandle


[10505] ToString


[10506] [C#] WaitHandle AsyncWaitHandle {get;}


[10507] [C++] WaitHandle* get_AsyncWaitHandle( );


[10508] [VB] ReadOnly Property AsyncWaitHandle As WaitHandle


[10509] [JScript] abstract function get AsyncWaitHandle( ): WaitHandle;


[10510] Description


[10511] Gets a System.Threading.WaitHandle instance that is used to wait for an asynchronous operation to complete.


[10512] The return value enables the client to wait for an asynchronous operation to complete instead of polling System.IAsyncResult.IsCompleted until the operation concludes. The return value can be used to perform a System.Threading.WaitHandle.WaitOne(System.Int32,System.Boolean), System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle[ ],Sy stem.Int32,System.Boolean), or System.Threading.WaitHandle.WaitAll(System.Threading.WaitHandle[ ],Syst em.Int32,System.Boolean) operation.


[10513] CompletedSynchronously


[10514] ToString


[10515] [C#] bool CompletedSynchronously {get;}


[10516] [C++] bool get_CompletedSynchronously( );


[10517] [VB] ReadOnly Property CompletedSynchronously As Boolean


[10518] [JScript] abstract function get CompletedSynchronously( ): Boolean;


[10519] Description


[10520] Gets an indication whether the “BeginXXX” call completed synchronously.


[10521] If the synchronous completion of the call is detected in the System.AsyncCallback delegate, it is probable that the thread that called “BeginXXX” is the current thread. Most implementers of the System.IAsyncResult interface will not use this ability and will return false.


[10522] IsCompleted


[10523] ToString


[10524] [C#] bool IsCompleted {get;}


[10525] [C++] bool get IsCompleted( );


[10526] [VB] ReadOnly Property IsCompleted As Boolean


[10527] [JScript] abstract function get IsCompleted( ): Boolean;


[10528] Description


[10529] Gets an indication whether the asynchronous operation is finished.


[10530] Implementers will typically return the value of a private field or internal test as the value of this property.


[10531] ICloneable interface (System)


[10532] ToString


[10533] Description


[10534] Supports cloning, which creates a new instance of a class with the same value as an existing instance.


[10535] The System.ICloneable interface contains one member, System.ICloneable.Clone, which is intended to support cloning beyond that supplied by System.Object.MemberwiseClone.


[10536] Clone


[10537] [C#] object Clone( );


[10538] [C++] Object* Clone( );


[10539] [VB] Function Clone( ) As Object


[10540] [JScript] function Clone( ): Object;


[10541] Description


[10542] Creates a new object that is a copy of the current instance.


[10543] Return Value: A new object that is a copy of this instance.


[10544] System.ICloneable.Clone can be implemented either as a deep copy or a shallow copy. In a deep copy, all objects are duplicated; whereas, in a shallow copy, only the top-level objects are duplicated and the lower levels contain references.


[10545] IComparable interface (System)


[10546] Clone


[10547] Description


[10548] Defines a generalized comparison method, which a value type or class implements to create a type-specific comparison method.


[10549] This interface is implemented by types whose values can be ordered; for example, the numeric and string classes.


[10550] CompareTo


[10551] [C#] int CompareTo(object obj);


[10552] [C++] int CompareTo(Object* obj);


[10553] [VB] Function CompareTo(ByVal obj As Object) As Integer


[10554] [JScript] function CompareTo(obj: Object): int;


[10555] Description


[10556] Compares the current instance with another object of the same type.


[10557] Return Value: A 32-bit signed integer that indicates the relative order of the comparands. The return value has these meanings: Value Meaning Less than zero This instance is less than obj.


[10558] This method is only a definition and must be implemented by a specific class or value type to have effect. The meaning of the comparisons, “less than,” “equal to,” and “greater than,” depends on the particular implementation. An object to compare with this instance.


[10559] IConvertible interface (System)


[10560] CompareTo


[10561] Description


[10562] Defines methods that convert the value of the implementing reference or value type to a common language runtime type that has an equivalent value.


[10563] This interface provides methods to convert the value of an instance of an implementing type to a common language runtime type that has an equivalent value. The common language runtime types are System.Boolean, System.SByte, System.Byte, System.Int16, System.UInt16, System.Int32, System.UInt32, System.Int64, System.UInt64, System.Single, System.Double, System.Decimal, System.DateTime, System.Char, and System.String.


[10564] GetTypeCode


[10565] [C#] TypeCode GetTypeCode( );


[10566] [C++] TypeCode GetTypeCode( );


[10567] [VB] Function GetTypeCode( ) As TypeCode


[10568] [JScript] function GetTypeCode( ): TypeCode;


[10569] Description


[10570] Returns the System.TypeCode for this instance.


[10571] Return Value: The enumerated constant that is the System.TypeCode of the class or value type that implements this interface.


[10572] ToBoolean


[10573] [C#] bool ToBoolean(IFormatProvider provider);


[10574] [C++] bool ToBoolean(IFormatProvider* provider);


[10575] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean


[10576] [JScript] function ToBoolean(provider: IFormatProvider): Boolean;


[10577] Description


[10578] Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.


[10579] Return Value: A Boolean value equivalent to the value of this instance. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10580] ToByte


[10581] [C#] byte ToByte(IFormatProvider provider);


[10582] [C++] unsigned char ToByte(IFormatProvider* provider);


[10583] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte


[10584] [JScript] function ToByte(provider: IFormatProvider): Byte;


[10585] Description


[10586] Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.


[10587] Return Value: An 8-bit unsigned integer equivalent to the value of this instance. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10588] ToChar


[10589] [C#] char ToChar(IFormatProvider provider);


[10590] [C++] _cwhar_t ToChar(IFormatprovider* provider);


[10591] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char


[10592] [JScript] function ToChar(provider: IFormatProvider): Char;


[10593] Description


[10594] Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting informnation.


[10595] Return Value: A Unicode character equivalent to the value of this instance. An System.lFormatProvider interface implementation that supplies culture-specific formatting information.


[10596] ToDateTime


[10597] [C#] DateTime ToDateTime(IFormatProvider provider);


[10598] [C++] DateTime ToDateTime(IFormatProvider* provider);


[10599] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime


[10600] [JScript] function ToDateTime(provider: IFormatProvider): DateTime;


[10601] Description


[10602] Converts the value of this instance to an equivalent System.DateTime using the specified culture_specific formatting information.


[10603] Return Value: A System.DateTime instance equivalent to the value of this instance. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10604] ToDecimal


[10605] [C#] decimal ToDecimal(IFormatProvider provider);


[10606] [C++] Decimal ToDecimal(IFormatProvider* provider);


[10607] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal


[10608] [JScript] function ToDecimal(provider: IFormatProvider): Decimal;


[10609] Description


[10610] Converts the value of this instance to an equivalent System.Decimal number using the specified culture-specific formatting information.


[10611] Return Value: A System.Decimal number equivalent to the value of this instance.


[10612] An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10613] ToDouble


[10614] [C#] double ToDouble(IFormatProvider provider);


[10615] [C++] double ToDouble(IFormatProvider* provider);


[10616] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double


[10617] [JScript] function ToDouble(provider: IFormatProvider): double;


[10618] Description


[10619] Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.


[10620] Return Value: A double-precision floating-point number equivalent to the value of this instance. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10621] ToInt16


[10622] [C#] short ToInt16(IFormatProvider provider);


[10623] [C++] short ToInt16(IFormatProvider* provider);


[10624] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short


[10625] [JScript] function ToInt16(provider: IFormatProvider): Int16;


[10626] Description


[10627] Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.


[10628] Return Value: An 16-bit signed integer equivalent to the value of this instance. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10629] ToInt32


[10630] [C#] int ToInt32(IFormatProvider provider);


[10631] [C++] int ToInt32(IFormatProvider* provider);


[10632] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer


[10633] [JScript] function ToInt32(provider: IFormatProvider): int;


[10634] Description


[10635] Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information.


[10636] Return Value: An 32-bit signed integer equivalent to the value of this instance. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10637] ToInt64


[10638] [C#] long ToInt64(IFormatProvider provider);


[10639] [C++] _int64 ToInt64(IFormatProvider* provider);


[10640] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long


[10641] [JScript] function ToInt64(provider: IFormatProvider): long;


[10642] Description


[10643] Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information.


[10644] Return Value: An 64-bit signed integer equivalent to the value of this instance. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10645] ToSByte


[10646] [C#] sbyte ToSByte(IFormatProvider provider);


[10647] [C++] char ToSByte(IFormatProvider* provider);


[10648] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte


[10649] [JScript] function ToSByte(provider: IFormatProvider): SByte;


[10650] Description


[10651] Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information.


[10652] Return Value: An 8-bit signed integer equivalent to the value of this instance. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10653] ToSingle


[10654] [C#] float ToSingle(IFormatProvider provider);


[10655] [C++] float ToSingle(IFormatProvider* provider);


[10656] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single


[10657] [JScript] function ToSingle(provider: IFormatProvider): float;


[10658] Description


[10659] Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.


[10660] Return Value: A single-precision floating-point number equivalent to the value of this instance. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10661] ToString


[10662] [C#] string ToString(IFormatProvider provider);


[10663] [C++] string* ToString(IFormatProvider* provider);


[10664] [VB] Function ToString(ByVal provider As IFormatProvider) As String


[10665] [JScript] function ToString(provider: IFormatProvider): String;


[10666] Description


[10667] Converts the value of this instance to an equivalent System.String using the specified culture-specific formatting information.


[10668] Return Value: A System.String instance equivalent to the value of this instance.


[10669] An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10670] ToType


[10671] [C#] object ToType(Type conversionType, IFormatProvider provider);


[10672] [C++] Object* ToType(Type* conversionType, IFormatProvider* provider);


[10673] [VB] Function ToType(ByVal conversionType As Type, ByVal provider As IFormatProvider) As Object


[10674] [JScript] function ToType(conversionType: Type, provider: IFormatProvider): Object;


[10675] Description


[10676] Converts the value of this instance to an System.Object of the specified System.Type that has an equivalent value, using the specified culture-specific formatting information.


[10677] Return Value: An System.Object instance of type conversionType whose value is equivalent to the value of this instance. The System.Type to which the value of this instance is converted. An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10678] ToUInt16


[10679] [C#] ushort ToUInt16(IFormatProvider provider);


[10680] [C++] unsigned short ToUInt16(IFormatProvider* provider);


[10681] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16


[10682] [JScript] function ToUInt16(provider: IFormatProvider): UInt16;


[10683] Description


[10684] Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information.


[10685] Return Value: An 16-bit unsigned integer equivalent to the value of this instance.


[10686] An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10687] ToUInt32


[10688] [C#] uint ToUInt32(IFormatProvider provider);


[10689] [C++] unsigned int ToUInt32(IFormatProvider* provider);


[10690] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32


[10691] [JScript] function ToUInt32(provider: IFormatProvider): UInt32;


[10692] Description


[10693] Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.


[10694] Return Value: An 32-bit unsigned integer equivalent to the value of this instance.


[10695] An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10696] ToUInt64


[10697] [C#] ulong ToUInt64(IFormatProvider provider);


[10698] [C++] unsigned_int64 ToUInt64(IFormatProvider* provider);


[10699] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64


[10700] [JScript] function ToUInt64(provider: IFormatProvider): UInt64;


[10701] Description


[10702] Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.


[10703] Return Value: An 64-bit unsigned integer equivalent to the value of this instance.


[10704] An System.IFormatProvider interface implementation that supplies culture-specific formatting information.


[10705] ICustomFormatter interface (System)


[10706] ToUInt64


[10707] Description


[10708] Defines a method that supports custom, user-defined formatting of the value of an object.


[10709] When this interface is implemented by a reference or value type, the System.ICustomFormatter.Format(System.String,System.Object,System.IFor matProvider) method returns a custom-formatted string representation of an object's value.


[10710] Format


[10711] [C#] string Format(string format, object arg, IFormatProvider formatProvider);


[10712] [C++] String* Format(String* format, Object* arg, IFormatProvider* formatProvider);


[10713] [VB] Function Format(ByVal format As String, ByVal arg As Object, ByVal formatProvider As IFormatProvider) As String


[10714] [JScript] function Format(format: String, arg: Object, formatProvider: IFormatProvider): String;


[10715] Description


[10716] Converts the value of a specified object to an equivalent string representation using specified format and culture-specific formatting information.


[10717] Return Value: The string representation of the value of arg, formatted as specified by format and formatProvider.


[10718] The format parameter contains a user-defined formatting specification. For more information about standard .NET Framework formatting specifications, see. A format string containing formatting specifications. An object to format. An System.IFormatProvider object that supplies format information about the current instance.


[10719] IDisposable interface (System)


[10720] Format


[10721] Description


[10722] Defines a method to release allocated unmanaged resources.


[10723] The common language runtime garbage collector automatically releases memory allocated to a managed object when that object is no longer used. Furthermore, it is unpredictable when garbage collection will occur. However, the garbage collector has no knowledge of unmanaged resources, such as window handles and open files and streams.


[10724] Dispose


[10725] [C#] void Dispose( );


[10726] [C++] void Dispose( );


[10727] [VB] Sub Dispose( );


[10728] [JScript] function Dispose( );


[10729] Description


[10730] Releases unmanaged resources.


[10731] Use this method to close or release unmanaged resources such as files, streams, and handles, held by an instance of the class that implements this interface.


[10732] IFormatProvider interface (System)


[10733] Dispose


[10734] Description


[10735] Provides a mechanism for retrieving an object to control formatting.


[10736] A class or value type implements the System.IFormatProvider.GetFormat(System.Type) method of this interface to obtain an object that provides format information or processing for the implementing type.


[10737] GetFormat


[10738] [C#] object GetFormat(Type formatType);


[10739] [C++] Object* GetFormat(Type* formatType);


[10740] [VB] Function GetFormat(ByVal formatType As Type) As Object


[10741] [JScript] function GetFormat(formatType: Type): Object;


[10742] Description


[10743] Gets the format object of the specified type.


[10744] Return Value: A format object of type formatType -or- null if there is no format object of type formatType An object that specifies the type of format object to get.


[10745] IFormattable interface (System)


[10746] GetFormat


[10747] Description


[10748] Provides functionality to format the value of an object into a string representation.


[10749] System.IFormattable is implemented by the base data types.


[10750] ToString


[10751] [C#] string ToString(string format, IFormatProvider formatProvider);


[10752] [C++] String* ToString(String* format, IFormatProvider* formatprovider);


[10753] [VB] Function ToString(ByVal format As String, ByVal formatProvider As IFormatProvider) As String


[10754] [JScript] function ToString(format: String, formatprovider: IFormatProvider): String;


[10755] Description


[10756] Formats the value of the current instance using the specified format.


[10757] Return Value: A System.String containing the value of the current instance in the specified format.


[10758] System.Globalization.NumberFormatInfo, System.Globalization.DateTimeFormatInfo and System.Globalization.CultureInfo implement the System.IFormatProvider interface. The System.String specifying the format to use. The System.IFormatProvider to use to format the value.


[10759] IndexOutOfRangeException class (System)


[10760] ToString


[10761] Description


[10762] The exception that is thrown when an attempt is made to access an element of an array with an index that is outside the bounds of the array. This class cannot be inherited.


[10763] System.IndexOutOfRangeException uses the HRESULT COR_E_INDEXOUTOFRANGE, which has the value 0×80131508.


[10764] IndexOutOfRangeException


[10765] Example Syntax:


[10766] ToString


[10767] [C#] public IndexOutOfRangeException( );


[10768] [C++] public: IndexOutOfRangeException);


[10769] [VB] Public Sub New


[10770] [JScript] public function IndexOutOfRangeException( ); Initializes a new instance of the System.IndexOutOfRangeException class.


[10771] Description


[10772] Initializes a new instance of the System.IndexOutOflangeException class with default properties.


[10773] The following table shows the initial property values for an instance of System.IndexOutOflangeException.


[10774] IndexOutOfRangeException


[10775] Example Syntax:


[10776] ToString


[10777] [C#] public IndexOutOfRangeException(string message);


[10778] [C++] public: IndexOutOfRangeException(String* message);


[10779] [VB] Public Sub New(ByVal message As String)


[10780] [JScript] public function IndexOutOfRangeException(message: String);


[10781] Description


[10782] Initializes a new instance of the System.IndexOutOflangeException class with a specified error message.


[10783] The following table shows the initial property values for an instance of System.IndexOutOfRangeException. The error message that explains the reason for the exception.


[10784] IndexOutOfRangeException


[10785] Example Syntax:


[10786] ToString


[10787] [C#] public IndexOutOfRangeException(string message, Exception innerException);


[10788] [C++] public: IndexOutOfRangeException(String* message, Exception* innerException);


[10789] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[10790] [JScript] public function IndexOutOfRangeException(message: String, innerException: Exception);


[10791] Description


[10792] Initializes a new instance of the System.IndexOutOfRangeException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[10793] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException .


[10794] HelpLink


[10795] HResult


[10796] InnerException


[10797] Message


[10798] Source


[10799] StackTrace


[10800] TargetSite


[10801] Int16 structure (System)


[10802] ToString


[10803] Description


[10804] Represents a 16-bit signed integer.


[10805] The Int16 value type represents signed integers with values ranging from negative 32768 through positive 32767.


[10806] ToString


[10807] [C#] public const short MaxValue;


[10808] [C++] public: const short MaxValue;


[10809] [VB] Public Const MaxValue As Short


[10810] [JScript] public var MaxValue: Int16;


[10811] Description


[10812] A constant representing the largest possible value of Int16.


[10813] The value of this constant is 32767; that is, hexadecimal 0×7FFF.


[10814] ToString


[10815] [C#] public const short MinValue;


[10816] [C++] public: const short MinValue;


[10817] [VB] Public Const MinValue As Short


[10818] [JScript] public var MinValue: Int16;


[10819] Description


[10820] A constant representing the smallest possible value of Int16.


[10821] The value of this constant is −32768; that is, hexadecimal 0×8000.


[10822] CompareTo


[10823] [C#] public int CompareTo(object value);


[10824] [C++] public: _sealed int CompareTo(Object* value);


[10825] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[10826] [JScript] public function CompareTo(value: Object): int;


[10827] Description


[10828] Compares this instance to a specified object and returns an indication of their relative values.


[10829] Return Value: A signed number indicating the relative values of this instance and value.


[10830] An Int16, regardless of its value, is considered greater than a null reference. An object to compare, or null.


[10831] Equals


[10832] [C#] public override bool Equals(object obj);


[10833] [C++] public: bool Equals(Object* obj);


[10834] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[10835] [JScript] public override function Equals(obj: Object): Boolean;


[10836] Description


[10837] Returns a value indicating whether this instance is equal to a specified object.


[10838] Return Value: true if obj is an instance of Int16 and equals the value of this instance; otherwise, false. An object to compare with this instance.


[10839] GetHashCode


[10840] [C#] public override int GetHashCode( );


[10841] [C++] public: int GetHashCode( );


[10842] [VB] Overrides Public Function GetHashCode( ) As Integer


[10843] [JScript] public override function GetHashCode( ): int;


[10844] Description


[10845] Returns the hash code for this instance.


[10846] Return Value: A 32-bit signed integer hash code.


[10847] GetTypeCode


[10848] [C#] public TypeCode GetTypeCode( );


[10849] [C++] public: _sealed TypeCode GetTypeCode( );


[10850] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[10851] [JScript] public function GetTypeCode( ): TypeCode;


[10852] Description


[10853] Returns the TypeCode for value type Int16.


[10854] Return Value: The enumerated constant, System.TypeCode:Int16.


[10855] Parse


[10856] [C#] public static short Parse(string s);


[10857] [C++] public: static short Parse(String* s);


[10858] [VB] Public Shared Function Parse(ByVal s As String) As Short


[10859] [JScript] public static function Parse(s: String): Int16; Converts the String representation of a number to its 16-bit signed integer equivalent.


[10860] Description


[10861] Converts the String representation of a number to its 16-bit signed integer equivalent.


[10862] Return Value: A 16-bit signed integer equivalent to the number contained in s.


[10863] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert.


[10864] Parse


[10865] [C#] public static short Parse(string s, IFormatProvider provider);


[10866] [C++] public: static short Parse(String* s, IFormatProvider* provider);


[10867] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As Short


[10868] [JScript] public static function Parse(s: String, provider: IFormatProvider): Int16;


[10869] Description


[10870] Converts the String representation of a number in a specified culture-specific format to its 16-bit signed integer equivalent.


[10871] Return Value: A 16-bit signed integer equivalent to the number specified in s.


[10872] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[10873] Parse


[10874] [C#] public static short Parse(string s, NumberStyles style);


[10875] [C++] public: static short Parse(String* s, NumberStyles style);


[10876] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As Short


[10877] [JScript] public static function Parse(s: String, style: NumberStyles): Int16;


[10878] Description


[10879] Converts the String representation of a number in a specified style to its 16-bit signed integer equivalent.


[10880] Return Value: A 16-bit signed integer equivalent to the number specified in s.


[10881] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s.


[10882] Parse


[10883] [C#] public static short Parse(string s, NumberStyles style, IFormatProvider provider);


[10884] [C++] public: static short Parse(String* s, NumberStyles style, IFormatProvider* provider);


[10885] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As Short


[10886] [JScript] public static function Parse(s: String, style: NumberStyles, provider:


[10887] IFormatProvider): Int16;


[10888] Description


[10889] Converts the String representation of a number in a specified style and culture-specific format to its 16-bit signed integer equivalent.


[10890] Return Value: A 16-bit signed integer equivalent to the number specified in s.


[10891] s contains a number of the form: [ws][sign]digits [ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[10892] IConvertible.ToBoolean


[10893] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[10894] [C++] bool IConvertible::ToBoolean(IFormatprovider* provider);


[10895] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[10896] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[10897] IConvertible.ToByte


[10898] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[10899] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[10900] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements


[10901] IConvertible.ToByte


[10902] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[10903] IConvertible.ToChar


[10904] [C#] char IConvertible.ToChar(IFormatProvider provider);


[10905] [C++] _wchart_t IConvertible::ToChar(IFormatProvider* provider);


[10906] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[10907] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[10908] IConvertible.ToDateTime


[10909] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[10910] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[10911] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[10912] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[10913] IConvertible.ToDecimal


[10914] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[10915] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[10916] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[10917] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[10918] IConvertible.ToDouble


[10919] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[10920] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[10921] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[10922] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[10923] IConvertible.ToInt16


[10924] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[10925] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[10926] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[10927] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[10928] IConvertible.ToInt32


[10929] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[10930] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[10931] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[10932] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[10933] IConvertible.ToInt64


[10934] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[10935] [C++] _int64 IConvertible::ToInt64(IFormatProvider* provider);


[10936] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements


[10937] IConvertible.ToInt64


[10938] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[10939] IConvertible.ToSByte


[10940] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[10941] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[10942] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[10943] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[10944] IConvertible.ToSingle


[10945] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[10946] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[10947] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[10948] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[10949] IConvertible.ToType


[10950] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[10951] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[10952] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[10953] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[10954] IConvertible.ToUInt16


[10955] [C#] ushort IConvertible.ToUInt16(IFormatProvider provider);


[10956] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[10957] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[10958] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[10959] IConvertible.ToUInt32


[10960] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[10961] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[10962] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[10963] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[10964] IConvertible.ToUInt64


[10965] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[10966] [C++] unsigned int64 IConvertible::ToUInt64(IFormatProvider* provider);


[10967] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[10968] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[10969] ToString


[10970] [C#] public override string ToString( );


[10971] [C++] public: String* ToString( );


[10972] [VB] Overrides Public Function ToString( ) As String


[10973] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[10974] Description


[10975] Converts the numeric value of this instance to its equivalent String representation.


[10976] Return Value: The System.String representation of the value of this instance, consisting of a minus sign if the value is negative, and a sequence of digits ranging from 0 to 9 with no leading zeroes.


[10977] The return value is formatted with the general format specifier (“G”) and the System.Globalization.NumberFormatInfo for the current culture.


[10978] ToString


[10979] [C#] public string ToString(IFormatProvider provider);


[10980] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[10981] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[10982] [JScript] public function ToString(provider: IFormatProvider): String;


[10983] Description


[10984] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[10985] Return Value: The System.String representation of the value of this instance as specified by provider.


[10986] This instance is formatted with the general format specifier (“G”). An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[10987] ToString


[10988] [C#] public string ToString(string format);


[10989] [C++] public: String* ToString(String* format);


[10990] [VB] Public Function ToString(ByVal format As String) As String


[10991] [JScript] public function ToString(format: String): String;


[10992] Description


[10993] Converts the numeric value of this instance to its equivalent String representation, using the specified format.


[10994] Return Value: The System.String representation of the value of this instance as specified by format.


[10995] If format is null or an empty string, the return value of this instance is formatted with the general format specifier (“G”). A format string.


[10996] ToString


[10997] [C#] public string ToString(string format, IFormatProvider provider);


[10998] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[10999] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[11000] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[11001] Description


[11002] Converts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[11003] Return Value: The System.String representation of the value of this instance as specified by format and provider.


[11004] If format is null or an empty string, the return value for this instance is formatted with the general format specifier (“G”). A format specification. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about this instance.


[11005] Int32 structure (System)


[11006] ToString


[11007] Description


[11008] Represents a 32-bit signed integer.


[11009] The Int32 value type represents signed integers with values ranging from negative 2,147,483,648 through positive 2,147,483,647.


[11010] ToString


[11011] [C#] public const int MaxValue;


[11012] [C++] public: const int MaxValue;


[11013] [VB] Public Const MaxValue As Integer


[11014] [JScript] public var MaxValue: int;


[11015] Description


[11016] A constant representing the largest possible value of Int32


[11017] The value of this constant is 2,147,483,647; that is, hexadecimal 0×7FFFFFFF.


[11018] ToString


[11019] [C#] public const int MinValue;


[11020] [C++] public: const int MinValue;


[11021] [VB] Public Const MinValue As Integer


[11022] [JScript] public var MinValue: int;


[11023] Description


[11024] A constant representing the smallest possible value of Int32.


[11025] The value of this constant is −2,147,483,648; that is, hexadecimal 0×80000000.


[11026] CompareTo


[11027] [C#] public int CompareTo(object value);


[11028] [C++] public: _sealed int CompareTo(Object* value);


[11029] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[11030] [JScript] public function CompareTo(value: Object): int;


[11031] Description


[11032] Compares this instance to a specified object and returns an indication of their relative values.


[11033] Return Value: A signed number indicating the relative values of this instance and value.


[11034] Any instance of Int32, regardless of its value, is considered greater than null . An object to compare, or null.


[11035] Equals


[11036] [C#] public override bool Equals(object obj);


[11037] [C++] public: bool Equals(Object* obj);


[11038] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[11039] [JScript] public override function Equals(obj: Object): Boolean;


[11040] Description


[11041] Returns a value indicating whether this instance is equal to a specified object.


[11042] Return Value: true if obj is an instance of Int32 and equals the value of this instance; otherwise, false. An object to compare with this instance.


[11043] GetHashCode


[11044] [C#] public override int GetHashCode( );


[11045] [C++] public: int GetHashCode( );


[11046] [VB] Overrides Public Function GetHashCode( ) As Integer


[11047] [JScript] public override function GetHashCode( ): int;


[11048] Description


[11049] Returns the hash code for this instance.


[11050] Return Value: A 32-bit signed integer hash code.


[11051] GetTypeCode


[11052] [C#] public TypeCode GetTypeCode( );


[11053] [C++] public: sealed TypeCode GetTypeCode( );


[11054] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[11055] [JScript] public function GetTypeCode( ): TypeCode;


[11056] Description


[11057] Returns the TypeCode for value type Int32.


[11058] Return Value: The enumerated constant, System.TypeCode.Int32.


[11059] Parse


[11060] [C#] public static int Parse(string s);


[11061] [C++] public: static int Parse(String* s);


[11062] [VB] Public Shared Function Parse(ByVal s As String) As Integer


[11063] [JScript] public static function Parse(s: String): int; Converts the String representation of a number to its 32-bit signed integer equivalent.


[11064] Description


[11065] Converts the String representation of a number to its 32-bit signed integer equivalent.


[11066] Return Value: An 32-bit signed integer equivalent to the number contained in s.


[11067] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert.


[11068] Parse


[11069] [C#] public static int Parse(string s, IFormatProvider provider);


[11070] [C++] public: static int Parse(String* s, IFormatProvider* provider);


[11071] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As Integer


[11072] [JScript] public static function Parse(s: String, provider: IFormatProvider): int;


[11073] Description


[11074] Converts the String representation of a number in a specified culture-specific format to its 32-bit signed integer equivalent.


[11075] Return Value: A 32-bit signed integer equivalent to the number specified in s. s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[11076] Parse


[11077] [C#] public static int Parse(string s, NumberStyles style);


[11078] [C++] public: static int Parse(String* s, NumberStyles style);


[11079] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As Integer


[11080] [JScript] public static function Parse(s: String, style: NumberStyles): int;


[11081] Description


[11082] Converts the String representation of a number in a specified style to its 32-bit signed integer equivalent.


[11083] Return Value: An 32-bit signed integer equivalent to the number specified in s.


[11084] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String Containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s.


[11085] Parse


[11086] [C#] public static int Parse(string s, NumberStyles style, IFormatProvider provider);


[11087] [C++] public: static int Parse(String* s, NumberStyles style, IFormatProvider* provider);


[11088] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As Integer


[11089] [JScript] public static function Parse(s: String, style: NumberStyles, provider: IFormatProvider): int;


[11090] Description


[11091] Converts the String representation of a number in a specified style and culture-specific format to its 32-bit signed integer equivalent.


[11092] Return Value: An 32-bit signed integer equivalent to the number specified in s.


[11093] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[11094] IConvertible.ToBoolean


[11095] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[11096] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[11097] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[11098] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[11099] IConvertible.ToByte


[11100] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[11101] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[11102] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[11103] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[11104] IConvertible.ToChar


[11105] [C#] char IConvertible.ToChar(IFormatProvider provider);


[11106] [C++] _wchart_IConvertible::ToChar(IFormatProvider* provider);


[11107] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[11108] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[11109] IConvertible.ToDateTime


[11110] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[11111] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[11112] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[11113] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[11114] IConvertible.ToDecimal


[11115] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[11116] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[11117] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[11118] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[11119] IConvertible.ToDouble


[11120] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[11121] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[11122] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[11123] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[11124] IConvertible.ToInt16


[11125] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[11126] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[11127] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[11128] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[11129] IConvertible.ToInt32


[11130] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[11131] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[11132] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[11133] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[11134] IConvertible.ToInt64


[11135] [C+] long IConvertible.ToInt64(IFormatProvider provider);


[11136] [C++] _int64 IConvertible::ToInt64(IFormatProvider* provider);


[11137] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[11138] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[11139] IConvertible.ToSByte


[11140] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[11141] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[11142] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[11143] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[11144] IConvertible.ToSingle


[11145] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[11146] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[11147] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[11148] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[11149] IConvertible.ToType


[11150] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[11151] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[11152] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[11153] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[11154] IConvertible.ToUInt16


[11155] [C#] ushort IConvertible.ToUIntl6(IFormatProvider provider);


[11156] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[11157] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[11158] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[11159] IConvertible.ToUInt32


[11160] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[11161] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[11162] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[11163] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[11164] IConvertible.ToUtnt64


[11165] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[11166] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[11167] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[11168] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[11169] ToString


[11170] [C#] public override string ToString( );


[11171] [C++] public: String* ToString( );


[11172] [VB] Overrides Public Function ToString( ) As String


[11173] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[11174] Description


[11175] Converts the numeric value of this instance to its equivalent String representation.


[11176] Return Value: The System.String representation of the value of this instance, consisting of a negative sign if the value is negative, and a sequence of digits ranging from 0 to 9 with no leading zeroes.


[11177] The return value is formatted with the general format specifier (“G”) and the System.Globalization.NumberFormatInfo for the current culture.


[11178] ToString


[11179] [C#] public string ToString(IFormatProvider provider);


[11180] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[11181] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[11182] [JScript] public function ToString(provider: IFormatProvider): String;


[11183] Description


[11184] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[11185] Return Value: The System.String representation of the value of this instance as specified by provider.


[11186] This instance is formatted with the general format specifier (“G”). An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[11187] ToString


[11188] [C#] public string ToString(string format);


[11189] [C++] public: String* Totring(String* format);


[11190] [VB] Public Function ToString(ByVal format As String) As String


[11191] [JScript] public function ToString(format: String): String;


[11192] Description


[11193] Converts the numeric value of this instance to its equivalent String representation, using the specified format.


[11194] Return Value: The System.String representation of the value of this instance as specified by format.


[11195] If format is null or an empty string (“ ”), the return value of this instance is formatted with the general format specifier (“G”). A format string.


[11196] ToString


[11197] [C#] public string ToString(string format, IFormatProvider provider);


[11198] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[11199] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[11200] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[11201] Description


[11202] IConverts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[11203] Return Value: The System.String representation of the value of this instance as specified by format and provider.


[11204] If format is null or an empty string (“ ”), the return value for this instance is formatted with the general format specifier (“G”). A format specification. An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[11205] Int64 structure (System)


[11206] ToString


[11207] Description


[11208] Represents a 64-bit signed integer.


[11209] The Int64 value type represents integers with values ranging from negative 9,223,372,036,854,775,808 through positive 9,223,372,036,854,775,807.


[11210] ToString


[11211] [C#] public const long MaxValue;


[11212] [C++] public: const_int64 MaxValue;


[11213] [VB] Public Const MaxValue As Long


[11214] [JScript] public var MaxValue: long;


[11215] Description


[11216] A constant representing the largest possible value of Int64.


[11217] The value of this constant is 9,223,372,036,854,775,807; that is, hexadecimal 0×7FFFFFFFFFFFFFFF.


[11218] ToString


[11219] [C#] public const long MinValue;


[11220] [C++] public: const_int64 MinValue;


[11221] [VB] Public Const MinValue As Long


[11222] [JScript] public var MinValue: long;


[11223] Description


[11224] A constant representing the smallest possible value of Int64.


[11225] The value of this constant is negative 9,223,372,036,854,775,808; that is, hexadecimal 0×8000000000000000.


[11226] CompareTo


[11227] [C#] public int CompareTo(object value);


[11228] [C++] public: _sealed int CompareTo(Object* value);


[11229] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[11230] [JScript] public function CompareTo(value: Object): int;


[11231] Description


[11232] Compares this instance to a specified object and returns an indication of their relative values.


[11233] Return Value: A signed number indicating the relative values of this instance and value.


[11234] An Int64, regardless of its value, is considered greater than a null reference. An object to compare, or null.


[11235] Equals


[11236] [C#] public override bool Equals(object obj);


[11237] [C++] public: bool Equals(Object* obj);


[11238] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[11239] [JScript] public override function Equals(obj: Object): Boolean;


[11240] Description


[11241] Returns a value indicating whether this instance is equal to a specified object.


[11242] Return Value: true if obj is an instance of Int64 and equals the value of this instance; otherwise, false. An object to compare with this instance.


[11243] GetHashCode


[11244] [C#] public override int GetHashCode( );


[11245] [C++] public: int GetHashCode( );


[11246] [VB] Overrides Public Function GetHashCode( ) As Integer


[11247] [JScript] public override function GetHashCode( ): int;


[11248] Description


[11249] Returns the hash code for this instance.


[11250] Return Value: A 32-bit signed integer hash code.


[11251] GetTypeCode


[11252] [C#] public TypeCode GetTypeCode( );


[11253] [C++] public: _sealed TypeCode GetTypeCode( );


[11254] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[11255] [JScript] public function GetTypeCode( ): TypeCode;


[11256] Description


[11257] Returns the TypeCode for value type Int64.


[11258] Return Value: The enumerated constant, System.TypeCode.Int64.


[11259] Parse


[11260] [C#] public static long Parse(string s);


[11261] [C++] public: static_int64 Parse(String* s);


[11262] [VB] Public Shared Function Parse(ByVal s As String) As Long


[11263] [JScript] public static function Parse(s: String): long; Converts the String representation of a number to its 64-bit signed integer equivalent.


[11264] Description


[11265] Converts the String representation of a number to its 64-bit signed integer equivalent.


[11266] Return Value: A 64-bit signed integer equivalent to the number contained in s.


[11267] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert.


[11268] Parse


[11269] [C#] public static long Parse(string s, IFormatProvider provider);


[11270] [C++] public: static_int64 Parse(String* s, IFormatProvider* provider);


[11271] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As Long


[11272] [JScript] public static function Parse(s: String, provider: IFormatProvider): long;


[11273] Description


[11274] Converts the String representation of a number in a specified culture-specific format to its 64-bit signed integer equivalent.


[11275] Return Value: A 64-bit signed integer equivalent to the number specified in s.


[11276] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[11277] Parse


[11278] [C#] public static long Parse(string s, NumberStyles style);


[11279] [C++] public: static_int64 Parse(String* s, NumberStyles style);


[11280] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As Long


[11281] [JScript] public static function Parse(s: String, style: NumberStyles): long;


[11282] Description


[11283] Converts the String representation of a number in a specified style to its 64-bit signed integer equivalent.


[11284] Return Value: A 64-bit signed integer equivalent to the number specified in s.


[11285] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s.


[11286] Parse


[11287] [C#] public static long Parse(string s, NumberStyles style, IFormatProvider provider);


[11288] [C++] public: static_int64 Parse(String* s, NumberStyles style, IFormatProvider* provider);


[11289] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As Long


[11290] [JScript] public static function Parse(s: String, style: NumberStyles, provider: IFormatProvider): long;


[11291] Description


[11292] Converts the String representation of a number in a specified style and culture-specific format to its 64-bit signed integer equivalent.


[11293] Return Value: A 64-bit signed integer equivalent to the number specified in s.


[11294] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[11295] IConvertible.ToBoolean


[11296] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[11297] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[11298] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[11299] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[11300] IConvertible.ToByte


[11301] [C#] byte IConvertible. ToByte(IFormatProvider provider);


[11302] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[11303] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[11304] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[11305] IConvertible.ToChar


[11306] [C#] char IConvertible.ToChar(IFormatProvider provider);


[11307] [C++] _wchar_t IConvertible::ToChar(IFormatProvider* provider);


[11308] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[11309] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[11310] IConvertible.ToDateTime


[11311] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[11312] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[11313] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[11314] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[11315] IConvertible.ToDecimal


[11316] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[11317] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[11318] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[11319] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[11320] IConvertible.ToDouble


[11321] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[11322] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[11323] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[11324] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[11325] IConvertible.ToInt16


[11326] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[11327] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[11328] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[11329] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[11330] IConvertible.ToInt32


[11331] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[11332] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[11333] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[11334] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[11335] IConvertible.ToInt64


[11336] [C#] long IConvertible.ToInt64((FormatProvider provider);


[11337] [C++] _int64 IConvertible::ToInt64(IFormatProvider* provider);


[11338] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[11339] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[11340] IConvertible.ToSByte


[11341] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[11342] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[11343] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[11344] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[11345] IConvertible.ToSingle


[11346] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[11347] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[11348] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[11349] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[11350] IConvertible.ToType


[11351] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[11352] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[11353] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[11354] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[11355] IConvertible.ToUInt16


[11356] [C#] ushort IConvertible.ToUInt16(IFormatProvider provider);


[11357] [C++] unsigned short IConvertible::ToUInt16(FormatProvider* provider);


[11358] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[11359] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[11360] IConvertible.ToUInt32


[11361] [C#] uint ICon vertible. ToUInt32(IFormatProvider provider);


[11362] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[11363] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[11364] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[11365] IConvertible.ToUInt64


[11366] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[11367] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[11368] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[11369] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[11370] ToString


[11371] [C#] public override string ToString( );


[11372] [C++] public: String* ToString( );


[11373] [VB] Overrides Public Function ToString( ) As String


[11374] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[11375] Description


[11376] Converts the numeric value of this instance to its equivalent String representation.


[11377] Return Value: The System.String representation of the value of this instance, consisting of a minus sign if the value is negative, and a sequence of digits ranging from 0 to 9 with no leading zeroes.


[11378] The return value is formatted with the general format specifier (“G”) and the System.Globalization.NumberFormatInfo for the current culture.


[11379] ToString


[11380] [C#] public string ToString(IFormatProvider provider);


[11381] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[11382] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[11383] [JScript] public function ToString(provider: IFormatProvider): String;


[11384] Description


[11385] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[11386] Return Value: The System.String representation of the value of this instance as specified by provider.


[11387] This instance is formatted with the general format specifier (“G”). An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[11388] ToString


[11389] [C#] public string ToString(string format);


[11390] [C++] public: String* ToString(String* format);


[11391] [VB] Public Function ToString(ByVal format As String) As String


[11392] [JScript] public function ToString(format: String): String;


[11393] Description


[11394] Converts the numeric value of this instance to its equivalent String representation, using the specified format.


[11395] Return Value: The System.String representation of the value of this instance as specified by format.


[11396] If format is null or an empty string (“ ”),the return value of this instance is formatted with the general format specifier (“G”). A format string.


[11397] ToString


[11398] [C#] public string ToString(string format, IFormatProvider provider);


[11399] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[11400] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[11401] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[11402] Description


[11403] Converts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[11404] Return Value: The System.String representation of the value of this instance as specified by format and provider.


[11405] If format is null or an empty string (“ ”), the return value for this instance is formatted with the general format specifier (“G”). A format specification. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about this instance.


[11406] IntPtr structure (System)


[11407] ToString


[11408] Description


[11409] A platform-specific type that is used to represent a pointer or a handle.


[11410] The System.IntPtr type is designed to be a platform-specific, machine-sized integer. That is, an instance of this type is expected to be 32-bits on 32-bit hardware and operating systems, and 64-bits on 64-bit hardware and operating systems.


[11411] ToString


[11412] [C#] public static readonly IntPtr Zero;


[11413] [C++] public: static IntPtr Zero;


[11414] [VB] Public Shared ReadOnly Zero As IntPtr


[11415] [JScript] public static var Zero: IntPtr;


[11416] Description


[11417] A read-only field that represents an uninitialized pointer or handle.


[11418] The value of this field is not equivalent to null , but is instead a pointer which has not been assigned any value whatsoever. Use this field to efficiently determine whether an instance of IntPtr has been set.


[11419] IntPtr


[11420] Example Syntax:


[11421] ToString


[11422] [C#] public IntPtr(int value);


[11423] [C++] public: IntPtr(int value);


[11424] [VB] Public Sub New(ByVal value As Integer)


[11425] [JScript] public function IntPtr(value: int); Initializes a new instance of the System.IntPtr structure.


[11426] Description


[11427] Initializes a new instance of the System.IntPtr structure to the specified 32-bit pointer or handle. A pointer or handle contained in a 32-bit signed integer.


[11428] IntPtr


[11429] Example Syntax:


[11430] ToString


[11431] [C#] public IntPtr(long value);


[11432] [C++] public: IntPtr(_int64 value);


[11433] [VB] Public Sub New(ByVal value As Long)


[11434] [JScript] public function IntPtr(value: long);


[11435] Description


[11436] Initializes a new instance of the System.IntPtr structure to the specified 64-bit pointer.


[11437] An exception is only thrown if the value of value requires more bits than the current platform supports. A pointer or handle contained in a 64-bit signed integer.


[11438] IntPtr


[11439] Example Syntax:


[11440] ToString


[11441] [C#] unsafe public IntPtr(void* value);


[11442] [C++] public: IntPtr(void* value);


[11443] Size


[11444] ToString


[11445] [C#] public static int Size {get;}


[11446] [C++] public: _property static int get_Size( );


[11447] [VB] Public Shared ReadOnly Property Size As Integer


[11448] [JScript] public static function get Size( ): int;


[11449] Description


[11450] Gets the size of this instance.


[11451] Equals


[11452] [C#] public override bool Equals(object obj);


[11453] [C++] public: bool Equals(Object* obj);


[11454] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[11455] [JScript] public override function Equals(obj: Object): Boolean;


[11456] Description


[11457] Returns a value indicating whether this instance is equal to a specified object.


[11458] Return Value: true if obj is an instance of IntPtr and equals the value of this instance; otherwise, false. An object to compare with this instance or null.


[11459] GetHashCode


[11460] [C#] public override int GetHashCode( );


[11461] [C++] public: int GetHashCode( );


[11462] [VB] Overrides Public Function GetHashCode( ) As Integer


[11463] [JScript] public override function GetHashCode( ): int;


[11464] Description


[11465] Returns the hash code for this instance.


[11466] Return Value: A 32-bit signed integer hash code.


[11467] op_Equality


[11468] [C#] public static bool operator==(IntPtr value1, IntPtr value2);


[11469] [C++] public: static bool op_Equality(IntPtr value1, IntPtr value2);


[11470] [VB] returnValue=IntPtr.op_Equality(value1, value2)


[11471] [JScript] returnValue=value1=value2;


[11472] Description


[11473] Determines whether two specified instances of System.IntPtr are equal.


[11474] Return Value: true if value1 equals value2; otherwise, false. An IntPtr. An IntPtr.


[11475] op_Explicit


[11476] [C#] public static explicit operator IntPtr(int value);


[11477] [C++] public: static IntPtr op_Explicit(int value);


[11478] [VB] returnValue=IntPtr.op_Explicit(value)


[11479] [JScript] returnValue=IntPtr(value);


[11480] Description


[11481] Converts the value of a 32-bit signed integer to an System.IntPtr.


[11482] Return Value: A new instance of System.IntPtr initialized to value. A 32-bit signed integer.


[11483] op_Explicit


[11484] [C#] public static explicit operator IntPtr(long value);


[11485] [C++] public: static IntPtr op_Explicit(_int64 value);


[11486] [VB] returnValue =IntPtr.op_Explicit(value)


[11487] [JScript] returnValue =IntPtr(value);


[11488] Description


[11489] Converts the value of a 64-bit signed integer to an System.IntPtr.


[11490] Return Value: A new instance of System.IntPtr initialized to value. A 64-bit signed integer.


[11491] op_Explicit


[11492] [C#] public static explicit operator int(IntPtr value);


[11493] [C++] public: static int op_Explicit( );


[11494] [VB] returnValue=IntPtr.op_Explicit(value)


[11495] [JScript] returnValue Int32(value);


[11496] Description


[11497] Converts the value of the specified System.IntPtr instance to a 32-bit signed integer.


[11498] An exception is only thrown if the value of value requires more bits than the current platform supports. An IntPtr.


[11499] op_Explicit


[11500] [C#] unsafe public static explicit operator void*(IntPtr value);


[11501] [C++] public: static void* op_Explicit( );


[11502] op_Explicit


[11503] [C#] public static explicit operator long(IntPtr value);


[11504] [C++] public: static_int64 op_Explicit( );


[11505] [VB] returnValue=IntPtr.op_Explicit(value)


[11506] [JScript] returnValue=Int64(value);


[11507] Description


[11508] Converts the value of the specified System.IntPtr instance to a 64-bit signed integer. An IntPtr.


[11509] op_Explicit


[11510] [C#] unsafe public static explicit operator IntPtr(void* value);


[11511] [C++] public: static IntPtr op_Explicit(void* value);


[11512] op_Inequality


[11513] [C#] public static bool operator !=(IntPtr value1, IntPtr value2);


[11514] [C++] public: static bool op_Inequality(IntPtr value1, IntPtr value2);


[11515] [VB] returnValue IntPtr.op_Inequality(value1, value2)


[11516] [JScript] returnValue=value1 !=value2;


[11517] Description


[11518] Determines whether two specified instances of System.IntPtr are not equal.


[11519] Return Value: true if value1 does not equal value2; otherwise, false. An IntPtr. An IntPtr.


[11520] ISerializable.GetObjectData


[11521] [C#] void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context);


[11522] [C++] void ISerializable::GetObjectData(SerializationInfo* info, StreamingContext context);


[11523] [VB] Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext) Implements ISerializable.GetObjectData


[11524] [JScript] function ISerializable.GetObjectData(info: SerializationInfo, context: StreamingContext);


[11525] ToInt32


[11526] [C#] public int ToInt32( );


[11527] [C++] public: int ToInt32( );


[11528] [VB] Public Function ToInt32( ) As Integer


[11529] [JScript] public function ToInt32( ): int;


[11530] Description


[11531] Converts the value of this instance to a 32-bit signed integer.


[11532] Return Value: A 32-bit signed integer.


[11533] An exception is only thrown if the value of value requires more bits than the current platform supports.


[11534] ToInt64


[11535] [C#] public long ToInt64( );


[11536] [C++] public: _int64 ToInt64( );


[11537] [VB] Public Function ToInt64( ) As Long


[11538] [JScript] public function ToInt64( ): long;


[11539] Description Converts the value of this instance to a 64-bit signed integer.


[11540] Return Value: A a 64-bit signed integer.


[11541] ToPointer


[11542] [C#] unsafe public void* ToPointer( );


[11543] [C++] public: void* ToPointer( );


[11544] Description


[11545] Converts the value of this instance to a pointer to an unspecified type.


[11546] Return Value: A pointer to System.Void; that is, a pointer to memory containing data of an unspecified type.


[11547] ToString


[11548] [C#] public override string ToString( );


[11549] [C++] public: String* ToString( );


[11550] [VB] Overrides Public Function ToString( ) As String


[11551] [JScript] public override function ToString( ): String;


[11552] Description


[11553] Converts the numeric value of this instance to its equivalent String representation.


[11554] Return Value: The System.String representation of the value of this instance. InvalidCastException class (System)


[11555] ToString


[11556] Description


[11557] The exception that is thrown for invalid casting or explicit conversion. System.InvalidCastException is thrown if: For a conversion from a System.Single or a System.Double to a System.Decimal , the source value is infinity, Not-a-Number (NaN), or too large to be represented as the destination type.


[11558] InvalidCastException


[11559] Example Syntax:


[11560] ToString


[11561] [C#] public InvalidCastException( );


[11562] [C++] public: InvalidCastException( );


[11563] [VB] Public Sub New( )


[11564] [JScript] public function InvalidCastException( ); Initializes a new instance of the System.InvalidCastException class.


[11565] Description


[11566] Initializes a new instance of the System.InvalidCastException class with default properties.


[11567] The following table shows the initial property values for an instance of System.InvalidCastException.


[11568] InvalidCastException


[11569] Example Syntax:


[11570] ToString


[11571] [C#] public InvalidCastException(string message);


[11572] [C++] public: InvalidCastxception(String* message);


[11573] [VB] Public Sub New(ByVal message As String)


[11574] [JScript] public function InvalidCastException(message: String);


[11575] Description


[11576] Initializes a new instance of the System.InvalidCastException class with a specified error message.


[11577] The following table shows the initial property values for an instance of System.InvalidCastException. The error message that explains the reason for the exception.


[11578] InvalidCastException


[11579] Example Syntax:


[11580] ToString


[11581] [C#] protected InvalidCastException(SerializationInfo info, StreamingContext context);


[11582] [C++] protected: InvalidCastException(SerializationInfo* info, StreamingContext context);


[11583] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[11584] [JScript] protected function InvalidCastException(info: SerializationInfo, context : StreamingContext);


[11585] Description


[11586] Initializes a new instance of the System.InvalidCastException class with serialized data.


[11587] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[11588] InvalidCastException


[11589] Example Syntax:


[11590] ToString


[11591] [C#] public InvalidCastException(string message, Exception innerException);


[11592] [C++] public: InvalidCastException(String* message, Exception* innerException);


[11593] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[11594] [JScript] public function InvalidCastException(message: String, innerException: Exception);


[11595] Description


[11596] Initializes a new instance of the System.InvalidCastException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[11597] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException .


[11598] HelpLink


[11599] HResult


[11600] InnerException


[11601] Message


[11602] Source


[11603] StackTrace


[11604] TargetSite


[11605] InvalidOperationException class (System)


[11606] ToString


[11607] Description


[11608] The exception that is thrown when a method call is invalid for the object's current state.


[11609] System.InvalidOperationException is used in cases when the failure to invoke a method is caused by reasons other than invalid arguments. For example, System.InvalidOperationException is thrown by: System.Collections.IEnumerator.MoveNext if objects of a collection are modified after the enumerator is created.


[11610] InvalidOperationException


[11611] Example Syntax:


[11612] ToString


[11613] [C#] public InvalidOperationException( );


[11614] [C++] public: InvalidOperationException( );


[11615] [VB] Public Sub New( )


[11616] [JScript] public function InvalidOperationException( ); Initializes a new instance of the System.InvalidOperationException class.


[11617] Description


[11618] Initializes a new instance of the System.InvalidOperationException class with default properties.


[11619] The following table shows the initial property values for an instance of System.InvalidOperationException


[11620] InvalidOperationException


[11621] Example Syntax:


[11622] ToString


[11623] [C#] public InvalidOperationException(string message);


[11624] [C++] public: InvalidOperationException(String* message);


[11625] [VB] Public Sub New(ByVal message As String)


[11626] [JScript] public function InvalidOperationException(message: String);


[11627] Description


[11628] Initializes a new instance of the System.InvalidOperationException class with a specified error message.


[11629] The following table shows the initial property values for an instance of System.InvalidOperationException. The error message that explains the reason for the exception.


[11630] InvalidOperationException


[11631] Example Syntax:


[11632] ToString


[11633] [C#] protected InvalidOperationException(SerializationInfo info, StreamingContext context);


[11634] [C++] protected: InvalidOperationException(SerializationlInfo* info, StreamingContext context);


[11635] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[11636] [JScript] protected function InvalidOperationException(info: SerializationInfo, context: StreamingContext);


[11637] Description


[11638] Initializes a new instance of the System.InvalidOperationException class with serialized data.


[11639] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[11640] InvalidOperationException


[11641] Example Syntax:


[11642] ToString


[11643] [C#] public InvalidOperationException(string message, Exception innerException);


[11644] [C++] public: InvalidOperationException(String* message, Exception* innerException);


[11645] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[11646] [J Script] public function InvalidOperationException(message: String, innerException: Exception);


[11647] Description


[11648] Initializes a new instance of the System.InvalidOperationException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[11649] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[11650] HelpLink


[11651] HResult


[11652] InnerException


[11653] Message


[11654] Source


[11655] StackTrace


[11656] TargetSite


[11657] InvalidProgramException class (System)


[11658] ToString


[11659] Description


[11660] The exception that is thrown when a program contains an invalid IL or metadata. Generally this indicates a bug in a compiler.


[11661] System.InvalidProgramException uses the HRESULT COR_E_INVALIDPROGRAM, which has the value 0×8013153A.


[11662] InvalidProgramException


[11663] Example Syntax:


[11664] ToString


[11665] [C#] public InvalidProgramException( );


[11666] [C++] public: InvalidProgramException( );


[11667] [VB] Public Sub New( )


[11668] [JScript] public function InvalidProgramException( ); Initializes a new instance of the System.InvalidProgramException class.


[11669] Description


[11670] Initializes a new instance of the System.InvalidProgramException class with default properties.


[11671] The following table shows the initial property values for an instance of System.InvalidProgramException


[11672] InvalidProgramException


[11673] Example Syntax:


[11674] ToString


[11675] [C#] public InvalidProgramException(string message);


[11676] [C++] public: InvalidProgramException(String* message);


[11677] [VB] Public Sub New(ByVal message As String)


[11678] [JScript] public function InvalidProgramException(message: String);


[11679] Description


[11680] Initializes a new instance of the System.InvalidProgramException class with a specified error message.


[11681] The following table shows the initial property values for an instance of System.InvalidProgramException. The error message that explains the reason for the exception.


[11682] InvalidProgramException


[11683] Example Syntax:


[11684] ToString


[11685] [C#] public InvalidProgramException(string message, Exception inner);


[11686] [C++] public: InvalidProgramException(String* message, Exception* inner);


[11687] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[11688] [JScript] public function InvalidProgramException(message: String, inner: Exception);


[11689] Description


[11690] Initializes a new instance of the System.InvalidProgramException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[11691] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[11692] HelpLink


[11693] HResult


[11694] InnerException


[11695] Message


[11696] Source


[11697] StackTrace


[11698] TargetSite


[11699] ServiceProvider interface (System)


[11700] ToString


[11701] Description


[11702] Defines a mechanism for retrieving a “service”object; that is, an object which provides custom support to other objects.


[11703] This interface is implemented by a class or value type which provides a service to other objects. p GetService


[11704] [C#] object GetService(Type serviceType);


[11705] [C++] Object* GetService(Type* serviceType);


[11706] [VB] Function GetService(ByVal serviceType As Type) As Object


[11707] [JScript] function GetService(serviceType: Type) Object;


[11708] Description


[11709] Gets the service object of the specified type.


[11710] Return Value: A service object of type serviceType -or- null if there is no service object of type serviceType. An object that specifies the type of service object to get.


[11711] LoaderOptimization enumeration (System)


[11712] GetService


[11713] Description


[11714] An enumeration used with the System.LoaderOptimizationAttribute class to specify loader optimizations for an executable.


[11715] GetService


[11716] [C#] public const LoaderOptimization MultiDomain;


[11717] [C++] public: const LoaderOptimization MultiDomain;


[11718] [VB] Public Const MultiDomain As LoaderOptimization


[11719] [JScript] public var MultiDomain: LoaderOptimization;


[11720] Description


[11721] Indicates that the application will probably have many domains which use the same code, and the loader should share maximal internal resources across application domains.


[11722] GetService


[11723] [C#] public const LoaderOptimization MultiDomainHost;


[11724] [C++] public: const LoaderOptimization MultiDomainHost;


[11725] [VB] Public Const MultiDomainHost As LoaderOptimization


[11726] [JScript] public var MultiDomainHost: LoaderOptimization;


[11727] Description


[11728] Indicates that the application will probably host unique code in multiple domains, and the loader should share resources across application domains for globally available (strong named) assemblies only.


[11729] GetService


[11730] [C#] public const LoaderOptimization NotSpecified;


[11731] [C++] public: const LoaderOptimization NotSpecified;


[11732] [VB] Public Const NotSpecified As LoaderOptimization


[11733] [JScript] public var NotSpecified: LoaderOptimization;


[11734] Description


[11735] Indicates no optimizations for sharing internal resources are specified. If the default domain or hosting interface specified an optimization then the loader uses that; otherwise, the loader uses System.LoaderOptimization.SingleDomain.


[11736] GetService


[11737] [C#] public const LoaderOptimization SingleDomain;


[11738] [C++] public: const LoaderOptimization SingleDomain;


[11739] [VB] Public Const SingleDomain As LoaderOptimization


[11740] [JScript] public var SingleDomain: LoaderOptimization;


[11741] Description


[11742] Indicates that the application will probably have a single domain, and loader should not share internal resources across application domains.


[11743] LoaderOptimizationAttribute class (System)


[11744] ToString


[11745] Description


[11746] Used to set the default loader optimization policy for the process. Should only be set on the main method for an application. It is ignored on all other methods.


[11747] The loader can make optimizations to share internal resource across application domains, at a slight expense in static access speed. This attribute tells the loader what type of application to optimize for - SingleDomain, MultiDomain (each domain running the same classes), or MultiDomainHost (multiple domains that can run different classes).


[11748] LoaderOptimizationAttribute


[11749] Example Syntax:


[11750] ToString


[11751] [C#] public LoaderOptimizationAttribute(byte value);


[11752] [C++] public: LoaderOptimizationAttribute(unsigned char value);


[11753] [VB] Public Sub New(ByVal value As Byte)


[11754] [JScript] public function LoaderOptimizationAttribute(value: Byte); Initializes a new instance of the System.LoaderOptimizationAttribute class.


[11755] Description


[11756] Initializes a new instance of the System.LoaderOptimizationAttribute class to the specified value. A value equivalent to a System.LoaderOptimization constant.


[11757] LoaderOptimizationAttribute


[11758] Example Syntax:


[11759] ToString


[11760] [C#] public LoaderOptimizationAttribute(LoaderOptimization value);


[11761] [C++] public: LoaderOptimizationAttribute(LoaderOptimization value);


[11762] [VB] Public Sub New(ByVal value As LoaderOptimization)


[11763] [JScript] public function LoaderOptimizationAttribute(value: LoaderOptimization);


[11764] Description


[11765] Initializes a new instance of the System.LoaderOptimizationAttribute class to the specified value. A System.LoaderOptimization constant.


[11766] TypeId


[11767] Value


[11768] ToString


[11769] Description


[11770] Gets the current System.LoaderOptimization value for this instance.


[11771] LocalDataStoreSlot class (System)


[11772] ToString


[11773] Description


[11774] Encapsulates a memory slot to store local data. This class cannot be inherited.


[11775] Threads and contexts use a local store memory mechanism to store thread-specific and context-specific data, respectively. The common language runtime allocates a multi-slot data store array to each process when it is created. The thread or context calls various functions to allocate a data slot in the data store, to store and retrieve a data value in the slot, and to free a data slot for reuse after the thread or context object expires.


[11776] Finalize


[11777] [C#] ˜LocalDataStoreSlot( );


[11778] [C++] ˜LocalDataStoreSlot( );


[11779] [VB] Overrides Protected Sub Finalize( )


[11780] [JScript] protected override function Finalize( );


[11781] Description


[11782] Releases the memory slot reserved by an object when the object no longer exists.


[11783] System.LocalDataStoreSlot.Finalize locks the data store manager before marking the data slot as unoccupied.


[11784] MarshalByRefObject class (System)


[11785] ToString


[11786] Description


[11787] Base class for Remoting objects that need to be marshal by reference. This includes WellKnown SingleCall and WellKnown Singleton WebService objects and Client Activated Objects.


[11788] Some key points to classes that derived from MarshalByRefObject: * Derive from System.MarshalByRefObject or any of its children (except from context bound objects which derive from System.ContextBoundObject).


[11789] MarshalByRefObject


[11790] Example Syntax:


[11791] ToString


[11792] [C#] protected MarshalByRefObject( );


[11793] [C++] protected: MarshalByRefObject( );


[11794] [VB] Protected Sub New( )


[11795] [JScript] protected function MarshalByRefObject( );


[11796] CreateObjRef


[11797] [C#] public virtual ObjRef CreateObjRef(Type requestedType);


[11798] [C++] public: virtual ObjRef* CreateObjRef(Type* requestedType);


[11799] [VB] Overridable Public Function CreateObjRef(ByVal requestedType As Type) As ObjRef


[11800] [JScript] public function CreateObjRef(requestedType: Type): ObjRef;


[11801] GetLifetimeService


[11802] [C#] public object GetLifetimeService( );


[11803] [C++] public: sealed Object* GetLifetimeService( );


[11804] [VB] NotOverridable Public Function GetLifetimeService( ) As Object


[11805] [JScript] public function GetLifetimeService( ): Object;


[11806] Description


[11807] Retrieves a lifetime service object that controls the lifetime policy for this instance. For the default Lifetime service this will be an object of type ILease.


[11808] Return Value: Returns Object to control lifetime Service.


[11809] InitializeLifetimeService


[11810] [C#] public virtual object InitializeLifetimeService( );


[11811] [C++] public: virtual Object* InitializeLifetimeService( );


[11812] [VB] Overridable Public Function InitializeLifetimeService( ) As Object


[11813] [JScript] public function InitializeLifetimeService( ): Object;


[11814] Description


[11815] Objects can provide their own lease and so control their own lifetime. They do this by overriding the InitializeLifetimeService method provided on MarshalByRefObject.


[11816] Math class (System)


[11817] ToString


[11818] Description


[11819] Provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions.


[11820] ToString


[11821] [C#] public const double E;


[11822] [C++] public: const double E;


[11823] [VB] Public Const E As Double


[11824] [JScript] public var E: double;


[11825] Description


[11826] A constant, e , that specifies the natural logarithmic base.


[11827] The value of this field is 2.7182818284590452354.


[11828] ToString


[11829] [C#] public const double PI;


[11830] [C++] public: const double PI;


[11831] [VB] Public Const PI As Double


[11832] [JScript] public var PI: double;


[11833] Description A constant, (pi), that specifies the ratio of the circumference of a circle to its diameter.


[11834] The value of this field is 3.14159265358979323846.


[11835] Abs


[11836] [C#] public static decimal Abs(decimal value);


[11837] [C++] public: static Decimal Abs(Decimal value);


[11838] [VB] Public Shared Function Abs(ByVal value As Decimal) As Decimal


[11839] [JScript] public static function Abs(value: Decimal): Decimal;


[11840] Description


[11841] Returns the absolute value of a Decimal number.


[11842] Return Value: A Decimal, x, such that 0 (<=) x (<=) System.Decimal.MaxValue. A number in the range System.Decimal.MinValue (<=) value (<=) System.Decimal.MaxValue.


[11843] Abs


[11844] [C#] public static double Abs(double value);


[11845] [C++] public: static double Abs(double value);


[11846] [VB] Public Shared Function Abs(ByVal value As Double) As Double


[11847] [JScript] public static function Abs(value: double): double;


[11848] Description


[11849] Returns the absolute value of a double-precision floating point number.


[11850] Return Value: A double-precision floating point number, x, such that 0 (<=) x (<=) System.Double.MaxValue. A number in the range System.Double.MinValue <value (<=) System.Double.MaxValue.


[11851] Abs


[11852] [C#] public static short Abs(short value);


[11853] [C++] public: static short Abs(short value);


[11854] [VB] Public Shared Function Abs(ByVal value As Short) As Short


[11855] [JScript] public static function Abs(value: Int 16): Int 16;


[11856] Description


[11857] Returns the absolute value of a 16-bit signed integer.


[11858] Return Value: A 16-bit signed integer, x, such that 0 (<=) x (<=) System.Int16.MaxValue. A number in the range System.Int 16.MinValue <value (<=) System.Int 16.MaxValue.


[11859] Abs


[11860] [C#] public static int Abs(int value);


[11861] [C++] public: static int Abs(int value);


[11862] [VB] Public Shared Function Abs(ByVal value As Integer) As Integer


[11863] [JScript] public static function Abs(value: int): int;


[11864] Description


[11865] Returns the absolute value of a 32-bit signed integer.


[11866] Return Value: A 32-bit signed integer, x, such that 0 (<=) x (<=) System.Int32.MaxValue. A number in the range System.Int32.MinValue <value (<=) System.Int32.MaxValue.


[11867] Abs


[11868] [C#] public static long Abs(long value);


[11869] [C++] public: static_int64 Abs(_int64 value);


[11870] [VB] Public Shared Function Abs(ByVal value As Long) As Long


[11871] [JScript] public static function Abs(value: long): long;


[11872] Description


[11873] Returns the absolute value of a 64-bit signed integer.


[11874] Return Value: A 64-bit signed integer, x, such that 0 (<=) x (<=) System.Int64.MaxValue. A number in the range System.Int64.MinValue <value (<=) System.Int64.MaxValue.


[11875] Abs


[11876] [C#] public static sbyte Abs(sbyte value);


[11877] [C++] public: static char Abs(char value);


[11878] [VB] Public Shared Function Abs(ByVal value As SByte) As SByte


[11879] [JScript] public static function Abs(value: SByte): SByte; Returns the absolute value of a specified number.


[11880] Description


[11881] Returns the absolute value of an 8-bit signed integer.


[11882] Return Value: An 8-bit signed integer, x, such that 0 (<=) x (<=) System.SByte.MaxValue. A number in the range System.SByte.MinValue <value (<=) System.SByte.MaxValue.


[11883] Abs


[11884] [C#] public static float Abs(float value);


[11885] [C++] public: static float Abs(float value);


[11886] [VB] Public Shared Function Abs(ByVal value As Single) As Single


[11887] [JScript] public static function Abs(value: float): float;


[11888] Description


[11889] Returns the absolute value of a single-precision floating point number.


[11890] Return Value: A single-precision floating point number, x, such that 0 (<=) x (<=) System.Single.MaxValue. A number in the range System.Single.MinValue <value (<=) System.Single.MaxValue.


[11891] Acos


[11892] [C#] public static double Acos(double d);


[11893] [C++] public: static double Acos(double d);


[11894] [VB] Public Shared Function Acos(ByVal d As Double) As Double


[11895] [JScript] public static function Acos(d: double): double;


[11896] Description


[11897] Returns the angle whose cosine is the specified number.


[11898] Return Value: An angle, q, measured in radians, such that 0 (<=) q (<=) (pi) -or- System.Double.NaN if d <−1 or d >1.


[11899] Multiply the return value by 180/(pi) to convert from radians to degrees. A number representing a cosine, where −1 (<=) d (<=) 1.


[11900] Asin


[11901] [C#] public static double Asin(double d);


[11902] [C++] public: static double Asin(double d);


[11903] [VB] Public Shared Function Asin(ByVal d As Double) As Double


[11904] [JScript] public static function Asin(d: double): double;


[11905] Description


[11906] Returns the angle whose sine is the specified number.


[11907] Return Value: An angle, q, measured in radians, such that -(pi)/2 (<=) q (<=) (pi)/2 -or- System.Double.NaN if d <−1 or d >1.


[11908] A positive return value represents a counterclockwise angle from the x-axis; a negative return value represents a clockwise angle. A number representing a sine, where −1 (<=) d (<=) 1.


[11909] Atan


[11910] [C#] public static double Atan(double d);


[11911] [C++] public: static double Atan(double d);


[11912] [VB] Public Shared Function Atan(ByVal d As Double) As Double


[11913] [JScript] public static function Atan(d: double): double;


[11914] Description


[11915] Returns the angle whose tangent is the specified number.


[11916] Return Value: An angle, q, measured in radians, such that -(pi)/2 (<=) q (<=) (pi)/2.


[11917] A positive return value represents a counterclockwise angle from the x-axis; a negative return value represents a clockwise angle. A number representing a tangent.


[11918] Atan2


[11919] [C#] public static double Atan2(double y, double x);


[11920] [C++] public: static double Atan2(double y, double x);


[11921] [VB] Public Shared Function Atan2(ByVal y As Double, ByVal x As Double) As Double


[11922] [JScript] public static function Atan2(y: double, x: double): double;


[11923] Description


[11924] Returns the angle whose tangent is the quotient of two specified numbers.


[11925] Return Value: An angle, q, measured in radians, such that -(pi)<q (<=) (pi), and tan(q)=y/x , where (x , y) is a point in the Cartesian plane. Observe the following: For (x , y) in quadrant 1, 0<q<(pi)/2.


[11926] The return value is the angle in the Cartesian plane formed by the x-axis, and a vector starting from the origin, (0,0), and terminating at the point, (x,y). The y coordinate of a point. The x coordinate of a point.


[11927] Ceiling


[11928] [C#] public static double Ceiling(double a);


[11929] [C++] public: static double Ceiling(double a);


[11930] [VB] Public Shared Function Ceiling(ByVal a As Double) As Double


[11931] [JScript] public static function Ceiling(a: double): double;


[11932] Description


[11933] Returns the smallest whole number greater than or equal to the specified number.


[11934] Return Value: The smallest whole number greater than or equal to a.


[11935] The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding towards positive infinity. A number.


[11936] Cos


[11937] [C#] public static double Cos(double d);


[11938] [C++] public: static double Cos(double d);


[11939] [VB] Public Shared Function Cos(ByVal d As Double) As Double


[11940] [JScript] public static function Cos(d: double): double;


[11941] Description


[11942] Returns the cosine of the specified angle.


[11943] Return Value: The cosine of d.


[11944] The angle, d , must be in radians. Multiply by (pi)/180 to convert degrees to radians. An angle, measured in radians.


[11945] Cosh


[11946] [C#] public static double Cosh(double value);


[11947] [C++] public: static double Cosh(double value);


[11948] [VB] Public Shared Function Cosh(ByVal value As Double) As Double


[11949] [JScript] public static function Cosh(value: double): double;


[11950] Description


[11951] Returns the hyperbolic cosine of the specified angle.


[11952] Return Value: The hyperbolic cosine of value. An angle, measured in radians.


[11953] Exp


[11954] [C#] public static double Exp(double d);


[11955] [C++] public: static double Exp(double d);


[11956] [VB] Public Shared Function Exp(ByVal d As Double) As Double


[11957] [JScript] public static function Exp(d: double): double;


[11958] Description


[11959] Returns e raised to the specified power.


[11960] Return Value: The number e raised to the power d.


[11961] Use the System.Math.Pow(System.Double,System.Double) method to calculate powers of other bases. A number specifying a power.


[11962] Floor


[11963] [C#] public static double Floor(double d);


[11964] [C++] public: static double Floor(double d);


[11965] [VB] Public Shared Function Floor(ByVal d As Double) As Double


[11966] [JScript] public static function Floor(d: double): double;


[11967] Description


[11968] Returns the largest whole number less than or equal to the specified number.


[11969] Return Value: The largest whole number less than or equal to d.


[11970] The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding towards negative infinity. A number.


[11971] IEEERemainder


[11972] [C#] public static double IEEERemainder(double x, double y);


[11973] [C++] public: static double IEEERemainder(double x, double y);


[11974] [VB] Public Shared Function IEEERemainder(ByVal x As Double, ByVal y As Double) As Double


[11975] [JScript] public static function IEEERemainder(x: double, y: double): double;


[11976] Description


[11977] Returns the remainder resulting from the division of a specified number by another specified number.


[11978] Return Value: A number equal to x-(y Q), where Q is the quotient of x / y rounded to the nearest integer (if x / y falls halfway between two integers, the even integer is returned).


[11979] This operation complies with the remainder operation defined in Section 5.1 of ANSI/IEEE Std 754-1985; IEEE Standard for Binary Floating-Point Arithmetic; Institute of Electrical and Electronics Engineers, Inc; 1985. A dividend. A divisor.


[11980] Log


[11981] [C#] public static double Log(double d);


[11982] [C++] public: static double Log(double d);


[11983] [VB] Public Shared Function Log(ByVal d As Double) As Double


[11984] [JScript] public static function Log(d: double): double; Returns the logarithm of a specified number.


[11985] Description


[11986] Returns the natural (base e ) logarithm of a specified number.


[11987] Return Value: Sign of d Returns Positive The natural logarithm of d; that is, In d, or log e d Zero System.Double.PositiveInfinity Negative System.Double.NaN


[11988] d is specified as a base 10 number. A number whose logarithm is to be found.


[11989] Log


[11990] [C#] public static double Log(double a, double newBase);


[11991] [C++] public: static double Log(double a, double newBase);


[11992] [VB] Public Shared Function Log(ByVal a As Double, ByVal newBase As Double) As Double


[11993] [JScript] public static function Log(a: double, newBase: double): double;


[11994] Description


[11995] Returns the logarithm of a specified number in a specified base.


[11996] Return Value: Sign of d Returns Positive The logarithm of a , in base, newBase; that is, log a.


[11997] a and newBase are specified as base 10 numbers. A number whose logarithm is to be found. The base of the logarithm.


[11998] Log10


[11999] [C#] public static double Log10(double d);


[12000] [C++] public: static double Log10(double d);


[12001] [VB] Public Shared Function Log10(ByVal d As Double) As Double


[12002] [JScript] public static function Log10(d: double): double;


[12003] Description


[12004] Returns the base 10 logarithm of a specified number.


[12005] Return Value: Sign of d Returns Positive The base 10 log of d; that is, log d.


[12006] d is specified as a base 10 number. A number whose logarithm is to be found.


[12007] Max


[12008] [C#] public static byte Max(byte val1, byte val2);


[12009] [C++] public: static unsigned char Max(unsigned char val1, unsigned char val2);


[12010] [VB] Public Shared Function Max(ByVal val1 As Byte, ByVal val2 As Byte) As Byte


[12011] [JScript] public static function Max(val1: Byte, val2: Byte): Byte;


[12012] Description


[12013] Returns the larger of two 8-bit unsigned integers.


[12014] Return Value: val1 or val2, whichever is larger. The first of two 8-bit unsigned integers to compare. The second of two 8-bit unsigned integers to compare.


[12015] Max


[12016] [C#] public static decimal Max(decimal val1, decimal val2);


[12017] [C++] public: static Decimal Max(Decimal val1, Decimal val2);


[12018] [VB] Public Shared Function Max(ByVal val1 As Decimal, ByVal val 2 As Decimal) As Decimal


[12019] [JScript] public static function Max(val: Decimal, val2: Decimal): Decimal;


[12020] Description


[12021] Returns the larger of two Decimal numbers.


[12022] Return Value: val1 or val2, whichever is larger. The first of two System.Decimal numbers to compare. The second of two System.Decimal numbers to compare.


[12023] Max


[12024] [C+] public static double Max(double val1, double val2);


[12025] [C++] public: static double Max(double val1, double val2);


[12026] [VB] Public Shared Function Max(ByVal val1 As Double, ByVal val2 As Double) As Double


[12027] [JScript] public static function Max(val1: double, val2: double): double;


[12028] Description


[12029] Returns the larger of two double-precision floating point numbers.


[12030] Return Value: val1 or val2, whichever is larger. The first of two double-precision floating point numbers to compare. The second of two double-precision floating point numbers to compare.


[12031] Max


[12032] [C+] public static short Max(short val1, short val2);


[12033] [C++] public: static short Max(short val1, short val2);


[12034] [VB] Public Shared Function Max(ByVal val1As Short, ByVal val2 As Short) As Short


[12035] [JScript] public static function Max(val1: Int 16, val2: Int 16): Int 16;


[12036] Description


[12037] Returns the larger of two 16-bit signed integers.


[12038] Return Value: val1 or val2, whichever is larger. The first of two 16-bit signed integers to compare. The second of two 16-bit signed integers to compare.


[12039] Max


[12040] [C#] public static int Max(int val1, int val2);


[12041] [C++] public: static int Max(int val1, int val2);


[12042] [VB] Public Shared Function Max(ByVal val1 As Integer, ByVal val2 As Integer) As Integer


[12043] [JScript] public static function Max(val1: int, val2: int): int;


[12044] Description


[12045] Returns the larger of two 32-bit signed integers.


[12046] Return Value: val1 or val2, whichever is larger. The first of two 32-bit signed integers to compare. The second of two 32-bit signed integers to compare.


[12047] Max


[12048] [C#] public static long Max(long val1, long val2);


[12049] [C++] public: static_int64 Max(_int64 val1, _int64 val2);


[12050] [VB] Public Shared Function Max(ByVal val1 As Long, ByVal val2 As Long) As Long


[12051] [JScript] public static function Max(val1: long, val2 long): long;


[12052] Description


[12053] Returns the larger of two 64-bit signed integers.


[12054] Return Value: val1 or val2, whichever is larger. The first of two 64-bit signed integers to compare. The second of two 64-bit signed integers to compare.


[12055] Max


[12056] [C#] public static sbyte Max(sbyte val1, sbyte val2);


[12057] [C++] public: static char Max(char val1, char val2);


[12058] [VB] Public Shared Function Max(ByVal val1 As SByte, ByVal val2 As SByte) As SByte


[12059] [JScript] public static function Max(val1: SByte, val2: SByte): SByte; Returns the larger of two specified numbers.


[12060] Description


[12061] Returns the larger of two 8-bit signed integers.


[12062] Return Value: val1 or val2 , whichever is larger. The first of two 8-bit unsigned integers to compare. The second of two 8-bit unsigned integers to compare.


[12063] Max


[12064] [C#] public static float Max(float val1, float val2);


[12065] [C++] public: static float Max(float val1, float val2);


[12066] [VB] Public Shared Function Max(ByVal val1 As Single, ByVal val2 As Single) As Single


[12067] [JScript] public static function Max(val1: float, val2: float): float;


[12068] Description


[12069] Returns the larger of two single-precision floating point numbers.


[12070] Return Value: val1 or val2, whichever is larger. The first of two single-precision floating point numbers to compare. The second of two single-precision floating point numbers to compare.


[12071] Max


[12072] [C#] public static ushort Max(ushort val1, ushort val2);


[12073] [C++] public: static unsigned short Max(unsigned short val1, unsigned short val2);


[12074] [VB] Public Shared Function Max(ByVal val1 As UInt 16, ByVal val2 As UInt 16) As UInt 16


[12075] [JScript] public static function Max(val1: UInt6, val2: UInt16): UInt 16;


[12076] Description


[12077] Returns the larger of two 16-bit unsigned integers.


[12078] Return Value: val1 or val2 , whichever is larger. The first of two 16-bit unsigned integers to compare. The second of two 16-bit unsigned integers to compare.


[12079] Max


[12080] [C#] public static uint Max(uint val1, uint val2);


[12081] [C++] public: static unsigned int Max(unsigned int val1, unsigned int val2);


[12082] [VB] Public Shared Function Max(ByVal val1 As UInt32, ByVal val2 As UInt32) As UInt32


[12083] [JScript] public static function Max(val1: UInt32, val2: UInt32): UInt32;


[12084] Description


[12085] Returns the larger of two 32-bit unsigned integers.


[12086] Return Value: val1 or val2, whichever is larger. The first of two 32-bit unsigned integers to compare. The second of two 32-bit unsigned integers to compare.


[12087] Max


[12088] [C#] public static ulong Max(ulong val1, ulong val2);


[12089] [C++] public: static unsigned_int64 Max(unsigned_int64 val1, unsigned_int64 val2);


[12090] [VB] Public Shared Function Max(ByVal val1 As UInt64, ByVal val2 As UInt64) As UInt64


[12091] [JScript] public static function Max(val1: UInt64, val2: UInt64): UInt64;


[12092] Description


[12093] Returns the larger of two 64-bit unsigned integers.


[12094] Return Value: val1 or val2, whichever is larger. The first of two 64-bit unsigned integers to compare. The second of two 64-bit unsigned integers to compare.


[12095] Min


[12096] [C#] public static byte Min(byte val1, byte val2);


[12097] [C++] public: static unsigned char Min(unsigned char val1, unsigned char val2);


[12098] [VB] Public Shared Function Min(ByVal val1 As Byte, ByVal val2 As Byte) As Byte


[12099] [JScript] public static function Min(val1: Byte, val2 Byte): Byte;


[12100] Description


[12101] Returns the smaller of two 8-bit unsigned integers.


[12102] Return Value: val1 or val2 , whichever is smaller. The first of two 8-bit unsigned integers to compare. The second of two 8-bit unsigned integers to compare.


[12103] Min


[12104] [C#] public static decimal Min(decimal val1, decimal val2);


[12105] [C++] public: static Decimal Min(Decimal val1, Decimal val2);


[12106] [VB] Public Shared Function Min(ByVal val1 As Decimal, ByVal val2 As Decimal) As Decimal


[12107] [JScript] public static function Min(val1: Decimal, val2 Decimal): Decimal;


[12108] Description


[12109] Returns the smaller of two Decimal numbers.


[12110] Return Value: a or val2 , whichever is smaller. The first of two System.Decimal numbers to compare. The second of two System.Decimal numbers to compare.


[12111] Min


[12112] [C#] public static double Min(double val, double val2);


[12113] [C++] public: static double Min(double val1, double val2);


[12114] [VB] Public Shared Function Min(ByVal val1 As Double, ByVal val2 As Double) As Double


[12115] [JScript] public static function Min(val1: double, val2 double): double;


[12116] Description


[12117] Returns the smaller of two double-precision floating point numbers.


[12118] Return Value: a or val2, whichever is smaller. The first of two double-precision floating point numbers to compare. The second of two double-precision floating point numbers to compare.


[12119] Min


[12120] [C#] public static short Min(short val1, short val2);


[12121] [C++] public: static short Min(short val1, short val2);


[12122] [VB] Public Shared Function Min(ByVal val1 As Short, ByVal val2 As Short) As Short


[12123] [JScript] public static function Min(val1: Int 16, val2 Int 16): Int 16;


[12124] Description


[12125] Returns the smaller of two 16-bit signed integers.


[12126] Return Value: val1 or val2, whichever is smaller. The first of two 16-bit signed integers to compare. The second of two 16-bit signed integers to compare.


[12127] Min


[12128] [C#] public static int Min(int val1, int val2);


[12129] [C++] public: static int Min(int val1, int val2);


[12130] [VB] Public Shared Function Min(ByVal val1 As Integer, ByVal val2 As Integer) As Integer


[12131] [JScript] public static function Min(val: int, val2 int): int;


[12132] Description


[12133] Returns the smaller of two 32-bit signed integers.


[12134] Return Value: val1 or val2, whichever is smaller. The first of two 32-bit signed integers to compare. The second of two 32-bit signed integers to compare.


[12135] Min


[12136] [C#] public static long Min(long val1, long val2);


[12137] [C++] public: static_int64 Min(_int64 val1,_int64 val2);


[12138] [VB] Public Shared Function Min(ByVal val1 As Long, ByVal val2 As Long) As Long


[12139] [JScript] public static function Min(val1: long, val2 long): long;


[12140] Description


[12141] Returns the smaller of two 64-bit signed integers.


[12142] Return Value: val1 or val2, whichever is smaller. The first of two 64-bit signed integers to compare. The second of two 64-bit signed integers to compare.


[12143] Min


[12144] [C#] public static sbyte Min(sbyte val1, sbyte val2);


[12145] [C++] public: static char Min(char val1, char val2);


[12146] [VB] Public Shared Function Min(ByVal val1 As SByte, ByVal val2 As SByte) As SByte


[12147] [JScript] public static function Min(val1: SByte, val2 SByte): SByte; Returns the smaller of two numbers.


[12148] Description


[12149] Returns the smaller of two 8-bit signed integers.


[12150] Return Value: val1 or val2 , whichever is smaller. The first of two 8-bit signed integers to compare. The second of two 8-bit signed integers to compare.


[12151] Min


[12152] [C#] public static float Min(float val, float val2);


[12153] [C++] public: static float Min(float val1, float val2);


[12154] [VB] Public Shared Function Min(ByVal val1 As Single, ByVal val2 As Single) As Single


[12155] [JScript] public static function Min(val1: float, val2 float): float;


[12156] Description


[12157] Returns the smaller of two single-precision floating point numbers.


[12158] Return Value: val1 or val2 , whichever is smaller. The first of two single-precision floating point numbers to compare. The second of two single-precision floating point numbers to compare.


[12159] Min


[12160] [C#] public static ushort Min(ushort val1, ushort val2);


[12161] [C++] public: static unsigned short Min(unsigned short val1, unsigned short val2);


[12162] [VB] Public Shared Function Min(ByVal vail As UInt16, ByVal val2 As UInt16) As UInt16


[12163] [JScript] public static function Min(val1: UInt16, val2: UInt16): Ulnt16;


[12164] Description


[12165] Returns the smaller of two 16-bit unsigned integers.


[12166] Return Value: val1 or val2, whichever is smaller. The first of two 16-bit unsigned integers to compare. The second of two 16-bit unsigned integers to compare.


[12167] Min


[12168] [C#] public static uint Min(uint val1, uint val2);


[12169] [C++] public: static unsigned int Min(unsigned int val1, unsigned int val2);


[12170] [VB] Public Shared Function Min(ByVal val1 As UInt32, ByVal val2 As UInt32) As UInt32


[12171] [JScript] public static function Min(val1: UInt32, val2: Ulnt32): Ulnt32;


[12172] Description


[12173] Returns the smaller of two 32-bit unsigned integers.


[12174] Return Value: val1 or val2, whichever is smaller. The first of two 32-bit unsigned integers to compare. The second of two 32-bit unsigned integers to compare.


[12175] Min


[12176] [C#] public static ulong Min(ulong val1, ulong val2);


[12177] [C++] public: static unsigned_int64 Min(unsigned_int64 val1, unsigned_int64 val2);


[12178] [VB] Public Shared Function Min(ByVal val1 As UInt64, ByVal val2 As UInt64) As UInt64


[12179] [JScript] public static function Min(val1: UInt64, val2: UInt64): UInt64;


[12180] Description


[12181] Returns the smaller of two 64-bit unsigned integers.


[12182] Return Value: val1 or val2, whichever is smaller. The first of two 64-bit unsigned integers to compare. The second of two 64-bit unsigned integers to compare.


[12183] Pow


[12184] [C#] public static double Pow(double x, double y);


[12185] [C++] public: static double Pow(double x, double y);


[12186] [VC+] Public Shared Function Pow(ByVal x As Double, ByVal y As Double) As Double


[12187] [JScript] publ ic static function Pow(x: double, y: double): double;


[12188] Description


[12189] Returns a specified number raised to the specified power.


[12190] Return Value: The number x raised to the power y . A number to be raised to a power. A number that specifies a power.


[12191] Round


[12192] [C#] public static decimal Round(decimal d);


[12193] [C++] public: static Decimal Round(Decimal d);


[12194] [VB] Public Shared Function Round(ByVal d As Decimal) As Decimal


[12195] [JScript] public static function Round(d: Decimal): Decimal;


[12196] Description


[12197] Returns the whole number nearest the specified value.


[12198] Return Value: The whole number nearest parameter d. If d is halfway between two whole numbers, one of which by definition is even and the other odd, then the even number is returned.


[12199] The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding to nearest, or banker's rounding. A System.Decimal number to be rounded.


[12200] Round


[12201] [C#] public static double Round(double a);


[12202] [C++] public: static double Round(double a);


[12203] [VB] Public Shared Function Round(ByVal a As Double) As Double


[12204] [JScript] public static function Round(a: double): double; Returns the number nearest the specified value.


[12205] Description


[12206] Returns the whole number nearest the specified value.


[12207] Return Value: The whole number nearest a. If a is halfway between two whole numbers, one of which by definition is even and the other odd, then the even number is returned.


[12208] The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding to nearest, or banker's rounding. A double-precision floating point number to be rounded.


[12209] Round


[12210] [C#] public static decimal Round(decimal d, int decimals);


[12211] [C++] public: static Decimal Round(Decimal d, int decimals);


[12212] [VB] Public Shared Function Round(ByVal d As Decimal, ByVal decimals As Integer) As Decimal


[12213] [JScript] public static function Round(d: Decimal, decimals: int): Decimal;


[12214] Description


[12215] Returns the number with the specified precision nearest the specified value.


[12216] Return Value: The number nearest d with precision equal to decimals . If d is halfway between two numbers, one of which is even and the other odd, then the even number is returned. If the precision of d is less than decimals , then d is returned unchanged.


[12217] The decimals parameter specifies the number of significant fractional digits in the return value and ranges from 0 to 28. If decimals is zero, then a whole number is returned. A System.Decimal number to be rounded. The number of significant fractional digits (precision) in the return value.


[12218] Round


[12219] [C+] public static double Round(double value, int digits);


[12220] [C++] public: static double Round(double value, int digits);


[12221] [VB] Public Shared Function Round(ByVal value As Double, ByVal digits As Integer) As Double


[12222] [JScript] public static function Round(value: double, digits: int): double;


[12223] Description


[12224] Returns the number with the specified precision nearest the specified value.


[12225] Return Value: The number nearest value with precision equal to digits. If value is halfway between two numbers, one of which is even and the other odd, then the even number is returned. If the precision of value is less than digits , then value is returned unchanged.


[12226] The digits parameter specifies the number of significant fractional digits in the return value and ranges from 0 to 15. If digits is zero, then a whole number is returned. A double-precision floating point number to be rounded. The number of significant fractional digits (precision) in the return value.


[12227] Sign


[12228] [C#] public static int Sign(decimal value);


[12229] [C++] public: static int Sign(Decimal value);


[12230] [VB] Public Shared Function Sign(ByVal value As Decimal) As Integer


[12231] [JScript] public static function Sign(value: Decimal): int;


[12232] Description


[12233] Returns a value indicating the sign of a Decimal number.


[12234] Return Value: A number indicating the sign of value. A signed System.Decimal number.


[12235] Sign


[12236] [C#] public static int Sign(double value);


[12237] [C++] public: static int Sign(double value);


[12238] [VB] Public Shared Function Sign(ByVal value As Double) As Integer


[12239] [JScript] public static function Sign(value: double): int;


[12240] Description


[12241] Returns a value indicating the sign of a double-precision floating point number.


[12242] Return Value: A number indicating the sign of value. A signed number.


[12243] Sign


[12244] [C#] public static int Sign(short value);


[12245] [C++] public: static int Sign(short value);


[12246] [VB] Public Shared Function Sign(ByVal value As Short) As Integer


[12247] [JScript] public static function Sign(value: Int16): int; Returns a value indicating the sign of a number.


[12248] Description


[12249] Returns a value indicating the sign of a 16-bit signed integer.


[12250] Return Value: A number indicating the sign of value. A signed number.


[12251] Sign


[12252] [C#] public static int Sign(int value);


[12253] [C++] public: static int Sign(int value);


[12254] [VB] Public Shared Function Sign(ByVal value As Integer) As Integer


[12255] [JScript] public static function Sign(value: int): int; Returns a value indicating the sign of a number.


[12256] Description


[12257] Returns a value indicating the sign of a 32-bit signed integer.


[12258] Return Value: A number indicating the sign of value. A signed number.


[12259] Sign


[12260] [C#] public static int Sign(long value);


[12261] [C++] public: static int Sign_int64 value);


[12262] [VB] Public Shared Function Sign(ByVal value As Long) As Integer


[12263] [JScript] public static function Sign(value: long): int;


[12264] Description


[12265] Returns a value indicating the sign of a 64-bit signed integer.


[12266] Return Value: A number indicating the sign of value. A signed number.


[12267] Sign


[12268] [C#] public static int Sign(sbyte value);


[12269] [C++] public: static int Sign(char value);


[12270] [VB] Public Shared Function Sign(ByVal value As SByte) As Integer


[12271] [JScript] public static function Sign(value: SByte): int; Returns a value indicating the sign of a number.


[12272] Description


[12273] Returns a value indicating the sign of an 8-bit signed integer.


[12274] Return Value: A number indicating the sign of value. Number Description −1 value is less than zero. A signed number.


[12275] Sign


[12276] [C#] public static int Sign(float value);


[12277] [C++] public: static int Sign(float value);


[12278] [VB] Public Shared Function Sign(ByVal value As Single) As Integer


[12279] [JScript] public static function Sign(value: float): int;


[12280] Description


[12281] Returns a value indicating the sign of a single-precision floating point number.


[12282] Return Value: A number indicating the sign of value. A signed number.


[12283] Sin


[12284] [C#] public static double Sin(double a);


[12285] [C++] public: static double Sin(double a);


[12286] [VB] Public Shared Function Sin(ByVal a As Double) As Double


[12287] [JScript] public static function Sin(a: double): double;


[12288] Description


[12289] Returns the sine of the specified angle.


[12290] Return Value: The sine of a.


[12291] The angle, a, must be in radians. Multiply by (pi)/80 to convert degrees to radians. An angle, measured in radians.


[12292] Sinh


[12293] [C#] public static double Sinh(double value);


[12294] [C++] public: static double Sinh(double value);


[12295] [VB] Public Shared Function Sinh(ByVal value As Double) As Double


[12296] [JScript] public static function Sinh(value: double): double;


[12297] Description


[12298] Returns the hyperbolic sine of the specified angle.


[12299] Return Value: The hyperbolic sine of value. An angle, measured in radians.


[12300] Sqrt


[12301] [C#] public static double Sqrt(double d);


[12302] [C++] public: static double Sqrt(double d);


[12303] [VB] Public Shared Function Sqrt(ByVal d As Double) As Double


[12304] [JScnrpt] public static function Sqrt(d: double): double;


[12305] Description


[12306] Returns the square root of a specified number.


[12307] Return Value: Value of d Returns Zero, or positive The positive square root of d. A number.


[12308] Tan


[12309] [C#] public static double Tan(double a);


[12310] [C++] public: static double Tan(double a);


[12311] [VB] Public Shared Function Tan(ByVal a As Double) As Double


[12312] [JScript] public static function Tan(a: double): double;


[12313] Description


[12314] Returns the tangent of the specified angle.


[12315] Return Value: The tangent of a.


[12316] The angle, a, must be in radians. Multiply by (pi)/80 to convert degrees to radians. An angle, measured in radians.


[12317] Tanh


[12318] [C#] public static double Tanh(double value);


[12319] [C++] public: static double Tanh(double value);


[12320] [VB] Public Shared Function Tanh(ByVal value As Double) As Double


[12321] [JScript] public static function Tanh(value: double): double;


[12322] Description


[12323] Returns the hyperbolic tangent of the specified angle.


[12324] Return Value: The hyperbolic tangent of value. An angle, measured in radians.


[12325] MemberAccessException class (System)


[12326] ToString


[12327] Description


[12328] The exception that is thrown when an attempt to access a class member fails.


[12329] System.MemberAccessException is the base class for System.FieldAccessException, System.MethodAccessException, System.MissingMemberException, System.MissingMethodException, and System.MissingFieldException. These exceptions are thrown when a class member is not found or access to the member is not permitted.


[12330] MemberAccessException


[12331] Example Syntax:


[12332] ToString


[12333] [C#] public MemberAccessException( );


[12334] [C++] public: MemberAccessException( );


[12335] [VB] Public Sub Newo


[12336] [JScript] public function MemberAccessException( ); Initializes a new instance of the System.MemberAccessException class.


[12337] Description


[12338] Initializes a new instance of the System.MemberAccessException class with default properties.


[12339] The following table shows the initial property values for an instance of System.MemberAccessException.


[12340] MemberAccessException


[12341] Example Syntax:


[12342] ToString


[12343] [C#]public MemberAccessxception(string message);


[12344] [C++] public: MemberAccessException(String* message);


[12345] [VB] Public Sub New(ByVal message As String)


[12346] [JScript] public function MemberAccessException(message: String);


[12347] Description


[12348] Initializes a new instance of the System.MemberAccessException class with a specified error message.


[12349] The following table shows the initial property values for an instance of System.MemberAccessException. The error message that explains the reason for the exception.


[12350] MemberAccessException


[12351] Example Syntax:


[12352] ToString


[12353] [C#] protected MemberAccessException(SerializationInfo info, StreamingContext context);


[12354] [C++] protected: MemberAccessException(SerializationInfo* info, StreamingContext context);


[12355] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[12356] [JScript] protected function MemberAccessException(info: SerializationInfo, context StreamingContext);


[12357] Description


[12358] Initializes a new instance of the System.MemberAccessException class with serialized data.


[12359] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[12360] MemberAccessException


[12361] Example Syntax:


[12362] ToString


[12363] [C#] public MemberAccessException(string message, Exception inner);


[12364] [C++] public: MemberAccessException(String* message, Exception* inner);


[12365] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[12366] [JScript] public function MemberAccessException(message: String, inner: Exception);


[12367] Description


[12368] Initializes a new instance of the System.MemberAccessException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[12369] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[12370] HelpLink


[12371] HResult


[12372] InnerException


[12373] Message


[12374] Source


[12375] StackTrace


[12376] TargetSite


[12377] MethodAccessException class (System)


[12378] ToString


[12379] Description


[12380] The exception that is thrown when there is an illegal attempt to access a private or protected method inside a class.


[12381] System.MethodAccessException uses the HRESULT COR_E_METHODACCESS, which has the value 0x80131510.


[12382] MethodAccessException


[12383] Example Syntax:


[12384] ToString


[12385] [C#] public MethodAccessException( );


[12386] [C++] public: MethodAccessException( );


[12387] [VB] Public Sub New( )


[12388] [JScript] public function MethodAccessException( ); Initializes a new instance of the System.MethodAccessException class.


[12389] Description


[12390] Initializes a new instance of the System.MethodAccessException class with default properties.


[12391] The following table shows the initial property values for an instance of System.MethodAccessException.


[12392] MethodAccessException


[12393] Example Syntax:


[12394] ToString


[12395] [C#] public MethodAccessException(string message);


[12396] [C++] public: MethoctAccessException(String* message);


[12397] [VB] Public Sub New(ByVal message As String)


[12398] [JScript] public function MethodAccessException(message: String);


[12399] Description


[12400] Initializes a new instance of the System.MethodAccessException class with a specified error message.


[12401] The following table shows the initial property values for an instance of System.MethodAccessException. The error message that explains the reason for the exception.


[12402] MethodAccessException


[12403] Example Syntax:


[12404] ToString


[12405] [C#] protected MethodAccessException(SerializationInfo info, StreamingContext context);


[12406] [C++] protected: MethodAccessException(SerializationInfo* info, StreamingContext context);


[12407] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[12408] [JScript] protected function MethodAccessException(info: SerializationInfo, context: StreamingContext);


[12409] Description


[12410] Initializes a new instance of the System.MethodAccessException class with serialized data.


[12411] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[12412] MethodAccessException


[12413] Example Syntax:


[12414] ToString


[12415] [C#] public MethodAccessException(string message, Exception inner);


[12416] [C++] public: MethodAccessException(String* message, Exception* inner);


[12417] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[12418] [JScript] public function MethodAccessException(message: String, inner: Exception);


[12419] Description


[12420] Initializes a new instance of the System.MethodAccessException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[12421] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[12422] HelpLink


[12423] HResult


[12424] InnerException


[12425] Message


[12426] Source


[12427] StackTrace


[12428] TargetSite


[12429] MissingFieldException class (System)


[12430] ToString


[12431] Description


[12432] The exception that is thrown when there is an attempt to dynamically access a field that does not exist.


[12433] System.MissingFieldException uses the HRESULT COR_E_MISSINGFIELD, which has the value 0x80131511.


[12434] MissingFieldException


[12435] Example Syntax:


[12436] ToString


[12437] System.MissingFieldException


[12438] Description


[12439] Initializes a new instance of the System.MissingFieldException class with default properties.


[12440] The following table shows the initial property values for an instance of System.MissingFieldException.


[12441] MissingFieldException


[12442] Example Syntax:


[12443] ToString


[12444] [C#] public MissingFieldException(string message);


[12445] [C++] public: MissingFieldException(String* message);


[12446] [VB] Public Sub New(ByVal message As String)


[12447] [JScript] public function MissingFieldException(message: String);


[12448] Description


[12449] Initializes a new instance of the System.MissingFieldException class with a specified error message.


[12450] The following table shows the initial property values for an instance of System.MissingFieldException. The error message that explains the reason for the exception.


[12451] MissingFieldException


[12452] Example Syntax:


[12453] ToString


[12454] [C#] protected MissingFieldException(SerializationInfo info, StreamingContext context);


[12455] [C++] protected: MissingFieldException(SerializationInfo* info, StreamingContext context);


[12456] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[12457] [JScript] protected function MissingFieldException(info: SerializationInfo, context: StreamingContext);


[12458] Description


[12459] Initializes a new instance of the System.MissingFieldException class with serialized data.


[12460] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[12461] MissingFieldException


[12462] Example Syntax:


[12463] ToString


[12464] [C#] public MissingFieldException(string message, Exception inner);


[12465] [C++] public: MissingFieldException(String* message, Exception* inner);


[12466] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[12467] [JScript] public function MissingFieldException(message: String, inner: Exception);


[12468] Description


[12469] Initializes a new instance of the System.MissingFieldException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[12470] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[12471] MissingFieldException


[12472] Example Syntax:


[12473] ToString


[12474] [C#] public MissingFieldException(string className, string fieldName);


[12475] [C++] public: MissingFieldException(String* className, String* fieldName);


[12476] [VB] Public Sub New(ByVal className As String, ByVal fieldName As String)


[12477] [JScript] public function MissingFieldException(className: String, fieldName: String);


[12478] Description


[12479] Initializes a new instance of the System.MissingFieldException class with the specified class name and field name. The name of the class in which access to a nonexistent field was attempted. The name of the field that cannot be accessed.


[12480] HelpLink


[12481] HResult


[12482] InnerException


[12483] Message


[12484] ToString


[12485] Description


[12486] Gets the text string showing the signature of the missing field, the class name, and the field name.


[12487] If the class name is not specified when the object is constructed, the default text string inherited from the base class is returned. This property overrides System.MissingMemberException.Message. The error message should be localized.


[12488] Source


[12489] StackTrace


[12490] TargetSite


[12491] MissingMemberException class (System)


[12492] ToString


[12493] Description


[12494] The exception that is thrown when there is an attempt to dynamically access a class member that does not exist.


[12495] Normally a compilation error is generated if the code attempts to access a nonexistent member of a class.


[12496] ToString


[12497] [C#] protected string ClassName;


[12498] [C++] protected: String* ClassName;


[12499] [VB] Protected ClassName As String


[12500] [JScript] protected var ClassName: String;


[12501] Description


[12502] Holds the class name of the missing member.


[12503] ToString


[12504] [C#] protected string MemberName;


[12505] [C++] protected: String* MemberName;


[12506] [VB] Protected MemberName As String


[12507] [JScript] protected var MemberName: String;


[12508] Description


[12509] Holds the name of the missing member.


[12510] ToString


[12511] [C#] protected byte[ ] Signature;


[12512] [C++] protected: unsigned char Signature _gc[ ];


[12513] [VB] Protected Signature( ) As Byte


[12514] [JScript] protected var Signature: Byte[ ];


[12515] Description


[12516] Holds the signature of the missing member.


[12517] System.MissingMemberException.Signature contains a System.Byte value that represents the signature of the missing member.


[12518] MissingMemberException


[12519] Example Syntax:


[12520] ToString


[12521] [C#] public MissingMemberException( );


[12522] [C++] public: MissingMemberException( );


[12523] [VB] Public Sub New( )


[12524] [JScript] public function MissingMemberException( ); Initializes a new instance of the System.MissingMemberException class.


[12525] Description


[12526] Initializes a new instance of the System.MissingMemberException class with default properties.


[12527] The following table shows the initial property values for an instance of System.MissingMemberException.


[12528] MissingMemberException


[12529] Example Syntax:


[12530] ToString


[12531] [C#] public MissingMemberException(string message);


[12532] [C++] public: MissingMemberException(String* message);


[12533] [VB] Public Sub New(ByVal message As String)


[12534] [JScript] public function MissingMemberException(message: String);


[12535] Description


[12536] Initializes a new instance of the System.MissingMemberException class with a specified error message.


[12537] The following table shows the initial property values for an instance of System.MissingMemberException. The error message that explains the reason for the exception.


[12538] MissingMemberException


[12539] Example Syntax:


[12540] ToString


[12541] [C#] protected MissingMemberException(SerializationInfo info, StreamingContext context);


[12542] [C++] protected: MissingMemberException(SerializationInfo* info, StreamingContext context);


[12543] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[12544] [JScript] protected function MissingMemberException(info: SerializationInfo, context: StreamingContext);


[12545] Description


[12546] Initializes a new instance of the System.MissingMemberException class with serialized data.


[12547] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[12548] MissingMemberException


[12549] Example Syntax:


[12550] ToString


[12551] [C#] public MissingMemberException(string message, Exception inner);


[12552] [C++] public: MissingMemberException(String* message, Exception* inner);


[12553] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[12554] [JScript] public function MissingMemberException(message: String, inner: Exception);


[12555] Description


[12556] Initializes a new instance of the System.MissingMemberException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[12557] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[12558] MissingMemberException


[12559] Example Syntax:


[12560] ToString


[12561] [C#] public MissingMemberException(string className, string memberName);


[12562] [C++] public: MissingMemberException(String* className, String* memberName);


[12563] [VB] Public Sub New(ByVal className As String, ByVal memberName As String)


[12564] [JScript] public function MissingMemberException(className: String, memberName: String);


[12565] Description


[12566] Initializes a new instance of the System.MissingMemberException class with the specified class name and member name. The name of the class in which access to a nonexistent member was attempted. The name of the member that cannot be accessed.


[12567] HelpLink


[12568] HResult


[12569] InnerException


[12570] Message


[12571] ToString


[12572] Description


[12573] Gets the text string showing the class name, the member name, and the signature of the missing member. If the class name is not specified when the object is constructed, the default text string inherited from the base class is returned.


[12574] This property overrides System.Exception.Message. The error message should be localized.


[12575] Source


[12576] StackTrace


[12577] TargetSite


[12578] GetObjectData


[12579] [C#] public override void GetObjectData(SerializationInfo info, StreamingContext context);


[12580] [C++] public: void GetObjectData(SerializationInfo* info, StreamingContext context);


[12581] [VB] Overrides Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[12582] [JScript] public override function GetObjectData(info: SerializationInfo, context: StreamingContext);


[12583] Description


[12584] Sets the System.Runtime.Serialization.SerializationInfo object with the class name, the member name, the signature of the missing member, and additional exception information.


[12585] System.TypeLoadException.GetObjectData(System.Runtime.Serializat ion.SerializationInfo,System.Runtime.Serialization.StreamingContext) sets a System.Runtime.Serialization.SerializationInfo with all the exception object data targeted for serialization. During deserialization, the exception object is reconstituted from the System.Runtime.Serialization.SerializationInfo transmitted over the stream. The object that holds the serialized object data. The contextual information about the source or destination.


[12586] MissingMethodException class (System)


[12587] ToString


[12588] Description


[12589] The exception that is thrown when there is an attempt to dynamically access a method that does not exist.


[12590] System.MissingMethodException uses the HRESULT COR_E_MISSINGMETHOD, which has the value 0x80131513.


[12591] MissingMethodException


[12592] Example Syntax:


[12593] ToString


[12594] System.MissingMethodException


[12595] Description


[12596] Initializes a new instance of the System.MissingMethodException class with default properties.


[12597] The following table shows the initial property values for an instance of System.MissingMethodException.


[12598] MissingMethodException


[12599] Example Syntax:


[12600] ToString


[12601] [C#] public MissingMethodException(string message);


[12602] [C++] public: MissingMethodException(String* message);


[12603] [VB] Public Sub New(ByVal message As String)


[12604] [JScript] public function MissingMethodException(message: String);


[12605] Description


[12606] Initializes a new instance of the System.MissingMethodException class with a specified error message.


[12607] The following table shows the initial property values for an instance of System.MissingMethodException. The error message that explains the reason for the exception.


[12608] MissingMethodException


[12609] Example Syntax:


[12610] ToString


[12611] [C#] protected MissingMethodException(SerializationInfo info, StreamingContext context);


[12612] [C++] protected: MissingMethodException(SerializationInfo* info, StreamingContext context);


[12613] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[12614] [JScript] protected function MissingMethodException(info: SerializationInfo, context: StreamingContext);


[12615] Description


[12616] Initializes a new instance of the System.MissingMethodException class with serialized data.


[12617] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[12618] MissingMethodException


[12619] Example Syntax:


[12620] ToString


[12621] [C#] public MissingMethodException(string message, Exception inner);


[12622] [C++] public: MissingMethodException(String* message, Exception* inner);


[12623] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[12624] [JScript] public function MissingMethodException(message: String, inner: Exception);


[12625] Description


[12626] Initializes a new instance of the System.MissingMethodException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[12627] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner lo is non-null, then the current Exception is raised in a catch block handling inner.


[12628] MissingMethodException


[12629] Example Syntax:


[12630] ToString


[12631] [C#] public MissingMethodException(string className, string methodName);


[12632] [C++] public: MissingMethodException(String* className, String* methodName);


[12633] [VB] Public Sub New(ByVal className As String, ByVal methodName As String)


[12634] [JScript] public function MissingMethodException(className: String, methodName: String);


[12635] Description


[12636] Initializes a new instance of the System.MissingMethodException class with the specified class name and method name. The name of the class in which l access to a nonexistent method was attempted. The name of the method that cannot be accessed.


[12637] HelpLink HResult InnerException Message ToString


[12638] Description Gets the text string showing the class name, the method name, and the signature of the missing method.


[12639] If the class name is not specified when the object is constructed, the default text string inherited from the base class is returned.


[12640] Source


[12641] StackTrace


[12642] TargetSite


[12643] MTAThreadAttribute class (System)


[12644] ToString


[12645] Description


[12646] Indicates the default threading model for an application is multi-threaded apartment.


[12647] Only apply this attribute to the main method of an application.


[12648] MTAThreadAttribute


[12649] Example Syntax:


[12650] ToString


[12651] [C#] public MTAThreadAttribute( );


[12652] [C++] public: MTAThreadttribute( );


[12653] [VB] Public Sub New( )


[12654] [JScript] public function MTAThreadAttribute( );


[12655] Description


[12656] Initializes a new instance of the System.MTAThreadAttribute class.


[12657] TypeId


[12658] MulticastDelegate class (System)


[12659] ToString


[12660] Description


[12661] Represents a multicast delegate; that is, a delegate that can have more than one element in its invocation list.


[12662] All multicast delegates are derived from class MulticastDelegate


[12663] MulticastDelegate


[12664] Example Syntax:


[12665] ToString


[12666] [C#] protected MulticastDelegate(object target, string method);


[12667] [C++] protected: MulticastDelegate(Object* target, String* method);


[12668] [VB] Protected Sub New(ByVal target As Object, ByVal method As String)


[12669] [JScript] protected function MulticastDelegate(target: Object, method: String);


[12670] Initializes a new instance of the MulticastDelegate class.


[12671] Description


[12672] Initializes a new instance of the MulticastDelegate class. This constructor is called from the class generated by the compiler-generated code.


[12673] This must match the constructor in Delegate. The object on which the specified method is defined. The name of the method for which to create a delegate.


[12674] MulticastDelegate


[12675] Example Syntax:


[12676] ToString


[12677] [C#] protected MulticastDelegate(Type target, string method);


[12678] [C++] protected: MulticastDelegate(Type* target, String* method);


[12679] [VB] Protected Sub New(ByVal target As Type, ByVal method As String)


[12680] [JScript] protected function MulticastDelegate(target: Type, method: String);


[12681] Description


[12682] Initializes a new instance of the MulticastDelegate class. This constructor is called from a class to generate a delegate based upon a static method name and the Type object for the class defining the method. The Type object that represents the class that the specified method is defined on. The name of the static method for which to create a delegate.


[12683] Method


[12684] Target


[12685] CombineImpl


[12686] [C#] protected override Delegate CombineImpl(Delegate follow);


[12687] [C++] protected: Delegate* CombineImpl(Delegate* follow);


[12688] [VB] Overrides Protected Function CombineImpl(ByVal follow As Delegate) As Delegate


[12689] [JScript] protected override function CombineImpl(follow: Delegate): Delegate;


[12690] Description


[12691] Combines this System.Delegate with the passed Delegate to form a new delegate.


[12692] Return Value: A Delegate object as the new root. The Delegate with which to combine this Delegate.


[12693] DynamicInvokeImpl


[12694] [C#] protected override object DynamicInvokeImpl(object[ ] args);


[12695] [C++] protected: Object* DynamicInvokeImpl(Object* args _gc[ ]);


[12696] [VB] Overrides Protected Function DynamicInvokeImpl(ByVal args( ) As Object) As Object


[12697] [JScript] protected override function DynamicInvokeImpl(args: Object[ ]): Object;


[12698] Description


[12699] Processes the full invocation list.


[12700] Return Value: An array of type Object that contains the return value of the encapsulated method. The arguments to be passed to the encapsulated method.


[12701] Equals


[12702] [C#] public override bool Equals(object obj);


[12703] [C++] public: bool Equals(Object* obj);


[12704] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[12705] [JScript] public override function Equals(obj: Object): Boolean;


[12706] Description


[12707] Determines whether this multicast delegate and the specified object are is equal.


[12708] Return Value: true if obj and this instance have the same invocation lists; otherwise, false.


[12709] Two delegates, whether single- or multi-cast, are equal if they have the same invocation lists. Two invocation lists are considered identical if they have the same order, and the corresponding elements from the two lists represent the same method and target. The object to compare with this instance.


[12710] GetHashCode


[12711] [C#] public override int GetHashCode( );


[12712] [C++] public: int GetHashCode( );


[12713] [VB] Overrides Public Function GetHashCode( ) As Integer


[12714] [JScript] public override function GetHashCode( ): int;


[12715] Description


[12716] Returns the hash code for this instance.


[12717] Return Value: A 32-bit signed integer hash code.


[12718] GetInvocationList


[12719] [C#] public override Delegate[ ] GetlnvocationList( );


[12720] [C++] public: Delegate* GetInvocationList( ) [ ];


[12721] [VB] Overrides Public Function GetInvocationList( ) As Delegate( )


[12722] [JScript] public override function GetInvocationList( ): Delegate[ ];


[12723] Description


[12724] Returns the invocation list of this multicast delegate, in invocation order.


[12725] Return Value: An array of delegates in the invocation list.


[12726] op_Equality


[12727] [C#] public static new bool operator==(MulticastDelegate d1, MulticastDelegate d2);


[12728] [C++] public: static bool op_Equality(MulticastDelegate* d1, MulticastDelegate* d2);


[12729] [VB] returnValue=MulticastDelegate.op_Equality(d1, d2)


[12730] [JScript] returnValue=d1==d2;


[12731] Description


[12732] Determines whether two MulticastDelegate objects are equal.


[12733] Return Value: True if d1 and d2 have the same invocation lists; otherwise false.


[12734] Two delegates, whether single- or multi-cast, are equal if they have the same invocation lists. Two invocation lists are considered identical if they have the same order, and the corresponding elements from the two lists represent the same method and target. The left operand. The right operand.


[12735] op_Inequality


[12736] [C#] public static new bool operator !=(MulticastDelegate d1, MulticastDelegate d2);


[12737] [C++] public: static bool op_Inequality(MulticastDelegate* d1, MulticastDelegate* d2);


[12738] [VB] returnValue =MulticastDelegate.op_Inequality(d1, d2)


[12739] [JScript] returnValue=d1 !=d2;


[12740] Description


[12741] Determines whether two MulticastDelegate objects are not equal.


[12742] Return Value: True if d1 and d2 do not have the same invocation lists; otherwise false.


[12743] Two delegates, whether single- or multi-cast, are equal if they have the same invocation lists. Two invocation lists are considered identical if they have the same order, and the corresponding elements from the two lists represent the same method and target. The left operand. The right operand.


[12744] RemoveImpl


[12745] [C#] protected override Delegate RemoveImpl(Delegate value);


[12746] [C++] protected: Delegate* RemoveImpl(Delegate* value);


[12747] [VB] Overrides Protected Function RemoveImpl(ByVal value As Delegate) As Delegate


[12748] [JScript] protected override function RemoveImpl(value: Delegate): Delegate;


[12749] Description


[12750] Searches the invocation list for an element that has System.Delegate -based equality with value.


[12751] Return Value: A new Delegate if an element on the invocation list is found that has Delegate -based equality with value (and thus is removed from the invocation list). If such an element is not found, the current invocation list is returned. The Delegate to search for in the invocation list.


[12752] MulticastNotSupportedException class (System)


[12753] ToString


[12754] Description


[12755] The exception that is thrown when there is an attempt to combine two instances of a non-combinable delegate type unless one of the operands is null. This class cannot be inherited.


[12756] A valid delegate combination is made when one or both operands is a combinable delegate type. If both operands are non-combinable delegate type, then one operand must be null. A combinable delegate type must satisfy the following conditions: The declared return type of the delegate must be void.


[12757] MulticastNotSupportedException


[12758] Example Syntax:


[12759] ToString


[12760] [C#] public MulticastNotSupportedException( );


[12761] [C++] public: MulticastNotSupportedException( );


[12762] [VB] Public Sub New( )


[12763] [JScript] public function MulticastNotSupportedException( ); Initializes a new instance of the System.MulticastNotSupportedException class.


[12764] Description


[12765] Initializes a new instance of the System.MulticastNotSupportedException class with default properties.


[12766] The following table shows the initial property values for an instance of System.MulticastNotSupportedException.


[12767] MulticastNotSupportedException


[12768] Example Syntax:


[12769] ToString


[12770] [C#] public MulticastNotSupportedException(string message);


[12771] [C++] public: MulticastNotupportedException(String* message),


[12772] [VB] Public Sub New(ByVal message As String)


[12773] [JScript] public function MulticastNotSupportedException(message: String);


[12774] Description


[12775] Initializes a new instance of the System.MulticastNotSupportedException class with a specified error message. The following table shows the initial property values for an instance of System.MulticastNotSupportedException. The error message that explains the reason for the exception.


[12776] MulticastNotSupportedException


[12777] Example Syntax:


[12778] ToString


[12779] [C#] public MulticastNotSupportedException(string message, Exception inner);


[12780] [C++] public: MulticastNotSupportedException(String* message, Exception* Inner);


[12781] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[12782] [JScript] public function MulticastNotSupportedException(message: String, inner Exception);


[12783] Description


[12784] Initializes a new instance of the System.MulticastNotSupportedException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[12785] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[12786] HelpLink


[12787] HResult


[12788] InnerException


[12789] Message


[12790] Source


[12791] StackTrace


[12792] TargetSite


[12793] NonSerializedAttribute class (System)


[12794] ToString


[12795] Description


[12796] Indicates that a field of a serializable class should not be serialized. This class cannot be inherited.


[12797] The target objects for the System.NonSerializedAttribute are public and private fields of a serializable class. By default, classes are not serializable unless they are marked with the System.SerializableAttribute. During the serialization process all the public and private fields of a class are serialized by default. Fields that must not be serialized can be marked with the System.NonSerializedAttribute, which instructs the serialization process to ignore the target field during serialization.


[12798] NonSerializedAttribute


[12799] Example Syntax:


[12800] ToString


[12801] [C#] public NonSerializedAttribute( );


[12802] [C++] public: NonSerializedAttribute( );


[12803] [VB] Public Sub New( )


[12804] [JScript] public function NonSerializedAttribute( );


[12805] Description


[12806] Initializes a new instance of the System.NonSerializedAttribute class.


[12807] TypeId


[12808] NotFiniteNumberException class (System)


[12809] ToString


[12810] Description


[12811] The exception that is thrown when a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN).


[12812] Applications written in C# will not throw this exception.


[12813] NotFiniteNumberException


[12814] Example Syntax:


[12815] ToString


[12816] [C#] public NotFiniteNumberException( );


[12817] [C++] public: NotFiniteNumberException( );


[12818] [VB] Public Sub New( )


[12819] [JScript] public function NotFiniteNumberException( ); Initializes a new instance of the System.NotFiniteNumberException class.


[12820] Description


[12821] Initializes a new instance of the System.NotFiniteNumberException class with default properties.


[12822] The following table shows the initial property values for an instance of System.NotFiniteNumberException.


[12823] NotFiniteNumberException


[12824] Example Syntax:


[12825] ToString


[12826] [C#] public NotFiniteNumberException(double offendingNumber);


[12827] [C++] public: NotFiniteNumberException(double offendingNumber);


[12828] [VB] Public Sub New(ByVal offendingNumber As Double)


[12829] [J Script] public function NotFiniteNumberException(offendingNumber: double);


[12830] Description


[12831] Initializes a new instance of the System.NotFiniteNumberException class with the invalid number.


[12832] The offendingNumber parameter must be both a System.Double and an invalid number. The invalid number.


[12833] NotFiniteNumberException


[12834] Example Syntax:


[12835] ToString


[12836] [C#] public NotFiniteNumberException(string message);


[12837] [C++] public: NotFiniteNumnberException(String* message);


[12838] [VB] Public Sub New(ByVal message As String)


[12839] [JScript] public function NotFiniteNumberException(message: String);


[12840] Description


[12841] Initializes a new instance of the System.NotFiniteNumberException class with a specified error message.


[12842] The following table shows the initial property values for an instance of System.NotFiniteNumberException. The error message that explains the reason for the exception.


[12843] NotFiniteNumberException


[12844] Example Syntax:


[12845] ToString


[12846] [C#] protected NotFiniteNumberException(SerializationInfo info, StreamingContext context);


[12847] [C++] protected: NotFiniteNumberException(SerializationInfo* info, StreamingContext context);


[12848] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[12849] [JScript] protected function NotFiniteNumberException(info: SerializationInfo, context: StreamingContext);


[12850] Description


[12851] Initializes a new instance of the System.NotFiniteNumberException class with serialized data.


[12852] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[12853] NotFiniteNumberException


[12854] Example Syntax:


[12855] ToString


[12856] [C#] public NotFiniteNumberException(string message, double offendingNumber);


[12857] [C++] public: NotFiniteNumberException(String* message, double offendingNumber);


[12858] [VB] Public Sub New(ByVal message As String, ByVal offendingNumber As Double)


[12859] [JScript] public function NotFiniteNumberException(message: String, offendingNumber: double);


[12860] Description


[12861] Initializes a new instance of the System.NotFiniteNumberException class with a specified error message and the invalid number.


[12862] The following table shows the initial property values for an instance of System.NotFiniteNumberException. The error message that explains the reason for the exception. The invalid number.


[12863] NotFiniteNumberException


[12864] Example Syntax:


[12865] ToString


[12866] [C#] public NotFiniteNumberException(string message, double offendingNumber, Exception innerException);


[12867] [C++] public: NotFiniteNumberException(String* message, double offendingNumber, Exception* innerException);


[12868] [VB] Public Sub New(ByVal message As String, ByVal offendingNumber As Double, ByVal innerException As Exception)


[12869] [JScript] public function NotFiniteNumberException(message: String, offendingNumber: double, innerException: Exception);


[12870] Description


[12871] Initializes a new instance of the System.NotFiniteNumberException class with a specified error message, the invalid number, and a reference to the inner exception that is the root cause of this exception.


[12872] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. The invalid number. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[12873] HelpLink


[12874] HResult


[12875] InnerException


[12876] Message


[12877] OffendingNumber


[12878] ToString


[12879] Description


[12880] Gets the invalid number that is a positive infinity, a negative infinity, or Not-a-Number (NaN).


[12881] Source


[12882] StackTrace


[12883] TargetSite


[12884] GetObjectData


[12885] [C#] public override void GetObjectData(SerializationInfo info, StreamingContext context);


[12886] [C++] public: void GetObjectData(SerializationInfo* info, StreamingContext context);


[12887] [VB] Overrides Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[12888] [JScript] public override function GetObjectData(info: SerializationInfo, context: StreamingContext);


[12889] Description


[12890] Sets the System.Runtime.Serialization.SerializationInfo object with the invalid number and additional exception information.


[12891] System.TypeLoadException.GetObjectData(System.Runtime.Serializat ion.Serialization1Info,System.Runtime.Serialization.StreamingContext) sets a System.Runtime.Serialization.SerializationInfo with all the exception object data targeted for serialization. During deserialization, the exception object is reconstituted from the System.Runtime.Serialization.SerializationInfo transmitted over the stream. The object that holds the serialized object data. The contextual information about the source or destination.


[12892] NotImplementedException class (System)


[12893] ToString


[12894] Description


[12895] The exception that is thrown when a requested method or operation is not implemented.


[12896] System.NotImplementedException uses the default System.Object.Equals(System.Object) implementation, which supports reference equality. For a list of initial values for an instance of System.NotImplementedException, see the System.NotImplementedException.#ctor constructors.


[12897] NotImplementedException



Example Syntax:

[12898] ToString


[12899] [C#] public NotImplementedException( );


[12900] [C++] public: NotImplementedException( );


[12901] [VB] Public Sub New( )


[12902] [JScript] public function NotImplementedException( ); Initializes a new instance of the System.NotImplementedException class.


[12903] Description


[12904] Initializes a new instance of the System.NotImplementedException class with default properties.


[12905] The following table shows the initial property values for an instance of System.NotImplementedException.


[12906] NotImplementedException


[12907] Example Syntax:


[12908] ToString


[12909] [C#] public NotImplementedException(string message);


[12910] [C++] public: NotImplementedException(String* message);


[12911] [VB] Public Sub New(ByVal message As String)


[12912] [JScript] public function NotImplementedException(message: String);


[12913] Description


[12914] Initializes a new instance of the System.NotImplementedException class with a specified error message.


[12915] The following table shows the initial property values for an instance of System.NotImplementedException. The error message that explains the reason for the exception.


[12916] NotImplementedException


[12917] Example Syntax:


[12918] ToString


[12919] [C#] protected NotImplementedException(SerializationInfo info, StreamingContext context);


[12920] [C++] protected: NotImplementedException(SerializationInfo* info, StreamingContext context);


[12921] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[12922] [J Script] protected function NotImplementedException(info: SerializationInfo, context: StreamingContext);


[12923] Description


[12924] Initializes a new instance of the System.NotImplementedException class with serialized data. The object that holds the serialized object data. The contextual information about the source or destination.


[12925] NotImplementedException


[12926] Example Syntax:


[12927] ToString


[12928] [C#] public NotImplementedException(string message, Exception inner);


[12929] [C++] public: NotImplementedException(String* message, Exception* inner);


[12930] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[12931] [JScript] public function NotImplementedException(message: String, inner: Exception);


[12932] Description


[12933] Initializes a new instance of the System.NotImplementedException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[12934] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[12935] HelpLink


[12936] HResult


[12937] InnerException


[12938] Message


[12939] Source


[12940] StackTrace


[12941] TargetSite


[12942] NotSupportedException class (System)


[12943] ToString


[12944] Description


[12945] 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.


[12946] There are methods that are not supported in the base class, with the expectation that these methods will be implemented in the derived classes instead. The derived class might implement only a subset of the methods from the base class, and throw System.NotSupportedException for the unsupported methods.


[12947] NotSupportedException


[12948] Example Syntax:


[12949] ToString


[12950] [C#] public NotSupportedException( );


[12951] [C++] public: NotSupportedException( );


[12952] [VB] Public Sub New( )


[12953] [JScript] public function NotSupportedException( ); Initializes a new instance of the System.NotSupportedException class.


[12954] Description


[12955] Initializes a new instance of the System.NotSupportedException class with default properties.


[12956] The following table shows the initial property values for an instance of System.NotSupportedException.


[12957] NotSupportedException


[12958] Example Syntax:


[12959] ToString


[12960] [C#] public NotSupportedException(string message);


[12961] [C++] public: NotSupportedException(String* message);


[12962] [VB] Public Sub New(ByVal message As String)


[12963] [JScript] public function NotSupportedException(message: String);


[12964] Description


[12965] Initializes a new instance of the System.NotSupportedException class with a specified error message.


[12966] The following table shows the initial property values for an instance of System.NotSupportedException The error message that explains the reason for the exception.


[12967] NotSupportedException


[12968] Example Syntax:


[12969] ToString


[12970] [C#] protected NotSupportedException(SerializationInfo info, StreamingContext context);


[12971] [C++] protected: NotSupportedException(SerializationInfo* info, StreamingContext context);


[12972] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[12973] [JScript] protected function NotSupportedException(info: SerializationInfo, context: StreamingContext);


[12974] Description


[12975] Initializes a new instance of the System.NotSupportedException class with serialized data.


[12976] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[12977] NotSupportedException


[12978] Example Syntax:


[12979] ToString


[12980] [C#] public NotSupportedException(string message, Exception innerException);


[12981] [C++] public: NotSupportedException(String* message, Exception* innerException);


[12982] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[12983] [JScript] public function NotSupportedException(message: String, innerException: Exception);


[12984] Description


[12985] Initializes a new instance of the System.NotSupportedException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[12986] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[12987] HelpLink


[12988] HResult


[12989] InnerException


[12990] Message


[12991] Source


[12992] StackTrace


[12993] TargetSite


[12994] NullReferenceException class (System)


[12995] ToString


[12996] Description


[12997] The exception that is thrown when there is an attempt to dereference a null object reference.


[12998] System.NullReferenceException uses the HRESULT COR_E_NULLREFERENCE, which has the value 0×80004003.


[12999] NullReferenceException


[13000] Example Syntax:


[13001] ToString


[13002] [C#] public NullReferenceException( );


[13003] [C++] public: NullReferenceException( );


[13004] [VB] Public Sub New( )


[13005] [JScript] public function NullReferenceException( ); Initializes a new instance of the System.NullReferenceException class.


[13006] Description


[13007] Initializes a new instance of the System.NullReferenceException class with default properties.


[13008] The following table shows the initial property values for an instance of System.NullReferenceException


[13009] NullReferenceException


[13010] Example Syntax:


[13011] ToString


[13012] [C#] public NullReferenceException(string message);


[13013] [C++] public: NullReferenceException(String* message);


[13014] [VB] Public Sub New(ByVal message As String)


[13015] [JScript] public function NullReferenceException(message: String);


[13016] Description


[13017] Initializes a new instance of the System.NullReferenceException class with a specified error message.


[13018] The following table shows the initial property values for an instance of System.NullReferenceException. The error message that explains the reason for the exception.


[13019] NulIReferenceException


[13020] Example Syntax:


[13021] ToString


[13022] [C#] protected NullReferenceException(SerializationInfo info, StreamingContext context);


[13023] [C++] protected: NullReferenceException(SerializationInfo* info, StreamingContext context);


[13024] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[13025] [JScript] protected function NullReferenceException(info: SerializationInfo, context: StreamingContext);


[13026] Description


[13027] Initializes a new instance of the System.NullReferenceException class with serialized data.


[13028] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[13029] NullReferenceException


[13030] Example Syntax:


[13031] ToString


[13032] [C#] public NullReferenceException(string message, Exception innerException);


[13033] [C++] public: NullReferenceException(String* message, Exception* innerException);


[13034] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[13035] [JScript] public function NullReferenceException(message: String, innerException: Exception);


[13036] Description


[13037] Initializes a new instance of the System.NullReferenceException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[13038] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[13039] HelpLink


[13040] HResult


[13041] InnerException


[13042] Message


[13043] Source


[13044] StackTrace


[13045] TargetSite


[13046] Object class (System)


[13047] ToString


[13048] Description


[13049] Supports all classes in the NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate superclass of all classes in the NET Framework; it is the root of the type hierarchy.


[13050] Languages typically do not require a class to declare inheritance from System.Object because the inheritance is implicit.


[13051] Object


[13052] Example Syntax:


[13053] ToString


[13054] [C#] public Object( );


[13055] [C++] public: Object( );


[13056] [VB] Public Sub New( )


[13057] [JScript] public function Object( );


[13058] Description


[13059] Initializes a new instance of the System.Object class.


[13060] This constructor is called by constructors in derived classes, but it can also be used to directly create an instance of the System.Object class.


[13061] Equals


[13062] [C#] public virtual bool Equals(object obj);


[13063] [C++] public: virtual bool Equals(Object* obj);


[13064] [VB] Overridable Public Function Equals(ByVal obj As Object) As Boolean


[13065] [JScript] public function Equals(obj: Object): Boolean; Determines whether two System.Object instances are equal.


[13066] Description


[13067] Determines whether the specified System.Object is equal to the current System.Object.


[13068] Return Value: true if the specified System.Object is equal to the current System.Object; otherwise, false.


[13069] The default implementation of System.Object.Equals(System.Object) supports reference equality only, but derived classes can override this method to support value equality. The System.Object to compare with the current System.Object.


[13070] Equals


[13071] [C#] public static bool Equals(object objA, object objB);


[13072] [C++] public: static bool Equals(Object* objA, Object* objB);


[13073] [VB] Public Shared Function Equals(ByVal objA As Object, ByVal objB As Object) As Boolean


[13074] [JScript] public static function Equals(objA: Object, objB: Object): Boolean;


[13075] Description


[13076] Determines whether the specified System.Object instances are considered equal.


[13077] Return Value: true if objA is the same instance as objB or if both are null references or if objA.Equals(objB) returns true; otherwise, false.


[13078] The default implementation of System.Object.Equals(System.Object) supports reference equality only, but derived classes can override this method to support value equality. The first System.Object to compare. The second System.Object to compare.


[13079] Finalize


[13080] [C#] Object( );


[13081] [C++] Object( );


[13082] [VB] Overrides Protected Sub Finalize( )


[13083] [JScript] protected override function Finalize( );


[13084] Description


[13085] Allows an System.Object to attempt to free resources and perform other cleanup operations before the System.Object is reclaimed by garbage collection.


[13086] System.Object.Finalize is protected and, therefore, is accessible only through this class or a derived class.


[13087] GetHashCode


[13088] [C#] public virtual int GetHashCode( );


[13089] [C++] public: virtual int GetHashCode( );


[13090] [VB] Overridable Public Function GetHashCode( ) As Integer


[13091] [JScript] public function GetHashCode( ): int;


[13092] Description


[13093] Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.


[13094] Return Value: A hash code for the current System.Object.


[13095] This method can be overridden by a derived class. Value classes must override this method to provide a hash function that is appropriate for the class and that ensures a better distribution in the hash table. Classes that might be used as a key in a hash table must also override this method, because objects that are used as keys in a hash table are required to generate their own hash code through this method.


[13096] GetType


[13097] [C#] public Type GetType( );


[13098] [C++] public: Type* GetType( );


[13099] [VB] Public Function GetType( ) As Type


[13100] [JScript] public function GetType( ): Type;


[13101] Description


[13102] Gets the System.Type of the current instance.


[13103] Return Value: The System.Type instance that represents the exact runtime type of the current instance.


[13104] For two objects x and y that have identical runtime types, Object.ReferenceEquals(x.GetType( ),y.GetType( ) ) returns true.


[13105] MemberwiseClone


[13106] [C#] protected object MemberwiseClone( );


[13107] [C++] protected: Object* MemberwiseClone( );


[13108] [VB] Protected Function MemberwiseClone( ) As Object


[13109] [JScript] protected function MemberwiseClone( ): Object;


[13110] Description


[13111] Creates a shallow copy of the current System.Object.


[13112] Return Value: A shallow copy of the current System.Object.


[13113] This method cannot be overridden; a derived class should implement the System.ICloneable interface if a shallow copy is not appropriate.


[13114] ReferenceEquals


[13115] [C#] public static bool ReferenceEquals(object objA, object objB);


[13116] [C++] public: static bool ReferenceEquals(Object* objA, Object* objB);


[13117] [VB] Public Shared Function ReferenceEquals(ByVal objA As Object, ByVal objB As Object) As Boolean


[13118] [JScript] public static function ReferenceEquals(objA: Object, objB: Object): Boolean;


[13119] Description


[13120] Determines whether the specified System.Object instances are the same instance.


[13121] Return Value: true if objA is the same instance as objB or if both are null references; otherwise, false. The first System.Object to compare. The second System.Object to compare.


[13122] ToString


[13123] [C#] public virtual string ToString( );


[13124] [C++] public: virtual String* ToString( );


[13125] [VB] Overridable Public Function ToString( ) As String


[13126] [JScript] public function ToString( ): String;


[13127] Description


[13128] Returns a System.String that represents the current System.Object.


[13129] Return Value: A System.String that represents the current System.Object.


[13130] This method returns a human-readable string that is culture-sensitive. For example, for an instance of the System.Double class whose value is zero, the implementation of System.Double.ToString might return “0.00” or “0,00” depending on the current UI culture.


[13131] ObjectDisposedException class (System)


[13132] ToString


[13133] ObjectDisposedException


[13134] Example Syntax:


[13135] ToString


[13136] System.ObjectDisposedException


[13137] ObjectDisposedException


[13138] Example Syntax:


[13139] ToString


[13140] ObjectDisposedException


[13141] Example Syntax:


[13142] ToString


[13143] System.ObjectDisposedException


[13144] HelpLink


[13145] HResult


[13146] InnerException


[13147] Message


[13148] ToString


[13149] ObjectName


[13150] ToString


[13151] Source


[13152] StackTrace


[13153] TargetSite


[13154] ObsoleteAttribute class (System)


[13155] ToString


[13156] Description


[13157] Marks the program elements that are no longer in use. This class cannot be inherited.


[13158] System.ObsoleteAttribute is applicable to all program elements except assemblies, modules, parameters or return values. Marking an element as obsolete informs the users that the element will be removed in future versions of the product or that the functionality provided by the element is made internal to your application.


[13159] ObsoleteAifribute


[13160] Example Syntax:


[13161] ToString


[13162] [C#] public ObsoleteAttribute( );


[13163] [C++] public: ObsoleteAttribute( );


[13164] [VB] Public Sub New( )


[13165] [JScript] public function ObsoleteAttribute( ); Initializes a new instance of the System.ObsoleteAttribute class.


[13166] Description


[13167] Initializes a new instance of the System.ObsoleteAttribute class with default properties.


[13168] The following table shows the initial property values for an instance of System.ObsoleteAttribute


[13169] ObsoleteAttribute


[13170] Example Syntax:


[13171] ToString


[13172] [C#] public ObsoleteAttribute(string message);


[13173] [C++] public: ObsoleteAttribute(String* message);


[13174] [VB] Public Sub New(ByVal message As String)


[13175] [JScript] public function ObsoleteAttribute(message: String);


[13176] Description


[13177] Initializes a new instance of the System.ObsoleteAttribute class with a specified workaround message.


[13178] The following table shows the initial property values for an instance of System.ObsoleteAttribute The text string that describes alternative workarounds.


[13179] ObsoleteAttribute


[13180] Example Syntax:


[13181] ToString


[13182] [C#] public ObsoleteAttribute(string message, bool error);


[13183] [C++] public: ObsoleteAttribute(String* message, bool error);


[13184] [VB] Public Sub New(ByVal message As String, ByVal error As Boolean)


[13185] [JScript] public function ObsoleteAttribute(message: String, error: Boolean);


[13186] Description


[13187] Initializes a new instance of the System.ObsoleteAttribute class with a workaround message and a Boolean value indicating whether the obsolete element usage is considered an error.


[13188] The following table shows the initial property values for an instance of System.ObsoleteAttribute. The text string that describes alternative workarounds. The Boolean value that indicates whether the obsolete element usage is considered an error.


[13189] IsError


[13190] ToString


[13191] [C#] public bool IsError {get; }


[13192] [C++] public: _property bool get_IsError( );


[13193] [VB] Public ReadOnly Property IsError As Boolean


[13194] [JScript] public function get IsError( ): Boolean;


[13195] Description


[13196] Gets a Boolean value indicating whether the compiler will treat usage of the obsolete program element as an error.


[13197] Message


[13198] ToString


[13199] [C#] public string Message {get;}


[13200] [C++] public: _property String* get_Message( );


[13201] [VB] Public ReadOnly Property Message As String


[13202] [JScript] public function get Message( ): String;


[13203] Description


[13204] Gets the workaround message, including a description of the alternative program elements.


[13205] TypeId


[13206] OperatingSystem class (System)


[13207] ToString


[13208] Description


[13209] Represents information about an operating system, such as the version and platform identifier.


[13210] This class provides a method to copy an instance of OperatingSystem, and a method to return a string representation of operating system information.


[13211] OperatingSystem


[13212] Example Syntax:


[13213] ToString


[13214] [C#] public OperatingSystem(PlatformID platform, Version version);


[13215] [C++] public: OperatingSystem(PlatformID platformn, Version* version);


[13216] [VB] Public Sub New(ByVal platform As PlatformID, ByVal version As Version)


[13217] [JScript] public function OperatingSystem(platform: PlatformID, version: Version);


[13218] Description


[13219] Initializes a new instance of the OperatingSystem class, using the specified platform identifier value and version object. A System.PlatformID enumerated constant that indicates the operating system platform. A System.Version object that indicates the version of the operating system.


[13220] Platform


[13221] ToString


[13222] [C#] public PlatformID Platform {get;}


[13223] [C++] public: _property PlatformID get_Platformn( );


[13224] [VB] Public ReadOnly Property Platform As PlatformID


[13225] [JScript] public function get Platform( ): PlatformID;


[13226] Description


[13227] Gets a PlatformID value that identifies this operating system platform.


[13228] Version


[13229] ToString


[13230] [C#] public Version Version {get;}


[13231] [C++] public: _property Version* get_Version( );


[13232] [VB] Public ReadOnly Property Version As Version


[13233] [JScript] public function get Version( ): Version;


[13234] Description


[13235] Gets a Version object that identifies this operating system.


[13236] Clone


[13237] [C#] public object Clone( );


[13238] [C++] public: _sealed Object* Clone( );


[13239] [VB] NotOverridable Public Function Clone As Object


[13240] [JScript] public function Clone( ): Object;


[13241] Description


[13242] Returns an OperatingSystem object that is identical to this instance.


[13243] Return Value: An OperatingSystem object that is a copy of this instance.


[13244] ToString


[13245] [C#] public override string ToString( );


[13246] [C++] public: String* ToString( );


[13247] [VB] Overrides Public Function ToString( ) As String


[13248] [JScript] public override function ToString( ): String;


[13249] Description


[13250] Converts the value of this instance to its equivalent String representation.


[13251] Return Value: The format of the return value is: platform majorVersion.minorVersion.build.revision For example, if the operating system is Windows 2000, the return value is: “Microsoft Windows NT 5.0.0.2195”.


[13252] OutOfMemoryException class (System)


[13253] ToString


[13254] Description


[13255] The exception that is thrown when there is not enough memory to continue the execution of a program.


[13256] System.OutOfMemoryException uses the HRESULT COR_E_OUTOFMEMORY, which has the value 0×8007000E.


[13257] OutOfMemoryException


[13258] Example Syntax:


[13259] ToString


[13260] [C#] public OutOfMemoryException( );


[13261] [C++] public: OutOfMemoryException( );


[13262] [VB] Public Sub New( )


[13263] [JScript] public function OutOfMemoryException( ); Initializes a new instance of the System.OutOfMemoryException class.


[13264] Description


[13265] Initializes a new instance of the System.OutOfMemoryException class with default properties.


[13266] The following table shows the initial property values for an instance of System.OutOfIlemoryException.


[13267] OutOfMemoryException


[13268] Example Syntax:


[13269] ToString


[13270] [C#] public OutOfMemoryException(string message);


[13271] [C+] public: OutOfMemoryException(String* message);


[13272] [VB] Public Sub New(ByVal message As String)


[13273] [JScript] public function OutOfMemoryException(message: String);


[13274] Description


[13275] Initializes a new instance of the System.OutOfMemoryException class with a specified error message.


[13276] The following table shows the initial property values for an instance of System.OutOfMemoryException. The error message that explains the reason for the exception.


[13277] OutOfMemoryException


[13278] Example Syntax:


[13279] ToString


[13280] [C#] protected OutOfMemoryException(SerializationInfo info, StreamingContext context);


[13281] [C++] protected: OutOfMemoryException(SerializationInfo* info, StreamingContext context);


[13282] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[13283] [JScript] protected function OutOfMemoryException(info( ): SerializationInfo, context: StreamingContext);


[13284] Description


[13285] Initializes a new instance of the System.OutOfIMemoryException class with serialized data.


[13286] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[13287] OutOfMemoryException


[13288] Example Syntax:


[13289] ToString


[13290] [C#] public OutOfMemoryException(string message, Exception innerException);


[13291] [C++] public: OutOfMemoryException(String* message, Exception* innerException);


[13292] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[13293] [JScript] public function OutOfMemoryException(message: String, innerException: Exception);


[13294] Description


[13295] Initializes a new instance of the System.OutOfMemoryException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[13296] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException .


[13297] HelpLink


[13298] HResult


[13299] InnerException


[13300] Message


[13301] Source


[13302] StackTrace


[13303] TargetSite


[13304] OverflowException class (System)


[13305] ToString


[13306] Description


[13307] The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an overflow.


[13308] For a result from an integral or decimal-type arithmetic operation or conversion that is outside the range of the destination type: In a checked context, a compile-time error occurs if the operation is a constant expression. Otherwise, an System.OverflowException is thrown if the operation is performed at run-time.


[13309] OverflowException


[13310] Example Syntax:


[13311] ToString


[13312] [C#] public OverflowException( );


[13313] [C++] public: OverflowException( );


[13314] [VB] Public Sub New( )


[13315] [JScript] public function OverflowException( ); Initializes a new instance of the System.OverflowException class.


[13316] Description


[13317] Initializes a new instance of the System.OverflowException class with default properties.


[13318] The following table shows the initial property values for an instance of System.OverflowException.


[13319] OverflowException


[13320] Example Syntax:


[13321] ToString


[13322] [C#] public OverflowException(string message);


[13323] [C++] public: OverflowException(String* message);


[13324] [VB] Public Sub New(ByVal message As String)


[13325] [JScript] public function OverflowException(message: String);


[13326] Description


[13327] Initializes a new instance of the System.OverflowException class with a specified error message.


[13328] The following table shows the initial property values for an instance of System.OverflowException. The error message that explains the reason for the exception.


[13329] OverflowException


[13330] Example Syntax:


[13331] ToString


[13332] [C#] protected OverflowException(SerializationInfo info, StreamingContext context);


[13333] [C++] protected: OverflowException(SerializationInfo* info, StreamingContext context);


[13334] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[13335] [JScript] protected function OverflowException(info: SerializationInfo, context: StreamingContext);


[13336] Description


[13337] Initializes a new instance of the System.OverflowException class with serialized data.


[13338] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[13339] OverflowException


[13340] Example Syntax:


[13341] ToString


[13342] [C#] public OverflowException(string message, Exception innerException);


[13343] [C++] public: OverflowException(String* message, Exception* innerException);


[13344] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[13345] [JScript] public function OverflowException(message: String, innerException: Exception);


[13346] Description


[13347] Initializes a new instance of the System.OverflowException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[13348] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException .


[13349] HelpLink


[13350] HResult


[13351] InnerException


[13352] Message


[13353] Source


[13354] StackTrace


[13355] TargetSite


[13356] ParamArrayAttribute class (System)


[13357] ToString


[13358] Description


[13359] Indicates that the method will allow a variable number of arguments in its invocation. This class cannot be inherited.


[13360] A parameter array allows the specification of an unknown number of arguments. A parameter array must be the last parameter in a formal parameter list, and it must be a single-dimension array. A parameter array permits arguments to a method to be specified in two ways: A single expression of a type that is implicitly convertible to the parameter array type. The parameter array functions as a value parameter.


[13361] ParamArrayAttribute


[13362] Example Syntax:


[13363] ToString


[13364] [C#] public ParamArrayAttribute( );


[13365] [C++] public: ParamArrayAttribute( );


[13366] [VB] Public Sub New( )


[13367] [JScript] public function ParamArrayAttribute( );


[13368] Description


[13369] Initializes a new instance of the System.ParamArrayAttribute class with default properties.


[13370] Typeld


[13371] PlatformID enumeration (System)


[13372] ToString


[13373] Description


[13374] Describes the platforms supported by an assembly.


[13375] These flags are used to bind to an assembly.


[13376] ToString


[13377] [C#] public const PlatformID Win32NT;


[13378] [C++] public: const PlatformID Win32NT;


[13379] [VB] Public Const Win32NT As PlatformID


[13380] [JScript] public var Win32NT: PlatformID;


[13381] Description


[13382] The operating system is Windows NT or later.


[13383] ToString


[13384] [C#] public const PlatformID Win32S;


[13385] [C++] public: const PlatformID Win32S;


[13386] [VB] Public Const Win32S As PlatformID


[13387] [JScript] public var Win32S: PlatformID;


[13388] Description


[13389] The operating system is Win32s. Win32s is a layer that runs on 16-bit versions of Windows to provide access to 32-bit applications.


[13390] ToString


[13391] [C#] public const PlatformID Win32Windows;


[13392] [C++] public: const PlatformID Win32Windows;


[13393] [VB] Public Const Win32Windows As PlatformID


[13394] [JScript] public var Win32Windows: PlatformID;


[13395] Description


[13396] The operating system is Windows 95 or later.


[13397] PlatformNotSupportedException class (System)


[13398] ToString


[13399] Description


[13400] The exception that is thrown when a feature does not run on a particular platform.


[13401] PlatformNotSupportedException uses the HRESULT COR_E_PLATFORMNOTSUPPORTED, which has the value 0×80131539.


[13402] PlatformNotSupportedException


[13403] Example Syntax:


[13404] ToString


[13405] [C#] public PlatformNotSupportedException( );


[13406] [C++] public: PlatformNotSupportedException( );


[13407] [VB] Public Sub New( )


[13408] [JScript] public function PlatformNotSupportedException( ); Initializes a new instance of the System.PlatformNotSupportedException class.


[13409] Description


[13410] Initializes a new instance of the System.PlatformNotSupportedException class with default properties.


[13411] When an instance of the System.PlatformNotSupportedException class is created by a call to this constructor, the following properties are initialized to the specified values: Property Value System.Exception.InnerExceptionnull.


[13412] PlatformNotSupportedException


[13413] Example Syntax:


[13414] ToString


[13415] [C#] public PlatformNotSupportedException(string message);


[13416] [C++] public: PlatformNotSupportedException(String* message);


[13417] [VB] Public Sub New(ByVal message As String)


[13418] [JScript] public function PlatformNotSupportedException(message: String);


[13419] Description


[13420] Initializes a new instance of the System.PlatformNotSupportedException class with a specified error message.


[13421] When an instance of the System.PlatformNotSupportedException class is created by a call to this constructor, the following properties are initialized to the specified values: Property Value System.Exception.InnerExceptionnull. The text message that explains the reason for the exception.


[13422] PlatformNotSupportedException


[13423] Example Syntax:


[13424] ToString


[13425] [C#] protected PlatformNotSupportedException(SerializationInfo info, StreamingContext context);


[13426] [C++] protected: PlatformNotSupportedException(SerializationInfo* info, StreamingContext context);


[13427] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[13428] [JScript] protected function PlatformNotSupportedException(info: SerializationInfo, context: StreamingContext);


[13429] Description


[13430] Initializes a new instance of the System.PlatformNotSupportedException class with serialized data. The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.


[13431] PlatformNotSupportedException


[13432] Example Syntax:


[13433] ToString


[13434] [C#] public PlatformNotSupportedException(string message, Exception inner);


[13435] [C++] public: PlatformNotSupportedException(String* message, Exception* inner);


[13436] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[13437] [JScript] public function PlatformNotSupportedException(message: String, inner: Exception);


[13438] Description


[13439] Initializes a new instance of the System.PlatformNotSupportedException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[13440] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The text message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If the inner parameter is non-null, then the current Exception is raised in a catch block handling inner.


[13441] HelpLink


[13442] HResult


[13443] InnerException


[13444] Message


[13445] Source


[13446] StackTrace


[13447] TargetSite


[13448] Random class (System)


[13449] ToString


[13450] Description


[13451] Represents a pseudo-random number generator, a device that produces a sequence of numbers that meet certain statistical requirements for randomness.


[13452] Pseudo-random numbers are chosen with equal probability from a finite set of numbers. The chosen numbers are not completely random because a definite mathematical algorithm is used to select them, but they are sufficiently random for practical purposes.


[13453] Random


[13454] Example Syntax:


[13455] ToString


[13456] [C#] public Random( );


[13457] [C#+] public: Random( );


[13458] [VB] Public Sub New( )


[13459] [JScript] public function Random( ); Initializes a new instance of the Random class.


[13460] Description


[13461] Initializes a new instance of the Random class, using a time-dependent default seed value.


[13462] The distribution of the generated numbers is uniform; each number is equally likely to be returned.


[13463] Random


[13464] Example Syntax:


[13465] ToString


[13466] [C#] public Random(int Seed);


[13467] [C++] public: Random(int Seed);


[13468] [VB] Public Sub New(ByVal Seed As Integer)


[13469] [JScript] public function Random(Seed: int);


[13470] Description


[13471] Initializes a new instance of the Random class, using the specified seed value.


[13472] If your application requires different random number sequences, invoke this constructor repeatedly with different seed values. One way to produce a unique seed value is to make it time-dependent. For example, derive the seed value from the system clock. A number used to calculate a starting value for the pseudo- random number sequence.


[13473] Next


[13474] [C#] public virtual int Next( );


[13475] [C++] public: virtual int Next( );


[13476] [VB] Overridable Public Function Next( ) As Integer


[13477] [JScript] public function Next( ): int; Returns a random number.


[13478] Description


[13479] Returns a positive random number.


[13480] Return Value: A number greater than or equal to zero and less than System.Int32.MaxValue.


[13481] Next


[13482] [C#] public virtual int Next(int maxvalue);


[13483] [C++] public: virtual int Next(int maxvalue);


[13484] [VB] Overridable Public Function Next(ByVal maxValue As Integer) As Integer


[13485] [JScript] public function Next(maxValue: int): int;


[13486] Description


[13487] Returns a positive random number less than the specified maximum.


[13488] Return Value: A number greater than or equal to zero, and less than max Value . The upper bound of the random number to be generated.


[13489] Next


[13490] [C#] public virtual int Next(int minValue, int maxvalue);


[13491] [C++] public: virtual int Next(int minValue, int maxvalue);


[13492] [VB] Overridable Public Function Next(ByVal minValue As Integer, ByVal maxValue As Integer) As Integer


[13493] [JScript] public function Next(minValue: int, maxValue: int): int;


[13494] Description


[13495] Returns a random number within a specified range.


[13496] Return Value: A number greater than or equal to min Value and less than max Value. If minValue equals maxValue, minValue is returned. The lower bound of the random number returned. The upper bound of the random number returned.


[13497] NextBytes


[13498] [C#] public virtual void NextBytes(byte[ ] buffer);


[13499] [C++] public: virtual void NextBytes(unsigned char buffer _gc[ ]);


[13500] [VB] Overridable Public Sub NextBytes(ByVal buffers( ) As Byte)


[13501] [JScript] public function NextBytes(buffer: Byte[ ]);


[13502] Description


[13503] Fills the elements of a specified array of bytes with random numbers.


[13504] Each element of the array of bytes is set to a random number greater than or equal to zero, and less than or equal to System.Byte.MaxValue. An array of bytes to contain random numbers.


[13505] NextDouble


[13506] [C#] public virtual double NextDouble( );


[13507] [C++] public: virtual double NextDouble( );


[13508] [VB] Overridable Public Function NextDouble( ) As Double


[13509] [JScript] public function NextDouble( ): double;


[13510] Description


[13511] Returns a random number between 0.0 and 1.0.


[13512] Return Value: A double-precision floating point number greater than or equal to 0.0, and less than 1.0.


[13513] This method is the public version of the protected method, System.Random.Sample.


[13514] Sample


[13515] [C#] protected virtual double Sample( );


[13516] [C++] protected: virtual double Sample( );


[13517] [VB] Overridable Protected Function Sample( ) As Double


[13518] [JScript] protected function Sample( ): double;


[13519] Description


[13520] Returns a random number between 0.0 and 1.0.


[13521] Return Value: A double-precision floating point number greater than or equal to 0.0, and less than 1.0.


[13522] Create a derived class of Random to override this method and produce a different distribution.


[13523] RankException class (System)


[13524] ToString


[13525] Description


[13526] The exception that is thrown when an array with the wrong number of dimensions is passed to a method.


[13527] System.RankException uses the HRESULT COR_E_RANK, which has the value 0×80131517.


[13528] RankException


[13529] Example Syntax:


[13530] ToString


[13531] [C#] public RankException( );


[13532] [C++] public: RankException( );


[13533] [VB] Public Sub New( )


[13534] [JScript] public function RankException( ); Initializes a new instance of the System.RankException class.


[13535] Description


[13536] Initializes a new instance of the System.RankException class with default properties.


[13537] The following table shows the initial property values for an instance of System.RankException


[13538] RankException


[13539] Example Syntax:


[13540] ToString


[13541] [C#] public RankException(string message);


[13542] [C++] public: RankException(String* message);


[13543] [VB] Public Sub New(ByVal message As String)


[13544] [JScript] public function RankException(message: String);


[13545] Description


[13546] Initializes a new instance of the System.RankException class with a specified error message.


[13547] The following table shows the initial property values for an instance of System.RankException. The error message that explains the reason for the exception.


[13548] RankException


[13549] Example Syntax:


[13550] ToString


[13551] [C#] protected RankException(SerializationInfo info, StreamingContext context);


[13552] [C++] protected: RankException(SerializationInfo* info, StreamingContext context);


[13553] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[13554] [JScript] protected function RankException(info: SerializationInfo, context: StreamingContext);


[13555] Description


[13556] Initializes a new instance of the System.RankException class with serialized data.


[13557] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[13558] RankException


[13559] Example Syntax:


[13560] ToString


[13561] [C#] public RankException(string message, Exception innerException);


[13562] [C++] public: RankException(String* message, Exception* innerException);


[13563] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[13564] [JScript] public function RankException(message: String, innerException: Exception);


[13565] Description


[13566] Initializes a new instance of the System.RankException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[13567] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException .


[13568] HelpLink


[13569] HResult


[13570] InnerException


[13571] Message


[13572] Source


[13573] StackTrace


[13574] TargetSite


[13575] ResolveEventArgs class (System)


[13576] ToString


[13577] Description


[13578] Provides data for the System.AppDomain.TypeResolve, System.AppDomain.ResourceResolve, and System.AppDomain.AssemblyResolve events.


[13579] ResolveEventArgs


[13580] Example Syntax:


[13581] ToString


[13582] [C#] public ResolveEventArgs(string name);


[13583] [C++] public: ResolveEventArgs(String* name);


[13584] [VB] Public Sub New(ByVal name As String)


[13585] [JScript] public function ResolveEventArgs(name: String);


[13586] Description


[13587] Initializes a new instance of the ResolveEventArgs class.


[13588] This constructor is typically only called by the common language runtime. The name of an item to resolve.


[13589] Name


[13590] ToString


[13591] [C#] public string Name {get;}


[13592] [C++] public: _property String* get_Name( );


[13593] [VB] Public ReadOnly Property Name As String


[13594] [JScript] public function get Name( ): String;


[13595] Description


[13596] The name of the item to be resolved.


[13597] ResolveEventHandler delegate (System)


[13598] ToString


[13599] Description


[13600] Represents the method that will handle the System.AppDomain.TypeResolve, System.AppDomain.ResourceResolve, and System.AppDomain.AssemblyResolve events of an System.AppDomain. The source of the event. A System.ResolveEventArgs that contains the event data.


[13601] If the runtime class loader cannot resolve a reference to an assembly, type or a resource through normal means, the corresponding events are raised to give the callback a chance to tell the runtime which assembly the referenced assembly, type or resource is in.


[13602] RuntimeArgumentHandle structure (System)


[13603] ToString


[13604] Description


[13605] References a variable-length argument list.


[13606] This class has no members, and exists solely to support C/C++ programming language functions that take a variable number of parameters.


[13607] RuntimeFieldHandle structure (System)


[13608] ToString


[13609] Description


[13610] The RuntimeFieldHandle is a handle to the internal metadata representation of a field.


[13611] Value


[13612] ToString


[13613] [C#] public IntPtr Value {get;}


[13614] [C++] public: _property IntPtr get_Value( );


[13615] [VB] Public ReadOnly Property Value As IntPtr


[13616] [JScript] public function get Value( ): IntPtr;


[13617] Description


[13618] The value of the handle.


[13619] GetObjectData


[13620] [C#] public void GetObjectData(SerializationInfo info, StreamingContext context);


[13621] [C++] public: _sealed void GetObjectData(SerializationInfo* info, StreamingContext context);


[13622] [VB] NotOverridable Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[13623] [JScript] public function GetObjectData(info: SerializationInfo, context: StreamingContext);


[13624] Description


[13625] Returns a SerializationInfo completely populated with all the data needed to reinstantiate the object at the other end of serialization. The object to be populated with serialization information. The destination context of the serialization.


[13626] RuntimeMethodHandle structure (System)


[13627] ToString


[13628] Description


[13629] The RuntimeMethodHandle is a handle to the internal metadata representation of a method.


[13630] Value


[13631] ToString


[13632] [C#] public IntPtr Value {get;}


[13633] [C++] public: _property IntPtr get_Value( );


[13634] [VB] Public ReadOnly Property Value As IntPtr


[13635] [JScript] public function get Value( ): IntPtr;


[13636] Description


[13637] The value of the handle.


[13638] GetFunctionPointer


[13639] [C#] public IntPtr GetFunctionPointer( );


[13640] [C++] public: IntPtr GetFunctionPointer( );


[13641] [VB] Public Function GetFunctionPointero As IntPtr


[13642] [JScript] public function GetFunctionPointer( ): IntPtr;


[13643] GetObjectData


[13644] [C#] public void GetObjectData(SerializationInfo info, StreamingContext context);


[13645] [C#+] public: _sealed void GetObjectData(SerializationInfo* info, StreamingContext context);


[13646] [VB] NotOverridable Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[13647] [JScript] public function GetObjectData(info: SerializationInfo, context: StreamingContext);


[13648] Description


[13649] Returns a SerializationInfo completely populated with all the data needed to reinstantiate the object at the other end of serialization. The object to be populated with serialization information. The destination context of the serialization.


[13650] RuntimeTypeHandle structure (System)


[13651] ToString


[13652] Description


[13653] The RuntimeTypeHandle is a handle to the internal metadata representation of a type.


[13654] Value


[13655] ToString


[13656] [C#] public IntPtr Value {get;}


[13657] [C++] public: _property IntPtr getValue( );


[13658] [VB] Public ReadOnly Property Value As IntPtr


[13659] [JScript] public function get Value( ): IntPtr;


[13660] Description


[13661] The value of the handle.


[13662] GetObjectData


[13663] [C#] public void GetObjectData(Serializationlnfo info, StreamingContext context);


[13664] [C++] public: sealed void GetObjectData(Serializationlnfo* info, StreamingContext context);


[13665] [VB] NotOverridable Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[13666] [JScript] public function GetObjectData(info: SerializationInfo, context: StreamingContext);


[13667] Description


[13668] Returns a SerializationInfo completely populated with all the data needed to reinstantiate the object at the other end of serialization. The object to be populated with serialization information. The destination context of the serialization.


[13669] SByte structure (System)


[13670] ToString


[13671] Description


[13672] Represents an 8-bit signed integer.


[13673] The SByte value type represents integers with values ranging from negative 128 to positive 127.


[13674] ToString


[13675] [C#] public const sbyte MaxValue;


[13676] [C++] public: const char MaxValue;


[13677] [VB] Public Const MaxValue As SByte


[13678] [JScript] public var MaxValue: SByte;


[13679] Description


[13680] A constant representing the largest possible value of SByte.


[13681] The value of this constant is 127; that is, hexadecimal 0×7F.


[13682] ToString


[13683] [C#] public const sbyte MinValue;


[13684] [C++] public: const char MinValue;


[13685] [VB] Public Const MinValue As SByte


[13686] [JScript] public var MinValue: SByte;


[13687] Description


[13688] A constant representing the smallest possible value of SByte.


[13689] The value of this constant is −128; that is, hexadecimal 0×80.


[13690] CompareTo


[13691] [C#] public int CompareTo(object obj);


[13692] [C++] public: _sealed int CompareTo(Object* obj);


[13693] [VB] NotOverridable Public Function CompareTo(ByVal obj As Object) As Integer


[13694] [JScript] public function CompareTo(obj: Object): int;


[13695] Description


[13696] Compares this instance to a specified object and returns an indication of their relative values.


[13697] Return Value: A signed number indicating the relative values of this instance and obj.


[13698] Any instance of SByte, regardless of its value, is considered greater than null. An object to compare, or null.


[13699] Equals


[13700] [C#] public override bool Equals(object obj);


[13701] [C++] public: bool Equals(Object* obj);


[13702] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[13703] [JScript] public override function Equals(obj: Object): Boolean;


[13704] Description


[13705] Returns a value indicating whether this instance is equal to a specified object.


[13706] Return Value: true if obj is an instance of SByte and equals the value of this instance; otherwise, false. An object to compare with this instance.


[13707] GetHashCode


[13708] [C#] public override int GetHashCode( );


[13709] [C++] public: int GetHashCode( );


[13710] [VB] Overrides Public Function GetHashCode( ) As Integer


[13711] [JScript] public override function GetHashCode( ): int;


[13712] Description


[13713] Returns the hash code for this instance.


[13714] Return Value: A 32-bit signed integer hash code.


[13715] GetTypeCode


[13716] [C#] public TypeCode GetTypeCode( );


[13717] [C++] public: sealed TypeCode GetTypeCode( );


[13718] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[13719] [JScript] public function GetTypeCode( ): TypeCode;


[13720] Description


[13721] Returns the TypeCode for value type SByte.


[13722] Return Value: The enumerated constant, System.TypeCode.SByte.


[13723] Parse


[13724] [C#] public static sbyte Parse(string s);


[13725] [C++] public: static char Parse(String* s);


[13726] [VB] Public Shared Function Parse(ByVal s As String) As SByte


[13727] [JScript] public static function Parse(s: String): SByte; Converts the String representation of a number to its 8-bit signed integer equivalent.


[13728] Description


[13729] Converts the String representation of a number to its 8-bit signed integer equivalent.


[13730] Return Value: An 8-bit signed integer equivalent to the number contained in s.


[13731] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert.


[13732] Parse


[13733] [C#] public static sbyte Parse(string s, IFormatProvider provider);


[13734] [C++] public: static char Parse(String* s, IFormatProvider* provider);


[13735] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As SByte


[13736] [JScript] public static function Parse(s: String, provider: IFormatProvider) SByte;


[13737] Description


[13738] Converts the String representation of a number in a specified culture-specific format to its 8-bit signed integer equivalent.


[13739] Return Value: An 8-bit signed integer equivalent to the number specified in s.


[13740] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’) are optional, and other items are as follows. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[13741] Parse


[13742] [C#] public static sbyte Parse(string s, NumberStyles style);


[13743] [C++] public: static char Parse(String* s, NumberStyles style);


[13744] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As SByte


[13745] [JScript] public static function Parse(s: String, style: NumberStyles): SByte;


[13746] Description


[13747] Converts the String representation of a number in a specified style to its 8-bit signed integer equivalent.


[13748] Return Value: An 8-bit signed integer equivalent to the number specified in s.


[13749] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’)are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s.


[13750] Parse


[13751] [C#] public static sbyte Parse(string s, NumberStyles style, IFormatProvider provider);


[13752] [C++] public: static char Parse(String* s, NumberStyles style, IFormatProvider* provider);


[13753] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As SByte


[13754] [JScript] public static function Parse(s: String, style: NumberStyles, provider: IFormatProvider): SByte;


[13755] Description


[13756] Converts the String representation of a number in a specified style and culture-specific format to its 8-bit signed integer equivalent.


[13757] Return Value: An 8-bit signed integer equivalent to the number specified in s.


[13758] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and ‘]’)are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[13759] IConvertible.ToBoolean


[13760] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[13761] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[13762] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.To Boolean


[13763] [JScript] function IConvertible.ToBoolean (provider: IFormatProvider): Boolean;


[13764] IConvertible.ToByte


[13765] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[13766] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[13767] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[13768] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[13769] IConvertible.ToChar


[13770] [C#] char IConvertible. ToChar(IFormatProvider provider);


[13771] [C++]_wchar_t IConvertible::ToChar(IFonnatProvider* provider);


[13772] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements


[13773] IConvertible.ToChar [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[13774] IConvertible.ToDateTime


[13775] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[13776] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[13777] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[13778] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[13779] IConvertible.ToDecimal


[13780] [C+] decimal IConvertible.ToDecimal(IFormatProvider provider);


[13781] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[13782] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[13783] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[13784] IConvertible.ToDouble


[13785] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[13786] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[13787] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[13788] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[13789] IConvertible.ToInt16


[13790] [C#] short IConvertible.ToInt6(IFormatProvider provider);


[13791] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[13792] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[13793] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[13794] IConvertible.ToInt32


[13795] [C#] int IConvertible.ToInt32(IForrnatProvider provider);


[13796] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[13797] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[13798] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[13799] IConvertible.ToInt64


[13800] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[13801] [C++]_int64 IConvertible::ToInt64(IFormatProvider* provider);


[13802] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[13803] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[13804] IConvertible.ToSByte


[13805] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[13806] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[13807] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[13808] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[13809] IConvertible.ToSingle


[13810] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[13811] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[13812] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[13813] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[13814] IConvertible.ToType


[13815] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[13816] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[13817] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[13818] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[13819] IConvertible.ToUInt16


[13820] [C#] ushort IConvertible.ToUInt16(IFormat Provider provider);


[13821] [C++] unsigned short IConvertible::ToUInt16(IForinatProvider* provider);


[13822] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[13823] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[13824] IConvertible.ToUInt32


[13825] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[13826] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[13827] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[13828] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[13829] IConvertible.ToUInt64


[13830] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[13831] [C++] unsigned _int64 IConvertible::ToUInt64(IFormatProvider* provider); [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[13832] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[13833] ToString


[13834] [C#] public override string ToString( );


[13835] [C++] public: String* ToString( );


[13836] [VB] Overrides Public Function ToString( ) As String


[13837] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[13838] Description


[13839] Converts the numeric value of this instance to its equivalent String representation.


[13840] Return Value: The System.String representation of the value of this instance, consisting of a negative sign if the value is negative, and a sequence of digits ranging from 0 to 9 with no leading zeroes.


[13841] The return value is formatted with the general format specifier (“G”) and the System.Globalization.NumberFormatInfo for the current culture.


[13842] ToString


[13843] [C#] public string ToString(IFormatProvider provider);


[13844] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[13845] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[13846] [JScript] public function ToString(provider: IFormatProvider): String;


[13847] Description


[13848] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[13849] Return Value: The System.String representation of the value of this instance as specified by provider.


[13850] This instance is formatted with the general format specifier (“G”). An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[13851] ToString


[13852] [C#] public string ToString(string format);


[13853] [C++] public: String* ToString(String* format);


[13854] [VB] Public Function ToString(ByVal format As String) As String


[13855] [JScript] public function ToString(format: String): String;


[13856] Description


[13857] Converts the numeric value of this instance to its equivalent String representation, using the specified format.


[13858] Return Value: The System.String representation of the value of this instance as specified by format.


[13859] If format is null or an empty string, the return value of this instance is formatted with the general format specifier (“G”). A format string.


[13860] ToString


[13861] [C#] public string ToString(string format, IFormatProvider provider);


[13862] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[13863] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[13864] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[13865] Description


[13866] Converts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[13867] Return Value: The System.String representation of the value of this instance as specified by format and provider.


[13868] If format is null or an empty string, the return value for this instance is formatted with the general format specifier (“G”). A format specification. An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[13869] SerializableAttribute class (System)


[13870] ToString


[13871] Description


[13872] Indicates that a class can be serialized. This class cannot be inherited.


[13873] Apply the System.SerializableAttribute attribute to a class to indicate it can be serialized. The common language runtime throws System.Runtime.Serialization.SerializationException if any class in the graph of objects being serialized does not have the System.SerializableAttribute attribute applied.


[13874] SerializableAttribute


[13875] Example Syntax::


[13876] ToString


[13877] [C#] public SerializableAttribute( );


[13878] [C++] public: SerializableAttribute( );


[13879] [VB] Public Sub New( )


[13880] [JScript] public function SerializableAttribute( );


[13881] Description


[13882] Initializes a new instance of the System.SerializableAttribute class.


[13883] TypeId


[13884] Single structure (System)


[13885] ToString


[13886] Description


[13887] Represents a single-precision floating point number.


[13888] The Single value type represents a single-precision 32-bit number with values ranging from negative 3.402823e38 to positive 3.402823e38, as well as positive or negative zero, System.Single.PositiveInfinity, System.Single.NegativeInfinity, and Not-a-Number (System.Single.NaN).


[13889] ToString


[13890] [C#] public const float Epsilon;


[13891] [C++] public: const float Epsilon;


[13892] [VB] Public Const Epsilon As Single


[13893] [JScript] public var Epsilon: float;


[13894] Description


[13895] A constant representing the smallest positive Single greater than zero.


[13896] The value of this constant is 1.4e-45.


[13897] ToString


[13898] [C#] public const float MaxValue;


[13899] [C++] public: const float MaxValue;


[13900] [VB] Public Const MaxValue As Single


[13901] [JScript] public var MaxValue: float;


[13902] Description


[13903] A constant representing the largest possible value of Single.


[13904] The value of this constant is positive 3.402823e38.


[13905] ToString


[13906] [C#] public const float MinValue;


[13907] [C++] public: const float MinValue;


[13908] [VB] Public Const MinValue As Single


[13909] [JScript] public var MinValue: float;


[13910] Description


[13911] A constant representing the smallest possible value of Single.


[13912] The value of this constant is negative 3.402823e38.


[13913] ToString


[13914] [C#] public const float NaN;


[13915] [C++] public: const float NaN;


[13916] [VB] Public Const NaN As Single


[13917] [JScript] public var NaN: float;


[13918] Description


[13919] A constant representing Not-a-Number (NaN).


[13920] The value of this constant is the result of dividing zero by zero.


[13921] ToString


[13922] [C#] public const float NegativeInfinity;


[13923] [C++] public: const float NegativeInfinity;


[13924] [VB] Public Const NegativeInfinity As Single


[13925] [JScript] public var NegativeInfinity: float;


[13926] Description


[13927] A constant representing negative infinity.


[13928] The value of this constant is the result of dividing a negative number by zero.


[13929] ToString


[13930] [C#] public const float PositiveInfinity;


[13931] [C++] public: const float PositiveInfinity;


[13932] [VB] Public Const PositiveInfinity As Single


[13933] [JScript] public var PositiveInfinity: float;


[13934] Description


[13935] A constant representing positive infinity.


[13936] The value of this constant is the result of dividing a positive number by zero.


[13937] CompareTo


[13938] [C#] public int CompareTo(object value);


[13939] [C++] public: _sealed int CompareTo(Object* value);


[13940] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[13941] [JScript] public function CompareTo(value: Object): int;


[13942] Description


[13943] Compares this instance to a specified object and returns an indication of their relative values.


[13944] Return Value: A signed number indicating the relative values of this instance and value.


[13945] Any instance of Single, regardless of its value, is considered greater than null. An object to compare, or null.


[13946] Equals


[13947] [C#] public override bool Equals(object obj);


[13948] [C++] public: bool Equals(Object* obj);


[13949] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[13950] [JScript] public override function Equals(obj: Object): Boolean;


[13951] Description


[13952] Returns a value indicating whether this instance is equal to a specified object.


[13953] Return Value: true if obj is an instance of Single and equals the value of this instance; otherwise, false. An object to compare with this instance.


[13954] GetHashCode


[13955] [C#] public override int GetHashCode( );


[13956] [C++] public: int GetHashCode( );


[13957] [VB] Overrides Public Function GetHashCode( ) As Integer


[13958] [JScript] public override function GetHashCode( ): int;


[13959] Description


[13960] Returns the hash code for this instance.


[13961] Return Value: A 32-bit signed integer hash code.


[13962] GetTypeCode


[13963] [C#] public TypeCode GetTypeCode( );


[13964] [C++] public: _sealed TypeCode GetTypeCode( );


[13965] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[13966] [JScript] public function GetTypeCode( ): TypeCode;


[13967] Description


[13968] Returns the TypeCode for value type Single.


[13969] Return Value: The enumerated constant, System.TypeCode.Single.


[13970] IsInfinity


[13971] [C#] public static bool IsInfinity(float f);


[13972] [C++] public: static bool IsInfinity(float f);


[13973] [VB] Public Shared Function IsInfinity(ByVal f As Single) As Boolean


[13974] [JScript] public static function IsInfinity(f: float): Boolean;


[13975] Description


[13976] Returns a value indicating whether the specified number evaluates to either negative or positive infinity.


[13977] Return Value: true if f evaluates to negative or positive infinity; otherwise, false. A single-precision floating point number.


[13978] IsNaN


[13979] [C+] public static bool IsNaN(float f);


[13980] [C++] public: static bool IsNaN(float f);


[13981] [VB] Public Shared Function IsNaN(ByVal f As Single) As Boolean


[13982] [JScript] public static function IsNaN(f: float): Boolean;


[13983] Description


[13984] Returns a value indicating whether the specified number evaluates to Not-a-Number (NaN).


[13985] Return Value: true if f evaluates to NaN; otherwise, false. A single-precision floating point number.


[13986] IsNegativeInfinity


[13987] [C#] public static bool IsNegativeInfinity(float f);


[13988] [C++] public: static bool IsNegativeInfinity(float f);


[13989] [VB] Public Shared Function IsNegativeInfinity(ByVal f As Single) As Boolean


[13990] [JScript] public static function IsNegativeInfinity(f: float): Boolean;


[13991] Description


[13992] Returns a value indicating whether the specified number evaluates to negative infinity.


[13993] Return Value: true if f evaluates to negative infinity; otherwise, false. A single-precision floating point number.


[13994] IsPositiveInfinity


[13995] [C#] public static bool IsPositiveInfinity(float f);


[13996] [C++] public: static bool IsPositiveInfinity(float f);


[13997] [VB] Public Shared Function IsPositiveInfinity(ByVal f As Single) As Boolean


[13998] [JScript] public static function IsPositiveInfinity(f: float): Boolean;


[13999] Description


[14000] Returns a value indicating whether the specified number evaluates to positive infinity.


[14001] Return Value: true if f evaluates to positive infinity; otherwise, false. A single-precision floating point number.


[14002] Parse


[14003] [C#] public static float Parse(string s);


[14004] [C++] public: static float parse(String* s);


[14005] [VB] Public Shared Function Parse(ByVal s As String) As Single


[14006] [JScript] public static function Parse(s: String): float; Converts the String representation of a number to its single-precision floating point number equivalent.


[14007] Description


[14008] Converts the String representation of a number to its single-precision floating point number equivalent.


[14009] Return Value: A single-precision floating point number equivalent to the numeric value or symbol specified in s.


[14010] s can contain System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativeInfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form:


[14011] [ws] [sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws] Optional items are framed in square brackets (‘[’ and ‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A System.String containing a number to convert.


[14012] Parse


[14013] [C#] public static float Parse(string s, IFormatProvider provider);


[14014] [C++] public: static float Parse(String* s, IFormatProvider* provider);


[14015] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As Single


[14016] [JScript] public static function Parse(s: String, provider: IFormatProvider): float;


[14017] Description


[14018] Converts the String representation of a number in a specified culture-specific format to its single-precision floating point number equivalent.


[14019] Return Value: A single-precision floating point number equivalent to the numeric value or symbol specified in s.


[14020] s can contain System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativelnflnitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws] Optional items are framed in square brackets (‘[’ and ‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[14021] Parse


[14022] [C#] public static float Parse(string s, NumberStyles style);


[14023] [C++] public: static float Parse(String* s, NumberStyles style);


[14024] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As Single


[14025] [JScript] public static function Parse(s: String, style: NumberStyles): float;


[14026] Description


[14027] Converts the String representation of a number in a specified style to its single-precision floating point number equivalent.


[14028] Return Value: A single-precision floating point number equivalent to the numeric value or symbol specified in s.


[14029] s can contain System.Globalization.NumberFormatInfo.PositivelnflnitySymbol, System.Globalization.NumberFormatInfo.NegativelnflnitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws] Optional items are framed in square brackets (‘[’ and ‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s.


[14030] Parse


[14031] [C#] public static float Parse(string s, NumberStyles style, IFormatProvider provider);


[14032] [C++] public: static float Parse(String* s, NumberStyles style, IFormatProvider* provider);


[14033] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As Single


[14034] [Jscript] public static function Parse(s: String, style: NumberStyles, provider: IFormatProvider): float;


[14035] Description


[14036] Converts the String representation of a number in a specified style and culture-specific format to its single-precision floating point number equivalent.


[14037] Return Value: A single-precision floating point number equivalent to the numeric value or symbol specified in s.


[14038] s can contain System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativelnflnitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws] Optional items are framed in square brackets (‘[’ and ‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[14039] IConvertible.ToBoolean


[14040] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[14041] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[14042] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[14043] [J Script] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[14044] IConvertible.ToByte


[14045] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[14046] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[14047] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements


[14048] IConvertible.ToByte


[14049] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[14050] IConvertible.ToChar


[14051] [C#] char IConvertible.ToChar(IFormatProvider provider);


[14052] [C++]13 wchar_t IConvertible::ToChar(IFormatProvider* provider);


[14053] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[14054] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[14055] IConvertible.ToDateTime


[14056] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[14057] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[14058] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[14059] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[14060] IConvertible.ToDecimal


[14061] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[14062] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[14063] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[14064] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[14065] IConvertible.ToDouble


[14066] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[14067] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[14068] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[14069] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[14070] IConvertible.ToInt16


[14071] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[14072] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[14073] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[14074] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[14075] IConvertible.ToInt32


[14076] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[14077] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[14078] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[14079] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[14080] IConvertible.ToInt64


[14081] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[14082] [C++] int64 IConvertible::ToInt64(IFormatProvider* provider);


[14083] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[14084] [JScript] function IConvertible.ToInt64(provider: IFormatProvider) long;


[14085] IConvertible.ToSByte


[14086] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[14087] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[14088] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[14089] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[14090] IConvertible.ToSingle


[14091] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[14092] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[14093] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[14094] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[14095] IConvertible.ToType


[14096] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[14097] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[14098] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[14099] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[14100] IConvertible.ToUInt16


[14101] [C#] ushort IConvertible.ToUInt16(IFormatProvider provider);


[14102] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[14103] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[14104] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[14105] IConvertible.ToUInt32


[14106] [C#] uint IConvertible.ToUInt32(FormatProvider provider);


[14107] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[14108] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[14109] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[14110] IConvertible.ToUInt64


[14111] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[14112] [C++] unsigned int64 IConvertible::ToUInt64(IFormatProvider* provider);


[14113] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[14114] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[14115] ToString


[14116] [C#] public override string ToString( );


[14117] [C++] public: String* ToString( );


[14118] [VB] Overrides Public Function ToString( ) As String


[14119] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[14120] Description


[14121] Converts the numeric value of this instance to its equivalent String representation.


[14122] Return Value: The System.String representation of the value of this instance.


[14123] The return value can be System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativeInfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits] Optional items are framed in square brackets (‘[’ and ‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9.


[14124] ToString


[14125] [C#] public string ToString( IForm atProvider provider);


[14126] [C++] public: _sealed String* Totring(IFormatProvider* provider);


[14127] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[14128] [JScript] public function ToString(provider: IFormatProvider): String;


[14129] Description


[14130] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[14131] Return Value: The System.String representation of the value of this instance as specified by provider.


[14132] The return value can be System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativelnflnitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits] Optional items are framed in square brackets (‘[’ and ‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[14133] ToString


[14134] [C#] public string ToString(string format);


[14135] [C++] public: String* ToStrinlg(String* format);


[14136] [VB] Public Function ToString(ByVal format As String) As String


[14137] [JScript] public function ToString(format: String): String;


[14138] Description


[14139] Converts the numeric value of this instance to its equivalent String representation, using the specified format.


[14140] Return Value: The System.String representation of the value of this instance as specified by format.


[14141] The return value can be System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativeInfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form: [sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits] Optional items are framed in square brackets (‘[’ and ‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A format string.


[14142] ToString


[14143] [C#] public string ToString(string format, IFormatProvider provider); [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[14144] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[14145] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[14146] Description


[14147] Converts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[14148] Return Value: The System.String representation of the value of this instance as specified by format and provider.


[14149] The return value can be System.Globalization.NumberFormatInfo.PositiveInfinitySymbol, System.Globalization.NumberFormatInfo.NegativeInfinitySymbol, System.Globalization.NumberFormatInfo.NaNSymbol, or a string of the form:


[14150] [sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits] Optional items are framed in square brackets (‘[’ and ‘]’). Items containing the term “digits” consist of a series of numeric characters ranging from 0 to 9. A format specification. An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[14151] Environment.SpecialFolder enumeration (System)


[14152] ToString


[14153] Description


[14154] Specifies enumerated constants used to retrieve directory paths to system special folders.


[14155] The System.Environment.SpecialFolder.System method uses these enumerated constants to indicate the special folder path to retrieve.


[14156] ToString


[14157] [C#] public const Environment.SpecialFolder ApplicationData;


[14158] [C++] public: const Environment.SpecialFolder ApplicationData;


[14159] [VB] Public Const ApplicationData As Environment.SpecialFolder


[14160] [JScript] public var ApplicationData: Enivironment. SpecialFolder;


[14161] Description


[14162] The directory that serves as a common repository for application-specific data for the current, roaming user.


[14163] ToString


[14164] [C#] public const Environment.SpecialFolder CommonApplicationData;


[14165] [C++] public: const Environment.SpecialFolder CommonApplicationData;


[14166] [VB] Public Const CommonApplicationData As Environment.SpecialFolder


[14167] [JScript] public var CommonApplicationData: Environment.SpecialFolder;


[14168] Description


[14169] The directory that serves as a common repository for application-specific data that is used by all users.


[14170] ToString


[14171] [C#] public const Environment.SpecialFolder CommonProgramFiles;


[14172] [C++] public: const Environment.SpecialFolder CommonProgramFiles;


[14173] [VB] Public Const CommonProgramFiles As Environment.SpecialFolder


[14174] [JScript] public var CommonProgramFiles: Environment.SpecialFolder;


[14175] Description


[14176] The directory for components that are shared across applications.


[14177] ToString


[14178] [C#] public: const Environment.Special Cookies;


[14179] [C++] public: const Environment.SpecialFolder Cookies;


[14180] [VB] Public Const Cookies As Environment.SpecialFolder


[14181] [J Script] public var Cookies: Environment.SpecialFolder;


[14182] Description


[14183] The directory that serves as a common repository for Internet cookies.


[14184] ToString


[14185] [C#] public const Environment.SpecialFolder DesktopDirectory;


[14186] [C++] public: const Enviromnment.SpecialFolder DesktopDirectory;


[14187] [VB] Public Const DesktopDirectory As Environment.SpecialFolder


[14188] [JScript] public var DesktopDirectory: Environment.SpecialFolder;


[14189] Description


[14190] The directory used to physically store file objects on the desktop.


[14191] ToString


[14192] [C#] public const Environment.SpecialFolder Favorites;


[14193] [C++] public: const Environment.SpecialFolder Favorites;


[14194] [VB] Public Const Favorites As Environment.SpecialFolder


[14195] [JScript] public var Favorites: Environment.SpecialFolder;


[14196] Description


[14197] The directory that serves as a common repository for the user's favorite items.


[14198] ToString


[14199] [C#] public const Environment.SpecialFolder History;


[14200] [C++] public: const Environment.SpecialFolder History;


[14201] [VB] Public Const History As Environment.SpecialFolder


[14202] [JScript] public var History: Environment.SpecialFolder;


[14203] Description


[14204] The directory that serves as a common repository for Internet history items.


[14205] ToString


[14206] [C#] public const Environment.SpecialFolder InternetCache;


[14207] [C++] public: const Environment.SpecialFolder InternetCache;


[14208] [VB] Public Const InternetCache As Environment.SpecialFolder


[14209] [JScript] public var InternetCache: Environment.SpecialFolder;


[14210] Description


[14211] The directory that serves as a common repository for temporary Internet files.


[14212] ToString


[14213] [C#] public const Environment.SpecialFolder LocalApplicationData;


[14214] [C++] public: const Environment.SpecialFolder LocalApplicationData;


[14215] [VB] Public Const LocalApplicationData As Environment.SpecialFolder


[14216] [JScript] public var LocalApplicationData: Environment.SpecialFolder;


[14217] Description


[14218] The directory that serves as a common repository for application-specific data that is used by the current, non-roaming user.


[14219] ToString


[14220] [C#] public const Environment.SpecialFolder Personal;


[14221] [C++] public: const Environment.SpecialFolder Personal;


[14222] [VB] Public Const Personal As Environment.SpecialFolder


[14223] [JScript] public var Personal: Environment.SpecialFolder;


[14224] Description


[14225] The directory that serves as a common repository for documents.


[14226] ToString


[14227] [C#] public const Environment.SpecialFolder ProgramFiles;


[14228] [C++] public: const Environment.SpecialFolder ProgramFiles;


[14229] [VB] Public Const ProgramFiles As Environment.SpecialFolder


[14230] [JScript] public var ProgramFiles: Environment.SpecialFolder;


[14231] Description


[14232] The program files directory.


[14233] ToString


[14234] [C#] public const Environment.SpecialFolder Programs;


[14235] [C++] public: const Environment.SpecialFolder Programs;


[14236] [VB] Public Const Programs As Environment.SpecialFolder


[14237] [JScript] public var Programs: Environment.SpecialFolder;


[14238] Description


[14239] The directory that contains the user's program groups.


[14240] ToString


[14241] [C#] public const Environment.SpecialFolder Recent;


[14242] [C++] public: const Environment.SpecialFolder Recent;


[14243] [VB] Public Const Recent As Environment.SpecialFolder


[14244] [JScript] public var Recent: Environment.SpecialFolder;


[14245] Description


[14246] The directory that contains the user's most recently used documents.


[14247] ToString


[14248] [C#] public const Environment.SpecialFolder SendTo;


[14249] [C++] public: const Environment.SpecialFolder SendTo;


[14250] [VB] Public Const SendTo As Environment.SpecialFolder


[14251] [JScript] public var SendTo: Environment.SpecialFolder;


[14252] Description


[14253] The directory that contains Send To menu items.


[14254] ToString


[14255] [C#] public const Environment.SpecialFolder StartMenu;


[14256] [C++] public: const Environment.SpecialFolder StartMenu;


[14257] [VB] Public Const StartMenu As Environment.SpecialFolder


[14258] [JScript] public var StartMenu: Environment.SpecialFolder;


[14259] Description


[14260] The directory that contains the Start menu items.


[14261] ToString


[14262] [C#] public const Environment.SpecialFolder Startup;


[14263] [C++] public: const Environment.SpecialFolder Startup;


[14264] [VB] Public Const Startup As Environment.SpecialFolder


[14265] [JScript] public var Startup: Environment.SpecialFolder;


[14266] Description


[14267] The directory that corresponds to the user's Startup program group.


[14268] ToString


[14269] [C#] public const Environment.SpecialFolder System;


[14270] [C++] public: const Environment.SpecialFolder System;


[14271] [VB] Public Const System As Environment.SpecialFolder


[14272] [JScript] public var System: Environment.SpecialFolder;


[14273] Description


[14274] The System directory.


[14275] ToString


[14276] [C#] public const Environment.SpecialFolder Templates;


[14277] [C++] public: const Environment.SpecialFolder Templates;


[14278] [VB] Public Const Templates As Environment.SpecialFolder


[14279] [JScript] public var Templates: Environment.SpecialFolder;


[14280] Description


[14281] The directory that serves as a common repository for document templates.


[14282] StackOverflowException class (System)


[14283] ToString


[14284] Description


[14285] The exception that is thrown when the execution stack overflows by having too many pending method calls. This class cannot be inherited.


[14286] System.StackOverflowException is thrown for execution stack overflow errors, typically in case of a very deep or unbounded recursion.


[14287] StackOverflowException cl EXAMPLE SYNTAX


[14288] ToString


[14289] [C#] public StackoverflowException( );


[14290] [C++] public: StackOverflowException( );


[14291] [VB] Public Sub New( )


[14292] [JScript] public function StackOverflowException( ); Initializes a new instance of the System.StackOverflowException class.


[14293] Description


[14294] Initializes a new instance of the System.StackOverflowException class with default properties.


[14295] The following table shows the initial property values for an instance of System.StackOverflowException.


[14296] StackOverflowException


[14297] Example Syntax:


[14298] ToString


[14299] [C#] public StackoverflowException(string message);


[14300] [C++] public: StackOverflowException(String* message);


[14301] [VB] Public Sub New(ByVal message As String)


[14302] [JScript] public function StackOverflowException(message: String);


[14303] Description


[14304] Initializes a new instance of the System.StackOverflowException class with a specified error message.


[14305] The following table shows the initial property values for an instance of System.StackOverflowException. The error message that explains the reason for the exception.


[14306] StackOverflowException


[14307] Example Syntax:


[14308] ToString


[14309] [C#] public StackOverflowException(string message, Exception innerException);


[14310] [C++] public: StackOverflowException(String* message, Exception* innerException);


[14311] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[14312] [JScript] public function StackOverflowException(message: String, innerException: Exception);


[14313] Description


[14314] Initializes a new instance of the System.StackOverflowException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[14315] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[14316] HelpLink


[14317] HResult


[14318] InnerException


[14319] Message


[14320] Source


[14321] StackTrace


[14322] TargetSite


[14323] STAThreadAttribute class (System)


[14324] ToString


[14325] Description


[14326] Indicates the default threading model for an application is single-threaded apartment.


[14327] Only apply this attribute to the main method of an application.


[14328] STAThreadAttribute


[14329] Example Syntax:


[14330] ToString


[14331] [C#] public STAThreadAttribute( );


[14332] [C++] public: STAThreadAttribute( );


[14333] [VB] Public Sub New( )


[14334] [Script] public function STAThreadAttribute( );


[14335] Description


[14336] Initializes a new instance of the System.STAThreadAttribute class.


[14337] TypeId


[14338] String class (System)


[14339] ToString


[14340] Description


[14341] Represents an immutable string of characters.


[14342] An instance of String is said to be “immutable” because its value cannot be modified once it has been created. Methods that appear to modify a String instance actually return a new instance containing the modification. Use the System.Text.StringBuilder class if it is necessary to actually modify the contents of a string-like object.


[14343] ToString


[14344] [C#] public static readonly string Empty;


[14345] [C++] public: static String* Empty;


[14346] [VB] Public Shared ReadOnly Empty As String


[14347] [JScript] public static var Empty: String;


[14348] Description


[14349] A read-only field that represents the empty string.


[14350] The value of this field is the string, “ ”.


[14351] String


[14352] Example Syntax:


[14353] ToString


[14354] [C#] unsafe public String(char* value);


[14355] [C++] public: String(_wchar_t* value); Initializes a new instance of the String class.


[14356] Description


[14357] Initializes a new instance of the String class to the value indicated by a specified pointer to an array of Unicode characters.


[14358] If value is a null pointer, an System.String.Empty instance is initialized. A pointer to an array of Unicode characters.


[14359] String


[14360] Example Syntax:


[14361] ToString


[14362] [C#] public String(char[ ] value);


[14363] [C++] public: String(_wchar_t value_gc[ ]);


[14364] [VB] Public Sub New(ByVal value( ) As Char)


[14365] [JScript] public function String(value: Char[ ]);


[14366] Description


[14367] Initializes a new instance of the String class to the value indicated by an array of Unicode characters. An array of Unicode characters.


[14368] String


[14369] Example Syntax:


[14370] ToString


[14371] [C#] unsafe public String(sbyte* value);


[14372] [C++] public: String(char* value);


[14373] Description


[14374] Initializes a new instance of the String class to the value indicated by a pointer to an array of 8-bit signed integers.


[14375] If value is a null pointer, an System.String.Empty instance is initialized. A pointer to an array of 8-bit signed integers.


[14376] String


[14377] Example Syntax:


[14378] ToString


[14379] [C#] public String(char c, int count);


[14380] [C++] public: String(_wchar_t c, int count);


[14381] [VB] Public Sub New(ByVal c As Char, ByVal count As Integer)


[14382] [JScript] public function String(c: Char, count: int);


[14383] Description


[14384] Initializes a new instance of the String class to the value indicated by a specified Unicode character repeated a specified number of times. A Unicode character. The number of times c occurs.


[14385] String


[14386] Example Syntax:


[14387] ToString


[14388] [C#] unsafe public String(char* value, int startIndex, int length);


[14389] [C++] public: String( wchar t* value, int startIndex, int length);


[14390] Description


[14391] Initializes a new instance of the String class to the value indicated by a specified pointer to an array of Unicode characters, a starting character position within that array, and a length.


[14392] If value is a null pointer, an System.String.Empty instance is initialized. A pointer to an array of Unicode characters. The starting position within value. The number of characters within value to use.


[14393] String


[14394] Example Syntax:


[14395] ToString


[14396] [C#] public String(char[ ] value, int startln dex, int length);


[14397] [C++] public: String(_wchart value _gc[ ], int startIndex, int length);


[14398] [VB] Public Sub New(ByVal value( ) As Char, ByVal startIndex As Integer, ByVal length As Integer)


[14399] [JScript] public function String(value: Char[ ], startIndex: int, length: int);


[14400] Description


[14401] Initializes a new instance of the String class to the value indicated by an array of Unicode characters, a starting character position within that array, and a length.


[14402] If value is null, an System.String.Empty instance is initialized. An array of Unicode characters. The starting position within value. The number of characters within value to use.


[14403] String


[14404] Example Syntax:


[14405] ToString


[14406] [C#] unsafe public String(sbyte* value, int startIndex, int length);


[14407] [C++] public: String(char* value, int startIndex, int length);


[14408] Description


[14409] Initializes a new instance of the String class to the value indicated by a specified pointer to an array of 8-bit signed integers, a starting character position within that array, and a length.


[14410] If value is a null pointer, an System.String.Empty instance is initialized. A pointer to an array of 8-bit signed integers. The starting position within value. The number of characters within value to use.


[14411] String


[14412] Example Syntax:


[14413] ToString


[14414] [C#] unsafe public String(sbyte* value, int startIndex, int length, Encoding enc);


[14415] [C++] public: String(char* value, int startIndex, int length, Encoding* enc);


[14416] Description


[14417] Initializes a new instance of the String class to the value indicated by a specified pointer to an array of 8-bit signed integers, a starting character position within that array, a length, and an Encoding object.


[14418] If value is a null pointer, an System.String.Empty instance is initialized. A pointer to an array of 8-bit signed integers. The starting position within value. The number of characters within value to use. An System.Text.Encoding object that specifies how the array referenced by value is encoded.


[14419] Chars


[14420] ToString


[14421] [C#] public char this[int index] {get;}


[14422] [C++] public: _property_wchar_t_getChars(int index);


[14423] [VB] Public Default ReadOnly Property Chars(ByVal index As Integer) As Char


[14424] [JScript] retrnValue=StringObject.Chars(index);


[14425] Description


[14426] Gets the character at a specified character position in this instance.


[14427] index is zero-based. A character position in this instance.


[14428] Length


[14429] ToString


[14430] [C#] public int Length {get;}


[14431] [C++] public: _property int get_Length( );


[14432] [VB] Public ReadOnly Property Length As Integer


[14433] [JScript] public function get Length( ): int;


[14434] Description


[14435] Gets the number of characters in this instance.


[14436] Clone


[14437] [C#] public object Clone( );


[14438] [C++] public: _sealed Object* Clone( );


[14439] [VB] NotOverridable Public Function Clone( ) As Object


[14440] [JScript] public function Clone( ): Object;


[14441] Description


[14442] Returns a reference to this instance of String.


[14443] Return Value: This instance of String.


[14444] The return value is not an independent copy of this instance; it is simply another view of the same data. Use the System.String.Copy(System.String) or System.String.CopyTo(System.Int32,System.Char[ ],System.Int32,System.Int3 2 method to create a separate String object with the same value as this instance.


[14445] Compare


[14446] [C#] public static int Compare(string strA, string strB);


[14447] [C++] public: static int Compare(String* strA, String* strB);


[14448] [VB] Public Shared Function Compare(ByVal strA As String, ByVal strB As String) As Integer


[14449] [JScript] public static function Compare(strA: String, strB: String): int; Compares two specified String objects.


[14450] Description


[14451] Compares two specified String objects.


[14452] Return Value: A 32-bit signed integer indicating the lexical relationship between the two comparands.


[14453] By definition, any String, including the empty string, compares greater than a null reference; and two null references compare equal to each other. The first String. The second String.


[14454] Compare


[14455] [C#] public static int Compare(string strA, string strB, bool ignoreCase);


[14456] [C++] public: static int Compare(String* strA, String* strB, bool ignoreCase);


[14457] [VB] Public Shared Function Compare(ByVal strA As String, ByVal strB As String, ByVal ignoreCase As Boolean) As Integer


[14458] [JScript] public static function Compare(strA: String, strB: String, ignoreCase: Boolean): int;


[14459] Description


[14460] Compares two specified String objects, ignoring or honoring their case.


[14461] Return Value: A 32-bit signed integer indicating the lexical relationship between the two comparands.


[14462] By definition, any String, including the empty string, compares greater than a null reference; and two null references compare equal to each other. The first String. The second String. A System.Boolean indicating a case-sensitive or insensitive comparison. (true indicates a case-insensitive comparison.)


[14463] Compare


[14464] [C#] public static int Compare(string strA, string strB, bool ignoreCase, CultureInfo culture);


[14465] [C++] public: static int Compare(String* strA, String* strB, bool ignoreCase, CultureInfo* culture);


[14466] [VB] Public Shared Function Compare(ByVal strA As String, ByVal strB As String, ByVal ignoreCase As Boolean, ByVal culture As CultureInfo) As Integer


[14467] [JScript] public static function Compare(strA: String, strB: String, ignoreCase: Boolean, culture: CultureInfo): int;


[14468] Description


[14469] Compares two specified String objects, ignoring or honoring their case, and honoring culture-specific information about their formatting.


[14470] Return Value: A 32-bit signed integer indicating the lexical relationship between the two comparands.


[14471] culture specifies a System.Globalization.CultureInfo object, which provides culture-specific information that can affect the comparison. The first String. The second String. A System.Boolean indicating a case-sensitive or insensitive comparison. (true indicates a case-insensitive comparison.) A System.Globalization.CultureInfo object that supplies culture-specific formatting information.


[14472] Compare


[14473] [C#] public static int Compare(string strA, int indexA, string strB, int indexB, int length);


[14474] [C++] public: static int Compare(String* strA, int indexA, String* strB, int indexB, int length);


[14475] [VB] Public Shared Function Compare(ByVal strA As String, ByVal indexA As Integer, ByVal strB As String, ByVal indexB As Integer, ByVal length As Integer) As Integer


[14476] [JScript] public static function Compare(strA: String, indexA: int, strB: String, indexB: int, length: int): int;


[14477] Description


[14478] Compares substrings of two specified String objects.


[14479] Return Value: A 32-bit signed integer indicating the lexical relationship between the two comparands.


[14480] length cannot be negative. If length is zero, then zero is returned. The first String. The position of the substring within strA. The second String. The position of the substring within strB. The maximum number of characters in the substrings to compare.


[14481] Compare


[14482] [C#] public static int Compare(string strA, int indexA, string strB, int indexB, int length, bool ignoreCase);


[14483] [C++] public: static int Compare(String* strA, int indexA, String* strB, int indexB, int length, bool ignoreCase);


[14484] [VB] Public Shared Function Compare(ByVal strA As String, ByVal indexA As Integer, ByVal strB As String, ByVal indexB As Integer, ByVal length As Integer, ByVal ignoreCase As Boolean) As Integer


[14485] [JScript] public static function Compare(strA: String, indexA: int, strB: String, indexB: int, length: int, ignoreCase: Boolean): int;


[14486] Description


[14487] Compares substrings of two specified String objects, ignoring or honoring their case.


[14488] Return Value: A 32-bit signed integer indicating the lexical relationship between the two comparands.


[14489] indexA and indexB are zero-based. The first String. The position of the substring within strA. The second String. The position of the substring within strB. The maximum number of characters in the substrings to compare. A System.Boolean indicating a case-sensitive or insensitive comparison. (true indicates a case-insensitive comparison.)


[14490] Compare


[14491] [C#] public static int Compare(string strA, int indexA, string strB, int indexB, int length, bool ignoreCase, CultureInfo culture);


[14492] [C++] public: static int Compare(String* strA, int indexA, String* strB, int indexB, int length, bool ignoreCase, CultureInfo* culture);


[14493] [VB] Public Shared Function Compare(ByVal strA As String, ByVal indexA As Integer, ByVal strB As String, ByVal indexB As Integer, ByVal length As Integer, ByVal ignoreCase As Boolean, ByVal culture As CultureInfo) As Integer


[14494] [JScript] public static function Compare(strA: String, indexA: int, strB: String, indexB: int, length: int, ignoreCase: Boolean, culture: CultureInfo): int;


[14495] Description


[14496] Compares substrings of two specified String objects, ignoring or honoring their case, and honoring culture-specific information about their formatting.


[14497] Return Value: An integer indicating the lexical relationship between the two comparands.


[14498] culture specifies a System.Globalization.CultureInfo object, which provides culture-specific information that can affect the comparison. The first String. The position of the substring within strA. The second String. The position of the substring within the strB. The maximum number of characters in the substrings to compare. A System.Boolean indicating a case-sensitive or insensitive comparison. (true indicates a case-insensitive comparison.) A System.Globalization.CultureInfo object that supplies culture-specific formatting information.


[14499] CompareOrdinal


[14500] [C#] public static int CompareOrdinal(string strA, string strB);


[14501] [C++] public: static int CompareOrdinal(String* strA, String* strB);


[14502] [VB] Public Shared Function CompareOrdinal(ByVal strA As String, ByVal strB As String) As Integer


[14503] [JScript] public static function CompareOrdinal(strA: String, strB: String): int; Compares two String objects, without considering the local national language or culture.


[14504] Description


[14505] Compares two specified String objects, without considering the local national language or culture.


[14506] Return Value: An integer indicating the lexical relationship between the two comparands.


[14507] By definition, any String, including the empty string, compares greater than a null reference; and two null references compare equal to each other. The first String. The second String.


[14508] CompareOrdinal


[14509] [C#] public static int CompareOrdinal(string strA, int indexA, string strB, int indexB, int length);


[14510] [C++] public: static int CompareOrdinal(String* strA, int indexA, String* strB, int indexB, int length);


[14511] [VB] Public Shared Function CompareOrdinal(ByVal strA As String, ByVal indexA As Integer, ByVal strB As String, ByVal indexB As Integer, ByVal length As Integer) As Integer


[14512] [J Script] public static function CompareOrdinal(strA: String, indexA: int, strB: String, indexB: int, length: int): int;


[14513] Description


[14514] Compares substrings of two specified String objects, without considering the local national language or culture. Parameters specify the length and starting positions of the substrings.


[14515] Return Value: A 32-bit signed integer indicating the lexical relationship between the two comparands.


[14516] By definition, any String, including the empty string, compares greater than a null reference; and two null references compare equal to each other. The first String. The starting index of the substring in strA. The second String. The starting index of the substring in strB. The maximum number of characters in the substrings to compare.


[14517] CompareTo


[14518] [C#] public int CompareTo(object value);


[14519] [C++] public: _sealed int CompareTo(Object* value);


[14520] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[14521] [JScript] public function CompareTo(value: Object): int; Compares this instance with a specified object.


[14522] Description


[14523] Compares this instance with a specified Object.


[14524] Return Value: A 32-bit signed integer indicating the lexical relationship between the two comparands.


[14525] value must be a String object. An System.Object that evaluates to a String.


[14526] CompareTo


[14527] [C#] public int CompareTo(string strB);


[14528] [C++] public: int CompareTo(String* strB);


[14529] [VB] Public Function CompareTo(ByVal strB As String) As Integer


[14530] [JScript] public function CompareTo(strB: String): int;


[14531] Description


[14532] Compares this instance with a specified String object.


[14533] Return Value: A 32-bit signed integer indicating the lexical relationship between the two comparands.


[14534] By definition, any String, including the empty string, compares greater than a null reference; and two null references compare equal to each other. A String.


[14535] Concat


[14536] [C#] public static string Concat(object arg0);


[14537] [C++] public: static String* Concat(Object* arg0);


[14538] [VB] Public Shared Function Concat(ByVal arg0 As Object) As String


[14539] [JScript] public static function Concat(arg0: Object): String; Concatenates one or more instances of String, or the String representations of the values of one or more instances of Object.


[14540] Description


[14541] Creates the String representation of a specified object.


[14542] Return Value: The String representation of the value of arg0.


[14543] An System.String.Empty string is used in place of any null argument. An System.Object or null.


[14544] Concat


[14545] [C#] public static string Concat(params object[ ] args);


[14546] [C++] public: static String* Concat(Object* args_gc[ ]);


[14547] [VB] Public Shared Function Concat(ByVal ParamArray args( ) As Object) As String


[14548] [JScript] public static function Concat(args: Object[ ]): String;


[14549] Description


[14550] Concatenates the String representations of the elements in a specified Object array.


[14551] Return Value: The concatenated String representations of the values of the elements in args.


[14552] An System.String.Empty string is used in place of any null object in the array. An System.Object array.


[14553] Concat


[14554] [C#] public static string Concat(params string[ ] values);


[14555] [C++] public: static String* Concat(String* values_gc[ ]);


[14556] [VB] Public Shared Function Concat(ByVal ParamArray values( ) As String) As String


[14557] [JScript] public static function Concat(values: String[ ]): String;


[14558] Description


[14559] Concatenates the elements of a specified String array.


[14560] Return Value: The concatenated elements of values.


[14561] An System.String.Empty string is used in place of any null object in the array. An array of String instances.


[14562] Concat


[14563] [C#] public static string Concat(object arg0, object arg1);


[14564] [C++] public: static String* Concat(Object* arg0, Object* arg1);


[14565] [VB] Public Shared Function Concat(ByVal arg0 As Object, ByVal arg1 As Object) As String


[14566] [JScript] public static function Concat(arg0: Object, arg1: Object): String;


[14567] Description


[14568] Concatenates the String representations of two specified objects.


[14569] Return Value: The concatenated String representations of the values of arg0 and arg1.


[14570] An System.String.Empty string is used in place of any null argument. The first System.Object. The second Object.


[14571] Concat


[14572] [C#] public static string Concat(string str0, string str1);


[14573] [C++] public: static String* Concat(String* str0, String* str1);


[14574] [VB] Public Shared Function Concat(ByVal str0 As String, ByVal str1 As String) As String


[14575] [JScript] public static function Concat(str0: String, str1: String): String;


[14576] Description


[14577] Concatenates two specified instances of String.


[14578] Return Value: The concatenation of str0 and str1.


[14579] An System.String.Empty string is used in place of any null argument. The first String. The second String.


[14580] Concat


[14581] [C#] public static string Concat(object arg0, object arg1, object arg2);


[14582] [C++] public: static String* Concat(Object* arg0, Object* arg1, Object* arg2);


[14583] [VB] Public Shared Function Concat(ByVal arg0 As Object, ByVal arg1 As Object, ByVal arg2 As Object) As String


[14584] [JScript] public static function Concat(arg0: Object, arg1: Object, arg2: Object): String;


[14585] Description


[14586] Concatenates the String representations of three specified objects.


[14587] Return Value: The concatenated String representations of the values of arg0, arg1, and arg2.


[14588] An System.String.Empty string is used in place of any null argument. The first System.Object. The second Object. The third Object.


[14589] Concat


[14590] [C#] public static string Concat(string str0, string str1, string str2);


[14591] [C++] public: static String* Concat(String* str0, String* str1, String* str2);


[14592] [VB] Public Shared Function Concat(ByVal str0 As String, ByVal str1 As String, ByVal str2 As String) As String


[14593] [JScript] public static function Concat(str0: String, str1: String, str2: String) String;


[14594] Description


[14595] Concatenates three specified instances of String.


[14596] Return Value: The concatenation of str0, str1, and str2.


[14597] An System.String.Empty string is used in place of any null argument. The first String. The second String. The third String.


[14598] Concat


[14599] [C++] public: static String* Concat(Object* arg0, Object* arg1, Object* arg2, Object* arg3,...);


[14600] Concat


[14601] [C#] public static string Concat(string str0, string str1, string str2, string str3);


[14602] [C++] public: static String* Concat(String* str0, String* str1, String* str2, String* str3);


[14603] [VB] Public Shared Function Concat(ByVal str0 As String, ByVal str1 As String, ByVal str2 As String, ByVal str3 As String) As String


[14604] [JScript] public static function Concat(str0: String, str1: String, str2: String, str3: String): String;


[14605] Description


[14606] Concatenates four specified instances of String.


[14607] Return Value: The concatenation of str0, str1, str2, and str3.


[14608] An System.String.Empty string is used in place of any null object in the array. The first String. The second String. The third String. The fourth String.


[14609] Copy


[14610] [C#] public static string Copy(string str);


[14611] [C++] public: static String* Copy(String* str);


[14612] [VB] Public Shared Function Copy(ByVal str As String) As String


[14613] [JScript] public static function Copy(str: String): String;


[14614] Description


[14615] Creates a new instance of String with the same value as a specified instance of String.


[14616] Return Value: A new String with the same value as str. The String to be copied


[14617] CopyTo


[14618] [C#] public void CopyTo(int sourceIndex, char[ ] destination, int destinationIndex, int count);


[14619] [C++] public: void CopyTo(int sourceIndex, _wchar_t destination_gc[ ], int destinationIndex, int count);


[14620] [VB] Public Sub CopyTo(ByVal sourceIndex As Integer, ByVal destination( ) As Char, ByVal destinationIndex As Integer, ByVal count As Integer)


[14621] [JScript] public function CopyTo(sourceIndex: int, destination: Char[ ], destinationIndex: int, count: int);


[14622] Description


[14623] Copies a specified number of characters from a specified position in this instance to a specified position in an array of Unicode characters.


[14624] count characters are copied from the sourceIndex position of this instance to the destinationIndex position of destination. A character position in this instance. An array of Unicode characters. An array element in destination. The number of characters in this instance to copy to destination.


[14625] EndsWith


[14626] [C#] public bool EndsWith(string value);


[14627] [C++] public: bool EndsWith(String* value);


[14628] [VB] Public Function EndsWith(ByVal value As String) As Boolean


[14629] [JScript] public function EndsWith(value: String): Boolean;


[14630] Description


[14631] Determines whether the end of this instance matches the specified String.


[14632] Return Value: true if the end of this instance matches value; false if value does not match or is longer than this instance.


[14633] The comparison is case-sensitive. A String.


[14634] Equals


[14635] [C#] public override bool Equals(object obj);


[14636] [C++] public: bool Equals(Object* obj);


[14637] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[14638] [JScript] public override function Equals(obj: Object): Boolean; Determines whether two String objects have the same value.


[14639] Description


[14640] Determines whether this instance of String and a specified object, which must be a String, have the same value.


[14641] Return Value: true if obj is a String and its value is the same as this instance; otherwise, false. This instance is null.


[14642] This comparison is case-sensitive. An System.Object.


[14643] Equals


[14644] [C#] public new bool Equals(string value);


[14645] [C++] public: bool Equals(String* value);


[14646] [VB] Shadows Public Function Equals(ByVal value As String) As Boolean


[14647] [JScript] public hide function Equals(value: String): Boolean;


[14648] Description


[14649] Determines whether this instance and a specified String have the same value.


[14650] Return Value: true if the value of value is the same as this instance; otherwise, false. This instance is null.


[14651] This comparison is case-sensitive. A String.


[14652] Equals


[14653] [C#] public static new bool Equals(string a, string b);


[14654] [C++] public: static bool Equals(String* a, String* b);


[14655] [VB] Shadows Public Shared Function Equals(ByVal a As String, ByVal b As String) As Boolean


[14656] [JScript] public static hide function Equals(a: String, b: String): Boolean;


[14657] Description


[14658] Determines whether two specified String objects have the same value.


[14659] Return Value: true if the value of a is the same as the value of b ; otherwise, false.


[14660] The comparison is case-sensitive. A String or null. A String or null.


[14661] Format


[14662] [C#] public static string Format(string format, object arg0);


[14663] [C++public: static String* Format(String* format, Object* arg0);


[14664] [VB] Public Shared Function Format(ByVal format As String, ByVal arg0 As Object) As String


[14665] [JScript] public static function Format(format: String, arg0: Object): String; Replaces each format specification in a specified String with the textual equivalent of a corresponding object's value.


[14666] Description


[14667] Replaces the format specification in a specified String with the textual equivalent of the value of a specified Object instance.


[14668] Return Value: A copy of format in which the first format specification has be replaced by the String equivalent of the arg0.


[14669] The format parameter is embedded with zero or more format specifications of the form, {N[, M][: formatString]}, where: N is a zero-based integer indicating the argument to be formatted. A String containing zero or more format specifications. An System.Object to be formatted.


[14670] Format


[14671] [C#] public static string Format(string format, params object[ ] args);


[14672] [C++] public: static String* Format(String* format, Object* args_gc[ ]);


[14673] [VB] Public Shared Function Format(ByVal format As String, ByVal ParamArray args( ) As Object) As String


[14674] [JScript] public static function Format(format: String, args: Object[ ]): String;


[14675] Description


[14676] Replaces the format specification in a specified String with the textual equivalent of the value of a corresponding Object instance in a specified array.


[14677] Return Value: A copy of format in which the format specifications have been replaced by the String equivalent of the corresponding instances of Object in args.


[14678] The format parameter is embedded with zero or more format specifications of the form, {N[, M][: formatString]}, where: Nis a zero-based integer indicating the argument to be formatted. A String containing zero or more format specifications. An System.Object array containing zero or more objects to be formatted.


[14679] Format


[14680] [C#] public static string Format(IFormatProvider provider, string format, params object[ ] args);


[14681] [C++] public: static String* Format(IFormatProvider* provider, String* format, Object* args_gc[ ]);


[14682] [VB] Public Shared Function Format(ByVal provider As IFormatProvider, ByVal format As String, ByVal ParamArray args( ) As Object) As String


[14683] [JScript] public static function Format(provider: IFormatProvider, format: String, args: Object[ ]): String;


[14684] Description


[14685] Replaces the format specification in a specified String with the textual equivalent of the value of a corresponding Object instance in a specified array. A specified parameter supplies culture-specific formatting information.


[14686] Return Value: A copy of format in which the format specifications have been replaced by the String equivalent of the corresponding instances of Object in args.


[14687] The format parameter is embedded with zero or more format specifications of the form, {N[, M][: formatString]}, where: N is a zero-based integer indicating the argument to be formatted. An System.IFormatProvider interface implementation that supplies culture-specific formatting information. A String containing zero or more format specifications. An System.Object array containing zero or more objects to be formatted.


[14688] Format


[14689] [C#] public static string Format(string format, object arg0, object arg1);


[14690] [C++] public: static String* Format(String* format, Object* arg0, Object* arg1);


[14691] [VB] Public Shared Function Format(ByVal format As String, ByVal arg0 As Object, ByVal arg1 As Object) As String


[14692] [JScript] public static function Format(format: String, arg0: Object, arg1: Object): String;


[14693] Description


[14694] Replaces the format specification in a specified String with the textual equivalent of the value of two specified Object instances.


[14695] Return Value: A copy of format in which the first and second format specifications have been replaced by the String equivalent of the arg0 and arg1. A String containing zero or more format specifications. The first System.Object to be formatted. The second Object to be formatted.


[14696] Format


[14697] [C#] public static string Format(string format, object arg0, object arg1, object arg2);


[14698] [C++] public: static String* Format(String* format, Object* arg0, Object* arg1, Object* arg2);


[14699] [VB] Public Shared Function Format(ByVal format As String, ByVal arg0 As Object, ByVal arg1 As Object, ByVal arg2 As Object) As String


[14700] [JScript] public static function Format(format: String, arg0: Object, arg1: Object, arg2: Object): String;


[14701] Description


[14702] Replaces the format specification in a specified String with the textual equivalent of the value of three specified Object instances.


[14703] Return Value: A copy of format in which the first, second, and third format specifications have been replaced by the String equivalent of the arg0,arg1, and arg2.


[14704] The format parameter is embedded with zero or more format specifications of the form, {N[, M][: formatString]}, where: N is a zero-based integer indicating the argument to be formatted. A String containing zero or more format specifications. The first System.Object to be formatted. The second Object to be formatted. The third Object to be formatted.


[14705] GetEnumerator


[14706] [C#] public CharEnumerator GetEnumerator( );


[14707] [C++] public: CharEnumerator* GetEnumerator( );


[14708] [VB] Public Function GetEnumerator( ) As CharEnumerator


[14709] [JScript] public function GetEnumerator( ): CharEnumerator;


[14710] Description


[14711] Retrieves an object that can iterate through the individual characters in this instance.


[14712] Return Value: A System.CharEnumerator object.


[14713] This method is required by programming languages that support the System.Collections.IEnumerator interface to iterate through members of a collection. For example, the Microsoft Visual Basic and C# programming languages' foreach statement invokes this method to return a CharEnumerator object that can provide read-only access to the characters in this instance of String.


[14714] GetHashCode


[14715] [C#] public override int GetHashCode( );


[14716] [C++] public: int GetHashCode( );


[14717] [VB] Overrides Public Function GetHashCode( ) As Integer


[14718] [JScript] public override function GetHashCode( ): int;


[14719] Description


[14720] Returns the hash code for this instance.


[14721] Return Value: A 32-bit signed integer hash code.


[14722] GetTypeCode


[14723] [C#] public TypeCode GetTypeCode( );


[14724] [C++] public: _sealed TypeCode GetTypeCode( );


[14725] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[14726] [JScript] public function GetTypeCode( ): TypeCode;


[14727] Description


[14728] Returns the TypeCode for class String.


[14729] Return Value: The enumerated constant, System.TypeCode.String.


[14730] IndexOf


[14731] [C#] public int IndexOf(char value);


[14732] [C++] public: int IndexOf(_wchar_t value);


[14733] [VB] Public Function IndexOf(ByVal value As Char) As Integer


[14734] [JScript] public function IndexOf(value: Char): int; Reports the index of the first occurrence of a String, or one or more characters, within this instance.


[14735] Description


[14736] Reports the index of the first occurrence of the specified Unicode character in this instance.


[14737] Return Value: A positive 32-bit signed integer, the index, that is the character position in this instance where value was found; otherwise, −1 if value was not found.


[14738] Index numbering starts from zero. A Unicode character to seek.


[14739] IndexOf


[14740] [C#] public int IndexOf(string value);


[14741] [C++] public: int IndexOf(String* value);


[14742] [VB] Public Function IndexOf(ByVal value As String) As Integer


[14743] [JScript] public function IndexOf(value: String): int;


[14744] Description


[14745] Reports the index of the first occurrence of the specified String in this instance.


[14746] Return Value: Value Meaning A positive index position.


[14747] The search begins at the first character position of this instance and continues until the last character position. The search is case-sensitive and uses the current culture. The String to seek.


[14748] IndexOf


[14749] [C#] public int IndexOf(char value, int startIndex);


[14750] [C++] public: int IndexOf(_wchar_t value, int startIndex);


[14751] [VB] Public Function IndexOf(ByVal value As Char, ByVal startIndex As Integer) As Integer


[14752] [JScript] public function IndexOf(value: Char, startIndex: int): int;


[14753] Description


[14754] Reports the index of the first occurrence of the specified Unicode character in this instance. The search starts at a specified character position.


[14755] Return Value: A positive 32-bit signed integer, the index, indicating the character position in this instance where value was found; otherwise, −1 if value was not found.


[14756] Index numbering starts from zero. A Unicode character to seek. The search starting position.


[14757] IndexOf


[14758] [C#] public int IndexOf(string value, int startIndex);


[14759] [C++] public: int IndexOf(String* value, int startIndex);


[14760] [VB] Public Function IndexOf(ByVal value As String, ByVal startIndex As Integer) As Integer


[14761] [JScript] public function IndexOf(value: String, startIndex: int): int;


[14762] Description


[14763] Reports the index of the first occurrence of the specified String in this instance. The search starts at a specified character position.


[14764] Return Value: Value Meaning A positive index position.


[14765] The search begins at the startIndex character position of this instance and continues until the last character position. The search is case-sensitive and uses the current culture. The String to seek. The search starting position.


[14766] IndexOf


[14767] [C#] public int IndexOf(char value, int startIndex, int count);


[14768] [C++] public: int Indexof(_wchar_t value, int startIndex, int count);


[14769] [VB] Public Function IndexOf(ByVal value As Char, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[14770] [JScript] public function IndexOf(value: Char, startIndex: int, count: int): int;


[14771] Description


[14772] Reports the index of the first occurrence of the specified character in this instance. The search starts at a specified character position and examines a specified number of character positions.


[14773] Return Value: A positive 32-bit signed integer, the index, that is the character position in this instance where value was found; otherwise, −1 if value was not found.


[14774] The search begins at startIndex and continues until count −1. The character at count is not included in the search. A Unicode character to seek. The search starting position. The number of character positions to examine.


[14775] IndexOf


[14776] [C#] public int IndexOf(string value, int startIndex, int count);


[14777] [C++] public: int Indexof(String* value, int startIndex, int count);


[14778] [VB] Public Function IndexOf(ByVal value As String, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[14779] [JScript] public function IndexOf(value: String, startIndex: int, count: int): int;


[14780] Description


[14781] Reports the index of the first occurrence of the specified String in this instance. The search starts at a specified character position and examines a specified number of character positions.


[14782] Return Value: Value Meaning A positive index position.


[14783] The search begins at the startIndex character position and continues for count character positions. The search is case-sensitive and uses the current culture. The String to seek. The search starting position. The number of character positions to examine.


[14784] IndexOfAny


[14785] [C#] public int IndexOfAny(char[ ] anyOf);


[14786] [C++] public: int IndexOfAny(_wchar_t anyOf_gc[ ]);


[14787] [VB] Public Function IndexOfAny(ByVal anyOf( ) As Char) As Integer


[14788] [JScript] public function IndexOfAny(anyOf: Char[ ]): int; Reports the index of the first occurrence in this instance of any character in a specified array of Unicode characters.


[14789] Description


[14790] Reports the index of the first occurrence in this instance of any character in a specified array of Unicode characters.


[14791] Return Value: The positive integer index of the first occurrence in this instance where any character in anyOf was found; otherwise, −1 if no character in anyOf was found.


[14792] Index numbering starts from zero. A Unicode character array containing one or more characters to seek.


[14793] IndexOfAny


[14794] [C#] public int IndexOfAny(char[ ] anyOf, int startIndex);


[14795] [C++] public: int IndexOfAny(_wchar_t anyOf_gc[ ], int startIndex);


[14796] [VB] Public Function IndexOfAny(ByVal anyOf( ) As Char, ByVal startIndex As Integer) As Integer


[14797] [JScript] public function IndexOfAny(anyOf: Char[ ], startIndex: int): int;


[14798] Description


[14799] Reports the index of the first occurrence in this instance of any character in a specified array of Unicode characters. The search starts at a specified character position.


[14800] Return Value: The positive integer index of the first occurrence in this instance where any character in anyOf was found; otherwise, −1 if no character in anyOf was found.


[14801] Index numbering starts from zero. A Unicode character array containing one or more characters to seek. The search starting position.


[14802] IndexOfAny


[14803] [C#] public int IndexOfAny(char[ ] anyOf, int startIndex, int count);


[14804] [C++] public: int IndexOfAny9_wchar_t anyOf_gc[ ], int startIndex, int count);


[14805] [VB] Public Function IndexOfAny(ByVal anyOf( ) As Char, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[14806] [JScript] public function IndexOfAny(anyOf: Char[ ], startIndex: int, count: int): int;


[14807] Description


[14808] Reports the index of the first occurrence in this instance of any character in a specified array of Unicode characters. The search starts at a specified character position and examines a specified number of character positions.


[14809] Return Value: The positive integer index of the first occurrence in this instance where any character in anyOf was found; otherwise, −1 if no character in anyOf was found.


[14810] The search begins at startIndex and continues until count −1. The character at count is not included in the search. A Unicode character array containing one or more characters to seek. The search starting position. The number of character positions to examine.


[14811] Insert


[14812] [C190 ] public string Insert(int startIndex, string value);


[14813] [C++] public: String* Insert(int startIndex, String* value);


[14814] [VB] Public Function Insert(ByVal startIndex As Integer, ByVal value As String) As String


[14815] [JScript] public function Insert(startIndex: int, value: String): String;


[14816] Description


[14817] Inserts a specified instance of String at a specified index position in this instance.


[14818] Return Value: A new String equivalent to this instance but with value inserted at position startIndex.


[14819] If startIndex is equal to the length of this instance, value is appended to the end of this instance. The index position of the insertion. The String to insert.


[14820] Intern


[14821] [C#] public static string Intern(string str);


[14822] [C++] public: static String* Intern(String* str);


[14823] [VB] Public Shared Function Intern(ByVal str As String) As String


[14824] [JScript] public static function Intern(str: String): String;


[14825] Description


[14826] Retrieves the system's reference to the specified String.


[14827] Return Value: The String reference to str.


[14828] The common language runtime automatically maintains a table, called the “intern pool”, which contains a single instance of each unique literal string constant declared in a program, as well as any unique instance of String you add programmatically. A String, or null.


[14829] IsInterned


[14830] [C#] public static string IsInterned(string str);


[14831] [C++] public: static String* IsInterned(String* str);


[14832] [VB] Public Shared Function IsInterned(ByVal str As String) As String


[14833] [JScript] public static function IsInterned(str: String): String;


[14834] Description


[14835] Retrieves a reference to a specified String.


[14836] Return Value: A String reference to str if it is in the common language runtime “intern pool”; otherwise null.


[14837] The common language runtime automatically maintains a table, called the “intern pool”, which contains a single instance of each unique literal string constant declared in a program, as well as any unique instance of String you add programmatically. A String.


[14838] Join


[14839] [C#] public static string Join(string separator, string[ ] value);


[14840] [C++] public: static String* Join(String* separator, String* value_gc[ ]);


[14841] [VB] Public Shared Function Join(ByVal separator As String, ByVal value( ) As String) As String


[14842] [JScript] public static function Join(separator: String, value: String[ ]): String; Concatenates a specified separator String between each element of a specified String array, yielding a single concatenated string.


[14843] Description


[14844] Concatenates a specified separator String between each element of a specified String array, yielding a single concatenated string.


[14845] Return Value: A String consisting of the elements of value interspersed with the separator string.


[14846] For example if separator is “,” and the elements of value are “apple”, “orange”, “grape”, and “pear”, Join(separator, value) returns “apple, orange, grape, pear”. A System.String. An array of Strings.


[14847] Join


[14848] [C#] public static string Join(string separator, string[ ] value, int startIndex, int count);


[14849] [C++] public: static String* Join(String* separator, String* value_gc[ ], int startIndex, int count);


[14850] [VB] Public Shared Function Join(ByVal separator As String, ByVal value( ) As String, ByVal startIndex As Integer, ByVal count As Integer) As String


[14851] [JScript] public static function Join(separator: String, value: String[ ], startIndex: int, count: int): String;


[14852] Description


[14853] Concatenates a specified separator String between each element of a specified String array, yielding a single concatenated string. Parameters specify the first array element and number of elements to use.


[14854] Return Value: A String consisting of the strings in value joined by separator.


[14855] For example if separator is “,” and the elements of value are “apple”, “orange”, “grape”, and “pear”, Join(separator, value, 1, 2) returns “orange, grape”. A System.String. An array of String. The first array element in value to use. The number of elements of value to use.


[14856] LastIndexOf


[14857] [C+] public int LastIndexOf(char value);


[14858] [C++] public: int LastIndexOf(_wchar_t value);


[14859] [VB] Public Function LastIndexOf(ByVal value As Char) As Integer


[14860] [JScript] public function LastIndexOf(value: Char): int; Reports the index position of the last occurrence of a specified Unicode character or String within this instance.


[14861] Description


[14862] Reports the index position of the last occurrence of a specified Unicode character within this instance.


[14863] Return Value: The index position of value if that character is found, or −1 if it is not.


[14864] This method begins searching at the last character position of this instance and precedes backwards towards the beginning until either value is found or the first character position has been examined. The search is case-sensitive. A Unicode character to seek.


[14865] LastIndexOf


[14866] [C#] public int LastIndexOf(string value);


[14867] [C++] public: int LastIndexOf(String* value);


[14868] [VB] Public Function LastIndexOf(ByVal value As String) As Integer


[14869] [JScript] public function LastIndexOf(value: String): int;


[14870] Description


[14871] Reports the index position of the last occurrence of a specified String within this instance.


[14872] Return Value: Value Meaning A positive index position.


[14873] This method begins searching at the last character position of this instance and precedes backwards towards the beginning until either value is found or the first character position has been examined. The search is case-sensitive. A String to seek.


[14874] LastIndexOf


[14875] [C#] public int LastIndexOf(char value, int startIndex);


[14876] [C++] public: int LastIndexOf(_wchar_t value, int startIndex);


[14877] [VB] Public Function LastIndexOf(ByVal value As Char, ByVal startIndex As Integer) As Integer


[14878] [JScript] public function LastIndexOf(value: Char, startIndex: int): int;


[14879] Description


[14880] Reports the index position of the last occurrence of a specified Unicode character within this instance. The search starts at a specified character position.


[14881] Return Value: The index position of value if that character is found, or −1 if it is not.


[14882] This method begins searching at the startIndex character position of this instance and precedes backwards towards the beginning until either value is found or the first character position has been examined. The search is case-sensitive. A Unicode character to seek. The starting position of a substring within this instance.


[14883] LastIndexOf


[14884] [C#] public int LastIndexOf(string value, int startIndex);


[14885] [C++] public: int LastIndexOf(String* value, int startIndex);


[14886] [VB] Public Function LastIndexOf(ByVal value As String, ByVal startIndex As Integer) As Integer


[14887] [JScript] public function LastIndexOf(value: String, startIndex: int): int;


[14888] Description


[14889] Reports the index position of the last occurrence of a specified String within this instance. The search starts at a specified character position.


[14890] Return Value: Value Meaning A positive index position.


[14891] This method begins searching at the startIndex character position of this instance and precedes backwards towards the beginning until either value is found or the first character position has been examined. The search is case-sensitive. The String to seek. The search starting position.


[14892] LastIndexOf


[14893] [C#] public int LastIndexOf(char value, int startIndex, int count);


[14894] [C++] public: int LastIndexOf(_wchar_t value, int startIndex, int count);


[14895] [VB] Public Function LastIndexOf(ByVal value As Char, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[14896] [JScript] public function LastIndexOf(value: Char, startIndex: int, count: int): int;


[14897] Description


[14898] Reports the index position of the last occurrence of the specified Unicode character in a substring within this instance. The search starts at a specified character position and examines a specified number of character positions.


[14899] Return Value: The index position of value if that character is found, or −1 if it is not.


[14900] This method begins searching at the startIndex character position of this instance and precedes backwards towards the beginning until either value is found or count character positions have been examined. The search is case-sensitive. A Unicode character to seek. The starting position of a substring within this instance. The number of character positions to examine.


[14901] LastIndexOf


[14902] [C#] public int LastIndexOf(string value, int startIndex, int count);


[14903] [C++] public: int LastIndexOf(String* value, int startIndex, int count);


[14904] [VB] Public Function LastIndexOf(ByVal value As String, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[14905] [JScript] public function LastIndexOf(value: String, startIndex: int, count: int): int;


[14906] Description


[14907] Reports the index position of the last occurrence of a specified String within this instance. The search starts at a specified character position and examines a specified number of character positions.


[14908] Return Value: Value Meaning A positive index position.


[14909] This method begins searching at the startIndex character position of this instance and precedes backwards towards the beginning until either value is found or count character positions have been examined. The search is case-sensitive. The String to seek. The search starting position. The number of character positions to examine.


[14910] LastIndexOfAny


[14911] [C#] public int LastIndexOfAny(char[ ] anyOf);


[14912] [C++] public: int LastIndexOfAny(_wchar_t anyOf_gc[ ]);


[14913] [VB] Public Function LastIndexOfAny(ByVal anyOf( ) As Char) As Integer


[14914] [JScript] public function LastIndexOfAny(anyOf: Char[ ]): int; Reports the index position of the last occurrence in this instance of one or more characters specified in a Unicode array.


[14915] Description


[14916] Reports the index position of the last occurrence in this instance of one or more characters specified in a Unicode array.


[14917] Return Value: The positive integer index of the last occurrence in this instance where any character in anyOf was found; otherwise, −1 if no character in anyOf was found.


[14918] This method begins searching at the last character position of this instance and precedes backwards towards the beginning until either a character in anyOf is found or the first character position has been examined. The search is case-sensitive. A Unicode character array containing one or more characters to seek.


[14919] LastIndexOfAny


[14920] [C#] public int LastIndexOfAny(char[ ] anyOf, int startIndex);


[14921] [C++] public: int LastIndexOfAny(_wchar_t anyOf_gc[ ], int startIndex);


[14922] [VB] Public Function LastIndexOfAny(ByVal anyOf( ) As Char, ByVal startIndex As Integer) As Integer


[14923] [JScript] public function LastIndexOfAny(anyOf: Char[ ], startIndex: int): int;


[14924] Description


[14925] Reports the index position of the last occurrence in this instance of one or more characters specified in a Unicode array. The search starts at a specified character position.


[14926] Return Value: The positive integer index of the last occurrence in this instance where any character in anyOf was found; otherwise, −1 if no character in anyOf was found.


[14927] This method begins searching at the startIndex character position of this instance and precedes backwards towards the beginning until either a character in anyOf is found or the first character position has been examined. The search is case-sensitive. A Unicode character array containing one or more characters to seek. The search starting position.


[14928] LastIndexOfAny


[14929] [C#] public int LastIndexOfAny(char[ ] anyOf, int startIndex, int count);


[14930] [C++] public: int LastIndexOfAny(_wchar_t anyOf_gc[ ], int startIndex, int count);


[14931] [VB] Public Function LastIndexOfAny(ByVal anyOf( ) As Char, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[14932] [JScript] public function LastIndexOfAny(anyOf: Char[ ], startIndex: int, count: it): int;


[14933] Description


[14934] Reports the index position of the last occurrence in this instance of one or more characters specified in a Unicode array. The search starts at a specified character position and examines a specified number of character positions.


[14935] Return Value: The positive integer index of the last occurrence in this instance where any character in anyOf was found; otherwise, −1 if no character in anyOf was found.


[14936] This method begins searching at the startIndex character position of this instance and precedes backwards towards the beginning until either a character in anyOf is found or count character positions have been examined. The search is case-sensitive. A Unicode character array containing one or more characters to seek. The search starting position. The number of character positions to examine.


[14937] op_Equality


[14938] [C#] public static bool operator ==(string a, string b);


[14939] [C++] public: static bool op_Equality(String* a, String* b);


[14940] [VB] returnValue=String.op_Equality(a, b)


[14941] [JScript] returnValue=a==b; Determines whether two specified instances of String or Object have the same value.


[14942] Description


[14943] Determines whether two specified String objects have the same value.


[14944] Return Value: true if the value of a is the same as the value of b; otherwise, false.


[14945] This operator is implemented using the System.String.Equals(System.Object) method, which means the comparands are tested for a combination of reference and value equality. The comparison is case-sensitive. A String or null. A String or null.


[14946] op_Inequality


[14947] [C#] public static bool operator !=(string a, string b);


[14948] [C++] public: static bool op_Inequality(String* a, String* b);


[14949] [VB] returnValue=String.op_Inequality(a, b)


[14950] [JScript] returnValue=a !=b; Determines whether two specified instances of String or Object have different values.


[14951] Description


[14952] Determines whether two specified String objects have different values.


[14953] Return Value: true if the value of a is different than the value of b; otherwise, false.


[14954] This operator is implemented using the System.String.Equals(System.Object) method, which means the comparands are tested for a combination of reference and value equality. The comparison is case-sensitive. A String or null. A String or null.


[14955] PadLeft


[14956] [C#] public string PadLeft(int totalWidth);


[14957] [C++] public: String* PadLeft(int totalWidth);


[14958] [VB] Public Function PadLeft(ByVal totalWidth As Integer) As String


[14959] [JScript] public function PadLeft(totalWidth: int): String; Right-aligns the characters in this instance, padding on the left with spaces or a specified Unicode character for a specified total length.


[14960] Description


[14961] Right-aligns the characters in this instance, padding with spaces on the left for a specified total length.


[14962] Return Value: A new String that is equivalent to this instance, but right-aligned and padded on the left with as many spaces as needed to create a length of totalWidth. The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters.


[14963] PadLeft


[14964] [C#] public string PadLeft(int totalWidth, char paddingChar);


[14965] [C++] public: String* PadLeft(int totalWidth, _wchar_t paddingChar);


[14966] [VB] Public Function PadLeft(ByVal totalWidth As Integer, ByVal paddingChar As Char) As String


[14967] [JScript] public function PadLeft(totalWidth: int, paddingChar: Char): String;


[14968] Description


[14969] Right-aligns the characters in this instance, padding on the left with a specified Unicode character for a specified total length.


[14970] Return Value: A new String that is equivalent to this instance, but right-aligned and padded on the left with as many paddingChar characters as needed to create a length of totalWidth. The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters. A Unicode padding character.


[14971] PadRight


[14972] [C#] public string PadRight(int totalWidth);


[14973] [C++] public: String* PadRight(int totalWidth);


[14974] [VB] Public Function PadRight(ByVal totalWidth As Integer) As String


[14975] [JScript] public function PadRight(totalWidth: int): String; Left-aligns the characters in this string, padding on the right with spaces or a specified Unicode character, for a specified total length.


[14976] Description


[14977] Left-aligns the characters in this string, padding with spaces on the right, for a specified total length.


[14978] Return Value: A new String that is equivalent to this instance, but left-aligned and padded on the right with as many spaces as needed to create a length of totalWidth. The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters.


[14979] PadRight


[14980] [C#] public string PadRight(int totalWidth, char paddingChar);


[14981] [C++] public: String* PadRight(int totalWidth, _wchar_t paddingChar);


[14982] [VB] Public Function PadRight(ByVal totalWidth As Integer, ByVal paddingChar As Char) As String


[14983] [JScript] public function PadRight(totalWidth: int, paddingChar: Char): String;


[14984] Description


[14985] Left-aligns the characters in this string, padding on the right with a specified Unicode character, for a specified total length.


[14986] Return Value: A new String that is equivalent to this instance, but left-aligned and padded on the right with as many paddingChar characters as needed to create a length of totalWidth. The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters. A Unicode padding character.


[14987] Remove


[14988] [C#] public string Remove(int startIndex, int count);


[14989] [C++] public: String* Remove(int startIndex, int count);


[14990] [VB] Public Function Remove(ByVal startIndex As Integer, ByVal count As Integer) As String


[14991] [JScript] public function Remove(startIndex: int, count: int): String;


[14992] Description


[14993] Deletes a specified number of characters from this instance beginning at a specified position.


[14994] Return Value: A new String that is equivalent to this instance less count number of characters.


[14995] For example, the following C# code prints “123456”. The position in this instance to begin deleting characters. The number of characters to delete.


[14996] Replace


[14997] [C#] public string Replace(char oldChar, char newChar);


[14998] [C++] public: String* Replace(_wchar_t oldChar, _wchar_t newChar);


[14999] [VB] Public Function Replace(ByVal oldChar As Char, ByVal newChar As Char) As String


[15000] [JScript] public function Replace(oldChar: Char, newChar: Char): String; Replaces all occurrences of a specified Unicode character or String in this instance, with another specified Unicode character or String.


[15001] Description


[15002] Replaces all occurrences of a specified Unicode character in this instance with another specified Unicode character.


[15003] Return Value: A String equivalent to this instance but with all instances of oldChar replaced with newChar. A Unicode character to be replaced. A Unicode character to replace all occurrences of oldChar.


[15004] Replace


[15005] [C#] public string Replace(string oldValue, string newValue);


[15006] [C++] public: String* Replace(String* oldValue, String* newValue);


[15007] [VB] Public Function Replace(ByVal oldValue As String, ByVal newValue As String) As String


[15008] [JScript] public function Replace(oldValue: String, newValue: String): String;


[15009] Description


[15010] Replaces all occurrences of a specified String in this instance, with another specified String.


[15011] Return Value: A String equivalent to this instance but with all instances of oldValue replaced with new Value. A String to be replaced. A String to replace all occurrences of oldValue.


[15012] Split


[15013] [C#] public string[ ] Split(params char[ ] separator);


[15014] [C++] public: String* Split(_wchar_t separator_gc[ ])_gc[ ];


[15015] [VB] Public Function Split(ByVal ParamArray separator( ) As Char) As String( )


[15016] [JScript] public function Split(separator: Char[ ]): String[ ]; Identifies the substrings in this instance that are delimited by one or more characters specified in an array, then places the substrings into a String array.


[15017] Description


[15018] Identifies the substrings in this instance that are delimited by one or more characters specified in an array, then places the substrings into a String array.


[15019] Return Value: An array consisting of a single element containing this instance, if this instance contains none of the characters in separator.


[15020] For example: Input separator Output “42,\n12, 19” new Char[ ] {‘,’, ‘ ’} {“42”, “ ”, “12”, “ ”, “19”} “42..12..19” new Char[ ] {‘.’} {“42”, “ ”, “12”, “ ”, “19”} “Banana” new Char[ ] {‘.’} {“Banana”} “Darb\nSmarba” new Char[ ] { } {“Darb”, “Smarba”} “Darb\nSmarba” null {“Darb”, “Smarba”} An array of Unicode characters that delimit the substrings in this instance, an empty array containing no delimiters, or null.


[15021] Split


[15022] [C#] public string[ ] Split(char[ ] separator, int count);


[15023] [C++] public: String* Split(_wchar_t separator_gc[ ], int count)_gc[ ];


[15024] [VB] Public Function Split(ByVal separator( ) As Char, ByVal count As Integer) As String( )


[15025] [JScript] public function Split(separator: Char[ ], count: int): String[ ];


[15026] Description


[15027] Identifies the substrings in this instance that are delimited by one or more characters specified in an array, then places the substrings into a String array. A parameter specifies the maximum number of array elements to return.


[15028] Return Value: An array consisting of a single element containing this instance, if this instance contains none of the characters in separator.


[15029] If there are more than count substrings in this instance, the first count minus 1 substrings are returned in the first count minus 1 elements of the return value, and the remaining characters in this instance are returned in the last element of the return value. An array of Unicode characters that delimit the substrings in this instance, an empty array containing no delimiters, or null. The maximum number of array elements to return.


[15030] StartsWith


[15031] [C#] public bool StartsWith(string value);


[15032] [C++] public: bool StartsWith(String* value);


[15033] [VB] Public Function StartsWith(ByVal value As String) As Boolean


[15034] [JScript] public function StartsWith(value: String): Boolean;


[15035] Description


[15036] Determines whether the beginning of this instance matches the specified String.


[15037] Return Value: true if value matches the beginning of this string or is System.String.Empty; otherwise false.


[15038] The StartsWith method makes a comparison at the beginning of the string, determines whether it matches this current instance, and returns a System.Boolean represetation of their relationship. The specified string must match the prefix or be an empty string (i.e., equals System.String.Empty). The comparison is case-sensitive. The String to seek.


[15039] Substring


[15040] [C#] public string Substring(int startIndex);


[15041] [C++] public: String* Substring(int startIndex);


[15042] [VB] Public Function Substring(ByVal startIndex As Integer) As String


[15043] [JScript] public function Substring(startIndex: int): String; Retrieves a substring from this instance.


[15044] Description


[15045] Retrieves a substring from this instance. The substring starts at a specified character position.


[15046] Return Value: A String equivalent to the substring that begins at startIndex in this instance.


[15047] The index is zero-based. The starting character position of a substring in this instance.


[15048] Substring


[15049] [C#] public string Substring(int startIndex, int length);


[15050] [C++] public: String* Substring(int startIndex, int length);


[15051] [VB] Public Function Substring(ByVal startIndex As Integer, ByVal length As Integer) As String


[15052] [JScript] public function Substring(startIndex: int, length: int): String;


[15053] Description


[15054] Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.


[15055] Return Value: A String equivalent to the substring of length length that begins at startIndex in this instance.


[15056] startIndex is zero-based. The index of the start of the substring. The number of characters in the substring.


[15057] IEnumerable.GetEnumerator


[15058] [C#] IEnumerator IEnumerable.GetEnumerator( );


[15059] [C++] IEnumerator* IEnumerable::GetEnumerator( );


[15060] [VB] Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator


[15061] [JScript] function IEnumerable.GetEnumerator( ): IEnumerator;


[15062] IConvertible.ToBoolean


[15063] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[15064] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[15065] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[15066] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[15067] IConvertible.ToByte


[15068] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[15069] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[15070] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[15071] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[15072] IConvertible.ToChar


[15073] [C#] char IConvertible.ToChar(IFormatProvider provider);


[15074] [C++] _wchar_t IConvertible::ToChar(IFormatProvider* provider);


[15075] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[15076] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[15077] IConvertible.ToDateTime


[15078] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[15079] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[15080] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[15081] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[15082] IConvertible.ToDecimal


[15083] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[15084] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[15085] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[15086] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[15087] IConvertible.ToDouble


[15088] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[15089] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[15090] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[15091] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[15092] IConvertible.ToInt16


[15093] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[15094] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[15095] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[15096] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[15097] IConvertible.ToInt32


[15098] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[15099] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[15100] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[15101] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[15102] IConvertible.ToInt64


[15103] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[15104] [C++] _int64 IConvertible::ToInt64(IFormatProvider* provider);


[15105] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[15106] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[15107] IConvertible.ToSByte


[15108] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[15109] [C++] char IConvertible::ToSByte(IFormatProvider* provider);


[15110] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[15111] [JScript] function IConvertible.ToSByte(provider IFormatProvider): SByte;


[15112] IConvertible.ToSingle


[15113] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[15114] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[15115] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[15116] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[15117] IConvertible.ToType


[15118] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[15119] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[15120] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[15121] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[15122] IConvertible.ToUInt16


[15123] [C#] ushort IConvertible.ToUInt16(IFormatProvider provider);


[15124] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[15125] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[15126] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[15127] IConvertible.ToUInt32


[15128] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[15129] [C++] unsigned it IConvertible::ToUInt32(IFormatProvider* provider);


[15130] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[15131] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[15132] IConvertible.ToUInt64


[15133] [C#] ulong IConvertible. ToUInt64(IFormatProvider provider);


[15134] [C++] unsigned_int64IConvertible::ToUInt64(IFormatProvider* provider);


[15135] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[15136] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[15137] ToCharArray


[15138] [C#] public char[ ] ToCharArray( );


[15139] [C++] public: _wchar_t ToCharArray( ) _gc[ ];


[15140] [VB] Public Function ToCharArray( ) As Char( )


[15141] [JScript] public function ToCharArray( ): Char[ ]; Copies the characters in this instance to a Unicode character array.


[15142] Description


[15143] Copies the characters in this instance to a Unicode character array.


[15144] Return Value: A Unicode character array whose elements are the individual characters of this instance.


[15145] ToCharArray


[15146] [C#] public char[ ] ToCharArray(int startIndex, int length);


[15147] [C++] public: _wchar_t ToCharArray(int startIndex, int length) _gc[ ];


[15148] [VB] Public Function ToCharArray(ByVal startIndex As Integer, ByVal length As Integer) As Char( )


[15149] [JScript] public function ToCharArray(startIndex: int, length: int): Char[ ];


[15150] Description


[15151] Copies the characters in a specified substring in this instance to a Unicode character array.


[15152] Return Value: A Unicode character array whose elements are the length number of characters in this instance starting from character position startIndex. The starting position of a substring in this instance. The length of the substring in this instance.


[15153] ToLower


[15154] [C#] public string ToLower( );


[15155] [C++] public: String* ToLower( );


[15156] [VB] Public Function ToLower( ) As String


[15157] [JScript] public function ToLower( ): String; Returns a copy of this String in lowercase.


[15158] Description


[15159] Returns a copy of this String in lowercase.


[15160] Return Value: A String in lowercase.


[15161] This method takes into account the current System.Globalization.CultureInfo information.


[15162] ToLower


[15163] [C#] public string ToLower(CultureInfo culture);


[15164] [C++] public: String* ToLower(CultureInfo* culture);


[15165] [VB] Public Function ToLower(ByVal culture As CultureInfo) As String


[15166] [JScript] public function ToLower(culture: CultureInfo): String;


[15167] Description


[15168] Returns a copy of this String in lowercase, taking into account specified culture-specific information.


[15169] Return Value: A String in lowercase. A System.Globalization.CultureInfo object that supplies culture-specific formatting information.


[15170] ToString


[15171] [C#] public override string ToString( );


[15172] [C++] public: String* ToString( );


[15173] [VB] Overrides Public Function ToString( ) As String


[15174] [JScript] public override function ToString( ): String; Converts the value of this instance to a String.


[15175] Description


[15176] Returns this instance of String; no actual conversion is performed.


[15177] Return Value: This String.


[15178] ToString


[15179] [C#] public string ToString( IFormatProvider provider);


[15180] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[15181] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[15182] [JScript] public function ToString(provider: IFormatProvider): String;


[15183] Description


[15184] Returns this instance of String; no actual conversion is performed.


[15185] Return Value: This String.


[15186] provider is reserved, and does not currently participate in this operation. (Reserved) An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[15187] ToUpper


[15188] [C#] public string ToUpper( );


[15189] [C++] public: String* ToUpper( );


[15190] [VB] Public Function ToUpper( ) As String


[15191] [JScript] public function ToUpper( ): String; Returns a copy of this String in uppercase.


[15192] Description


[15193] Returns a copy of this String in uppercase, using default properties.


[15194] Return Value: A new string in uppercase.


[15195] This method takes into account the current System.Globalization.CultureInfo information.


[15196] ToUpper


[15197] [C#] public string ToUpper(CultureInfo culture);


[15198] [C++] public: String* ToUpper(CultureInfo* culture);


[15199] [VB] Public Function ToUpper(ByVal culture As CultureInfo) As String


[15200] [JScript] public function ToUpper(culture: CultureInfo): String;


[15201] Description


[15202] Returns a copy of this String in uppercase, taking into account culture-specific information.


[15203] Return Value: A String in uppercase. A System.Globalization.CultureInfo object that supplies culture-specific formatting information.


[15204] Trim


[15205] [C#] public string Trim( );


[15206] [C++] public: String* Trim( );


[15207] [VB] Public Function Trim( ) As String


[15208] [JScript] public function Trim( ): String;


[15209] Description


[15210] Removes all occurrences of white space characters from the beginning and end of this instance.


[15211] Return Value: A new String equivalent to this instance after white space characters are removed.


[15212] This method defines white space characters as hexadecimal 0x9, 0xA, 0xB, 0xC, 0xD, 0x20, 0XA0, 0x2000, 0x2001, 0x 2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x200B, 0x3000, and 0xFEFF.


[15213] Trim


[15214] [C#] public string Trim(params char[ ] trimChars);


[15215] [C++] public: String* Trim(_wchar_t trimChars_gc[ ]);


[15216] [VB] Public Function Trim(ByVal ParamArray trimChars( ) As Char) As String


[15217] [JScript] public function Trim(trimChars: Char[ ]): String; Removes all occurrences of a set of specified characters from the beginning and end of this instance.


[15218] Description


[15219] Removes all occurrences of a set of characters specified in a Unicode character array from the beginning and end of this instance.


[15220] Return Value: The String that remains after all occurrences of the characters in trimChars are removed. If trimChars is null, white space characters are removed instead.


[15221] This method defines white space characters as hexadecimal 0x9, 0xA, 0xB, 0xC, 0xD, 0x20, 0XA0, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x200B, 0x3000, and 0xFEFF. An array of Unicode characters to be removed or null.


[15222] TrimEnd


[15223] [C#] public string TrimEnd(params char[ ] trimChars);


[15224] [C++] public: String* TrimEnd(_wchar_t trimChars_gc[ ]);


[15225] [VB] Public Function TrimEnd(ByVal ParamArray trimChars( ) As Char) As String


[15226] [JScript] public function TrimEnd(trimChars: Char[ ]): String;


[15227] Description


[15228] Removes all occurrences of a set of characters specified in a Unicode character array from the end of this instance.


[15229] Return Value: The String that remains after all occurrences of the characters in trimChars are removed. If trimChars is null, white space characters are removed instead.


[15230] This method defines white space characters as hexadecimal 0x9, 0xA, 0xB, 0xC, 0xD, 0x20, 0XA0, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x200B, 0x3000, and 0xFEFF. An array of Unicode characters to be removed or null.


[15231] TrimStart


[15232] [C#] public string TrimStart(params char[ ] trimChars);


[15233] [C++] public: String* TrimStart(_wchar_t trimChars_gc[ ]);


[15234] [VB] Public Function TrimStart(ByVal ParamArray trimChars( ) As Char) As String


[15235] [JScript] public function TrimStart(trimChars: Char[ ]): String;


[15236] Description


[15237] Removes all occurrences of a set of characters specified in a Unicode character array from the beginning of this instance.


[15238] Return Value: The String that remains after all occurrences of characters in trimChars are removed. If trimChars is null , white space characters are removed instead.


[15239] This method defines white space characters as hexadecimal 0x9, 0xA, 0xB, 0xC, 0xD, 0x20, 0XA0, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x200B, 0x3000, and 0xFEFF. An array of Unicode characters to be removed or null.


[15240] SystemException class (System)


[15241] TrimStart


[15242] Description


[15243] Defines the base class for predefined exceptions in the System namespace.


[15244] System.SystemException is thrown by the common language runtime when errors occur that are nonfatal and recoverable by user programs. These errors result from failed runtime check (such as an array out-of-bound error), and can occur during the execution of any method.


[15245] SystemException


[15246] Example Syntax:


[15247] TrimStart


[15248] [C#] public SystemException( );


[15249] [C++] public: SystemException( );


[15250] [VB] Public Sub New( )


[15251] [JScript] public function SystemException( ); Initializes a new instance of the System.SystemException class.


[15252] Description


[15253] Initializes a new instance of the System.SystemException class with default properties.


[15254] The following table shows the initial property values for an instance of System.SystemException.


[15255] SystemException


[15256] Example Syntax:


[15257] TrimStart


[15258] [C#] public SystemException(string message);


[15259] [C++] public: SystemException(String* message);


[15260] [VB] Public Sub New(ByVal message As String)


[15261] [JScript] public function SystemException(message: String);


[15262] Description


[15263] Initializes a new instance of the System.SystemException class with a specified error message.


[15264] The following table shows the initial property values for an instance of System.SystemException. The error message that explains the reason for the exception.


[15265] SystemException


[15266] Example Syntax:


[15267] TrimStart


[15268] [C#] protected SystemException(SerializationInfo info, StreamingContext context);


[15269] [C++] protected: SystemException(SerializationInfo* info, StreamingContext context);


[15270] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[15271] [JScript] protected function SystemException(info: SerializationInfo, context: StreamingContext);


[15272] Description


[15273] Initializes a new instance of the System.SystemException class with serialized data.


[15274] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see . The object that holds the serialized object data. The contextual information about the source or destination.


[15275] SystemException


[15276] Example Syntax:


[15277] TrimStart


[15278] [C#] public SystemException(string message, Exception innerException); [C++] public: SystemException(String* message, Exception* innerException);


[15279] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[15280] [JScript] public function SystemException(message: String, innerException: Exception);


[15281] Description


[15282] Initializes a new instance of the System.SystemException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[15283] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[15284] HelpLink


[15285] HResult


[15286] InnerException


[15287] Message


[15288] Source


[15289] StackTrace


[15290] TargetSite


[15291] ThreadStaticAttribute class (System)


[15292] ToString


[15293] Description


[15294] Indicates that the value of a static field is unique for each thread.


[15295] A static field marked with System.ThreadStaticAttribute is not shared between threads. Each executing thread has a separate instance of the static field, and independently set and get values for that field. If the static field is accessed on a different thread, it will contain a different value.


[15296] ThreadStaticAttribute


[15297] Example Syntax:


[15298] ToString


[15299] [C#] public ThreadStaticAttribute( );


[15300] [C++] public: ThreadStaticAttribute( );


[15301] [VB] Public Sub New( )


[15302] [JScript] public function ThreadStaticAttribute( );


[15303] Description


[15304] Initializes a new instance of the System.ThreadStaticAttribute class.


[15305] Typeld


[15306] TimeSpan structure (System)


[15307] ToString


[15308] Description


[15309] Represents a time interval.


[15310] The value of an instance of TimeSpan represents a period of time. That value is the number of “ticks” contained in the instance. A tick is the smallest unit of time that can be specified, and is equal to 100 nanoseconds. Both the specification of a number of ticks and the value of a TimeSpan can be positive or negative.


[15311] ToString


[15312] [C#] public static readonly TimeSpan MaxValue;


[15313] [C++] public: static TimeSpan MaxValue;


[15314] [VB] Public Shared ReadOnly MaxValue As TimeSpan


[15315] [JScript] public static var MaxValue: TimeSpan;


[15316] Description


[15317] A constant whose value is the maximum TimeSpan value.


[15318] The value of this constant is equivalent to System.Int64.MaxValue ticks. The string representation of this value is positive 10675199.02:48:05.4775807.


[15319] ToString


[15320] [C#] public static readonly TimeSpan MinValue;


[15321] [C++] public: static TimeSpan MinValue;


[15322] [VB] Public Shared ReadOnly MinValue As TimeSpan


[15323] [JScript] public static var MinValue: TimeSpan;


[15324] Description


[15325] A constant whose value is the minimum TimeSpan value.


[15326] The value of this constant is equivalent to System.Int64. MinValue ticks. The string representation of this value is negative 10675199.02:48:05.4775808.


[15327] ToString


[15328] [C#] public const long TicksPerDay;


[15329] [C++] public: const_int64 TicksPerDay;


[15330] [VB] Public Const TicksPerDay As Long


[15331] [JScript] public var TicksPerDay: long;


[15332] Description


[15333] A constant whose value is the number of ticks equivalent to 1 day.


[15334] The value of this constant is 864 billion; that is, 864000000000.


[15335] ToString


[15336] [C#] public const long TicksPerHour;


[15337] [C++] public: const_int64 TicksPerHour;


[15338] [VB] Public Const TicksPerHour As Long


[15339] [JScript] public var TicksPerHour: long;


[15340] Description


[15341] A constant whose value is the number of ticks equivalent to 1 hour.


[15342] The value of this constant is 36 billion; that is, 36000000000.


[15343] ToString


[15344] [C#] public const long TicksPerMillisecond;


[15345] [C++] public: const_int64 TicksPerMillisecond;


[15346] [VB] Public Const TicksPerMillisecond As Long


[15347] [JScript] public var TicksPerMillisecond: long;


[15348] Description


[15349] A constant whose value is the number of ticks equivalent to 1 millisecond.


[15350] The value of this constant is 10 thousand; that is, 10000.


[15351] ToString


[15352] [C#] public const long TicksPerMinute;


[15353] [C++] public: const_int64 TicksPerMinute;


[15354] [VB] Public Const TicksPerMinute As Long


[15355] [JScript] public var TicksPerMinute: long;


[15356] Description


[15357] A constant whose value is the number of ticks equivalent to 1 minute.


[15358] The value of this constant is 600 million; that is, 600000000.


[15359] ToString


[15360] [C#] public const long TicksPerSecond;


[15361] [C++] public: const_int64 TicksPerSecond;


[15362] [VB] Public Const TicksPerSecond As Long


[15363] [JScript] public var TicksPerSecond: long;


[15364] Description


[15365] A constant whose value is the number of ticks equivalent to 1 second.


[15366] The value of this constant is 10 million; that is, 10000000.


[15367] ToString


[15368] [C#] public static readonly TimeSpan Zero;


[15369] [C++] public: static TimeSpan Zero;


[15370] [VB] Public Shared ReadOnly Zero As TimeSpan


[15371] [JScript] public static var Zero: TimeSpan;


[15372] Description


[15373] A constant whose value is the zero TimeSpan value.


[15374] This constant provides a convenient source for zero in time calculations.


[15375] TimeSpan


[15376] Example Syntax:


[15377] ToString


[15378] [C#] public TimeSpan(long ticks);


[15379] [C++] public: TimeSpan(_int64 ticks);


[15380] [VB] Public Sub New(ByVal ticks As Long)


[15381] [JScript] public function TimeSpan(ticks: long); Initializes a new instance of the TimeSpan class.


[15382] Description


[15383] Initializes a new instance of the TimeSpan class to the specified number of ticks. A time period in the form of ticks.


[15384] TimeSpan


[15385] Example Syntax:


[15386] ToString


[15387] [C#] public TimeSpan(int hours, int minutes, int seconds);


[15388] [C++] public: TimeSpan(int hours, int minutes, int seconds);


[15389] [VB] Public Sub New(ByVal hours As Integer, ByVal minutes As Integer, ByVal seconds As Integer)


[15390] [JScript] public function TimeSpan(hours: int, minutes: int, seconds: int);


[15391] Description


[15392] Initializes a new instance of the TimeSpan class to a specified number of hours, minutes, and seconds.


[15393] The specified hours , minutes , and seconds are converted to ticks, and that value initializes this instance. Number of hours. Number of minutes. Number of seconds.


[15394] TimeSpan


[15395] Example Syntax:


[15396] ToString


[15397] [C++] public TimeSpan(int days, int hours, int minutes, int seconds);


[15398] [C++] public: TimeSpan(int days, int hours, int minutes, int seconds);


[15399] [VB] Public Sub New(ByVal days As Integer, ByVal hours As Integer, ByVal minutes As Integer, ByVal seconds As Integer)


[15400] [JScript] public function TimeSpan(days: int, hours: int, minutes: int, seconds: int);


[15401] Description


[15402] Initializes a new instance of the TimeSpan class to a specified number of days, hours, minutes, and seconds.


[15403] The specified days, hours, minutes, and seconds are converted to ticks, and that value initializes this instance. Number of days. Number of hours. Number of minutes. Number of seconds.


[15404] TimeSpan


[15405] Example Syntax:


[15406] ToString


[15407] [C#] public TimeSpan(int days, int hours, int minutes, int seconds, int milliseconds);


[15408] [C++] public: TimeSpan(int days, int hours, int minutes, int seconds, int milliseconds);


[15409] [VB] Public Sub New(ByVal days As Integer, ByVal hours As Integer, ByVal minutes As Integer, ByVal seconds As Integer, ByVal milliseconds As Integer)


[15410] [JScript] public function TimeSpan(days: int, hours: int, minutes: int, seconds: int, milliseconds: int);


[15411] Description


[15412] Initializes a new instance of the TimeSpan class to a specified number of days, hours, minutes, seconds, and milliseconds.


[15413] The specified days, hours, minutes, seconds, and milliseconds are converted to ticks, and that value initializes this instance. Number of days. Number of hours. Number of minutes. Number of seconds. Number of milliseconds.


[15414] Days


[15415] ToString


[15416] [C#] public int Days {get;}


[15417] [C++] public: _property int get_Days( );


[15418] [VB] Public ReadOnly Property Days As Integer


[15419] [JScript] public function get Days( ): int;


[15420] Description


[15421] Gets the number of whole days represented by this instance.


[15422] DateTime values can be represented as expressions of the form “d.hh:mm:ss.ff” where the “d” component is days, “hh” is hours, “mm” is minutes, “ss” is seconds, and “ff” is fractions of a second. The value of this property is the days component.


[15423] Hours


[15424] ToString


[15425] [C#] public int Hours {get;}


[15426] [C++] public: _property int get_Hours( );


[15427] [VB] Public ReadOnly Property Hours As Integer


[15428] [JScript] public function get Hours( ): int;


[15429] Description


[15430] Gets the number of whole hours represented by this instance.


[15431] DateTime values can be represented as expressions of the form “d.hh:mm:ss.ff” where the “d” component is days, “hh” is hours, “mm” is minutes, “ss” is seconds, and “ff” is fractions of a second. The value of this property is the hours component.


[15432] Milliseconds


[15433] ToString


[15434] [C#] public int Milliseconds {get;}


[15435] [C++] public: _property int get_Milliseconds( );


[15436] [VB] Public ReadOnly Property Milliseconds As Integer


[15437] [JScript] public function get Milliseconds( ): int;


[15438] Description


[15439] Gets the number of whole milliseconds represented by this instance.


[15440] DateTime values can be represented as expressions of the form “d.hh:mm:ss.ff” where the “d” component is days, “hh” is hours, “mm” is minutes, “ss” is seconds, and “ff” is fractions of a second. The value of this property is the fractions of a second component expressed in milliseconds.


[15441] Minutes


[15442] ToString


[15443] [C#] public int Minutes {get;}


[15444] [C++] public: _property int get_Minutes( );


[15445] [VB] Public ReadOnly Property Minutes As Integer


[15446] [JScript] public function get Minutes( ): int;


[15447] Description


[15448] Gets the number of whole minutes represented by this instance.


[15449] DateTime values can be represented as expressions of the form “d.hh:mm:ss.ff” where the “d” component is days, “hh” is hours, “mm” is minutes, “ss” is seconds, and “ff” is fractions of a second. The value of this property is the minutes component.


[15450] Seconds


[15451] ToString


[15452] [C#] public int Seconds {get;}


[15453] [C++] public: _property int get_Seconds( );


[15454] [VB] Public ReadOnly Property Seconds As Integer


[15455] [JScript] public function get Seconds( ): int;


[15456] Description


[15457] Gets the number of whole seconds represented by this instance.


[15458] DateTime values can be represented as expressions of the form “d.hh:mm:ss.ff” where the “d” component is days, “hh” is hours, “mm” is minutes, “ss” is seconds, and “ff” is fractions of a second. The value of this property is the seconds component.


[15459] Ticks


[15460] ToString


[15461] [C#] public long Ticks {get;}


[15462] [C++] public: _property_int64 get_Ticks( );


[15463] [VB] Public ReadOnly Property Ticks As Long


[15464] [JScript] public function get Ticks( ): long;


[15465] Description


[15466] Gets the value of this instance in ticks.


[15467] The smallest unit of time is the “tick,” which is equal to 100-nanoseconds. A tick can be negative or positive.


[15468] TotalDays


[15469] ToString


[15470] [C#] public double TotalDays {get;}


[15471] [C++] public: _property double get_TotalDays( );


[15472] [VB] Public ReadOnly Property TotalDays As Double


[15473] [JScript] public function get TotalDays( ): double;


[15474] Description


[15475] Gets the value of this instance expressed in whole and fractional days.


[15476] TotalHours


[15477] ToString


[15478] [C#] public double TotalHours {get;}


[15479] [C++] public: _property double get_TotalHours( );


[15480] [VB] Public ReadOnly Property TotalHours As Double


[15481] [JScript] public function get TotalHours( ): double;


[15482] Description


[15483] Gets the value of this instance expressed in whole and fractional hours.


[15484] TotalMilliseconds


[15485] ToString


[15486] [C#] public double TotalMilliseconds {get;}


[15487] [C++] public: _property double get_TotalMilliseconds( );


[15488] [VB] Public ReadOnly Property TotalMilliseconds As Double


[15489] [JScript] public function get TotalMilliseconds( ): double;


[15490] Description


[15491] Gets the value of this instance expressed in whole and fractional milliseconds.


[15492] TotalMinutes


[15493] ToString


[15494] [C#] public double TotalMinutes {get;}


[15495] [C++] public: _property double get_TotalMinutes( );


[15496] [VB] Public ReadOnly Property TotalMinutes As Double


[15497] [JScript] public function get TotalMinutes( ): double;


[15498] Description


[15499] Gets the value of this instance expressed in whole and fractional minutes.


[15500] TotalSeconds


[15501] ToString


[15502] [C#] public double TotalSeconds {get;}


[15503] [C++] public: _Property double get_TotalSeconds( );


[15504] [VB] Public ReadOnly Property TotalSeconds As Double


[15505] [JScript] public function get TotalSeconds( ): double;


[15506] Description


[15507] Gets the value of this instance expressed in whole and fractional seconds.


[15508] Add


[15509] [C#] public TimeSpan Add(TimeSpan ts);


[15510] [C++] public: TimeSpan Add(TimeSpan ts);


[15511] [VB] Public Function Add(ByVal ts As TimeSpan) As TimeSpan


[15512] [JScript] public function Add(ts: TimeSpan): TimeSpan;


[15513] Description


[15514] Adds the specified TimeSpan to this instance.


[15515] Return Value: A TimeSpan that represents the value of this instance plus the value of ts.


[15516] The result must be between System.TimeSpan.MinValue and System.TimeSpan.MaxValue, otherwise an exception is thrown. A TimeSpan instance.


[15517] Compare


[15518] [C#] public static int Compare(TimeSpan t1, TimeSpan t2);


[15519] [C++] public: static int Compare(TimeSpan t1, TimeSpan t2);


[15520] [VB] Public Shared Function Compare(ByVal t1 As TimeSpan, ByVal t2 As TimeSpan) As Integer


[15521] [JScript] public static function Compare(t1: TimeSpan, t2 TimeSpan): int;


[15522] Description


[15523] Compares two TimeSpan values and returns an integer that indicates their relationship.


[15524] Return Value: Value Condition −1 t1 is less than t20 t1 is equal to t21 t1 is greater than t2 The first TimeSpan instance. The second TimeSpan instance.


[15525] CompareTo


[15526] [C#] public int CompareTo(object value);


[15527] [C++] public: _sealed int CompareTo(Object* value);


[15528] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[15529] [JScript] public function CompareTo(value: Object): int;


[15530] Description


[15531] Compares this instance to a specified object and returns an indication of their relative values.


[15532] Return Value: Value Condition −1 The value of this instance is less than the value of value.


[15533] Any instance of TimeSpan, regardless of its value, is considered greater than null. An object to compare, or null.


[15534] Duration


[15535] [C#] public TimeSpan Duration( );


[15536] [C++] public: TimeSpan Duration( );


[15537] [VB] Public Function Duration( ) As TimeSpan


[15538] [JScript] public function Duration( ): TimeSpan;


[15539] Description


[15540] Returns a TimeSpan whose value is the absolute value of this instance.


[15541] Return Value: A TimeSpan whose value is the value of this instance and converted if necessary to a positive number.


[15542] The value of a TimeSpan, which is the number of ticks it contains, can be positive or negative.


[15543] Equals


[15544] [C#] public override bool Equals(object value);


[15545] [C++] public: bool Equals(Object* value);


[15546] [VB] Overrides Public Function Equals(ByVal value As Object) As Boolean


[15547] [JScript] public override function Equals(value: Object): Boolean; Returns a value indicating whether two instances of TimeSpan are equal.


[15548] Description


[15549] Returns a value indicating whether this instance is equal to a specified object.


[15550] Return Value: true if value is a TimeSpan that represents the same time as this instance; otherwise, false. An object to compare with this instance.


[15551] Equals


[15552] [C#] public static new bool Equals(TimeSpan t1, TimeSpan t2);


[15553] [C++] public: static bool Equals(TimeSpan t1, TimeSpan t2);


[15554] [VB] Shadows Public Shared Function Equals(ByVal t1 As TimeSpan, ByVal t2 As TimeSpan) As Boolean


[15555] [JScript] public static hide function Equals(t1: TimeSpan, t2: TimeSpan) Boolean;


[15556] Description


[15557] Returns a value indicating whether two specified instances of TimeSpan are equal.


[15558] Return Value: true if the values of t1 and t2 are equal; otherwise, false . An instance of TimeSpan. An instance of TimeSpan.


[15559] FromDays


[15560] [C#] public static TimeSpan FromDays(double value);


[15561] [C++] public: static TimeSpan FromDays(double value);


[15562] [VB] Public Shared Function FromDays(ByVal value As Double) As TimeSpan


[15563] [JScript] public static function FromDays(value: double): TimeSpan;


[15564] Description


[15565] Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.


[15566] Return Value: A TimeSpan that represents value.


[15567] If value is System.Double.Positivelnfinity, System.TimeSpan.MaxValue is returned. If value is System.Double.Negativelnfinity or System.Double.NaN, System.TimeSpan.MinValue is returned. A number of days, accurate to the nearest millisecond.


[15568] FromHours


[15569] [C#] public static TimeSpan FromHours(double value);


[15570] [C++] public: static TimeSpan FromHours(double value);


[15571] [VB] Public Shared Function FromHours(ByVal value As Double) As TimeSpan


[15572] [JScript] public static function FromHours(value: double): TimeSpan;


[15573] Description


[15574] Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.


[15575] Return Value: A TimeSpan that represents value.


[15576] If value is System.Double.Positivelnfinity, System.TimeSpan.MaxValue is returned. If value is System.Double.Negativelnfinity or System.Double.NaN, System.TimeSpan.MinValue is returned. A number of hours accurate to the nearest millisecond.


[15577] FromMilliseconds


[15578] [C#] public static TimeSpan FromMilliseconds(double value);


[15579] [C++] public: static TimeSpan FromMilliseconds(double value);


[15580] [VB] Public Shared Function FromMilliseconds(ByVal value As Double) As TimeSpan


[15581] [JScript] public static function FromMilliseconds(value: double): TimeSpan;


[15582] Description


[15583] Returns a TimeSpan that represents a specified number of milliseconds.


[15584] Return Value: A TimeSpan that represents value.


[15585] If value is System.Double.Positivelnfinity, System.TimeSpan.MaxValue is returned. If value is System.Double.Negativelnfinity or System.Double.NaN, System.TimeSpan.MinValue is returned. A number of milliseconds.


[15586] FromMinutes


[15587] [C#] public static TimeSpan FromMinutes(double value);


[15588] [C++] public: static TimeSpan FromMinutes(double value);


[15589] [VB] Public Shared Function FromMinutes(ByVal value As Double) As TimeSpan


[15590] [JScript] public static function FromMinutes(value: double): TimeSpan;


[15591] Description


[15592] Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.


[15593] Return Value: A TimeSpan that represents value.


[15594] If value is System.Double.Positivelnfinity, System.TimeSpan.MaxValue is returned. If value is System.Double.Negativelnflnity or System.Double.NaN, System.TimeSpan.MinValue is returned. A number of minutes, accurate to the nearest millisecond.


[15595] FromSeconds


[15596] [C#] public static TimeSpan FromSeconds(double value);


[15597] [C++] public: static TimeSpan FromSeconds(double value);


[15598] [VB] Public Shared Function FromSeconds(ByVal value As Double) As TimeSpan


[15599] [JScript] public static function FromSeconds(value: double): TimeSpan;


[15600] Description


[15601] Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.


[15602] Return Value: A TimeSpan that represents value.


[15603] If value is System.Double.Positivelnfinity, System.TimeSpan.MaxValue is returned. If value is System.Double.Negativelnfinity or System.Double.NaN, System.TimeSpan.MinValue is returned. A number of seconds, accurate to the nearest millisecond.


[15604] FromTicks


[15605] [C#] public static TimeSpan FromTicks(long value);


[15606] [C++] public: static TimeSpan FromTicks(int64 value);


[15607] [VB] Public Shared Function FromTicks(ByVal value As Long) As TimeSpan


[15608] [JScript] public static function FromTicks(value: long): TimeSpan;


[15609] Description


[15610] Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.


[15611] Return Value: A TimeSpan with a value of value.


[15612] This is a convenience method with the same behavior as the System.TimeSpan.# ctor constructor. A number of ticks that represent a time.


[15613] GetHashCode


[15614] [C#] public override int GetHashCode( );


[15615] [C++] public: int GetHashCode( );


[15616] [VB] Overrides Public Function GetHashCode( ) As Integer


[15617] [JScript] public override function GetHashCode( ): int;


[15618] Description


[15619] Returns a hash code for this instance.


[15620] Return Value: A 32-bit signed integer hash code.


[15621] Two TimeSpan objects might have the same hash code even though they represent different time values.


[15622] Negate


[15623] [C#] public TimeSpan Negate( );


[15624] [C++] public: TimeSpan Negate( );


[15625] [VB] Public Function Negate( ) As TimeSpan


[15626] [JScript] public function Negate( ): TimeSpan;


[15627] Description


[15628] Returns a TimeSpan whose value is the negated value of this instance.


[15629] Return Value: The same numeric value as this instance, but with the opposite sign.


[15630] op_Addition


[15631] [C#] public static TimeSpan operator+(TimeSpan t1, TimeSpan t2);


[15632] [C++] public: static TimeSpan op_Addition(TimeSpan t1, TimeSpan t2);


[15633] [VB] returnValue=TimeSpan.op_Addition(t1, t2)


[15634] [JScript] returnValue=t1+t2;


[15635] Description


[15636] Adds two specified TimeSpan instances.


[15637] Return Value: A TimeSpan whose value is the sum of the values of t1 and t2. A TimeSpan A TimeSpan


[15638] op_Equality


[15639] [C#] public static bool operator==(TimeSpan t1, TimeSpan t2);


[15640] [C++] public: static bool op_Equality(TimeSpan t1, TimeSpan t2);


[15641] [VB] returnValue=TimeSpan.op_Equality(t1, t2)


[15642] [JScript] returnValue=t1==t2;


[15643] Description


[15644] Indicates whether two TimeSpan instances are equal.


[15645] Return Value: true if the values of t1 and t2 are equal; otherwise, false . A TimeSpan A TimeSpan


[15646] op_GreaterThan


[15647] [C#] public static bool operator>(TimeSpan t1, TimeSpan t2);


[15648] [C++] public: static bool op_GreaterThan(TimeSpan t1, TimeSpan t2);


[15649] [VB] returnValue=TimeSpan.op_GreaterThan(t1, t2)


[15650] [JScript] returnValue=t1>t2;


[15651] Description


[15652] Indicates whether a specified TimeSpan is greater than another specified TimeSpan.


[15653] Return Value: true if the value of t1 is greater than the value of t2; otherwise, false. A TimeSpan A TimeSpan


[15654] op_GreaterThanOrEqual


[15655] [C#] public static bool operator>=(TimeSpan t1, TimeSpan t2);


[15656] [C++] public: static bool op_GreaterThanOrEqual(TimeSpan t1, TimeSpan t2);


[15657] [VB] returnValue TimeSpan.op_GreaterThanOrEqual(t1, t2)


[15658] [JScript] returnValue=t1>=t2;


[15659] Description


[15660] Indicates whether a specified TimeSpan is greater than or equal to another specified TimeSpan.


[15661] Return Value: true if the value of t1 is greater than or equal to the value of t2; otherwise, false. A TimeSpan A TimeSpan


[15662] op_Inequality


[15663] [C#] public static bool operator !=(TimeSpan t1, TimeSpan t2);


[15664] [C++] public: static bool op_Inequality(TimeSpan t1, TimeSpan t2);


[15665] [VB] returnValue=TimeSpan.op_Inequality(t1, t2)


[15666] [JScript] retunValue=t1 !=t2;


[15667] Description


[15668] Indicates whether two TimeSpan instances are not equal.


[15669] Return Value: true if the values of t1 and t2 are not equal; otherwise, false. A TimeSpan A TimeSpan


[15670] op_LessThan


[15671] [C#] public static bool operator


[15672] [C++] public: static bool op_LessThan(TimeSpan t1, TimeSpan t2);


[15673] [VB] returnValue TimeSpan.op_LessThan(t1, t2)


[15674] [JScript] returnValue=t1 <t2;


[15675] Description


[15676] Indicates whether a specified TimeSpan is less than another specified TimeSpan.


[15677] Return Value: true if the value of t1 is less than the value of t2; otherwise, false. A TimeSpan A TimeSpan


[15678] op_LessThanOrEqual


[15679] [C#] public static bool operator<=(TimeSpan t1, TimeSpan t2);


[15680] [C++] public: static bool op_LessThanOrEqual(TimeSpan t1, TimeSpan t2);


[15681] [VB] returnValue=TimeSpan.op_LessThanOrEqual(t1, t2)


[15682] [JScript] returnValue=t1 <=t2;


[15683] Description


[15684] Indicates whether a specified TimeSpan is less than or equal to another specified TimeSpan.


[15685] Return Value: true if the value of t1 is less than or equal to the value of t2; otherwise, false. A TimeSpan A TimeSpan


[15686] op_Subtraction


[15687] [C#] public static TimeSpan operator -( TimeSpan t1, TimeSpan t2);


[15688] [C++] public: static TimeSpan op_Subtraction(TimeSpan t1, TimeSpan t2);


[15689] [VB] returnValue=TimeSpan.op_Subtraction(t1, t2)


[15690] [JScript] returnValue=t1-t2;


[15691] Description


[15692] Subtracts a specified TimeSpan from another specified TimeSpan.


[15693] Return Value: A TimeSpan whose value is the result of the value of t1 minus the value of t2. A TimeSpan A TimeSpan


[15694] op_UnaryNegation


[15695] [C#] public static TimeSpan operator -(TimeSpan t);


[15696] [C++] public: static TimeSpan op_UnaryNegation(TimeSpan t);


[15697] [VB] returnValue=TimeSpan.op_UnaryNegation(t)


[15698] [JScript] returnValue=-t;


[15699] Description


[15700] Returns a TimeSpan whose value is the negated value of the specified instance.


[15701] Return Value: A TimeSpan with the same numeric value as this instance, but the opposite sign. A TimeSpan


[15702] op_UnaryPlus


[15703] [C#] public static TimeSpan operator+( TimeSpan t);


[15704] [C++] public: static TimeSpan op_UnaryPlus(TmeSpan t);


[15705] [VB] returnValue=TimeSpan.op_UnaryPlus(t)


[15706] [JScript] returnValue=+t;


[15707] Description


[15708] Returns the specified instance of TimeSpan.


[15709] Return Value: Returns t. A TimeSpan


[15710] Parse


[15711] [C#] public static TimeSpan Parse(string s);


[15712] [C++] public: static TimeSpan Parse(String* s);


[15713] [VB] Public Shared Function Parse(ByVal s As String) As TimeSpan


[15714] [JScript] public static function Parse(s: String): TimeSpan;


[15715] Description


[15716] Constructs a TimeSpan from a time indicated by a specified String.


[15717] Return Value: A TimeSpan that corresponds to s. s contains a specification of the form: [ws] [-] [d.]hh:mm:ss[.ff] [ws] Items in square brackets (‘[’ and ‘]’) are optional, colons and periods (‘:’ and ‘.’) are literal characters, and other items are as follows. A String.


[15718] Subtract


[15719] [C#] public TimeSpan Subtract(TimeSpan ts);


[15720] [C++] public: TimeSpan Subtract(TimeSpan ts);


[15721] [VB] Public Function Subtract(ByVal ts As TimeSpan) As TimeSpan


[15722] [JScript] public function Subtract(ts: TimeSpan): TimeSpan;


[15723] Description


[15724] Subtracts the specified TimeSpan object from this instance.


[15725] Return Value: A TimeSpan whose value is the result of the value of this instance minus the value of ts.


[15726] The result must be between System.TimeSpan.MinValue and System.TimeSpan.MaxValue, otherwise an exception is thrown. A TimeSpan instance.


[15727] ToString


[15728] [C#] public override string ToString( );


[15729] [C++] public: String* ToString( );


[15730] [VB] Overrides Public Function ToString( ) As String


[15731] [JScript] public override function ToString( ): String; Returns the String representation of the value of this instance.


[15732] Description


[15733] Returns the String representation of the value of this instance.


[15734] Return Value: A System.String that represents the value of this instance. The format of the return value is of the form: [-] [d.]hh:mm:ss[.ff] Items in square brackets (‘[’ and ‘]’) are optional, colons and periods (‘:’ and ‘.’) are literal characters, and other items are as follows.


[15735] The return value of this method can be consumed by System.TimeSpan.Parse(System.String).


[15736] TimeZone class (System)


[15737] ToString


[15738] Description


[15739] Represents a time zone.


[15740] A time zone is a geographical region in which the same standard time is used.


[15741] TimeZone


[15742] Example Syntax:


[15743] ToString


[15744] [C#] protected TimeZone( );


[15745] [C++] protected: TimeZone( );


[15746] [VB] Protected Sub New( )


[15747] [JScript] protected function TimeZone( );


[15748] Description


[15749] Initializes a new instance of the System.TimeZone class.


[15750] CurrentTimeZone


[15751] ToString


[15752] [C#] public static TimeZone CurrentTimeZone {get;}


[15753] [C++] public: _property static TimeZone* get_CurrentTimeZone( );


[15754] [VB] Public Shared ReadOnly Property CurrentTimeZone As TimeZone


[15755] [JScript] public static function get CurrentTimeZone( ): TimeZone;


[15756] Description


[15757] Gets the time zone of the current computer system.


[15758] DaylightName


[15759] ToString


[15760] [C#] public abstract string DaylightName {get;}


[15761] [C++] public: _property virtual String* get_DaylightName( )=0;


[15762] [VB] MustOverride Public ReadOnly Property DaylightName As String


[15763] [JScript] public abstract function get DaylightName( ): String;


[15764] Description


[15765] Gets the daylight saving time zone name.


[15766] If daylight saving time is not used in the time zone, an empty string (“ ”) is returned.


[15767] StandardName


[15768] ToString


[15769] [C#] public abstract string StandardName {get;}


[15770] [C++] public: _property virtual String* get_StandardName( )=0;


[15771] [VB] MustOverride Public ReadOnly Property StandardName As String


[15772] [JScript] public abstract function get StandardName( ): String;


[15773] Description


[15774] Gets the standard time zone name.


[15775] GetDaylightChanges


[15776] [C#] public abstract DaylightTime GetDaylightChanges(int year);


[15777] [C++] public: virtual DaylightTime* GetDaylightChanges(int year)=0;


[15778] [VB] MustOverride Public Function GetDaylightChanges(ByVal year As Integer) As DaylightTime


[15779] [JScript] public abstract function GetDaylightChanges(year: int): DaylightTime;


[15780] Description


[15781] Returns the daylight saving time period for a particular year.


[15782] Return Value: A System.Globalization.DaylightTime instance containing the start and end date for daylight saving time in year.


[15783] Only one daylight saving time period per year is supported. If daylight saving time is not used in the current time zone, null is returned. The year to which the daylight saving time period applies.


[15784] GetUtcOffset


[15785] [C#] public abstract TimeSpan GetUtcOffset(DateTime time);


[15786] [C++] public: virtual TimeSpan GetUtcOffset(DateTime time)=0;


[15787] [VB] MustOverride Public Function GetUtcOffset(ByVal time As DateTime) As


[15788] TimeSpan


[15789] [JScript] public abstract function GetUtcOffset(time: DateTime): TimeSpan;


[15790] Description


[15791] Returns the coordinated universal time (UTC) offset for the specified local time.


[15792] Return Value: The UTC offset from time , measured in ticks.


[15793] Coordinated universal time (UTC) was previously known as Greenwich Mean Time (GMT). “Local time” is the date and time on the computer you are using. “Offset” is the difference between local time and UTC. That is: local time UTC+offset time must be in the Gregorian calendar and the time zone represented by this instance. If time is in daylight saving time, this method returns the UTC offset to the daylight saving time zone. This method obtains the daylight saving time rule from the system. The local date and time.


[15794] IsDaylightSavingTime


[15795] [C#] public virtual bool IsDaylightSavingTime(DateTime time);


[15796] [C++] public: virtual bool IsDaylightSavingTime(DateTime time);


[15797] [VB] Overridable Public Function IsDaylightSavingTime(ByVal time As DateTime) As Boolean


[15798] [JScript] public function IsDaylightSavingTime(time: DateTime): Boolean; Returns a value indicating whether a specified date and time is within a daylight saving time period.


[15799] Description


[15800] Returns a value indicating whether the specified date and time is within a daylight saving time period.


[15801] Return Value: true if time is in a daylight saving time period; false otherwise, or if time is null.


[15802] The year to which the daylight saving time period applies is derived from time. A date and time.


[15803] IsDaylightSavingTime


[15804] [C#] public static bool IsDaylightSavingTime(DateTime time, DaylightTime daylightTimes);


[15805] [C++] public: static bool IsDaylightSavingTime(DateTime time, DaylightTime* daylightTimes);


[15806] [VB] Public Shared Function IsDaylightSavingTime(ByVal time As DateTime, ByVal daylightTimes As DaylightTime) As Boolean


[15807] [JScript] public static function IsDaylightSavingTime(time: DateTime, daylightTimes: DaylightTime): Boolean;


[15808] Description


[15809] Returns a value indicating whether the specified date and time is within the specified daylight saving time period.


[15810] Return Value: true if time is in daylightTimes; otherwise, false. A date and time. A daylight saving time period.


[15811] ToLocalTime


[15812] [C#] public virtual DateTime ToLocalTime(DateTime time);


[15813] [C++] public: virtual DateTime ToLocalTime(DateTime time);


[15814] [VB] Overridable Public Function ToLocalTime(ByVal time As DateTime) As DateTime


[15815] [JScript] public function ToLocalTime(time: DateTime): DateTime;


[15816] Description


[15817] Returns the local time that corresponds to a specified coordinated universal time (UTC).


[15818] Return Value: A System.DateTime instance whose value is the local time that corresponds to time.


[15819] Coordinated universal time (UTC) was previously known as Greenwich Mean Time (GMT). “Local time” is the date and time on the computer you are using. “Offset” is the difference between local time and GMT. That is: local time UTC + offset A UTC time.


[15820] ToUniversalTime


[15821] [C#] public virtual DateTime ToUniversalTime(DateTime time);


[15822] [C++] public: virtual DateTime ToUniversalTime(DateTime time);


[15823] [VB] Overridable Public Function ToUniversalTime(ByVal time As DateTime) As DateTime


[15824] [JScript] public function ToUniversalTime(time: DateTime): DateTime;


[15825] Description


[15826] Returns the coordinated universal time (UTC) that corresponds to a specified local time.


[15827] Return Value: A System.DateTime instance whose value is the UTC time that corresponds to time.


[15828] Coordinated universal time (UTC) was previously known as Greenwich Mean Time (GMT). “Local time” is the date and time on the computer you are using. “Offset” is the difference between local time and UTC. That is: UTC=local time-offset The local date and time.


[15829] Type class (System)


[15830] ToUniversalTime


[15831] Description


[15832] Represents type declarations: class types, interface types, array types, value types, and enumeration types.


[15833] Type is the root of all reflection operations and the object that represents a type inside the system.


[15834] ToUniversalTime


[15835] [C#] public static readonly char Delimiter;


[15836] [C++] public: static_wchar_t Delimiter;


[15837] [VB] Public Shared ReadOnly Delimiter As Char


[15838] [JScript] public static var Delimiter: Char;


[15839] Description


[15840] Separates names in the namespace of the System.Type. This field is read-only.


[15841] ToUniversalTime


[15842] [C#] public static readonly Type[ ] EmptyTypes;


[15843] [C++] public: static Type* EmptyTypes[ ];


[15844] [VB] Public Shared ReadOnly EmptyTypes( ) As Type


[15845] [JScript] public static var EmptyTypes: Type[ ];


[15846] Description


[15847] Represents an empty array of type System.Type. This field is read-only.


[15848] ToUniversalTime


[15849] [C#] public static readonly MemberFilter FilterAttribute;


[15850] [C++] public: static MemberFilter* FilterAttribute;


[15851] [VB] Public Shared ReadOnly FilterAttribute As MemberFilter


[15852] [JScript] public static var FilterAttribute: MemberFilter;


[15853] Description


[15854] Represents the member filter used on attributes. This field is read-only.


[15855] This field holds a reference to the delegate used by the System.Type.FindMembers(System.Reflection.MemberTypes,System.Reflecti on.BindingFlags,System.Reflection.MemberFilter,System.Object) method. The method encapsulated by this delegate takes two parameters: the first is a System.Reflection.MemberInfo object and the second is an Object. The method determines whether the MemberInfo object matches the criteria specified by the Object. The Object may be assigned the value of any one of the fields on the classes System.Reflection.FieldAttributes, System.Reflection.MethodAttributes, or System.Reflection.MethodImplAttributes.


[15856] ToUniversalTime


[15857] [C#] public static readonly MemberFilter FilterName;


[15858] [C++] public: static MemberFilter* FilterName;


[15859] [VB] Public Shared ReadOnly FilterName As MemberFilter


[15860] [JScript] public static var FilterName: MemberFilter;


[15861] Description


[15862] Represents the case-sensitive member filter used on names. This field is read-only.


[15863] This field holds a reference to the delegate used by the System.Type.FindMembers(System.Reflection.MemberTypes,System.Reflecti on.BindingFlags,System.Reflection.MemberFilter,System.Object) method. The method encapsulated by this delegate takes two parameters: the first is a System.Reflection.MemberInfo object and the second is an Object. The method determines whether the MemberInfo object matches the criteria specified by the Object. The Object is assigned a string value, which may include a trailing “*” wildcard character. Only wildcard end string matching is supported.


[15864] ToUniversalTime


[15865] [C#] public static readonly MemberFilter FilterNameIgnoreCase;


[15866] [C++] public: static MemberFilter* FilterNameIgnoreCase;


[15867] [VB] Public Shared ReadOnly FilterNameIgnoreCase As MemberFilter


[15868] [JScript] public static var FilterNameIgnoreCase: MemberFilter;


[15869] Description Represents the case-insensitive member filter used on names. This field is read-only.


[15870] This field holds a reference to the delegate used by the System.Type.FindMembers(System.Reflection.MemberTypes,System.Reflecti on.BindingFlags,System.Reflection.MemberFilter,System.Object) method. The method encapsulated by this delegate takes two parameters: the first is a System.Reflection.MemberInfo object and the second is an Object. The method determines whether the MemberInfo object matches the criteria specified by the Object. The Object is assigned a string value, which may include a trailing “*” wildcard character. Only wildcard end string matching is supported.


[15871] ToUniversalTime


[15872] [C#] public static readonly object Missing;


[15873] [C++] public: static Object* Missing;


[15874] [VB] Public Shared ReadOnly Missing As Object


[15875] [JScript] public static var Missing: Object;


[15876] Description


[15877] Represents a missing value in the System.Type information. This field is read-only.


[15878] Use the Missing field to obtain the default value of a parameter. If the Missing field is passed in for a parameter value and there is no default value for that parameter, an System.ArgumentException is thrown.


[15879] Type


[15880] Example Syntax:


[15881] ToUniversalTime


[15882] [C#] protected Type( );


[15883] [C++] protected: Type( );


[15884] [VB] Protected Sub New( )


[15885] [JScript] protected function Type( );


[15886] Description


[15887] Initializes a new instance of the System.Type class.


[15888] This constructor is invoked by derived classes during the construction of type objects.


[15889] Assembly


[15890] ToUniversalTime


[15891] [C#] public abstract Assembly Assembly {get;}


[15892] [C++] public: _property virtual Assembly* get_Assembly( )=0;


[15893] [VB] MustOverride Public ReadOnly Property Assembly As Assembly


[15894] [JScript] public abstract function get Assembly( ): Assembly;


[15895] Description


[15896] Gets the System.Reflection.Assembly associated with a class.


[15897] AssemblyQualifiedName


[15898] ToUniversalTime


[15899] [C#] public abstract string AssemblyQualifiedName {get;}


[15900] [C++] public: _property virtual String* get_AssemblyQualifiedName( )=0;


[15901] [VB] MustOverride Public ReadOnly Property AssemblyQualifiedName As String


[15902] [JScript] public abstract function get AssemblyQualifiedName( ): String;


[15903] Description


[15904] Gets the fully qualified name of the System.Type, including the name of the assembly from which the System.Type was loaded.


[15905] All compilers that support the common language runtime will emit the simple name of a nested class, and reflection constructs a mangled name when queried, in accordance with the following conventions.


[15906] Attributes


[15907] ToUniversalTime


[15908] [C#] public TypeAttributes Attributes {get;}


[15909] [C++] public: _property TypeAttributes get_Attributes( );


[15910] [VB] Public ReadOnly Property Attributes As TypeAttributes


[15911] [JScript] public function get Attributes( ): TypeAttributes;


[15912] Description


[15913] Gets the attributes associated with the System.Type.


[15914] BaseType


[15915] ToUniversalTime


[15916] [C#] public abstract Type BaseType {get;}


[15917] [C++] public: _property virtual Type* get_BaseType( )=0;


[15918] [VB] MustOverride Public ReadOnly Property BaseType As Type


[15919] [JScript] public abstract function get BaseType( ): Type;


[15920] Description


[15921] Gets the type from which the current System.Type directly inherits.


[15922] The base type is the type from which the current type directly inherits.


[15923] DeclaringType


[15924] ToUniversalTime


[15925] [C#] public override Type DeclaringType {get;}


[15926] [C++] public: _property virtual Type* get_DeclaringType( );


[15927] [VB] Overrides Public ReadOnly Property DeclaringType As Type


[15928] [JScript] public function get DeclaringType( ): Type;


[15929] Description


[15930] Gets the class that declares this member.


[15931] This property implements the abstract property inherited from System.Reflection.MemberInfo.


[15932] DefaultBinder


[15933] ToUniversalTime


[15934] [C#] public static Binder DefaultBinder {get;}


[15935] [C++] public: _property static Binder* get_DefaultBinder( );


[15936] [VB] Public Shared ReadOnly Property DefaultBinder As Binder


[15937] [JScript] public static function get DefaultBinder( ): Binder;


[15938] Description


[15939] Gets the default binder used by the system.


[15940] Reflection models the accessibility rules of the common type system. For example, if the caller is in the same assembly, the caller does not need special permissions for internal members. Otherwise, the caller needs System.Security.Permissions.ReflectionPermission. This is consistent with lookup of members that are protected, private, and so on.


[15941] FullName


[15942] ToUniversalTime


[15943] [C#] public abstract string FullName {get;}


[15944] [C++] public: _property virtual String* get_FullName( )=0;


[15945] [VB] MustOverride Public ReadOnly Property FullName As String


[15946] [JScript] public abstract function get FullName( ): String;


[15947] Description


[15948] Gets the fully qualified name of the System.Type, including the namespace of the System.Type.


[15949] All compilers that support the common language runtime will emit the simple name of a nested class, and reflection constructs a mangled name when queried, in accordance with the following conventions.


[15950] GUID


[15951] ToUniversalTime


[15952] [C#] public abstract Guid GUID {get;}


[15953] [C++] public: _property virtual Guid get_GUID( ) 0;


[15954] [VB] MustOverride Public ReadOnly Property GUID As Guid


[15955] [JScript] public abstract function get GUID( ): Guid;


[15956] Description


[15957] Gets the GUID associated with the System.Type.


[15958] HasElementType


[15959] ToUniversalTime


[15960] [C#] public bool HasElementType {get;}


[15961] [C++] public: _property bool get_HasElementType( );


[15962] [VB] Public ReadOnly Property HasElementType As Boolean


[15963] [JScript] public function get HasElementType( ): Boolean;


[15964] Description


[15965] Gets a value indicating whether the current System.Type encompasses or refers to another type; that is, whether the current System.Type is an array, a pointer, or is passed by reference.


[15966] For example, Type.GetType(“Int32[ ]”).HasElementType returns true, but Type.GetType(“Int32”).HasElementType returns false. HasElementType also returns true for “Int32*” and “Int32&”.


[15967] IsAbstract


[15968] ToUniversalTime


[15969] [C#] public bool IsAbstract {get;}


[15970] [C++] public: _property bool get_IsAbstract( );


[15971] [VB] Public ReadOnly Property IsAbstract As Boolean


[15972] [JScript] public function get IsAbstract( ): Boolean;


[15973] Description


[15974] Gets a value indicating whether the System.Type is abstract and must be overridden.


[15975] IsAnsiClass


[15976] ToUniversalTime


[15977] [C#] public bool IsAnsiClass {get;}


[15978] [C++] public: _property bool get_IsAnsiClass( );


[15979] [VB] Public ReadOnly Property IsAnsiClass As Boolean


[15980] [JScript] public function get IsAnsiClass( ): Boolean;


[15981] Description


[15982] Gets a value indicating whether the string format attribute AnsiClass is selected for the System.Type.


[15983] The System.Reflection.TypeAttributes.StringFormatMask selects the string format attributes. The string format attributes enhance interoperability by defining how strings should be interpreted.


[15984] IsArray


[15985] ToUniversalTime


[15986] [C#] public bool IsArray {get;}


[15987] [C++] public: _property bool get_IsArray( );


[15988] [VB] Public ReadOnly Property IsArray As Boolean


[15989] [JScript] public function get IsArray( ): Boolean;


[15990] Description


[15991] Gets a value indicating whether the System.Type is an array.


[15992] An instance of the System.Array class will return false because it is an object, not an array.


[15993] IsAutoClass


[15994] ToUniversalTime


[15995] [C#] public bool IsAutoClass {get;}


[15996] [C++] public: _property bool get_IsAutoClass( );


[15997] [VB] Public ReadOnly Property IsAutoClass As Boolean


[15998] [JScript] public function get IsAutoClass( ): Boolean;


[15999] Description


[16000] Gets a value indicating whether the string format attribute AutoClass is selected for the System.Type.


[16001] The System.Reflection.TypeAttributes.StringFormatMask selects the string format attributes. The string format attributes enhance interoperability by defining how strings should be interpreted.


[16002] IsAutoLayout


[16003] ToUniversalTime


[16004] [C#] public bool IsAutoLayout {get;}


[16005] [C++] public: _property bool get_IsAutoLayout( );


[16006] [VB] Public ReadOnly Property IsAutoLayout As Boolean


[16007] [JScript] public function get IsAutoLayout( ): Boolean;


[16008] Description


[16009] Gets a value indicating whether the class layout attribute AutoLayout is selected for the System.Type.


[16010] The System.Reflection.TypeAttributes.LayoutMask is used to select the class layout attributes. The class layout attributes (AutoLayout, SequentialLayout and ExplicitLayout) define how the fields of the class instance are laid out in memory.


[16011] IsByRef


[16012] ToUniversalTime


[16013] [C#] public bool IsByRef {get;}


[16014] [C++] public: _property bool get_IsByRef( );


[16015] [VB] Public ReadOnly Property IsByRef As Boolean


[16016] [JScript] public function get IsByRef( ): Boolean;


[16017] Description


[16018] Gets a value indicating whether the System.Type is passed by reference.


[16019] IsClass


[16020] ToUniversalTime


[16021] [C#] public bool IsClass {get;}


[16022] [C++] public: _property bool get_IsClass( );


[16023] [VB] Public ReadOnly Property IsClass As Boolean


[16024] [JScript] public function get IsClass( ): Boolean;


[16025] Description


[16026] Gets a value indicating whether the System.Type is a class; that is, not a value type or interface.


[16027] The System.Reflection.TypeAttributes.ClassSemanticsMask distinguishes a type declaration as class, interface, or value type.


[16028] IsCOMObject


[16029] ToUniversalTime


[16030] [C#] public bool IsCOMObject {get;}


[16031] [C++] public: _property bool get_IsCOMObject( );


[16032] [VB] Public ReadOnly Property IsCOMObject As Boolean


[16033] [JScript] public function get IsCOMObject( ): Boolean;


[16034] Description


[16035] Gets a value indicating whether the System.Type is a COM object.


[16036] This method returns false for COM interfaces because they are not objects. COM interfaces can be implemented by Microsoft .NET Framework objects.


[16037] IsContextful


[16038] ToUniversalTime


[16039] [C#] public bool IsContextful {get;}


[16040] [C++] public: _property bool get_IsContextful( );


[16041] [VB] Public ReadOnly Property IsContextful As Boolean


[16042] [JScript] public function get IsContextful( ): Boolean;


[16043] Description


[16044] Gets a value indicating whether the System.Type can be hosted in a context.


[16045] A context intercepts calls to the class members and enforces policies that are applied to the class, such as synchronization. For more detailed information on remoting contexts, see System.Runtime.Remoting.Contexts.Context.


[16046] IsEnum


[16047] ToUniversalTime


[16048] [C#] public bool IsEnum {get;}


[16049] [C++] public: _property bool get_IsEnum( );


[16050] [VB] Public ReadOnly Property IsEnum As Boolean


[16051] [JScript] public function get IsEnum( ): Boolean;


[16052] Description


[16053] Gets a value indicating whether the System.Type is an enumeration.


[16054] For example, GetType(Enum).IsEnum( ) returns false because System.Enum is an object, not an enumeration.


[16055] IsExplicitLayout


[16056] ToUniversalTime


[16057] [C#] public bool IsExplicitLayout {get;}


[16058] [C++] public: _property bool get_IsExplicitLayout( );


[16059] [VB] Public ReadOnly Property IsExplicitLayout As Boolean


[16060] [JScript] public function get IsExplicitLayout( ): Boolean;


[16061] Description


[16062] Gets a value indicating whether the class layout attribute ExplicitLayout is selected for the System.Type.


[16063] The System.Reflection.TypeAttributes.LayoutMask is used to select the class layout attributes. The class layout attributes (AutoLayout, SequentialLayout and ExplicitLayout) define how the fields of the class instance are laid out in memory.


[16064] IsImport


[16065] ToUniversalTime


[16066] [C#] public bool IsImport {get;}


[16067] [C++] public: _property bool get_IsImport( );


[16068] [VB] Public ReadOnly Property IsImport As Boolean


[16069] [JScript] public function get IsImport( ): Boolean;


[16070] Description


[16071] Gets a value indicating whether the System.Type was imported from another class.


[16072] IsInterface


[16073] ToUniversalTime


[16074] [C#] public bool IsInterface {get;}


[16075] [C++] public: _property bool get_IsInterface( );


[16076] [VB] Public ReadOnly Property IsInterface As Boolean


[16077] [JScript] public function get IsInterface( ): Boolean;


[16078] Description


[16079] Gets a value indicating whether the System.Type is an interface; that is, not a class or a value type.


[16080] The System.Reflection.TypeAttributes.ClassSemanticsMask distinguishes a type declaration as class, interface or value type.


[16081] IsLayoutSequential


[16082] ToUniversalTime


[16083] [C#] public bool IsLayoutSequential {get;}


[16084] [C++] public: _property bool get_IsLayoutSequential( );


[16085] [VB] Public ReadOnly Property IsLayoutSequential As Boolean


[16086] [JScript] public function get IsLayoutSequential( ): Boolean;


[16087] Description


[16088] Gets a value indicating whether the class layout attribute SequentialLayout is selected for the System.Type.


[16089] The System.Reflection.TypeAttributes.LayoutMask is used to select the class layout attributes. The class layout attributes (AutoLayout, SequentialLayout and ExplicitLayout) define how the fields of the class instance are laid out in memory.


[16090] IsMarshalByRef


[16091] ToUniversalTime


[16092] [C#] public bool IsMarshalByRef {get;}


[16093] [C++] public: _property bool get_IsMarshalByRef( );


[16094] [VB] Public ReadOnly Property IsMarshalByRef As Boolean


[16095] [JScript] public function get IsMarshalByRef( ): Boolean;


[16096] Description


[16097] Gets a value indicating whether the Type is marshaled by reference.


[16098] IsNestedAssembly


[16099] ToUniversalTime


[16100] [C#] public bool IsNestedAssembly {get;}


[16101] [C++] public: _property bool get_IsNestedAssembly( );


[16102] [VB] Public ReadOnly Property IsNestedAssembly As Boolean


[16103] [JScript] public function get IsNestedAssembly( ): Boolean;


[16104] Description


[16105] Gets a value indicating whether the System.Type is nested and visible only within its own assembly.


[16106] The System.Reflection.TypeAttributes.VisibilityMask selects the visibility attributes.


[16107] IsNestedFamANDAssem


[16108] ToUniversalTime


[16109] [C#] public bool IsNestedFamANDAssem {get;}


[16110] [C++] public: _property bool get_IsNestedFamANDAssem( );


[16111] [VB] Public ReadOnly Property IsNestedFamANDAssem As Boolean


[16112] [JScript] public function get IsNestedFamANDAssem( ): Boolean;


[16113] Description


[16114] Gets a value indicating whether the System.Type is nested and visible only to classes that belong to both its own family and its own assembly.


[16115] The System.Reflection.TypeAttributes.VisibilityMask selects the visibility attributes.


[16116] IsNestedFamily


[16117] ToUniversalTime


[16118] [C#] public bool IsNestedFamily {get;}


[16119] [C++] public: _property bool get_IsNestedFamily( );


[16120] [VB] Public ReadOnly Property IsNestedFamily As Boolean


[16121] [JScript] public function get IsNestedFamily( ): Boolean;


[16122] Description


[16123] Gets a value indicating whether the System.Type is nested and visible only within its own family.


[16124] The System.Reflection.TypeAttributes.VisibilityMask selects the visibility attributes.


[16125] IsNestedFamORAssem


[16126] ToUniversalTime


[16127] [C#] public bool IsNestedFamORAssem {get;}


[16128] [C++] public: _property bool get_IsNestedFamORAssem( );


[16129] [VB] Public ReadOnly Property IsNestedFamORAssem As Boolean


[16130] [JScript] public function get IsNestedFamORAssem( ): Boolean;


[16131] Description


[16132] Gets a value indicating whether the System.Type is nested and visible only to classes that belong to either its own family or to its own assembly.


[16133] The System.Reflection.TypeAttributes.VisibilityMask selects the visibility attributes.


[16134] IsNestedPrivate


[16135] ToUniversalTime


[16136] [C#] public bool IsNestedPrivate {get;}


[16137] [C++] public: _property bool get_IsNestedPrivate( );


[16138] [VB] Public ReadOnly Property IsNestedPrivate As Boolean


[16139] [JScript] public function get IsNestedPrivate( ): Boolean;


[16140] Description


[16141] Gets a value indicating whether the System.Type is nested and declared private.


[16142] The System.Reflection.TypeAttributes.VisibilityMask selects the visibility attributes.


[16143] IsNestedPublic


[16144] ToUniversalTime


[16145] [C#] public bool IsNestedPublic {get;}


[16146] [C++] public: _property bool get_IsNestedPublic( );


[16147] [VB] Public ReadOnly Property IsNestedPublic As Boolean


[16148] [JScript] public function get IsNestedPublic( ): Boolean;


[16149] Description


[16150] Gets a value indicating whether the System.Type is nested and declared public.


[16151] The System.Reflection.TypeAttributes.VisibilityMask selects the visibility attributes.


[16152] IsNotPublic


[16153] ToUniversalTime


[16154] [C#] public bool IsNotPublic {get;}


[16155] [C++] public: _property bool get_IsNotPublic( );


[16156] [VB] Public ReadOnly Property IsNotPublic As Boolean


[16157] [JScript] public function get IsNotPublic( ): Boolean;


[16158] Description


[16159] Gets a value indicating whether the top-level System.Type is not declared public.


[16160] IsPublic and IsNotPublic get the visibility of the top-level type only.


[16161] IsPointer


[16162] ToUniversalTime


[16163] [C#] public bool IsPointer {get;}


[16164] [C++] public: _property bool get_IsPointer( );


[16165] [VB] Public ReadOnly Property IsPointer As Boolean


[16166] [JScript] public function get IsPointer( ): Boolean;


[16167] Description


[16168] Gets a value indicating whether the System.Type is a pointer.


[16169] IsPrimitive


[16170] ToUniversalTime


[16171] [C#] public bool IsPrimitive {get;}


[16172] [C++] public: _property bool get_IsPrimitive( );


[16173] [VB] Public ReadOnly Property IsPrimitive As Boolean


[16174] [JScript] public function get IsPrimitive( ): Boolean;


[16175] Description


[16176] Gets a value indicating whether the System.Type is one of the primitive types.


[16177] The primitive types are System.Boolean, System.Byte, System.SByte, System.Intl6, System.UIntl6, System.Int32, System.UInt32, System.Int64, System.UInt64, System.Char, System.Double, and System.Single.


[16178] IsPublic


[16179] ToUniversalTime


[16180] [C#] public bool IsPublic {get;}


[16181] [C++] public: _property bool get_IsPublic( );


[16182] [VB] Public ReadOnly Property IsPublic As Boolean


[16183] [JScript] public function get IsPublic( ): Boolean;


[16184] Description


[16185] Gets a value indicating whether the top-level System.Type is declared public.


[16186] IsPublic and IsNotPublic get the visibility of the top-level type only.


[16187] IsSealed


[16188] ToUniversalTime


[16189] [C#] public bool IsSealed {get;}


[16190] [C++] public: _property bool get_IsSealed( );


[16191] [VB] Public ReadOnly Property IsSealed As Boolean


[16192] [JScript] public function get IsSealed( ): Boolean;


[16193] Description


[16194] Gets a value indicating whether the System.Type is declared sealed.


[16195] IsSerializable


[16196] ToUniversalTime


[16197] [C#] public bool IsSerializable {get;}


[16198] [C++] public: _property bool get_IsSerializable( );


[16199] [VB] Public ReadOnly Property IsSerializable As Boolean


[16200] [JScript] public function get IsSerializable( ): Boolean;


[16201] Description


[16202] Gets a value indicating whether the System.Type is serializable.


[16203] IsSpecialName


[16204] ToUniversalTime


[16205] [C#] public bool IsSpecialName {get;}


[16206] [C++] public: _property bool get_IsSpecialName( );


[16207] [VB] Public ReadOnly Property IsSpecialName As Boolean


[16208] [JScript] public function get IsSpecialName( ): Boolean;


[16209] Description


[16210] Gets a value indicating whether the System.Type has a name that requires special handling.


[16211] Names that begin with or contain an underscore character (_), property accessors, and operator overloading methods are examples of types that might require special treatment by some compilers.


[16212] IsUnicodeClass


[16213] ToUniversalTime


[16214] [C#] public bool IsUnicodeClass {get;}


[16215] [C++] public: _property bool get_IsUnicodeClass( );


[16216] [VB] Public ReadOnly Property IsUnicodeClass As Boolean


[16217] [JScript] public function get IsUnicodeClass( ): Boolean;


[16218] Description


[16219] Gets a value indicating whether the string format attribute UnicodeClass is selected for the System.Type.


[16220] The System.Reflection.TypeAttributes.StringFormatMask is used to select the string format attributes. The string format attributes enhance interoperability by defining how strings should be interpreted.


[16221] IsValueType


[16222] ToUniversalTime


[16223] [C#] public bool IsValueType {get;}


[16224] [C++] public: _property bool get_IsValueType( );


[16225] [VB] Public ReadOnly Property IsValueType As Boolean


[16226] [JScript] public function get IsValueType( ): Boolean;


[16227] Description


[16228] Gets a value indicating whether the System.Type is a value type.


[16229] Value types are those that are represented as sequences of bits; value types are not classes or interfaces. These are referred to as “structs” in some programming languages. Enums are a special case of value types.


[16230] MemberType


[16231] ToUniversalTime


[16232] [C#] public override MemberTypes MemberType {get;}


[16233] [C++] public: _property virtual MemberTypes get_MemberType( );


[16234] [VB] Overrides Public ReadOnly Property MemberType As MemberTypes


[16235] [JScript] public function get MemberType( ): MemberTypes;


[16236] Description


[16237] Gets a bitmask indicating the member type.


[16238] Module


[16239] ToUniversalTime


[16240] [C#] public abstract Module Module {get;}


[16241] [C++] public: _property virtual Module* get_Module( )=0;


[16242] [VB] MustOverride Public ReadOnly Property Module As Module


[16243] [JScript] public abstract function get Module( ): Module;


[16244] Description


[16245] Gets the module (the DLL) in which the current System.Type is defined.


[16246] Name


[16247] Namespace


[16248] ToUniversalTime


[16249] Description


[16250] Gets the namespace of the System.Type.


[16251] ReflectedType


[16252] ToUniversalTime


[16253] [C#] public override Type ReflectedType {get;}


[16254] [C++] public: _property virtual Type* get_ReflectedType( );


[16255] [VB] Overrides Public ReadOnly Property ReflectedType As Type


[16256] [JScript] public function get ReflectedType( ): Type;


[16257] Description


[16258] Gets the class object that was used to obtain this member.


[16259] This property implements the abstract property inherited from System.Reflection.MemberInfo.


[16260] TypeHandle


[16261] ToUniversalTime


[16262] [C#] public abstract RuntimeTypeHandle TypeHandle {get;}


[16263] [C++] public: _property virtual RuntimeTypeHandle get_TypeHandle( )=0;


[16264] [VB] MustOverride Public ReadOnly Property TypeHandle As RuntimeTypeHandle


[16265] [JScript] public abstract function get TypeHandle( ): RuntimeTypeHandle;


[16266] Description


[16267] Gets the handle for the current System.Type.


[16268] TypeHandle encapsulates a pointer to an internal data structure that represents the type. This handle is unique during the process lifetime. The handle is valid only in the application domain in which it was obtained.


[16269] TypeInitializer


[16270] ToUniversalTime


[16271] [C#] public ConstructorInfo TypeInitializer {get;}


[16272] [C++] public: _property ConstructorInfo* get_TypeInitializer( );


[16273] [VB] Public ReadOnly Property TypeInitializer As ConstructorInfo


[16274] [JScript] public function get TypeInitializer( ): ConstructorInfo;


[16275] Description


[16276] Gets the name of the class constructor for the System.Type.


[16277] Class initializers are available through


[16278] System.Type.GetMember(System.String), System.Type.GetMembers,


[16279] System.Type.FindMembers(System.Reflection.MemberTypes,System.Reflection.BindingFlags,System.Reflection.MemberFilter,System.Object), and System.Type.GetConstructors.


[16280] UnderlyingSystemType


[16281] ToUniversalTime


[16282] [C#] public abstract Type UnderlyingSystemType {get;}


[16283] [C++] public: _property virtual Type* get_UnderlyingSystemType( )=0;


[16284] [VB] MustOverride Public ReadOnly Property UnderlyingSystemType As Type


[16285] [JScript] public abstract function get UnderlyingSystemType( ): Type;


[16286] Description


[16287] Indicates the type provided by the common language runtime that represents this type.


[16288] Equals


[16289] [C#] public override bool Equals(object o);


[16290] [C++] public: bool Equals(Object* o);


[16291] [VB] Overrides Public Function Equals(ByVal o As Object) As Boolean


[16292] [JScript] public override function Equals(o: Object): Boolean; Determines if the underlying system type of the current System.Type is the same as the underlying system type of the specified System.Object or System.Type.


[16293] Description


[16294] Determines if the underlying system type of the current System.Type is the same as the underlying system type of the specified System.Object.


[16295] Return Value: true if the underlying system type of o is the same as the underlying system type of the current System.Type; otherwise, false. The System.Object whose underlying system type is to be compared with the underlying system type of the current System.Type.


[16296] Equals


[16297] [C#] public new bool Equals(Type o);


[16298] [C++] public: bool Equals(Type* o);


[16299] [VB] Shadows Public Function Equals(ByVal o As Type) As Boolean


[16300] [JScript] public hide function Equals(o: Type): Boolean;


[16301] Description


[16302] Determines if the underlying system type of the current System.Type is the same as the underlying system type of the specified System.Type.


[16303] Return Value: true if the underlying system type of o is the same as the underlying system type of the current System.Type; otherwise, false. The System.Type whose underlying system type is to be compared with the underlying system type of the current System.Type.


[16304] FindInterfaces


[16305] [C#] public virtual Type[ ] FindInterfaces(TypeFilter filter, object filterCriteria);


[16306] [C++] public: virtual Type* FindInterfaces(TypeFilter* filter, Object* filterCriteria) [ ];


[16307] [VB] Overridable Public Function FindInterfaces(ByVal filter As TypeFilter, ByVal filterCriteria As Object) As Type( )


[16308] [JScript] public function FindInterfaces(filter: TypeFilter, filterCriteria: Object): Type[ ];


[16309] Description


[16310] Returns an array of System.Type objects representing a filtered list of interfaces implemented or inherited by the current System.Type.


[16311] Return Value: An array of System.Type objects representing a filtered list of the interfaces implemented or inherited by the current System.Type.


[16312] This method can be overridden by a derived class. The System.Reflection.TypeFilter delegate that compares the interfaces against filterCriteria. The search criteria that determines whether an interface should be included in the returned array.


[16313] FindMembers


[16314] [C#] public virtual MemberInfo [ ] FindMembers(MemberTypes memberType, BindingFlags bindingAttr, MemberFilter filter, object filterCriteria);


[16315] [C++] public: virtual MemberInfo* FindMembers(MemberTypes memberType, BindingFlags bindingAttr, MemberFilter* filter, Object* filterCriteria) [ ];


[16316] [VB] Overridable Public Function FindMembers(ByVal memberType As MemberTypes, ByVal bindingAttr As BindingFlags, ByVal filter As MemberFilter, ByVal filterCriteria As Object) As MemberInfo( )


[16317] [JScript] public function FindMembers(memberType: MemberTypes, bindingAttr: BindingFlags, filter: MemberFilter, filterCriteria: Object): MemberInfo[ ];


[16318] Description


[16319] Returns a filtered array of System.Reflection.MemberInfo objects of the specified member type.


[16320] Return Value: A filtered array of System.Reflection.MemberInfo objects of the specified member type.


[16321] This method can be overridden by a derived class. A MemberTypes object indicating the type of member to search for. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. The delegate that does the comparisons, returning true if the member currently being inspected matches the filterCriteria and false otherwise. You can use the FilterAttribute, FilterName, and FilterNameIgnoreCase delegates supplied by this class. The first uses the fields of FieldAttributes, MethodAttributes, and MethodImplAttributes as search criteria, and the other two delegates use String objects as the search criteria. The search criteria that determines whether a member is returned in the array of MemberInfo objects.


[16322] GetArrayRank


[16323] [C#] public virtual int GetArrayRank( );


[16324] [C++] public: virtual int GetArrayRank( );


[16325] [VB] Overridable Public Function GetArrayRank( ) As Integer


[16326] [JScript] public function GetArrayRank( ): int;


[16327] Description


[16328] Gets the number of dimensions in an System.Array.


[16329] Return Value: The number of dimensions in an System.Array.


[16330] GetAttributeFlagsImpl


[16331] [C#] protected abstract TypeAttributes GetAttributeFlagsImpl( );


[16332] [C++] protected: virtual TypeAttributes GetAttributeFlagsImpl( )=0;


[16333] [VB] MustOverride Protected Function GetAttributeFlagsImpl( ) As TypeAttributes


[16334] [JScript] protected abstract function GetAttributeFlagsImpl( ): TypeAttributes;


[16335] Description


[16336] When overridden in a derived class, implements the System.Type.Attributes property and gets a bitmask indicating the attributes associated with the System.Type.


[16337] Return Value: A System.Reflection.TypeAttributes object representing the attribute set of the System.Type.


[16338] GetConstructor


[16339] [C#] public ConstructorInfo GetConstructor(Type[ ] types);


[16340] [C++] public: ConstructorInfo* GetConstructor(Type* types[ ]);


[16341] [VB] Public Function GetConstructor(ByVal types( ) As Type) As ConstructorInfo


[16342] [JScript] public function GetConstructor(types: Type[ ]): ConstructorInfo;


[16343] Description


[16344] Searches for a public instance constructor whose parameters match the types in the specified array.


[16345] Return Value: A System.Reflection.ConstructorInfo object representing the public instance constructor whose parameters match the types in the parameter type array, if found; otherwise, null.


[16346] System.Type.GetConstructor(System.Reflection.BindingFlags,System. Reflection.Binder,System.Reflection.CallingConventions,System.Type[ ],System.Reflection.ParameterModifier[ ]) looks for public instance constructors and cannot be used to obtain a class initializer. Class initializers are available through System.Type.GetMember(System.String), System.Type.GetMembers, System.Type.FindMembers(System.Reflection.MemberTypes,System.Reflection.BindingFIags,System.Reflection.MemberFilter,System.Object), System.Type.GetConstructors, and System.Type.TypeInitializer. An array of System.Type objects representing the number, order, and type of the parameters for the constructor to get.


[16347] GetConstructor


[16348] [C#] public ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, Type[ ] types, ParameterModifier[ ] modifiers);


[16349] [C++] public: ConstructorInfo* GetConstructor(BindingFlags bindingAttr, Binder* binder, Type* types[ ], ParameterModifier modifiers[ ]);


[16350] [VB] Public Function GetConstructor(ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal types( ) As Type, ByVal modifiers( ) As ParameterModifier) As ConstructorInfo


[16351] [JScript] public function GetConstructor(bindingAttr: BindingFlags, binder: Binder, types: Type[ ], modifiers: ParameterModifier[ ]): ConstructorInfo;


[16352] Description


[16353] Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints.


[16354] Return Value: A System.Reflection.ConstructorInfo object representing the constructor that matches the specified requirements, if found; otherwise, null.


[16355] The types array and the modifiers array have the same length. A parameter specified in the types array can have the following attributes, which are specified in the modifiers array: pdIn, pdOut, pdLcid, pdRetval, pdOptional, and pdHasDefault, which represent [In], [Out], [lcid], [retval], [optional], and a value specifying whether the parameter has a default value. A parameter's associated attributes are stored in the metadata and enhance interoperability. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection. An array of System.Type objects representing the number, order, and type of the parameters for the constructor to get. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the parameter type array.


[16356] GetConstructor


[16357] [C#] public ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[ ] types, ParameterModifier[ ] modifiers);


[16358] [C++] public: ConstructorInfo* GetConstructor(BindingFlags bindingAttr, Binder* binder, CallingConventions callConvention, Type* types[ ], ParameterModifier modifiers[ ]);


[16359] [VB] Public Function GetConstructor(ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal callConvention As CallingConventions, ByVal types( ) As Type, ByVal modifiers( ) As ParameterModifier) As ConstructorInfo


[16360] [JScript] public function GetConstructor(bindingAttr: BindingFlags, binder: Binder, callConvention: CallingConventions, types: Type[ ], modifiers: ParameterModifier[ ]): ConstructorInfo; Gets a specific constructor of the current System.Type.


[16361] Description


[16362] Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.


[16363] Return Value: A System.Reflection.ConstructorInfo object representing the constructor that matches the specified requirements, if found; otherwise, null.


[16364] The types array and the modifiers array have the same length. A parameter specified in the types array can have the following attributes, which are specified in the modifiers array: pdIn, pdOut, pdLcid, pdRetval, pdOptional, and pdHasDefault, which represent [In], [Out], [lcid], [retval], [optional], and a value specifying whether the parameter has a default value. A parameter's associated attributes are stored in the metadata and enhance interoperability. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection. The System.Reflection.CallingConventions object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and the stack is cleaned up. An array of System.Type objects representing the number, order, and type of the parameters for the constructor to get. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the types array.


[16365] GetConstructorImpl


[16366] [C#] protected abstract ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[ ] types, ParameterModifier[ ] modifiers);


[16367] [C++] protected: virtual ConstructorInfo* GetConstructorImpl(BindingFlags bindingAttr, Binder* binder, CallingConventions callConvention, Type* types[ ], ParameterModifier modifiers[ ])=0;


[16368] [VB] MustOverride Protected Function GetConstructorImpl(ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal callConvention As CallingConventions, ByVal types( ) As Type, ByVal modifiers( ) As ParameterModifier) As ConstructorInfo


[16369] [JScript] protected abstract function GetConstructorImpl(bindingAttr: BindingFlags, binder: Binder, callConvention: CallingConventions, types: Type[ ], modifiers: ParameterModifier[ ]): ConstructorInfo;


[16370] Description


[16371] When overridden in a derived class, searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.


[16372] Return Value: A System.Reflection.ConstructorInfo object representing the constructor that matches the specified requirements, if found; otherwise, null.


[16373] The types array and the modifiers array have the same length. A parameter specified in the types array can have the following attributes, which are specified in the modifiers array: pdIn, pdOut, pdLcid, pdRetval, pdOptional, and pdHasDefault, which represent [In], [Out], [lcid], [retval],


[16374] [optional], and a value specifying whether the parameter has a default value. A parameter's associated attributes are stored in the metadata and are used for interoperability. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection. The System.Reflection.CallingConventions object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and the stack is cleaned up. An array of System.Type objects representing the number, order, and type of the parameters for the constructor to get. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the types array.


[16375] GetConstructors


[16376] [C#] public ConstructorInfo[ ] GetConstructors( );


[16377] [C++] public: ConstructorInfo* GetConstructors( ) [ ]


[16378] [VB] Public Function GetConstructors( ) As ConstructorInfo( )


[16379] [JScript] public function GetConstructors( ): ConstructorInfo[ ]; Gets the constructors of the current System.Type


[16380] Description


[16381] Returns all the public constructors defined for the current System.Type.


[16382] Return Value: An array of System.Reflection.ConstructorInfo objects representing all the public constructors defined for the current System.Type, including the type initializer if it is defined.


[16383] The following table shows what members of a base class are returned by the Get methods when reflecting on a type.


[16384] GetConstructors


[16385] [C#] public abstract ConstructorInfo[ ] GetConstructors(BindingFlags bindingAttr);


[16386] [C++] public: virtual ConstructorInfo* GetConstructors(BindingFlags bindingAttr) [ ]=0;


[16387] [VB] MustOverride Public Function GetConstructors(ByVal bindingAttr As BindingFlags) As ConstructorInfo( )


[16388] [JScript] public abstract function GetConstructors(bindingAttr: BindingFlags): 2 ConstructorInfo[ ];


[16389] Description


[16390] When overridden in a derived class, searches for the constructors defined for the current System.Type, using the specified BindingFlags.


[16391] Return Value: An array of System.Reflection.ConstructorInfo objects representing all constructors defined for the current System.Type that match the specified binding constraints, including the type initializer if it is defined.


[16392] bindingAttr can be used to specify whether to return only public constructors or both public and non-public constructors. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16393] GetDefaultMembers


[16394] [C#] public virtual MemberInfo[ ] GetDefaultMembers( );


[16395] [C++] public: virtual MemberInfo* GetDefaultMembers( ) [ ];


[16396] [VB] Overridable Public Function GetDefaultMembers( ) As MemberInfo( )


[16397] [JScript] public function GetDefaultMembers( ): MemberInfo[ ];


[16398] Description


[16399] Searches for the members defined for the current System.Type whose System.Reflection.DefaultMemberAttribute is set.


[16400] Return Value: An array of System.Reflection.MemberInfo objects representing all default members of the current System.Type.


[16401] This method can be overridden by a derived class.


[16402] GetElementType


[16403] [C#] public abstract Type GetElementType( );


[16404] [C++] public: virtual Type* GetElementType( )=0;


[16405] [VB] MustOverride Public Function GetElementType( ) As Type


[16406] [JScript] public abstract function GetElementType( ): Type;


[16407] Description


[16408] When overridden in a derived class, returns the System.Type of the object encompassed or referred to by the current array, pointer or reference type.


[16409] Return Value: The System.Type of the object encompassed or referred to by the current array, pointer or reference type.


[16410] For example, Type.GetType(“Int32[ ]”).GetElementType returns Int32.


[16411] GetEvent


[16412] [C#] public EventInfo GetEvent(string name);


[16413] [C++] public: EventInfo* GetEvent(String* name);


[16414] [VB] Public Function GetEvent(ByVal name As String) As EventInfo


[16415] [JScript] public function GetEvent(name: String): EventInfo; Gets a specific event declared or inherited by the current System.Type.


[16416] Description


[16417] Returns the System.Reflection.EventInfo object representing the specified event.


[16418] Return Value: The System.Reflection.EventInfo object representing the specified event which is declared or inherited by the current System.Type, if found; otherwise, null.


[16419] The search for name is case-sensitive. The System.String containing the name of an event which is declared or inherited by the current System.Type.


[16420] GetEvent


[16421] [C#] public abstract EventInfo GetEvent(string name, BindingFlags bindingAttr);


[16422] [C++] public: virtual EventInfo* GetEvent(String* name, BindingFlags bindingAttr) 0;


[16423] [VB] MustOverride Public Function GetEvent(ByVal name As String, ByVal bindingAttr As BindingFlags) As EventInfo


[16424] [JScript] public abstract function GetEvent(name: String, bindingAttr: BindingFlags): EventInfo;


[16425] Description


[16426] When overridden in a derived class, returns the System.Reflection.EventInfo object representing the specified event, using the specified binding constraints.


[16427] Return Value: The System.Reflection.EventInfo object representing the specified event which is declared or inherited by the current System.Type, if found; otherwise, null.


[16428] The following System.Reflection.BindingFlags filter flags can be used to define which events to include in the search: Public to include public events in the search. The System.String containing the name of an event which is declared or inherited by the current System.Type. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16429] GetEvents


[16430] [C#] public virtual EventInfo[ ] GetEvents( );


[16431] [C++] public: virtual EventInfo* GetEvents( ) [ ];


[16432] [VB] Overridable Public Function GetEvents( ) As EventInfo( )


[16433] [JScript] public function GetEvents( ): EventInfo[ ]; Gets the events that are declared or inherited by the current System.Type.


[16434] Description


[16435] Returns all the public events that are declared or inherited by the current System.Type.


[16436] Return Value: An array of System.Reflection.EventInfo objects representing all the public events which are declared or inherited by the current System.Type


[16437] This method can be overridden by a derived class.


[16438] GetEvents


[16439] [C#] public abstract EventInfo[ ] GetEvents(BindingFlags bindingAttr);


[16440] [C++] public: virtual EventInfo* GetEvents(BindingFlags bindingAttr) [ ] 0;


[16441] [VB] MustOverride Public Function GetEvents(ByVal bindingAttr As BindingFlags) As EventInfo( )


[16442] [JScript] public abstract function GetEvents(bindingAttr: BindingFlags): EventInfo[ ];


[16443] Description


[16444] When overridden in a derived class, searches for events that are declared or inherited by the current System.Type, using the specified binding constraints.


[16445] Return Value: An array of System.Reflection.EventInfo objects representing all events which are declared or inherited by the current System.Type that match the specified binding constraints.


[16446] The following System.Reflection.BindingFlags filter flags can be used to define which events to include in the search: Public to include public events in the search. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16447] GetField


[16448] [C#] public FieldInfo GetField(string name);


[16449] [C++] public: FieldInfo* GetField(String* name);


[16450] [VB] Public Function GetField(ByVal name As String) As FieldInfo


[16451] [JScript] public function GetField(name: String): FieldInfo;


[16452] Description


[16453] Searches for the field with the specified name.


[16454] Return Value: A System.Reflection.FieldInfo object representing the field with the specified name, if found; otherwise, null.


[16455] The search for name is case-sensitive. The System.String containing the name of the data field to get.


[16456] GetField


[16457] [C#] public abstract FieldInfo GetField(string name, BindingFlags bindingAttr);


[16458] [C++] public: virtual FieldInfo* GetField(String* name, BindingFlags bindingAttr)=0;


[16459] [VB] MustOverride Public Function GetField(ByVal name As String, ByVal bindingAttr As BindingFlags) As FieldInfo


[16460] [JScript] public abstract function GetField(name: String, bindingAttr: BindingFlags): FieldInfo; Gets a specific field of the current System.Type.


[16461] Description


[16462] Searches for the specified field, using the specified binding constraints.


[16463] Return Value: A System.Reflection.FieldInfo object representing the field that matches the specified requirements, if found; otherwise, null.


[16464] The following table shows what members of a base class are returned by the Get methods when reflecting on a type. The System.String containing the name of the data field to get. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16465] GetFields


[16466] [C#] public FieldInfo[ ] GetFields( );


[16467] [C++] public: FieldInfo* GetFields( ) [ ];


[16468] [VB] Public Function GetFields( ) As FieldInfo( )


[16469] [JScript] public function GetFields( ): FieldInfo[ ]; Gets the fields of the current System.Type.


[16470] Description


[16471] Returns all the public fields of the current System.Type.


[16472] Return Value: An array of System.Reflection.FieldInfo objects representing all the public fields defined for the current System.Type.


[16473] The following table shows what members of a base class are returned by the Get methods when reflecting on a type.


[16474] GetFields


[16475] [C#] public abstract FieldInfo[ ] GetFields(BindingFlags bindingAttr);


[16476] [C++] public: virtual FieldInfo* GetFields(BindingFlags bindingAttr) [ ]=0;


[16477] [VB] MustOverride Public Function GetFields(ByVal bindingAttr As BindingFlags) As FieldInfo( )


[16478] [JScript] public abstract function GetFields(bindingAttr: BindingFlags) FieldInfo[ ];


[16479] Description


[16480] When overridden in a derived class, searches for the fields defined for the current System.Type, using the specified binding constraints.


[16481] Return Value: An array of System.Reflection.FieldInfo objects representing all fields defined for the current System.Type that match the specified binding constraints.


[16482] The following System.Reflection.BindingFlags filter flags can be used to define which fields to include in the search: Instance to include instance fields in the search. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16483] GetHashCode


[16484] [C#] public override int GetHashCode( );


[16485] [C++] public: int GetHashCode( );


[16486] [VB] Overrides Public Function GetHashCode( ) As Integer


[16487] [JScript] public override function GetHashCode( ): int;


[16488] Description


[16489] Returns the hash code of the System.Type.


[16490] Return Value: The hash code of the System.Type.


[16491] GetInterface


[16492] [C#] public Type GetInterface(string name);


[16493] [C++] public: Type* GetInterface(String* name);


[16494] [VB] Public Function GetInterface(ByVal name As String) As Type


[16495] [JScript] public function GetInterface(name: String): Type; Gets a specific interface implemented or inherited by the current System.Type.


[16496] Description


[16497] Searches for the interface with the specified name.


[16498] Return Value: A System.Type object representing the interface with the specified name, implemented or inherited by the current System.Type, if found; otherwise, null.


[16499] The search for name is case-sensitive. The System.String containing the name of the interface to get.


[16500] GetInterface


[16501] [C#] public abstract Type GetInterface(string name, bool ignoreCase);


[16502] [C++] public: virtual Type* GetInterface(String* name, bool ignoreCase)=0;


[16503] [VB] MustOverride Public Function GetInterface(ByVal name As String, ByVal ignoreCase As Boolean) As Type


[16504] [JScript] public abstract function GetInterface(name: String, ignoreCase: Boolean): Type;


[16505] Description


[16506] When overridden in a derived class, searches for the specified interface, specifying whether to do a case-sensitive search.


[16507] Return Value: A System.Type object representing the interface with the specified name, implemented or inherited by the current System.Type, if found; otherwise, null.


[16508] If name has 128 or more standard ASCII characters, a case-sensitive search is performed, regardless of the value of ignoreCase. Arrays or COM types are not searched for unless they have been previously loaded into the table of available classes. The System.String containing the name of the interface to get. true to perform a case-insensitive search for name.


[16509] GetInterfaceMap


[16510] [C#] public virtual InterfaceMapping GetInterfaceMap(Type interfaceType);


[16511] [C++] public: virtual InterfaceMapping GetInterfaceMap(Type* interfaceType);


[16512] [VB] Overridable Public Function GetInterfaceMap(ByVal interfaceType As Type) As InterfaceMapping


[16513] [JScript] public function GetInterfaceMap(interfaceType: Type) InterfaceMapping;


[16514] Description


[16515] Returns an interface mapping for the specified interface type.


[16516] Return Value: An System.Reflection.InterfaceMapping object representing the interface mapping for interfaceType.


[16517] The interface map denotes how an interface is mapped into the actual methods on a class that implements that interface. The System.Type of the interface of which to retrieve a mapping.


[16518] GetInterfaces


[16519] [C#] public abstract Type[ ] GetInterfaces( );


[16520] [C++] public: virtual Type* GetInterfaces( ) [ ]=0;


[16521] [VB] MustOverride Public Function GetInterfaces( ) As Type( )


[16522] [JScript] public abstract function GetInterfaces( ): Type[ ];


[16523] Description


[16524] When overridden in a derived class, gets all the interfaces implemented or inherited by the current System.Type.


[16525] Return Value: An array of System.Type objects representing all the interfaces implemented or inherited by the current System.Type.


[16526] GetMember


[16527] [C#] public MemberInfo[ ] GetMember(string name);


[16528] [C++] public: MemberInfo* GetMember(String* name)[ ];


[16529] [VB] Public Function GetMember(ByVal name As String) As MemberInfo( )


[16530] [JScript] public function GetMember(name: String): MemberInfo[ ]; Gets the specified members of the current System.Type.


[16531] Description


[16532] Searches for the members with the specified name.


[16533] Return Value: An array of System.Reflection.MemberInfo objects representing the public members with the specified name, if found; otherwise, null.


[16534] The search for name is case-sensitive. The System.String containing the name of the public members to get.


[16535] GetMember


[16536] [C#] public virtual MemberInfo[ ] GetMember(string name, BindingFlags bindingAttr);


[16537] [C++] public: virtual MemberInfo* GetMember(String* name, BindingFlags bindingAttr) [ ];


[16538] [VB] Overridable Public Function GetMember(ByVal name As String, ByVal bindingAttr As BindingFlags) As MemberInfo( )


[16539] [JScript] public function GetMember(name: String, bindingAttr: BindingFlags): MemberInfo[ ];


[16540] Description


[16541] Searches for the specified members, using the specified binding constraints.


[16542] Return Value: An array of System.Reflection.MemberInfo objects representing the public members with the specified name, if found; otherwise, null.


[16543] This method can be overridden by a derived class. The System.String containing the name of the members to get. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16544] GetMember


[16545] [C#] public virtual MemberInfo[ ] GetMember(string name, MemberTypes type, BindingFlags bindingAttr);


[16546] [C++] public: virtual MemberInfo* GetMember(String* name, MemberTypes type, BindingFlags bindingAttr) [ ];


[16547] [VB] Overridable Public Function GetMember(ByVal name As String, ByVal type As MemberTypes, ByVal bindingAttr As BindingFlags) As MemberInfo( )


[16548] [JScript] public function GetMember(name: String, type: MemberTypes, bindingAttr: BindingFlags): MemberInfo[ ];


[16549] Description


[16550] Searches for the specified members of the specified member type, using the specified binding constraints.


[16551] Return Value: An array of System.Reflection.MemberInfo objects representing the public members with the specified name, if found; otherwise, null.


[16552] Members include properties, methods, fields, events, and so on. The System.String containing the name of the members to get. The System.Type of member to search for. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16553] GetMembers


[16554] [C#] public MemberInfo[ ] GetMembers( );


[16555] [C++] public: MemberInfo* GetMembers( ) [ ];


[16556] [VB] Public Function GetMembers( ) As MemberInfo( )


[16557] [JScript] public function GetMembers( ): MemberInfo[ ]; Gets the members (properties, methods, fields, events, and so on) of the current System.Type.


[16558] Description


[16559] Returns all the public members of the current System.Type.


[16560] Return Value: An array of System.Reflection.MemberInfo objects representing all the public members of the current System.Type.


[16561] Members include properties, methods, fields, events, and so on.


[16562] GetMembers


[16563] [C#] public abstract MemberInfo[ ] GetMembers(BindingFlags bindingAttr);


[16564] [C++] public: virtual MemberInfo* GetMembers(BindingFlags bindingAttr) [ ]=0;


[16565] [VB] MustOverride Public Function GetMembers(ByVal bindingAttr As BindingFlags) As MemberInfo( )


[16566] [JScript] public abstract function GetMembers(bindingAttr: BindingFlags): MemberInfo[ ];


[16567] Description


[16568] When overridden in a derived class, searches for the members defined for the current System.Type, using the specified binding constraints.


[16569] Return Value: An array of System.Reflection.MemberInfo objects representing all members defined for the current System.Type that match the specified binding constraints.


[16570] Members include properties, methods, fields, events, and so on. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16571] GetMethod


[16572] [C#] public MethodInfo GetMethod(string name);


[16573] [C++] public: MethodInfo* GetMethod(String* name);


[16574] [VB] Public Function GetMethod(ByVal name As String) As MethodInfo


[16575] [JScript] public function GetMethod(name: String): MethodInfo;


[16576] Description


[16577] Searches for the public method with the specified name.


[16578] Return Value: A System.Reflection.MethodInfo object representing the public method with the specified name, if found; otherwise, null.


[16579] The search for name is case-sensitive. The System.String containing the name of the public method to get.


[16580] GetMethod


[16581] [C#] public MethodInfo GetMethod(string name, BindingFlags bindingAttr);


[16582] [C++] public: _sealed MethodInfo* GetMethod(String* name, BindingFlags bindingAttr);


[16583] [VB] NotOverridable Public Function GetMethod(ByVal name As String, ByVal bindingAttr As BindingFlags) As MethodInfo


[16584] [JScript] public function GetMethod(name: String, bindingAttr: BindingFlags): MethodInfo;


[16585] Description


[16586] Searches for the specified method, using the specified binding constraints.


[16587] Return Value: A System.Reflection.MethodInfo object representing the method that matches the specified requirements, if found; otherwise, null.


[16588] The following System.Reflection.BindingFlags filter flags can be used to define which methods to include in the search: Instance to include instance methods in the search. The System.String containing the name of the method to get. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16589] GetMethod


[16590] [C#] public MethodInfo GetMethod(string name, Type[ ] types);


[16591] [C++] public: MethodInfo* GetMethod(String* name, Type* types[ ]);


[16592] [VB] Public Function GetMethod(ByVal name As String, ByVal types( ) As Type) As MethodInfo


[16593] [JScript] public function GetMethod(name: String, types: Type[ ]): MethodInfo;


[16594] Description


[16595] Searches for the specified public method whose parameters match the specified argument types.


[16596] Return Value: A System.Reflection.MethodInfo object representing the public method whose parameters match the specified argument types, if found; otherwise, null.


[16597] The search for name is case-sensitive. The System.String containing the name of the public method to get. An array of System.Type objects representing the number, order, and type of the parameters for the method to get.


[16598] GetMethod


[16599] [C#] public MethodInfo GetMethod(string name, Type[ ] types, ParameterModifier[ ] modifiers);


[16600] [C++] public: MethodInfo* GetMethod(String* name, Type* types[ ], ParameterModifier modifiers[ ]);


[16601] [VB] Public Function GetMethod(ByVal name As String, ByVal types( ) As Type, ByVal modifiers( ) As ParameterModifier) As MethodInfo


[16602] [JScript] public function GetMethod(name: String, types: Type[ ], modifiers: ParameterModifier[ ]): MethodInfo;


[16603] Description


[16604] Searches for the specified public method whose parameters match the specified argument types and modifiers.


[16605] Return Value: A System.Reflection.MethodInfo object representing the public method that matches the specified requirements, if found; otherwise, null.


[16606] The types array and the modifiers array have the same length. A parameter specified in the types array can have the following attributes, which are specified in the modifiers array: pdIn, pdOut, pdLcid, pdRetval, pdOptional, and pdHasDefault, which represent [In], [Out], [lcid], [retval], [optional], and a value specifying whether the parameter has a default value. A parameter's associated attributes are stored in the metadata and are used for interoperability. The System.String containing the name of the public method to get. An array of System.Type objects representing the number, order, and type of the parameters for the method to get. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the types array.


[16607] GetMethod


[16608] [C#] public MethodInfo GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[ ] types, ParameterModifier[ ] modifiers);


[16609] [C++] public: _sealed MethodInfo* GetMethod(String* name, BindingFlags bindingAttr, Binder* binder, Type* types [ ], ParameterModifier modifiers[ ]);


[16610] [VB] NotOverridable Public Function GetMethod(ByVal name As String, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal types( ) As Type, ByVal modifiers( ) As ParameterModifier) As MethodInfo


[16611] [JScript] public function GetMethod(name: String, bindingAttr: BindingFlags, binder: Binder, types: Type[ ], modifiers: ParameterModifier[ ]): MethodInfo;


[16612] Description


[16613] Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints.


[16614] Return Value: A System.Reflection.MethodInfo object representing the method that matches the specified requirements, if found; otherwise, null.


[16615] The types array and the modifiers array have the same length. A parameter specified in the types array can have the following attributes, which are specified in the modifiers array: pdIn, pdOut, pdLcid, pdRetval, pdOptional, and pdHasDefault, which represent [In], [Out], [lcid], [retval], [optional], and a value specifying whether the parameter has a default value. A parameter's associated attributes are stored in the metadata and enhance interoperability. The System.String containing the name of the method to get. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection. An array of System.Type objects representing the number, order, and type of the parameters for the method to get. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the types array.


[16616] GetMethod


[16617] [C#] public MethodInfo GetMethod(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[ ]types, ParameterModifier[ ]modifiers);


[16618] [C++] public: Method


[16619] Info* GetMethod(String* name, BindingFlags bindingAttr, Binder* binder, CallingConventions callConvention, Type* types[ ], ParameterModifier modifiers[ ]);


[16620] [VB] Public Function GetMethod(ByVal name As String, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal callConvention As CallingConventions, ByVal types( ) As Type, ByVal modifiers( ) As ParameterModifier) As MethodInfo


[16621] [JScript] public function GetMethod(name: String, bindingAttr: BindingFlags, binder: Binder, callConvention: CallingConventions, types: Type[ ], modifiers: ParameterModifier[ ]): MethodInfo; Gets a specific method of the current System.Type.


[16622] Description


[16623] Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.


[16624] Return Value: A System.Reflection.MethodInfo object representing the method that matches the specified requirements, if found; otherwise, null


[16625] The following table shows what members of a base class are returned by the GetXXX methods when reflecting on a type. The System.String containing the name of the method to get. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection. The System.Reflection.CallingConventions object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and how the stack is cleaned up. An array of System.Type objects representing the number, order, and type of the parameters for the method to get. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the types array.


[16626] GetMethodImpl


[16627] [C#] protected abstract MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[ ]types, ParameterModifier[ ]modifiers);


[16628] [C++] protected: virtual MethodInfo* GetMethodImpl(String* name, BindingFlags bindingAttr, Binder* binder, CallingConventions callConvention, Type* types[ ], ParameterModifier modifiers[ ])=0;


[16629] [VB] MustOverride Protected Function GetMethodImpl(ByVal name As String, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal callConvention As CallingConventions, ByVal types( ) As Type, ByVal modifiers( ) As ParameterModifier) As MethodInfo


[16630] [JScript] protected abstract function GetMethodImpl(name: String, bindingAttr: BindingFlags, binder: Binder, callConvention: CallingConventions, types: Type[ ], modifiers: ParameterModifier[ ]): MethodInfo;


[16631] Description


[16632] When overridden in a derived class, searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.


[16633] Return Value: A System.Reflection.MethodInfo object representing the method that matches the specified requirements, if found; otherwise, null.


[16634] If types is null, arguments are not matched. The System.String containing the name of the method to get. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection. The System.Reflection.CallingConventions object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and what process cleans up the stack. An array of System.Type objects representing the number, order, and type of the parameters for the method to get. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the types array.


[16635] GetMethods


[16636] [C#] public MethodInfo[ ] GetMethods( );


[16637] [C++] public: MethodInfo* GetMethods( ) [ ];


[16638] [VB] Public Function GetMethods( ) As MethodInfo( )


[16639] [JScript] public function GetMethods( ): MethodInfo[ ]; Gets the methods of the current System.Type.


[16640] Description


[16641] Returns all the public methods of the current System.Type.


[16642] Return Value: An array of System.Reflection.MethodInfo objects representing all the public methods defined for the current System.Type.


[16643] The following table shows what members of a base class are returned by the Get methods when reflecting on a type.


[16644] GetMethods


[16645] [C#] public abstract MethodInfo[ ] GetMethods(BindingFlags bindingAttr);


[16646] [C++] public: virtual MethodInfo* GetMethods(BindingFlags bindingAttr) [ ]=0;


[16647] [VB] MustOverride Public Function GetMethods(ByVal bindingAttr As BindingFlags) As MethodInfo( )


[16648] [JScript] public abstract function GetMethods(bindingAttr: BindingFlags): MethodInfo[ ];


[16649] Description


[16650] When overridden in a derived class, searches for the methods defined for the current System.Type, using the specified binding constraints.


[16651] Return Value: An array of System.Reflection.MethodInfo objects representing all methods defined for the current System.Type that match the specified binding constraints.


[16652] The following System.Reflection.BindingFlags filter flags can be used to define which methods to include in the search: Instance to include instance methods in the search. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16653] GetNestedType


[16654] [C#] public Type GetNestedType(string name);


[16655] [C++] public: Type* GetNestedType(String* name);


[16656] [VB] Public Function GetNestedType(ByVal name As String) As Type


[16657] [JScript] public function GetNestedType(name: String): Type; Gets a specific type nested within the current System.Type.


[16658] Description


[16659] Searches for the nested type with the specified name.


[16660] Return Value: A System.Type object representing the nested type with the specified name, if found; otherwise, null.


[16661] The search for name is case-sensitive. The System.String containing the name of the nested type to get.


[16662] GetNestedType


[16663] [C#] public abstract Type GetNestedType(string name, BindingFlags bindingAttr);


[16664] [C++] public: virtual Type* GetNestedType(String* name, BindingFlags bindingAttr)=0;


[16665] [VB] MustOverride Public Function GetNestedType(ByVal name As String, ByVal bindingAttr As BindingFlags) As Type


[16666] [JScript] public abstract function GetNestedType(name: String, bindingAttr: BindingFlags): Type;


[16667] Description


[16668] When overridden in a derived class, searches for the specified nested type, using the specified binding constraints.


[16669] Return Value: A System.Type object representing the nested type that matches the specified requirements, if found; otherwise, null.


[16670] The following System.Reflection.BindingFlags filter flags can be used to define which nested types to include in the search: Public to include public nested types in the search. The System.String containing the name of the nested type to get. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16671] GetNestedTypes


[16672] [C#] public Type[ ] GetNestedTypes( );


[16673] [C++] public: Type* GetNestedTypes( ) [ ];


[16674] [VB] Public Function GetNestedTypes( ) As Type( )


[16675] [JScript] public function GetNestedTypes( ): Type[ ]; Gets the types nested within the current System.Type


[16676] Description


[16677] Returns all the types nested within the current System.Type.


[16678] Return Value: An array of System.Type objects representing all the types nested within the current System.Type.


[16679] The following table shows what members of a base class are returned by the Get methods when reflecting on a type.


[16680] GetNestedTypes


[16681] [C#] public abstract Type[ ] GetNestedTypes(BindingFlags bindingAttr);


[16682] [C++] public: virtual Type* GetNestedTypes(BindingFlags bindingAttr) [ ]=0;


[16683] [VB] MustOverride Public Function GetNestedTypes(ByVal bindingAttr As BindingFlags) As Type( )


[16684] [JScript] public abstract function GetNestedTypes(bindingAttr: BindingFlags): Type[ ];


[16685] Description


[16686] When overridden in a derived class, searches for the types nested within the current System.Type, using the specified binding constraints.


[16687] Return Value: An array of System.Type objects representing all the types nested within the current System.Type that match the specified binding constraints.


[16688] The following System.Reflection.BindingFlags filter flags can be used to define which nested types to include in the search: Public to include public nested types in the search. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16689] GetProperties


[16690] [C#] public PropertyInfo[ ] GetProperties( );


[16691] [C++] public: PropertyInfo* GetProperties( ) [ ];


[16692] [VB] Public Function GetProperties( ) As PropertyInfo( )


[16693] [JScript] public function GetProperties( ): PropertyInfo[ ];


[16694] Description


[16695] Returns all the public properties of the current System.Type.


[16696] Return Value: An array of System.Reflection.PropertyInfo objects representing all public properties of the current System.Type.


[16697] The following table shows what members of a base class are returned by the Get methods when reflecting on a type.


[16698] GetProperties


[16699] [C#] public abstract PropertyInfo[ ] GetProperties(BindingFlags bindingAttr);


[16700] [C++] public: virtual PropertyInfo* GetProperties(BindingFlags bindingAttr) [ ]=0;


[16701] [VB] MustOverride Public Function GetProperties(ByVal bindingAttr As BindingFlags) As PropertyInfo( )


[16702] [JScript] public abstract function GetProperties(bindingAttr: BindingFlags): PropertyInfo[ ]; Gets the properties of the current System.Type.


[16703] Description


[16704] When overridden in a derived class, searches for the properties of the current System.Type, using the specified binding constraints.


[16705] Return Value: An array of System.Reflection.PropertyInfo objects representing all properties of the current System.Type that match the specified binding constraints.


[16706] A property is considered public to reflection if it has at least one accessor that is public. That is, you can call type.GetProperty(“propertyname”, BindingFlags.Public|BindingFlags.Instance|BindingFlags.Static) to get it. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16707] GetProperty


[16708] [C++] public PropertyInfo GetProperty(string name);


[16709] [C++] public: PropertyInfo* GetProperty(String* name);


[16710] [VB] Public Function GetProperty(ByVal name As String) As PropertyInfo


[16711] [JScript] public function GetProperty(name: String): PropertyInfo;


[16712] Description


[16713] Searches for the public property with the specified name.


[16714] Return Value: A System.Reflection.PropertyInfo object representing the public property with the specified name, if found; otherwise, null.


[16715] The search for name is case-sensitive. The System.String containing the name of the public property to get.


[16716] GetProperty


[16717] [C#] public PropertyInfo GetProperty(string name, BindingFlags bindingAttr);


[16718] [C++] public: _sealed PropertyInfo* GetProperty(String* name, BindingFlags bindingAttr);


[16719] [VB] NotOverridable Public Function GetProperty(ByVal name As String, ByVal bindingAttr As BindingFlags) As PropertyInfo


[16720] [JScript] public function GetProperty(name: String, bindingAttr: BindingFlags) PropertyInfo;


[16721] Description


[16722] Searches for the specified property, using the specified binding constraints.


[16723] Return Value: A System.Reflection.PropertyInfo object representing the property that matches the specified requirements, if found; otherwise, null.


[16724] The types array and the modifiers array have the same length. A parameter specified in the types array can have the following attributes, which are specified in the modifiers array: pdIn, pdOut, pdLcid, pdRetval, pdOptional, and pdHasDefault, which represent [In], [Out], [lcid], [retval], [optional], and a value specifying whether the parameter has a default value. A parameter's associated attributes are stored in the metadata and enhance interoperability. The System.String containing the name of the property to get. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.


[16725] GetProperty


[16726] [C#] public PropertyInfo GetProperty(string name, Type returnType);


[16727] [C++] public: PropertyInfo* GetProperty(String* name, Type* returnType);


[16728] [VB] Public Function GetProperty(ByVal name As String, ByVal returnType As Type) As PropertyInfo


[16729] [JScript] public function GetProperty(name: String, returnType: Type): PropertyInfo;


[16730] Description


[16731] Searches for the public property with the specified name and return type.


[16732] Return Value: A System.Reflection.PropertyInfo object representing the public property with the specified name, if found; otherwise, null.


[16733] The search for name is case-sensitive. The System.String containing the name of the public property to get. The return type of the property.


[16734] GetProperty


[16735] [C#] public PropertyInfo GetProperty(string name, Type[ ] types);


[16736] [C++] public: PropertyInfo* GetProperty(String* name, Type* types[ ]);


[16737] [VB] Public Function GetProperty(ByVal name As String, ByVal types( ) As Type) As PropertyInfo


[16738] [JScript] public function GetProperty(name: String, types: Type[ ]): PropertyInfo;


[16739] Description


[16740] Searches for the specified public property whose parameters match the specified argument types.


[16741] Return Value: A System.Reflection.PropertyInfo object representing the public property whose parameters match the specified argument types, if found; otherwise, null.


[16742] The search for name is case-sensitive. The System.String containing the name of the public property to get. An array of System.Type objects representing the number, order, and type of the parameters for the indexed property to get.


[16743] GetProperty


[16744] [C#] public PropertyInfo GetProperty(string name, Type returnType, Type[ ] types);


[16745] [C++] public: PropertyInfo* GetProperty(String* name, Type* returnType, Type* types[ ]);


[16746] [VB] Public Function GetProperty(ByVal name As String, ByVal returnType As Type, ByVal types( ) As Type) As PropertyInfo


[16747] [JScript] public function GetProperty(name: String, returnType: Type, types: Type[ ]): PropertyInfo;


[16748] Description


[16749] Searches for the specified public property whose parameters match the specified argument types.


[16750] Return Value: A System.Reflection.PropertyInfo object representing the public property whose parameters match the specified argument types, if found; otherwise, null.


[16751] The search for name is case-sensitive. The System.String containing the name of the public property to get. The return type of the property. An array of System.Type objects representing the number, order, and type of the parameters for the indexed property to get.


[16752] GetProperty


[16753] [C#] public PropertyInfo GetProperty(string name, Type returnType, Type[ ] types, ParameterModifier[ ] modifiers);


[16754] [C++] public: PropertyInfo* GetProperty(String* name, Type* returnType, Type* types[ ], ParameterModifier modifiers[ ]);


[16755] [VB] Public Function GetProperty(ByVal name As String, ByVal returnType As Type, ByVal types( ) As Type, ByVal modifiers( ) As ParameterModifier) As PropertyInfo


[16756] [JScript] public function GetProperty(name: String, returnType: Type, types: Type[ ], modifiers: ParameterModifier[ ]): PropertyInfo;


[16757] Description


[16758] Searches for the specified public property whose parameters match the specified argument types and modifiers.


[16759] Return Value: A System.Reflection.PropertyInfo object representing the public property that matches the specified requirements, if found; otherwise, null.


[16760] The types array and the modifiers array have the same length. A parameter specified in the types array can have the following attributes, which are specified in the modifiers array: pdIn, pdOut, pdLcid, pdRetval, pdOptional, and pdHasDefault, which represent [In], [Out], [lcid], [retval], [optional], and a value specifying whether the parameter has a default value. A parameter's associated attributes are stored in the metadata and enhance interoperability. The System.String containing the name of the public property to get. The return type of the property. An array of System.Type objects representing the number, order, and type of the parameters for the indexed property to get. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the types array.


[16761] GetProperty


[16762] [C#] public PropertyInfo GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[ ] types, ParameterModifier[ ] modifiers);


[16763] [C++] public: _sealed PropertyInfo* GetProperty(String* name, BindingFlags bindingAttr, Binder* binder, Type* returnType, Type* types[ ], ParameterModifier modifiers[ ]);


[16764] [VB] NotOverridable Public Function GetProperty(ByVal name As String, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal returnType As Type, ByVal types( ) As Type, ByVal modifiers( ) As ParameterModifier) As PropertyInfo


[16765] [JScript] public function GetProperty(name: String, bindingAttr: BindingFlags, binder: Binder, returnType: Type, types: Type[ ], modifiers: ParameterModifier[ ]): PropertyInfo; Gets a specific property of the current System.Type.


[16766] Description


[16767] Searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints.


[16768] Return Value: A System.Reflection.PropertyInfo object representing the property that matches the specified requirements, if found; otherwise, null.


[16769] The following table shows what members of a base class are returned by the Get methods when reflecting on a type. The System.String containing the name of the property to get. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection. The return type of the property. An array of System.Type objects representing the number, order, and type of the parameters for the indexed property to get. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the types array.


[16770] GetPropertyImpl


[16771] [C#] protected abstract PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[ ] types, ParameterModifier[ ] modifiers);


[16772] [C++] protected: virtual PropertyInfo* GetPropertyImpl(String* name, BindingFlags bindingAttr, Binder* binder, Type* returnType, Type* types[ ], ParameterModifier modifiers[ ])=0;


[16773] [VB] MustOverride Protected Function GetPropertyImpl(ByVal name As String, ByVal bindingAttr As BindingFlags, ByVal binder As Binder, ByVal returnType As Type, ByVal types( ) As Type, ByVal modifiers( ) As ParameterModifier) As PropertyInfo


[16774] [JScript] protected abstract function GetPropertyImpl(name: String, bindingAttr: BindingFlags, binder: Binder, returnType: Type, types: Type[ ], modifiers: ParameterModifier[ ]): PropertyInfo;


[16775] Description


[16776] When overridden in a derived class, searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints.


[16777] Return Value: A System.Reflection.PropertyInfo object representing the property that matches the specified requirements, if found; otherwise, null.


[16778] The types array and the modifiers array have the same length. A parameter specified in the types array can have the following attributes, which are specified in the modifiers array: pdIn, pdOut, pdLcid, pdRetval, pdOptional, and pdHasDefault, which represent [In], [Out], [lcid], [retval], [optional], and a value specifying whether the parameter has a default value. A parameter's associated attributes are stored in the metadata and are used for interoperability. The System.String containing the name of the property to get. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded member, coercion of argument types, and invocation of a member through reflection. The return type of the property. An array of System.Type objects representing the number, order, and type of the parameters for the indexed property to get. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the types array.


[16779] GetType


[16780] [C#] public static Type GetType(string typeName);


[16781] [C++] public: static Type* GetType(String* typeName);


[16782] [VB] Public Shared Function GetType(ByVal typeName As String) As Type


[16783] [JScript] public static function GetType(typeName: String): Type;


[16784] Description


[16785] Gets the System.Type with the specified name, performing a case-sensitive search.


[16786] Return Value: The System.Type with the specified name, if found; otherwise, null


[16787] GetType only works on assemblies loaded from disk. If you call GetType to look up a type defined in a dynamic assembly defined using the System.Reflection.Emit services, you might get inconsistent behavior. The behavior depends on whether the dynamic assembly is persistent, that is, created using the RunAndSave or Save access modes of the System.Reflection.Emit.AssemblyBuilderAccess enumeration. If the dynamic assembly is persistent and has been written to disk before GetType is called, the loader finds the saved assembly on disk, loads that assembly, and retrieves the type from that assembly. If the assembly has not been saved to disk when GetType is called, the method returns null. The name of the System.Type to get.


[16788] GetType


[16789] [C#] public static Type GetType(string typeName, bool throwOnError);


[16790] [C++] public: static Type* GetType(String* typeName, bool throwOnError);


[16791] [VB] Public Shared Function GetType(ByVal typeName As String, ByVal throwOnError As Boolean) As Type


[16792] [JScript] public static function GetType(typeName: String, throwOnError: Boolean): Type;


[16793] Description


[16794] Gets the System.Type with the specified name, performing a case-sensitive search and specifying whether to throw an exception if an error occurs while loading the System.Type.


[16795] Return Value: The System.Type with the specified name, if found; otherwise, null


[16796] GetType only works on assemblies loaded from disk. If you call GetType to look up a type defined in a dynamic assembly defined using the System.Reflection.Emit services, you might get inconsistent behavior. The behavior depends on whether the dynamic assembly is persistent, that is, created using the RunAndSave or Save access modes of the System.Reflection.Emit.AssemblyBuilderAccess enumeration. If the dynamic assembly is persistent and has been written to disk before GetType is called, the loader finds the saved assembly on disk, loads that assembly, and retrieves the type from that assembly. If the assembly has not been saved to disk when GetType is called, the method returns null. The name of the System.Type to get. true to throw a System.TypeLoadException if an error occurs while loading the System.Type.


[16797] GetType


[16798] [C#] public static Type GetType(string typeName, bool throwOnError, bool ignorecase);


[16799] [C++] public: static Type* GetType(String* typeName, bool throwOnError, bool ignorecase);


[16800] [VB] Public Shared Function GetType(ByVal typeName As String, ByVal throwOnError As Boolean, ByVal ignoreCase As Boolean) As Type


[16801] [JScript] public static function GetType(typeName: String, throwOnError: Boolean, ignoreCase: Boolean): Type; Gets the System.Type with the specified name.


[16802] Description


[16803] Gets the System.Type with the specified name, specifying whether to perform a case-sensitive search and whether to throw an exception if an error occurs while loading the System.Type.


[16804] Return Value: The System.Type with the specified name, if found; otherwise, null.


[16805] GetType only works on assemblies loaded from disk. If you call GetType to look up a type defined in a dynamic assembly defined using the System.Reflection.Emit services, you might get inconsistent behavior. The behavior depends on whether the dynamic assembly is persistent, that is, created using the RunAndSave or Save access modes of the System.Reflection.Emit.AssemblyBuilderAccess enumeration. If the dynamic assembly is persistent and has been written to disk before GetType is called, the loader finds the saved assembly on disk, loads that assembly, and retrieves the type from that assembly. If the assembly has not been saved to disk when GetType is called, the method returns null. The name of the System.Type to get. true to throw a System.TypeLoadException if an error occurs while loading the System.Type. true to perform a case-insensitive search for typeName, if typeName has less than 128 characters.


[16806] GetTypeArray


[16807] [C#] public static Type[ ] GetTypeArray(object[ ] args);


[16808] [C++] public: static Type* GetTypeArray(Object* args_gc[ ]) [ ];


[16809] [VB] Public Shared Function GetTypeArray(ByVal args( ) As Object) As Type( )


[16810] [JScript] public static function GetTypeArray(args: Object[ ]): Type[ ];


[16811] Description


[16812] Gets the types of the objects in the specified array.


[16813] Return Value: An array of System.Type objects representing the types of the corresponding elements in args. An array of objects whose types to determine.


[16814] GetTypeCode


[16815] [C#] public static TypeCode GetTypeCode(Type type);


[16816] [C++] public: static TypeCode GetTypeCode(Type* type);


[16817] [VB] Public Shared Function GetTypeCode(ByVal type As Type) As TypeCode


[16818] [JScript] public static function GetTypeCode(type: Type): TypeCode;


[16819] Description


[16820] Gets the underlying type code of the specified System.Type.


[16821] Return Value: The System.TypeCode value of the underlying type. The System.Type whose underlying type code to get.


[16822] GetTypeFromCLSID


[16823] [C#] public static Type GetTypeFromCLSID(Guid clsid);


[16824] [C++] public: static Type* GetTypeFromCLSID(Guid clsid);


[16825] [VB] Public Shared Function GetTypeFromCLSID(ByVal clsid As Guid) As Type


[16826] [JScript] public static function GetTypeFromCLSID(clsid: Guid): Type; Gets the System.Type associated with the specified class identifier (CLSID).


[16827] Description


[16828] Gets the System.Type associated with the specified class identifier (CLSID).


[16829] Return Value: System._ComObject regardless of whether the CLSID is valid. The CLSID of the System.Type to get.


[16830] GetTypeFromCLSID


[16831] [C#] public static Type GetTypeFromCLSID(Guid clsid, bool throwOnError);


[16832] [C++] public: static Type* GetTypeFromCLSID(Guid clsid, bool throwOnError);


[16833] [VB] Public Shared Function GetTypeFromCLSID(ByVal clsid As Guid, ByVal throwOnError As Boolean) As Type


[16834] [JScript] public static function GetTypeFromCLSID(clsid: Guid, throwOnError: Boolean): Type;


[16835] Description


[16836] Gets the System.Type associated with the specified class identifier (CLSID), specifying whether to throw an exception if an error occurs while loading the System.Type.


[16837] Return Value: System._ComObject regardless of whether the CLSID is valid.


[16838] Exceptions such as System.OutOfMemoryException will be thrown when specifying true for throwOnError, but it will not fail for unregistered CLSID's. The CLSID of the System.Type to get. true to throw a System.TypeLoadException if an error occurs while loading the System.Type.


[16839] GetTypeFromCLSID


[16840] [C#] public static Type GetTypeFromCLSID(Guid clsid, string server);


[16841] [C++] public: static Type* GetTypeFromCLSID(Guid clsid, String* server);


[16842] [VB] Public Shared Function GetTypeFromCLSID(ByVal clsid As Guid, ByVal server As String) As Type


[16843] [JScript] public static function GetTypeFromCLSID(clsid: Guid, server: String): Type;


[16844] Description


[16845] Gets the System.Type associated with the specified class identifier (CLSID) from the specified server.


[16846] Return Value: System._ComObject regardless of whether the CLSID is valid. The CLSID of the System.Type to get. The server from which to load the type.


[16847] GetTypeFromCLSID


[16848] [C#] public static Type GetTypeFromCLSID(Guid clsid, string server, bool throwOnError);


[16849] [C++] public: static Type* GetTypeFromCLSID(Guid clsid, String* server, bool throwOnError);


[16850] [VB] Public Shared Function GetTypeFromCLSID(ByVal clsid As Guid, ByVal server As String, ByVal throwOnError As Boolean) As Type


[16851] [JScript] public static function GetTypeFromCLSID(clsid: Guid, server: String, throwOnError: Boolean): Type;


[16852] Description


[16853] Gets the System.Type associated with the specified class identifier (CLSID) from the specified server, specifying whether to throw an exception if an error occurs while loading the System.Type.


[16854] Return Value: System._ComObject regardless of whether the CLSID is valid.


[16855] Exceptions such as System.OutOfMemoryException will be thrown when specifying true for throwOnError, but it will not fail for unregistered CLSID's. The CLSID of the System.Type to get. The server from which to load the type. true to throw a System.TypeLoadException if an error occurs while loading the System.Type.


[16856] GetTypeFromHandle


[16857] [C#] public static Type GetTypeFromHandle(RuntimeTypeHandle handle);


[16858] [C++] public: static Type* GetTypeFromHandle(RuntimeTypeHandle handle);


[16859] [VB] Public Shared Function GetTypeFromHandle(ByVal handle As RuntimeTypeHandle) As Type


[16860] [JScript] public static function GetTypeFromHandle(handle: RuntimeTypeHandle): Type;


[16861] Description


[16862] Gets the System.Type referenced by the specified type handle.


[16863] Return Value: The System.Type referenced by the specified System.RuntimeTypeHandle.


[16864] The handles are valid only in the application domain in which they were obtained. The System.RuntimeTypeHandle object that refers to the System.Type.


[16865] GetTypeFromProgID


[16866] [C#] public static Type GetTypeFromProgID(string progID);


[16867] [C++] public: static Type* GetTypeFromProgID(String* progID);


[16868] [VB] Public Shared Function GetTypeFromProgID(ByVal progID As String) As Type


[16869] [JScript] public static function GetTypeFromProgID(progID: String): Type; Gets the System.Type associated with the specified program identifier (PROGID).


[16870] Description


[16871] Gets the System.Type associated with the specified program identifier (PROGID), returning null if an error is encountered while loading the System.Type.


[16872] Return Value: The System.Type associated with the specified PROGID, if progID is a valid entry in the registry and a type is associated with it; otherwise, null.


[16873] This method is provided for COM support. PROGIDs are not used in the Microsoft.NET Framework because they have been superceded by the concept of namespace. The PROGID of the System.Type to get.


[16874] GetTypeFromProgID


[16875] [C#] public static Type GetTypeFromProgID(string progID, bool throwOnError);


[16876] [C++] public: static Type* GetTypeFromProgID(String* progID, bool throwOnError);


[16877] [VB] Public Shared Function GetTypeFromProgID(ByVal progID As String, ByVal throwOnError As Boolean) As Type


[16878] [JScript] public static function GetTypeFromProgID(progID: String, throwOnError: Boolean): Type;


[16879] Description


[16880] Gets the System.Type associated with the specified program identifier (PROGID), specifying whether to throw an exception if an error occurs while loading the System.Type.


[16881] Return Value: The System.Type associated with the specified program identifier (PROGID), if progID is a valid entry in the registry and a type is associated with it; otherwise, null.


[16882] This method is provided for COM support. Program IDs are not used in Microsoft NET Framework because they have been superceded by the concept of namespace. The PROGID of the System.Type to get. true to throw a System.TypeLoadException if an error occurs while loading the System.Type.


[16883] GetTypeFromProgID


[16884] [C#] public static Type GetTypeFromProgID(string progID, string server);


[16885] [C++] public: static Type* GetTypeFromProgID(String* progID, String* server);


[16886] [VB] Public Shared Function GetTypeFromProgID(ByVal progID As String, ByVal server As String) As Type


[16887] [JScript] public static function GetTypeFromProgID(progID: String, server: String): Type;


[16888] Description


[16889] Gets the System.Type associated with the specified program identifier (progID) from the specified server, returning null if an error is encountered while loading the System.Type.


[16890] Return Value: The System.Type associated with the specified program identifier (progID), if progID is a valid entry in the registry and a type is associated with it; otherwise, null.


[16891] This method is provided for COM support. Program IDs are not used in Microsoft.NET Framework because they have been superceded by the concept of namespace. The progID of the System.Type to get. The server from which to load the type.


[16892] GetTypeFromProgID


[16893] [C#] public static Type GetTypeFromProgID(string progID, string server, bool throwOnError);


[16894] [C++] public: static Type* GetTypeFromProgID(String* progID, String* server, bool throwOnError);


[16895] [VB] Public Shared Function GetTypeFromProgID(ByVal progID As String, ByVal server As String, ByVal throwOnError As Boolean) As Type


[16896] [JScript] public static function GetTypeFromProgID(progID: String, server: String, throwOnError: Boolean): Type;


[16897] Description


[16898] Gets the System.Type associated with the specified program identifier (progID) from the specified server, specifying whether to throw an exception if an error occurs while loading the System.Type.


[16899] Return Value: The System.Type associated with the specified program identifier (progID), if progID is a valid entry in the registry and a type is associated with it; otherwise, null.


[16900] This method is provided for COM support. Program IDs are not used in Microsoft.NET Framework because they have been superceded by the concept of namespace. The progID of the System.Type to get. The server from which to load the type. true to throw a System.TypeLoadException if an error occurs while loading the System.Type.


[16901] GetTypeHandle


[16902] [C#] public static RuntimeTypeHandle GetTypeHandle(object o);


[16903] [C++] public: static RuntimeTypeHandle GetTypeHandle(Object* o);


[16904] [VB] Public Shared Function GetTypeHandle(ByVal o As Object) As RuntimeTypeHandle


[16905] [JScript] public static function GetTypeHandle(o: Object): RuntimeTypeHandle;


[16906] Description


[16907] Gets the handle for the System.Type of a specified object.


[16908] Return Value: The handle for the System.Type of the specified System.Object.


[16909] The handles are valid only in the application domain in which they were obtained. The System.Object for which to get the Type handle.


[16910] HasElementTypeImpl


[16911] [C#] protected abstract bool HasElementTypeImpl( );


[16912] [C++] protected: virtual bool HasElementTypeImpl( )=0;


[16913] [VB] MustOverride Protected Function HasElementTypeImpl( ) As Boolean


[16914] [JScript] protected abstract function HasElementTypeImpl( ): Boolean;


[16915] Description


[16916] When overridden in a derived class, implements the System.Type.HasElementType property and determines whether the current System.Type encompasses or refers to another type; that is, whether the current System.Type is an array, a pointer, or is passed by reference.


[16917] Return Value: true if the System.Type is an array, a pointer, or is passed by reference; otherwise, false.


[16918] For example, Type.GetType(“Int32[ ]”).HasElementTypeImpl returns true, but Type.GetType(“Int32”).HasElementTypeImpl returns false. HasElementTypeImpl also returns true for “Int32*” and “Int32&”.


[16919] InvokeMember


[16920] [C#] public object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[ ] args);


[16921] [C++] public: Object* InvokeMember(String* name, BindingFlags invokeAttr, Binder* binder, Object* target, Object* args_gc[ ]);


[16922] [VB] Public Function InvokeMember(ByVal name As String, ByVal invokeAttr As BindingFlags, ByVal binder As Binder, ByVal target As Object, ByVal args( ) As Object) As Object


[16923] [JScript] public function InvokeMember(name: String, invokeAttr: BindingFlags, binder: Binder, target: Object, args: Object[ ]): Object;


[16924] Description


[16925] Invokes the specified member, using the specified binding constraints and matching the specified argument list.


[16926] Return Value: An System.Object representing the return value of the invoked member.


[16927] The following System.Reflection.BindingFlags filter flags can be used to define which members to include in the search: Instance to include instance members in the search. The System.String containing the name of the constructor, method, property, or field member to invoke. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. The access can be one of the BindingFlags such as Public, NonPublic, Private, InvokeMethod, GetField, and so on. The type of lookup need not be specified. If the type of lookup is omitted, BindingFlags.DefaultLookup will apply. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection. The System.Object on which to invoke the specified member. An array containing the arguments to pass to the member to invoke.


[16928] InvokeMember


[16929] [C#] public object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[ ] args, CultureInfo culture);


[16930] [C++] public: Object* InvokeMember(String* name, BindingFlags invokeAttr, Binder* binder, Object* target, Object* args_gc[ ], CultureInfo* culture);


[16931] [VB] Public Function InvokeMember(ByVal name As String, ByVal invokeAttr As BindingFlags, ByVal binder As Binder, ByVal target As Object, ByVal args( ) As Object, ByVal culture As CultureInfo) As Object


[16932] [JScript] public function InvokeMember(name: String, invokeAttr: BindingFlags, binder: Binder, target: Object, args: Object[ ], culture: CultureInfo): Object;


[16933] Description


[16934] Invokes the specified member, using the specified binding constraints and matching the specified argument list and culture.


[16935] Return Value: An System.Object representing the return value of the invoked member.


[16936] The following System.Reflection.BindingFlags filter flags can be used to define which members to include in the search: Instance to include instance members in the search. The System.String containing the name of the constructor, method, property, or field member to invoke. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. The access can be one of the BindingFlags such as Public, NonPublic, Private, InvokeMethod, GetField, and so on. The type of lookup need not be specified. If the type of lookup is omitted, BindingFlags.DefaultLookup will apply. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection. The System.Object on which to invoke the specified member. An array containing the arguments to pass to the member to invoke. The System.Globalization.CultureInfo object representing the globalization locale to use, which may be necessary for locale-specific conversions, such as converting a numeric String to a Double.


[16937] InvokeMember


[16938] [C#] public abstract object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[ ] args, ParameterModifier[ ] modifiers, CultureInfo culture, string[ ] namedParameters);


[16939] [C++] public: virtual Object* InvokeMember(String* name, BindingFlags invokeAttr, Binder* binder, Object* target, Object* args_gc[ ], ParameterModifier modifiers[ ], CultureInfo* culture, String* namedParameters_gc[ ])=0;


[16940] [VB] MustOverride Public Function InvokeMember(ByVal name As String, ByVal invokeAttr As BindingFlags, ByVal binder As Binder, ByVal target As Object, ByVal args( ) As Object, ByVal modifiers( ) As ParameterModifier, ByVal culture As CultureInfo, ByVal namedParameters( ) As String) As Object


[16941] [JScript] public abstract function InvokeMember(name: String, invokeAttr: BindingFlags, binder: Binder, target: Object, args: Object[ ], modifiers: ParameterModifier[ ], culture: CultureInfo, namedParameters: String[ ]): Object; Invokes a specific member of the current System.Type.


[16942] Description


[16943] When overridden in a derived class, invokes the specified member, using the specified binding constraints and matching the specified argument list, modifiers and culture.


[16944] Return Value: An System.Object representing the return value of the invoked member.


[16945] InvokeMember calls a constructor member or a method member, gets or sets a property member, gets or sets a data field member, or gets or sets an element of an array member. The System.String containing the name of the constructor, method, property, or field member to invoke. A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. The access can be one of the BindingFlags such as Public, NonPublic, Private, InvokeMethod, GetField, and so on. The type of lookup need not be specified. If the type of lookup is omitted, BindingFlags.DefaultLookup will apply. A System.Reflection.Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection. The System.Object on which to invoke the specified member. An array containing the arguments to pass to the member to invoke. An array of System.Reflection.ParameterModifier objects representing the attributes associated with the corresponding element in the args array. A parameter's associated attributes are stored in the member's signature. The default binder does exact matching on the System.Reflection.ParameterAttributesOut and None attributes. The System.Globalization.CultureInfo object representing the globalization locale to use, which may be necessary for locale-specific conversions, such as converting a numeric String to a Double. An array containing the names of the parameters to which the values in the args array are passed.


[16946] IsArrayImpl


[16947] [C#] protected abstract bool IsArrayImpl( );


[16948] [C++] protected: virtual bool IsArrayImpl( )=0;


[16949] [VB] MustOverride Protected Function IsArrayImpl( ) As Boolean


[16950] [JScript] protected abstract function IsArrayImpl( ): Boolean;


[16951] Description


[16952] When overridden in a derived class, implements the System.Type.IsArray property and determines whether the System.Type is an array.


[16953] Return Value: true if the System.Type is an array; otherwise, false.


[16954] An instance of the System.Array class must return false because it is an object, not an array.


[16955] IsAssignableFrom


[16956] [C#] public virtual bool IsAssignableFrom(Type c);


[16957] [C++] public: virtual bool IsAssignableFrom(Type* c);


[16958] [VB] Overridable Public Function IsAssignableFrom(ByVal c As Type) As Boolean


[16959] [JScript] public function IsAssignableFrom(c: Type): Boolean;


[16960] Description


[16961] Determines whether an instance of the specified type can be assigned to the current System.Type instance.


[16962] Return Value: true if an instance of c can be assigned to the current System.Type instance; otherwise, false.


[16963] This method can be overridden by a derived class. The System.Type to examine whether its objects can be assigned to the current System.Type instance.


[16964] IsByRefImpl


[16965] [C#] protected abstract bool IsByRefImpl( );


[16966] [C++] protected: virtual bool IsByRefImpl( )=0;


[16967] [VB] MustOverride Protected Function IsByRefImpl( ) As Boolean


[16968] [JScript] protected abstract function IsByRefImpl( ): Boolean;


[16969] Description


[16970] When overridden in a derived class, implements the System.Type.IsByRef property and determines whether the System.Type is passed by reference.


[16971] Return Value: true if the System.Type is passed by reference; otherwise, false.


[16972] IsCOMObjectImpl


[16973] [C#] protected abstract bool IsCOMObjectImpl( );


[16974] [C++] protected: virtual bool IsCOMObjectImpl( )=0;


[16975] [VB] MustOverride Protected Function IsCOMObjectImpl( ) As Boolean


[16976] [JScript] protected abstract function IsCOMObjectImpl( ): Boolean;


[16977] Description


[16978] When overridden in a derived class, implements the System.Type.IsCOMObject property and determines whether the System.Type is a COM object.


[16979] Return Value: true if the System.Type is a COM object; otherwise, false.


[16980] This method returns false for COM interfaces because they are not objects. COM interfaces can be implemented by Microsoft.NET Framework objects.


[16981] IsContextfulImpl


[16982] [C#] protected virtual bool IsContextfulImpl( );


[16983] [C++] protected: virtual bool IsContextfilImpl( );


[16984] [VB] Overridable Protected Function IsContextfulImpl( ) As Boolean


[16985] [JScript] protected function IsContextfulImpl( ): Boolean;


[16986] Description


[16987] Implements the System.Type.IsContextful property and determines whether the System.Type can be hosted in a context.


[16988] Return Value: true if the System.Type can be hosted in a context; otherwise, false.


[16989] This method can be overridden by a derived class.


[16990] IsInstanceOfType


[16991] [C#] public virtual bool IslnstanceOfType(object o);


[16992] [C++] public: virtual bool IsInstanceOfType(Object* o);


[16993] [VB] Overridable Public Function IsInstanceOfType(ByVal o As Object) As Boolean


[16994] [JScript] public function IsInstanceOfType(o: Object): Boolean;


[16995] Description


[16996] Determines whether the specified object is an instance of the System.Type.


[16997] Return Value: true if o is an instance of the System.Type; otherwise, false.


[16998] This method can be overridden by a derived class. The System.Object whose type to compare with System.Type.


[16999] IsMarshalByRefImpl


[17000] [C#] protected virtual bool IsMarshalByRefImpl( );


[17001] [C++] protected: virtual bool IsMarshalByRefImpl( );


[17002] [VB] Overridable Protected Function IsMarshalByRefImpl( ) As Boolean


[17003] [JScript] protected function IsMarshalByRefImpl( ): Boolean;


[17004] Description


[17005] Implements the System.Type.IsMarshalByRef property and determines whether the System.Type is marshalled by reference.


[17006] Return Value: true if the System.Type is marshalled by reference; otherwise, false.


[17007] This method can be overridden by a derived class.


[17008] IsPointerImpl


[17009] [C#] protected abstract bool IsPointerImpl( );


[17010] [C++] protected: virtual bool IsPointerImpl( )=0;


[17011] [VB] MustOverride Protected Function IsPointerImpl( ) As Boolean


[17012] [JScript] protected abstract function IsPointerImpl( ): Boolean;


[17013] Description


[17014] When overridden in a derived class, implements the System.Type.IsPointer property and determines whether the System.Type is a pointer.


[17015] Return Value: true if the System.Type is a pointer; otherwise, false.


[17016] IsPrimitiveImpl


[17017] [C#] protected abstract bool IsPrimitiveImpl( );


[17018] [C++] protected: virtual bool IsPrimitiveImpl( )=0;


[17019] [VB] MustOverride Protected Function IsPrimitiveImpl( ) As Boolean


[17020] [JScript] protected abstract function IsPrimitiveImpl( ): Boolean;


[17021] Description


[17022] When overridden in a derived class, implements the System.Type.IsPrimitive property and determines whether the System.Type is one of the primitive types.


[17023] Return Value: true if the System.Type is one of the primitive types; otherwise, false.


[17024] The primitive types are System.Boolean, System.Byte, System.SByte, System.Int16, System.UInt16, System.Int32, System.UInt32, System.Int64, System.UInt64, System.Char, System.Double, and System.Single.


[17025] IsSubclassOf


[17026] [C#] public virtual bool IsSubclassOf(Type c);


[17027] [C++] public: virtual bool IsSubclassOf(Type* c);


[17028] [VB] Overridable Public Function IsSubclassOf(ByVal c As Type) As Boolean


[17029] [JScript] public function IsSubclassOf(c: Type): Boolean;


[17030] Description


[17031] Determines whether the current System.Type is a derived class of the specified class.


[17032] Return Value: true if the current System.Type is a direct or indirect derived class of c; otherwise, false.


[17033] This method can be overridden by a derived class. The System.Type that might be a base class of the current System.Type.


[17034] IsValueTypeImpl


[17035] [C#] protected virtual bool IsValueTypeImpl( );


[17036] [C++] protected: virtual bool IsValueTypeImpl( );


[17037] [VB] Overridable Protected Function IsValueTypeImpl( ) As Boolean


[17038] [JScript] protected function IsValueTypeImpl( ): Boolean;


[17039] Description


[17040] Implements the System.Type.IsValueType property and determines whether the System.Type is a value type; that is, not a class or an interface.


[17041] Return Value: true if the System.Type is a value type; otherwise, false.


[17042] Value types describe values that are represented as sequences of bits; value types are not classes or interfaces. These are referred to as “structs” in some programming languages. Enums are value types.


[17043] ToString


[17044] [C#] public override string ToString( );


[17045] [C++] public: String* ToString( );


[17046] [VB] Overrides Public Function ToString( ) As String


[17047] [JScript] public override function ToString( ): String;


[17048] Description


[17049] Returns a String representing the name of the current Type.


[17050] Return Value: A System.String representing the name of the current System.Type.


[17051] This method returns the fully qualified common language runtime namespace and name for all primitive types. For example, the C# instruction, (long)O.Type( ).ToString( ) returns “System.Int64” instead of merely “Int64”.


[17052] TypeCode enumeration (System)


[17053] ToString


[17054] Description


[17055] Specifies the type of an object.


[17056] Call the System.IConvertible.GetTypeCode method on classes that implement the System.IConvertible interface to obtain the type code for an instance of that class.


[17057] ToString


[17058] [C#] public const TypeCode Boolean;


[17059] [C++] public: const TypeCode Boolean;


[17060] [VB] Public Const Boolean As TypeCode


[17061] [JScript] public var Boolean: TypeCode;


[17062] Description


[17063] A simple type representing Boolean values of true or false.


[17064] ToString


[17065] [C#] public const TypeCode Byte;


[17066] [C++] public: const TypeCode Byte;


[17067] [VB] Public Const Byte As TypeCode


[17068] [JScript] public var Byte: TypeCode;


[17069] Description


[17070] An integral type representing unsigned 8-bit integers with values between 0 and 255.


[17071] ToString


[17072] [C#] public const TypeCode Char;


[17073] [C++] public: const TypeCode Char;


[17074] [VB] Public Const Char As TypeCode


[17075] [JScript] public var Char: TypeCode;


[17076] Description


[17077] An integral type representing unsigned 16-bit integers with values between 0 and 65535. The set of possible values for the System.TypeCode.Char type corresponds to the Unicode character set.


[17078] ToString


[17079] [C#] public const TypeCode DateTime;


[17080] [C++] public: const TypeCode DateTime;


[17081] [VB] Public Const DateTime As TypeCode


[17082] [JScript] public var DateTime: TypeCode;


[17083] Description


[17084] A type representing a date and time value.


[17085] ToString


[17086] [C#] public const TypeCode DBNull;


[17087] [C++] public: const TypeCode DBNull;


[17088] [VB] Public Const DBNull As TypeCode


[17089] [JScript] public var DBNull: TypeCode;


[17090] Description


[17091] A database null (column) value.


[17092] ToString


[17093] [C#] public const TypeCode Decimal;


[17094] [C++] public: const TypeCode Decimal;


[17095] [VB] Public Const Decimal As TypeCode


[17096] [JScript] public var Decimal: TypeCode;


[17097] Description


[17098] A simple type representing values ranging from 1.0×10 to approximately 7.9×10 with 28-29 significant digits.


[17099] ToString


[17100] [C#] public const TypeCode Double;


[17101] [C++] public: const TypeCode Double;


[17102] [VB] Public Const Double As TypeCode


[17103] [JScript] public var Double: TypeCode;


[17104] Description


[17105] A floating point type representing values ranging from approximately 5.0×10 to 1.7×10 with a precision of 15-16 digits.


[17106] ToString


[17107] [C#] public const TypeCode Empty;


[17108] [C++] public: const TypeCode Empty;


[17109] [VB] Public Const Empty As TypeCode


[17110] [JScript] public var Empty: TypeCode;


[17111] Description


[17112] A null referene.


[17113] ToString


[17114] [C#] public const TypeCode Int16;


[17115] [C++] public: const TypeCode Int16;


[17116] [VB] Public Const Int16 As TypeCode


[17117] [JScript] public var Int16: TypeCode;


[17118] Description


[17119] An integral type representing signed 16-bit integers with values between −32768 and 32767.


[17120] ToString


[17121] [C#] public const TypeCode Int32;


[17122] [C++] public: const TypeCode Int32;


[17123] [VB] Public Const Int32 As TypeCode


[17124] [JScript] public var Int32: TypeCode;


[17125] Description


[17126] An integral type representing signed 32-bit integers with values between −2147483648 and 2147483647.


[17127] ToString


[17128] [C#] public const TypeCode Int64;


[17129] [C++] public: const TypeCode Int64;


[17130] [VB] Public Const Int64 As TypeCode


[17131] [JScript] public var Int64: TypeCode;


[17132] Description


[17133] An integral type representing signed 64-bit integers with values between −9223372036854775808 and 9223372036854775807.


[17134] ToString


[17135] [C#] public const TypeCode Object;


[17136] [C++] public: const TypeCode Object;


[17137] [VB] Public Const Object As TypeCode


[17138] [JScript] public var Object: TypeCode;


[17139] Description


[17140] A general type representing any reference or value type not explicitly represented by another TypeCode.


[17141] ToString


[17142] [C#] public const TypeCode SByte;


[17143] [C++] public: const TypeCode SByte;


[17144] [VB] Public Const SByte As TypeCode


[17145] [JScript] public var SByte: TypeCode;


[17146] Description


[17147] An integral type representing signed 8-bit integers with values between −128 and 127.


[17148] ToString


[17149] [C+] public const TypeCode Single;


[17150] [C++] public: const TypeCode Single;


[17151] [VB] Public Const Single As TypeCode


[17152] [JScript] public var Single: TypeCode;


[17153] Description


[17154] A floating point type representing values ranging from approximately 1.5×10 to 3.4×10 with a precision of 7 digits.


[17155] ToString


[17156] [C#] public const TypeCode String;


[17157] [C++] public: const TypeCode String;


[17158] [VB] Public Const String As TypeCode


[17159] [JScript] public var String: TypeCode;


[17160] Description


[17161] A sealed class type representing Unicode character strings.


[17162] ToString


[17163] [C#] public const TypeCode UInt16;


[17164] [C++] public: const TypeCode UInt16;


[17165] [VB] Public Const UInt16 As TypeCode


[17166] [JScript] public var UInt16: TypeCode;


[17167] Description


[17168] An integral type representing unsigned 16-bit integers with values between 0 and 65535.


[17169] ToString


[17170] [C#] public const TypeCode UInt32;


[17171] [C++] public: const TypeCode UInt32;


[17172] [VB] Public Const UInt32 As TypeCode


[17173] [JScript] public var UInt32: TypeCode;


[17174] Description


[17175] An integral type representing unsigned 32-bit integers with values between 0 and 4294967295.


[17176] ToString


[17177] [C#] public const TypeCode UInt64;


[17178] [C++] public: const TypeCode UInt64;


[17179] [VB] Public Const UInt64 As TypeCode


[17180] [JScript] public var UInt64: TypeCode;


[17181] Description


[17182] An integral type representing unsigned 64-bit integers with values between 0 and 18446744073709551615.


[17183] TypedReference structure (System)


[17184] ToString


[17185] Description


[17186] 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.


[17187] A typed reference is a type/value combination used for varargs and other support.


[17188] Equals


[17189] [C#] public override bool Equals(object o);


[17190] [C++] public: bool Equals(Object* o);


[17191] [VB] Overrides Public Function Equals(ByVal o As Object) As Boolean


[17192] [JScript] public override function Equals(o: Object): Boolean;


[17193] Description


[17194] Checks if this object is equal to the specified object.


[17195] Return Value: true if this object is equal to the specified object; otherwise, false.


[17196] The object with which to compare the current object.


[17197] GetHashCode


[17198] [C#] public override int GetHashCode( );


[17199] [C++] public: int GetHashCode( );


[17200] [VB] Overrides Public Function GetHashCode( ) As Integer


[17201] [JScript] public override function GetHashCode( ): int;


[17202] Description


[17203] Returns the hash code of this object.


[17204] Return Value: The hash code of this object.


[17205] GetTargetType


[17206] [C#] public static Type GetTargetType(TypedReference value);


[17207] [C++] public: static Type* GetTargetType(TypedReference value);


[17208] [VB] Public Shared Function GetTargetType(ByVal value As TypedReference) As Type


[17209] [JScript] public static function GetTargetType(value: TypedReference): Type;


[17210] Description


[17211] Returns the type of the target of the specified TypedReference.


[17212] Return Value: The type of the target of the specified TypedReference. The value whose target's type is to be returned.


[17213] MakeTypedReference


[17214] [C#] public static TypedReference MakeTypedReference(object target, FieldInfo[ ] flds);


[17215] [C++] public: static TypedReference MakeTypedReference(Object* target, FieldInfo* flds[ ]);


[17216] [VB] Public Shared Function MakeTypedReference(ByVal target As Object, ByVal flds( ) As FieldInfo) As TypedReference


[17217] [JScript] public static function MakeTypedReference(target: Object, flds: FieldInfo[ ]): TypedReference;


[17218] Description


[17219] Makes a TypedReference for the specified target object using the specifying fields.


[17220] Return Value: A TypedReference for the specified target. The target object that defines the type of the TypedReference. The fields to be encapsulated.


[17221] SetTypedReference


[17222] [C#] public static void SetTypedReference(TypedReference target, object value);


[17223] [C++] public: static void SetTypedReference(TypedReference target, Object* value);


[17224] [VB] Public Shared Sub SetTypedReference(ByVal target As TypedReference, ByVal value As Object)


[17225] [JScript] public static function SetTypedReference(target: TypedReference, value: Object);


[17226] Description


[17227] Converts the specified value to a TypedReference.


[17228] Return Value: This method assigns value to target. A change type of value converts it to the type of the TypedReference. The System.Convert.ChangeType(System.Object,System.TypeCode) method does the conversion. The target of the conversion. The value to be converted.


[17229] TargetTypeToken


[17230] [C#] public static RuntimeTypeHandle TargetTypeToken(TypedReference value);


[17231] [C++] public: static RuntimeTypeHandle TargetTypeToken(TypedReference value);


[17232] [VB] Public Shared Function TargetTypeToken(ByVal value As TypedReference) As RuntimeTypeHandle


[17233] [JScript] public static function TargetTypeToken(value: TypedReference): RuntimeTypeHandle;


[17234] Description


[17235] Returns the internal metadata type handle for the specified


[17236] TypedReference.


[17237] Return Value: The internal metadata type handle for the specified TypedReference. The TypedReference for which the type handle is requested.


[17238] ToObject


[17239] [C#] public static object ToObject(TypedReference value);


[17240] [C++] public: static Object* ToObject(TypedReference value);


[17241] [VB] Public Shared Function ToObject(ByVal value As TypedReference) As Object


[17242] [JScript] public static function ToObject(value: TypedReference): Object;


[17243] Description


[17244] Converts the specified TypedReference to an Object.


[17245] Return Value: An Object converted from a TypedReference.


[17246] This might be a boxing operation. The TypedReference to be converted.


[17247] TypelnitializationException class (System)


[17248] ToString


[17249] Description


[17250] The exception that is thrown as a wrapper around the exception thrown by the class initializer. This class cannot be inherited.


[17251] When a class initializer fails to initialize a type, a System.TypelnitializationException is created and passed a reference to the exception thrown by the type's class initializer. The System.Exception.InnerException property of System.TypeInitializationException holds the underlying exception.


[17252] TypeInitializationException


[17253] Example Syntax:


[17254] ToString


[17255] [C#] public TypeInitializationException(string fullTypeName, Exception innerException);


[17256] [C++] public: TypeInitializationException(String* fullTypeName, Exception* innerException);


[17257] [VB] Public Sub New(ByVal fullTypeName As String, ByVal innerException As Exception)


[17258] [JScript] public function TypeInitializationException(fullTypeName: String, innerException: Exception);


[17259] Description


[17260] Initializes a new instance of the System.TypelnitializationException class with the default error message, the specified type name, and a reference to the inner exception that is the root cause of this exception.


[17261] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The fully qualified name of the type that fails to initialize. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[17262] HelpLink


[17263] HResult


[17264] InnerException


[17265] Message


[17266] Source


[17267] StackTrace


[17268] TargetSite


[17269] TypeName


[17270] ToString


[17271] Description


[17272] Gets the fully qualified name of the type that fails to initialize.


[17273] TypeLoadException class (System)


[17274] ToString


[17275] Description


[17276] The exception that is thrown when type-loading failures occur.


[17277] System.TypeLoadException is thrown when the Common Language Runtime cannot find the assembly, the type within the assembly, or cannot load the type.


[17278] TypeLoadException


[17279] Example Syntax:


[17280] ToString


[17281] [C#] public TypeLoadException( );


[17282] [C++] public: TypeLoadException( );


[17283] [VB] Public Sub New( )


[17284] [JScript] public function TypeLoadException( ); Initializes a new instance of the System.TypeLoadException class.


[17285] Description


[17286] Initializes a new instance of the System.TypeLoadException class with default properties.


[17287] The following table shows the initial property values for an instance of System.TypeLoadException.


[17288] TypeLoadException


[17289] Example Syntax:


[17290] ToString


[17291] [C#] public TypeLoadException(string message);


[17292] [C++] public: TypeLoadException(String* message);


[17293] [VB] Public Sub New(ByVal message As String)


[17294] [JScript] public function TypeLoadException(message: String);


[17295] Description


[17296] Initializes a new instance of the System.TypeLoadException class with a specified error message.


[17297] The following table shows the initial property values for an instance of System.TypeLoadException. The error message that explains the reason for the exception.


[17298] TypeLoadException


[17299] Example Syntax:


[17300] ToString


[17301] [C#] protected TypeLoadException(SerializationInfo info, StreamingContext context);


[17302] [C++] protected: TypeLoadException(SerializationInfo* info, StreamingContext context);


[17303] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[17304] [JScript] protected function TypeLoadException(info: SerializationInfo, context: StreamingContext);


[17305] Description


[17306] Initializes a new instance of the System.TypeLoadException class with serialized data.


[17307] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[17308] TypeLoadException


[17309] Example Syntax:


[17310] ToString


[17311] [C#] public TypeLoadException(string message, Exception inner);


[17312] [C++] public: TypeLoadException(String* message, Exception* inner);


[17313] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[17314] [JScript] public function TypeLoadException(message: String, inner: Exception);


[17315] Description


[17316] Initializes a new instance of the System.TypeLoadException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[17317] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If inner is non-null, then the current Exception is raised in a catch block handling inner.


[17318] HelpLink


[17319] HResult


[17320] InnerException


[17321] Message


[17322] ToString


[17323] Description


[17324] Gets the error message for this exception.


[17325] This property overrides System.Exception.Message. The error message should be localized.


[17326] Source


[17327] StackTrace


[17328] TargetSite


[17329] TypeName


[17330] ToString


[17331] Description


[17332] Gets the fully qualified name of the type that causes the exception.


[17333] When overriding System.TypeLoadException.TypeName in a derived class, be sure to call the base class's System.TypeLoadException.TypeName property.


[17334] GetObjectData


[17335] [C#] public override void GetObjectData(SerializationInfo info, StreamingContext context);


[17336] [C++] public: void GetObjectData(SerializationInfo* info, StreamingContext context);


[17337] [VB] Overrides Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[17338] [JScript] public override function GetObjectData(info: SerializationInfo, context: StreamingContext);


[17339] Description


[17340] Sets the System.Runtime.Serialization.Serializationlnfo object with the class name, method name, resource ID, and additional exception information.


[17341] System.TypeLoadException.GetObjectData(System.Runtime.Serializat ion.Serialization Info,System.Runtime.Serialization.StreamingContext) sets a System.Runtime.Serialization.SerializationInfo with all the exception object data targeted for serialization. During deserialization, the exception object is reconstituted from the System.Runtime.Serialization.Serializationlnfo transmitted over the stream. The object that holds the serialized object data. The contextual information about the source or destination.


[17342] TypeUnloadedException class (System)


[17343] ToString


[17344] Description


[17345] The exception that is thrown when there is an attempt to access an unloaded class.


[17346] System.TypeUnloadedException uses the HRESULT COR_E_TYPEUNLOADED, which has the value 0x80131013.


[17347] TypeUnloadedException


[17348] Example Syntax:


[17349] ToString


[17350] [C#t] public TypeUnloadedException( );


[17351] [C++] public: TypeUnloadedException( );


[17352] [VB] Public Sub New( )


[17353] [JScript] public function TypeUnloadedException( ); Initializes new instance of the System.TypeUnloadedException class.


[17354] Description


[17355] Initializes a new instance of the System.TypeUnloadedException class with default properties.


[17356] The following table shows the initial property values for an instance of System.TypeUnloadedException.


[17357] TypeUnloadedException


[17358] Example Syntax:


[17359] ToString


[17360] [C#] public TypeUnloadedException(string message);


[17361] [C++] public: TypeUnloadedException(String* message);


[17362] [VB] Public Sub New(ByVal message As String)


[17363] [JScript] public function TypeUnloadedException(message: String);


[17364] Description


[17365] Initializes a new instance of the System.TypeUnloadedException class with a specified error message.


[17366] The following table shows the initial property values for an instance of System.TypeUnloadedException. The error message that explains the reason for the exception.


[17367] TypeUnloadedException


[17368] Example Syntax:


[17369] ToString


[17370] [C#] protected TypeUnloadedException(SerializationInfo info, StreamingContext context);


[17371] [C++] protected: TypeUnloadedException(SerializationInfo* info, StreamingContext context);


[17372] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[17373] [JScript] protected function TypeUnloadedException(info: SerializationInfo, context: StreamingContext);


[17374] Description


[17375] Initializes a new instance of the System.TypeUnloadedException class with serialized data.


[17376] This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see. The object that holds the serialized object data. The contextual information about the source or destination.


[17377] TypeUnloadedException


[17378] Example Syntax:


[17379] ToString


[17380] [C#] public TypeUnloadedException(string message, Exception innerException);


[17381] [C++] public: TypeUnloadedException(String* message, Exception* innerException);


[17382] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[17383] [JScript] public function TypeUnloadedException(message: String, innerException: Exception);


[17384] Description


[17385] Initializes a new instance of the System.TypeUnloadedException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[17386] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception is raised in a catch block handling innerException.


[17387] HelpLink


[17388] HResult


[17389] InnerException


[17390] Message


[17391] Source


[17392] StackTrace


[17393] TargetSite UInt16 structure (System)


[17394] ToString


[17395] Description


[17396] Represents a 16-bit unsigned integer.


[17397] The UInt16 value type represents unsigned integers with values ranging from 0 to 65535.


[17398] ToString


[17399] [C#] public const ushort MaxValue;


[17400] [C++] public: const unsigned short MaxValue;


[17401] [VB] Public Const MaxValue As UInt16


[17402] [JScript] public var MaxValue: UInt16;


[17403] Description


[17404] A constant representing the largest possible value of UInt16


[17405] The value of this constant is 65535; that is, hexadecimal 0xFFFF.


[17406] ToString


[17407] [C#] public const ushort MinValue;


[17408] [C++] public: const unsigned short MinValue;


[17409] [VB] Public Const MinValue As UInt16


[17410] [JScript] public var MinValue: UInt16;


[17411] Description


[17412] A constant representing the smallest possible value of UInt16.


[17413] The value of this constant is 0.


[17414] CompareTo


[17415] [C#] public int CompareTo(object value);


[17416] [C++] public: _sealed int CompareTo(Object* value);


[17417] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[17418] [JScript] public function CompareTo(value: Object): int;


[17419] Description


[17420] Compares this instance to a specified object and returns an indication of their relative values.


[17421] Return Value: A signed number indicating the relative values of this instance and value.


[17422] Any instance of UInt16, regardless of its value, is considered greater than null. An object to compare, or null.


[17423] Equals


[17424] [C#] public override bool Equals(object obj);


[17425] [C++] public: bool Equals(Object* obj);


[17426] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[17427] [JScript] public override function Equals(obj: Object): Boolean;


[17428] Description


[17429] Returns a value indicating whether this instance is equal to a specified object.


[17430] Return Value: true if obj is an instance of UInt16 and equals the value of this instance; otherwise, false. An object to compare with this instance.


[17431] GetHashCode


[17432] [C#] public override int GetHashCode( );


[17433] [C++] public: int GetHashCode( );


[17434] [VB] Overrides Public Function GetHashCode( ) As Integer


[17435] [JScript] public override function GetHashCode( ): int;


[17436] Description


[17437] Returns the hash code for this instance.


[17438] Return Value: A 32-bit signed integer hash code.


[17439] GetTypeCode


[17440] [C#] public TypeCode GetTypeCode( );


[17441] [C++] public: _sealed TypeCode GetTypeCode( );


[17442] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[17443] [JScript] public function GetTypeCode( ): TypeCode;


[17444] Description


[17445] Returns the TypeCode for value type UInt16.


[17446] Return Value: The enumerated constant, System.TypeCode.UInt16.


[17447] Parse


[17448] [C#] public static ushort Parse(string s);


[17449] [C++] public: static unsigned short Parse(String* s);


[17450] [VB] Public Shared Function Parse(ByVal s As String) As UInt16


[17451] [JScript] public static function Parse(s: String): UInt16;C onverts the String representation of a number to its 16-bit unsigned integer equivalent.


[17452] Description


[17453] Converts the String representation of a number to its 16-bit unsigned integer equivalent.


[17454] Return Value: An 16-bit unsigned integer equivalent to the number contained in s.


[17455] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert. Parse


[17456] [C#] public static ushort Parse(string s, IFormatProvider provider);


[17457] [C++] public: static unsigned short Parse(String* s, IFormatProvider* provider);


[17458] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As


[17459] IFormatProvider) As UInt16


[17460] [JScript] public static function Parse(s: String, provider: IFormatProvider) UInt16;


[17461] Description


[17462] Converts the String representation of a number in a specified culture-specific format to its 16-bit unsigned integer equivalent.


[17463] Return Value: An 16-bit unsigned integer equivalent to the number specified in s.


[17464] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[17465] Parse


[17466] [C#] public static ushort Parse(string s, NumberStyles style);


[17467] [C++] public: static unsigned short Parse(String* s, NumberStyles style);


[17468] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As UInt16


[17469] [JScript] public static function Parse(s: String, style: NumberStyles): UInt16;


[17470] Description


[17471] Converts the String representation of a number in a specified style to its 16-bit unsigned integer equivalent.


[17472] Return Value: An 16-bit unsigned integer equivalent to the number specified in s.


[17473] s contains a number of the form: [ws] [sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStyles constants that indicate the permitted format of s.


[17474] Parse


[17475] [C#] public static ushort Parse(string s, NumberStyles style, IFormatProvider provider);


[17476] [C++] public: static unsigned short Parse(String* s, NumberStyles style, IFormatProvider* provider);


[17477] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As UInt16


[17478] [JScript] public static function Parse(s: String, style: NumberStyles, provider: IFormatProvider): UInt16;


[17479] Description


[17480] Converts the String representation of a number in a specified style and culture-specific format to its 16-bit unsigned integer equivalent.


[17481] Return Value: An 16-bit unsigned integer equivalent to the number specified in s.


[17482] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[17483] IConvertible.ToBoolean


[17484] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[17485] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[17486] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[17487] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[17488] IConvertible.ToByte


[17489] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[17490] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[17491] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements


[17492] IConvertible.ToByte


[17493] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[17494] IConvertible.ToChar


[17495] [C#] char IConvertible.ToChar(IFormatProvider provider);


[17496] [C++]_wchar_t IConvertible::ToChar(IFormatProvider* provider);


[17497] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[17498] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[17499] IConvertible.ToDateTime


[17500] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[17501] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[17502] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[17503] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[17504] IConvertible.ToDecimal


[17505] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[17506] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[17507] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[17508] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[17509] IConvertible.ToDouble


[17510] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[17511] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[17512] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[17513] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[17514] IConvertible.ToInt16


[17515] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[17516] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[17517] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[17518] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[17519] IConvertible.ToInt32


[17520] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[17521] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[17522] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[17523] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[17524] IConvertible.ToInt64


[17525] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[17526] [C++]_int64 IConvertible::ToInt64(IFormatProvider* provider);


[17527] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements


[17528] IConvertible.ToInt64


[17529] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[17530] IConvertible.ToSByte


[17531] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[17532] [C++] char IConvertible::ToByte(IFormatProvider* provider);


[17533] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[17534] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[17535] IConvertible.ToSingle


[17536] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[17537] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[17538] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[17539] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[17540] IConvertible.ToType


[17541] [C#] object IConvertible.ToType(Type type, IFormatProvider provider);


[17542] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[17543] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[17544] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[17545] IConvertible.ToUInt16


[17546] [C#] ushort IConvertible. ToUInt16(IFormatProvider Provider);


[17547] [C++] unsigned short IConvertible::ToUIntl16(IFormatProvider* provider);


[17548] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[17549] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[17550] IConvertible.ToUInt32


[17551] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[17552] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[17553] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt31


[17554] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[17555] IConvertible.ToUInt64


[17556] [C#] ulong IConvertible. ToUInt64(IFormatProvider provider);


[17557] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[17558] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[17559] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[17560] ToString


[17561] [C#] public override string ToString( );


[17562] [C++] public: String* ToString( );


[17563] [VB] Overrides Public Function ToString( ) As String


[17564] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[17565] Description


[17566] Converts the numeric value of this instance to its equivalent String representation.


[17567] Return Value: The System.String representation of the value of this instance, consisting of a sequence of digits ranging from 0 to 9, without a sign or leading zeroes.


[17568] The return value is formatted with the general format specifier (“G”) and the System.Globalization.NumberFormatlnfo for the current culture. ToString


[17569] [C#] public string ToString(IFormatProvider provider);


[17570] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[17571] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[17572] [JScript] public function ToString(provider: IFormatProvider): String;


[17573] Description


[17574] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[17575] Return Value: The System.String representation of the value of this instance as specified by provider.


[17576] This instance is formatted with the general format specifier (“G”). An System.lFormatProvider interface implementation which supplies culture-specific formatting information.


[17577] ToString


[17578] [C#] public string ToString(string format);


[17579] [C++] public: String* ToString(String* format);


[17580] [VB] Public Function ToString(ByVal format As String) As String


[17581] [JScript] public function ToString(format: String): String;


[17582] Description


[17583] Converts the numeric value of this instance to its equivalent String representation using the specified format.


[17584] Return Value: The System.String representation of the value of this instance as specified by format.


[17585] If format is null or an empty string (“ ”), the return value of this instance is formatted with the general format specifier (“G”). A format string.


[17586] ToString


[17587] [C#] public string ToString(string format, IFormatProvider provider);


[17588] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[17589] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[17590] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[17591] Description


[17592] Converts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[17593] Return Value: The System.String representation of the value of this instance as specified by format and provider.


[17594] If format is null or an empty string (“ ”), the return value for this instance is formatted with the general format specifier (“G”). A format specification. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about this instance.


[17595] UInt32 structure (System)


[17596] ToString


[17597] Description


[17598] Represents a 32-bit unsigned integer.


[17599] The UInt32 value type represents unsigned integers with values ranging from 0 to 4,294,967,295.


[17600] ToString


[17601] [C#] public const uint MaxValue;


[17602] [C++] public: const unsigned it MaxValue;


[17603] [VB] Public Const MaxValue As UInt32


[17604] [JScript] public var MaxValue: UInt32;


[17605] Description


[17606] A constant representing the largest possible value of UInt32.


[17607] The value of this constant is 4294967295; that is, hexadecimal 0xFFFFFFFF.


[17608] ToString


[17609] [C#] public const uint MinValue;


[17610] [C++] public: const unsigned int MinValue;


[17611] [VB] Public Const MinValue As UInt32


[17612] [JScript] public var MinValue: UInt32


[17613] Description


[17614] A constant representing the smallest possible value of UInt32.


[17615] The value of this constant is 0


[17616] CompareTo


[17617] [C#] public int CompareTo(object value);


[17618] [C++] public: _sealed int CompareTo(Object* value);


[17619] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[17620] [JScript] public function CompareTo(value: Object): int;


[17621] Description


[17622] Compares this instance to a specified object and returns an indication of their relative values.


[17623] Return Value: A signed number indicating the relative values of this instance and value.


[17624] Any instance of UInt32 , regardless of its value, is considered greater than null. An object to compare, or null.


[17625] Equals


[17626] [C#] public override bool Equals(object obj);


[17627] [C++] public: bool Equals(Object* obj);


[17628] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[17629] [JScript] public override function Equals(obj: Object): Boolean;


[17630] Description


[17631] Returns a value indicating whether this instance is equal to a specified object.


[17632] Return Value: true if obj is an instance of UInt32 and equals the value of this instance; otherwise, false. An object to compare with this instance.


[17633] GetHashCode


[17634] [C#] public override int GetHashCodeo( );


[17635] [C++] public: int GetHashCode( );


[17636] [VB] Overrides Public Function GetHashCode( ) As Integer


[17637] [JScript] public override function GetHashCode( ): int;


[17638] Description Returns the hash code for this instance.


[17639] Return Value: A 32-bit signed integer hash code.


[17640] GetTypeCode


[17641] [C#] public TypeCode GetTypeCode( );


[17642] [C++] public: _sealed TypeCode GetTypeCode( );


[17643] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[17644] [JScript] public function GetTypeCode( ): TypeCode;


[17645] Description


[17646] Returns the TypeCode for value type UInt32.


[17647] Return Value: The enumerated constant, System.TypeCode.UInt32


[17648] Parse


[17649] [C#] public static uint Parse(string s);


[17650] [C++] public: static unsigned int Parse(String* s);


[17651] [VB] Public Shared Function Parse(ByVal s As String) As UInt32


[17652] [JScript] public static function Parse(s: String): UInt32; Converts the String representation of a number to its 32-bit unsigned integer equivalent.


[17653] Description


[17654] Converts the String representation of a number to its 32-bit unsigned integer equivalent.


[17655] Return Value: An 32-bit unsigned integer equivalent to the number contained in s.


[17656] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert.


[17657] Parse


[17658] [C#] public static uint Parse(string s, IFormatProvider provider);


[17659] [C++] public: static unsigned int Parse(String* s, IFormatProvider* provider);


[17660] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As UInt32


[17661] [JScript] public static function Parse(s: String, provider: IFormatProvider): UInt32;


[17662] Description


[17663] Converts the String representation of a number in a specified culture-specific format to its 32-bit unsigned integer equivalent.


[17664] Return Value: An 32-bit unsigned integer equivalent to the number specified in s.


[17665] contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[17666] Parse


[17667] [C#] public static uint Parse(string s, NumberStyles style);


[17668] [C++] public: static unsigned int Parse(String* s, NumberStyles style);


[17669] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As UInt32


[17670] [JScript] public static function Parse(s: String, style: NumberStyles): UInt32


[17671] Description


[17672] Converts the String representation of a number in a specified style to its 32-bit unsigned integer equivalent.


[17673] Return Value: An 32-bit unsigned integer equivalent to the number specified in s.


[17674] s contains a number of the form: [ws] [sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStyles constants that indicate the permitted format of s.


[17675] Parse


[17676] [C#] public static uint Parse(string s, NumberStyles style, IFormatProvider provider);


[17677] [C++] public: static unsigned int Parse(String* s, NumberStyles style, IFormatProvider* provider);


[17678] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As UInt32


[17679] [JScript] public static function Parse(s: String, style: NumberStyles, provider: IFormatProvider): UInt32


[17680] Description


[17681] Converts the String representation of a number in a specified style and culture-specific format to its 32-bit unsigned integer equivalent.


[17682] Return Value: An 32-bit unsigned integer equivalent to the number specified in s.


[17683] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.lFormatProvider interface implementation which supplies culture-specific formatting information about s.


[17684] IConvertible.ToBoolean


[17685] [C#] bool IConvertible.ToBoolean(IFormatProvider provider);


[17686] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[17687] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[17688] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[17689] IConvertible.ToByte


[17690] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[17691] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[17692] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[17693] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte;


[17694] IConvertible.ToChar


[17695] [C+] char IConvertible.ToChar( IFormatProvider provider);


[17696] [C++]_wchar_t IConvertible::ToChar(IFormatProvider* Provider);


[17697] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[17698] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[17699] IConvertible.ToDateTime


[17700] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[17701] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[17702] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[17703] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[17704] IConvertible.ToDecimal


[17705] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[17706] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[17707] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[17708] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[17709] IConvertible.ToDouble


[17710] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[17711] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[17712] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[17713] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[17714] IConvertible.ToInt16


[17715] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[17716] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[17717] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[17718] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[17719] IConvertible.ToInt32


[17720] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[17721] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[17722] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[17723] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[17724] IConvertible.ToInt64


[17725] [C#] long IConvertible.ToInt64(IFormatProvider provider);


[17726] [C++]_int64 IConvertible::ToInt64(IFormatProvider* provider);


[17727] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[17728] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[17729] IConvertible.ToSByte


[17730] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[17731] [C++] char IConvertible::ToSByte(IFormatProvider* Provider);


[17732] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[17733] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[17734] IConvertible.ToSingle


[17735] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[17736] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[17737] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[17738] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[17739] IConvertible.ToType


[17740] [C#] object IConvertibleToType(Type type, IFormatProvider provider);


[17741] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[17742] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[17743] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[17744] IConvertible.ToUInt16


[17745] [C#] ushort IConvertible.ToInt16(IFormatProvider provider);


[17746] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[17747] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As UInt16 Implements IConvertible.ToUInt16


[17748] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): UInt16;


[17749] IConvertible.ToUInt32


[17750] [C#] uint IConvertible.ToUInt32(IFormatProvider provider);


[17751] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[17752] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As UInt32 Implements IConvertible.ToUInt32


[17753] [JScript] function IConvertible.ToUInt32(provider: IFormatProvider): UInt32;


[17754] IConvertible.ToUInt64


[17755] [C#] ulong IConvertible.ToUInt64(IFormatProvider provider);


[17756] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[17757] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As UInt64 Implements IConvertible.ToUInt64


[17758] [JScript] function IConvertible.ToUInt64(provider: IFormatProvider): UInt64;


[17759] ToString


[17760] [C#] public override string ToString( );


[17761] [C++] public: String* ToString( );


[17762] [VB] Overrides Public Function ToString( ) As String


[17763] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[17764] Description


[17765] Converts the numeric value of this instance to its equivalent String representation.


[17766] Return Value: The System.String representation of the value of this instance, consisting of a sequence of digits ranging from 0 to 9, without a sign or leading zeroes.


[17767] The return value is formatted with the general format specifier (“G”) and the System.Globalization.NumberFormatInfo for the current culture.


[17768] ToString


[17769] [C#] public string ToString(IFormatProvider provider);


[17770] [C++] public: _sealed String* ToString(IFormatProvider* provider);


[17771] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[17772] [JScript] public function ToString(provider: IFormatProvider): String;


[17773] Description


[17774] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[17775] Return Value: The System.String representation of the value of this instance as specified by provider.


[17776] This instance is formatted with the general format specifier (“G”). An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[17777] ToString


[17778] [C#] public string ToString(string format);


[17779] [C++] public: String* ToString(String* format);


[17780] [VB] Public Function ToString(ByVal format As String) As String


[17781] [JScript] public function ToString(format: String): String;


[17782] Description


[17783] Converts the numeric value of this instance to its equivalent String representation using the specified format.


[17784] Return Value: The System.String representation of the value of this instance as specified by format.


[17785] If format is null or an empty string (“ ”) the return value of this instance is formatted with the general format specifier (“G”). A format string.


[17786] ToString


[17787] [C#] public string ToString(string format, IFormatProvider provider);


[17788] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[17789] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[17790] [JScript] public function ToString(format: String, provider: IFormatProvider): String;


[17791] Description


[17792] Converts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[17793] Return Value: The System.String representation of the value of this instance as specified by format and provider. If format is null or an empty string (“ ”) the return value for this instance is formatted with the general format specifier (“G”). A format specification. An System.lIFormatProvider interface implementation which supplies culture-specific formatting information about this instance.


[17794] UInt64 structure (System)


[17795] ToString


[17796] Description


[17797] Represents a 64-bit unsigned integer.


[17798] The UInt64 value type represents unsigned integers with values ranging from 0 to 184,467,440,737,095,551,615.


[17799] ToString


[17800] [C#] public const ulong MaxValue;


[17801] [C++] public: const unsigned_int64 MaxValue;


[17802] [VB] Public Const MaxValue As UInt64


[17803] [JScript] public var MaxValue: UInt64


[17804] Description


[17805] A constant representing the largest possible value of UInt64


[17806] The value of this constant is 18,446,744,073,709,551,615; that is, hexadecimal 0xFFFFFFFFFFFFFFFF.


[17807] ToString


[17808] [C#] public const ulong MinValue;


[17809] [C++] public: const unsigned_int64 MinValue;


[17810] [VB] Public Const MinValue As UInt64


[17811] [JScript] public var MinValue UInt64;


[17812] Description


[17813] A constant representing the smallest possible value of UInt64


[17814] The value of this constant is 0


[17815] CompareTo


[17816] [C#] public int CompareTo(object value);


[17817] [C++] public: _sealed int CompareTo(Object* value);


[17818] [VB] NotOverridable Public Function CompareTo(ByVal value As Object) As Integer


[17819] [JScript] public function CompareTo(value: Object): int;


[17820] Description


[17821] Compares this instance to a specified object and returns an indication of their relative values.


[17822] Return Value: A signed number indicating the relative values of this instance and value.


[17823] Any instance of UInt64 , regardless of its value, is considered greater than null. An object to compare, or null.


[17824] Equals


[17825] [C#] public override bool Equals(object obj);


[17826] [C++] public: bool Equals(Object* obj);


[17827] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[17828] [JScript] public override function Equals(obj: Object): Boolean;


[17829] Description


[17830] Returns a value indicating whether this instance is equal to a specified object.


[17831] Return Value: true if obj is an instance of UInt64 and equals the value of this instance; otherwise, false. An object to compare with this instance.


[17832] GetHashCode


[17833] [C#] public override int GetHashCode( );


[17834] [C++] public: int GetHashCode( );


[17835] [VB] Overrides Public Function GetHashCode( ) As Integer


[17836] [JScript] public override function GetHashCode( ): int;


[17837] Description Returns the hash code for this instance.


[17838] Return Value: A 32-bit signed integer hash code.


[17839] GetTypeCode


[17840] [C#] public TypeCode GetTypeCode( );


[17841] [C++] public: _sealed TypeCode GetTypeCode( );


[17842] [VB] NotOverridable Public Function GetTypeCode( ) As TypeCode


[17843] [JScript] public function GetTypeCode( ): TypeCode;


[17844] Description


[17845] Returns the TypeCode for value type UInt64.


[17846] Return Value: The enumerated constant, System.TypeCode.Ulnt64


[17847] Parse


[17848] [C#] public static ulong Parse(string s);


[17849] [C++] public: static unsigned_int64 parse(String* s);


[17850] [VB] Public Shared Function Parse(ByVal s As String) As UInt64


[17851] [JScript] public static function Parse(s: String): UInt64;Converts the String representation of a number to its 64-bit unsigned integer equivalent.


[17852] Description


[17853] Converts the String representation of a number to its 64-bit unsigned integer equivalent.


[17854] Return Value: An 64-bit unsigned integer equivalent to the number contained in s.


[17855] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert.


[17856] Parse


[17857] [C#] public static ulong Parse(string s, IFormatProvider provider);


[17858] [C++] public: static unsigned_int64 Parse(String* s, IFormatProvider* provider);


[17859] [VB] Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As UInt64


[17860] [JScript] public static function Parse(s: String, provider: IFormatProvider): UInt64


[17861] Description


[17862] Converts the String representation of a number in a specified culture-specific format to its 64-bit unsigned integer equivalent.


[17863] Return Value: An 64-bit unsigned integer equivalent to the number specified in s.


[17864] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[17865] Parse


[17866] [C#] public static ulong Parse(string s, NumberStyles style);


[17867] [C++] public: static unsigned_int64 Parse(String* s, NumberStyles style);


[17868] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles) As UInt64


[17869] [JScript] public static function Parse(s: String, style: NumberStyles): UInt64


[17870] Description Converts the String representation of a number in a specified style to its 64-bit unsigned integer equivalent.


[17871] Return Value: An 64-bit unsigned integer equivalent to the number specified in s.


[17872] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStyles constants that indicate the permitted format of s.


[17873] Parse


[17874] [C#] public static ulong Parse(string s, NumberStyles style, IFormatProvider provider);


[17875] [C++] public: static unsigned_int64 Parse(String* s, NumberStyles style, IFormatProvider* provider);


[17876] [VB] Public Shared Function Parse(ByVal s As String, ByVal style As NumberStyles, ByVal provider As IFormatProvider) As UInt64


[17877] [JScript] public static function Parse(s: String, style: NumberStyles, provider: IFormatProvider): UInt64


[17878] Description


[17879] Converts the String representation of a number in a specified style and culture-specific format to its 64-bit unsigned integer equivalent.


[17880] Return Value: An 64-bit unsigned integer equivalent to the number specified in s.


[17881] s contains a number of the form: [ws][sign]digits[ws] Items in square brackets (‘[’ and‘]’) are optional, and other items are as follows. A System.String containing a number to convert. The combination of one or more System.Globalization.NumberStylesconstants that indicate the permitted format of s. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about s.


[17882] IConvertible.ToBoolean


[17883] [C#] boot IConvertible.ToBoolean(IFormatProvider provider);


[17884] [C++] bool IConvertible::ToBoolean(IFormatProvider* provider);


[17885] [VB] Function ToBoolean(ByVal provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean


[17886] [JScript] function IConvertible.ToBoolean(provider: IFormatProvider): Boolean;


[17887] IConvertible.ToByte


[17888] [C#] byte IConvertible.ToByte(IFormatProvider provider);


[17889] [C++] unsigned char IConvertible::ToByte(IFormatProvider* provider);


[17890] [VB] Function ToByte(ByVal provider As IFormatProvider) As Byte Implements IConvertible.ToByte


[17891] [JScript] function IConvertible.ToByte(provider: IFormatProvider): Byte; IConvertible.ToChar


[17892] [C#] char IConvertible. ToChar(IFormatProvider provider);


[17893] [C++]_wchar_t IConvertible::ToChar(IFormatProvider* Provider);


[17894] [VB] Function ToChar(ByVal provider As IFormatProvider) As Char Implements IConvertible.ToChar


[17895] [JScript] function IConvertible.ToChar(provider: IFormatProvider): Char;


[17896] IConvertible.ToDateTime


[17897] [C#] DateTime IConvertible.ToDateTime(IFormatProvider provider);


[17898] [C++] DateTime IConvertible::ToDateTime(IFormatProvider* provider);


[17899] [VB] Function ToDateTime(ByVal provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime


[17900] [JScript] function IConvertible.ToDateTime(provider: IFormatProvider): DateTime;


[17901] IConvertible.ToDecimal


[17902] [C#] decimal IConvertible.ToDecimal(IFormatProvider provider);


[17903] [C++] Decimal IConvertible::ToDecimal(IFormatProvider* provider);


[17904] [VB] Function ToDecimal(ByVal provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal


[17905] [JScript] function IConvertible.ToDecimal(provider: IFormatProvider): Decimal;


[17906] IConvertible.ToDouble


[17907] [C#] double IConvertible.ToDouble(IFormatProvider provider);


[17908] [C++] double IConvertible::ToDouble(IFormatProvider* provider);


[17909] [VB] Function ToDouble(ByVal provider As IFormatProvider) As Double Implements IConvertible.ToDouble


[17910] [JScript] function IConvertible.ToDouble(provider: IFormatProvider): double;


[17911] IConvertible.ToInt16


[17912] [C#] short IConvertible.ToInt16(IFormatProvider provider);


[17913] [C++] short IConvertible::ToInt16(IFormatProvider* provider);


[17914] [VB] Function ToInt16(ByVal provider As IFormatProvider) As Short Implements IConvertible.ToInt16


[17915] [JScript] function IConvertible.ToInt16(provider: IFormatProvider): Int16;


[17916] IConvertible.ToInt32


[17917] [C#] int IConvertible.ToInt32(IFormatProvider provider);


[17918] [C++] int IConvertible::ToInt32(IFormatProvider* provider);


[17919] [VB] Function ToInt32(ByVal provider As IFormatProvider) As Integer Implements IConvertible.ToInt32


[17920] [JScript] function IConvertible.ToInt32(provider: IFormatProvider): int;


[17921] IConvertible.ToInt64


[17922] [C+] long IConvertible.ToInt64(IFormatProvider provider);


[17923] [C++]_int64 IConvertible::ToInt64(IFormatProvider* provider);


[17924] [VB] Function ToInt64(ByVal provider As IFormatProvider) As Long Implements IConvertible.ToInt64


[17925] [JScript] function IConvertible.ToInt64(provider: IFormatProvider): long;


[17926] IConvertible.ToSByte


[17927] [C#] sbyte IConvertible.ToSByte(IFormatProvider provider);


[17928] [C++] char IConvertible::ToSByte(IFormatProvider* Provider);


[17929] [VB] Function ToSByte(ByVal provider As IFormatProvider) As SByte Implements IConvertible.ToSByte


[17930] [JScript] function IConvertible.ToSByte(provider: IFormatProvider): SByte;


[17931] IConvertible.ToSingle


[17932] [C#] float IConvertible.ToSingle(IFormatProvider provider);


[17933] [C++] float IConvertible::ToSingle(IFormatProvider* provider);


[17934] [VB] Function ToSingle(ByVal provider As IFormatProvider) As Single Implements IConvertible.ToSingle


[17935] [JScript] function IConvertible.ToSingle(provider: IFormatProvider): float;


[17936] IConvertible.ToType


[17937] [C#] object IConvertible::ToType(Type type, IFormatProvider provider);


[17938] [C++] Object* IConvertible::ToType(Type* type, IFormatProvider* provider);


[17939] [VB] Function ToType(ByVal type As Type, ByVal provider As IFormatProvider) As Object Implements IConvertible.ToType


[17940] [JScript] function IConvertible.ToType(type: Type, provider: IFormatProvider): Object;


[17941] IConvertible.ToInt16


[17942] [C#] ushort IConvertible.ToUInt16(IFormatProvider provider);


[17943] [C++] unsigned short IConvertible::ToUInt16(IFormatProvider* provider);


[17944] [VB] Function ToUInt16(ByVal provider As IFormatProvider) As ToUInt16Implements IConvertible.ToUInt16


[17945] [JScript] function IConvertible.ToUInt16(provider: IFormatProvider): ToUInt16;


[17946] IConvertible.ToUInt32


[17947] [C++] uint IConvertible.ToUInt32(IFormatProvider provider);


[17948] [C++] unsigned int IConvertible::ToUInt32(IFormatProvider* provider);


[17949] [VB] Function ToUInt32(ByVal provider As IFormatProvider) As ToUInt32 Implements IConvertible.ToToUInt32


[17950] [JScript] function IConvertible.ToToUInt32(provider: IFormatProvider): ToUInt32;


[17951] IConvertible.ToToUInt64


[17952] [C#] ulong IConvertible.ToToUInt64(IFormatProvider provider);


[17953] [C++] unsigned_int64 IConvertible::ToUInt64(IFormatProvider* provider);


[17954] [VB] Function ToUInt64(ByVal provider As IFormatProvider) As ToUInt64 Implements IConvertible.ToToUInt64


[17955] [JScript] function IConvertible.ToToUInt64(provider: IFormatProvider): ToUInt64;


[17956] ToString


[17957] [C#] public override string ToString( );


[17958] [C++] public: String* ToString( );


[17959] [VB] Overrides Public Function ToString( ) As String


[17960] [JScript] public override function ToString( ): String; Converts the numeric value of this instance to its equivalent String representation.


[17961] Description


[17962] Converts the numeric value of this instance to its equivalent String representation.


[17963] Return Value: The System.String representation of the value of this instance, consisting of a sequence of digits ranging from 0 to 9, without a sign or leading zeroes.


[17964] The return value is formatted with the general format specifier (“G”) and the System.Globalization.NumberFormatlnfo for the current culture.


[17965] ToString


[17966] [C#] public string ToString(IFormatProvider provider);


[17967] [C++] public: sealed String* ToString(IFormatProvider* provider);


[17968] [VB] NotOverridable Public Function ToString(ByVal provider As IFormatProvider) As String


[17969] [JScript] public function ToString(provider: IFormatProvider): String;


[17970] Description


[17971] Converts the numeric value of this instance to its equivalent String representation using the specified culture-specific format information.


[17972] Return Value: The System.String representation of the value of this instance as specified by provider.


[17973] This instance is formatted with the general format specifier (“G”). An System.IFormatProvider interface implementation which supplies culture-specific formatting information.


[17974] ToString


[17975] [C#] public string ToString(string format);


[17976] [C++] public: String* ToString(String* format);


[17977] [VB] Public Function ToString(ByVal format As String) As String


[17978] [JScript] public function ToString(format: String): String;


[17979] Description


[17980] Converts the numeric value of this instance to its equivalent String representation using the specified format.


[17981] Return Value: The System.String representation of the value of this instance as specified by format.


[17982] If format is null or an empty string (“ ”), the return value of this instance is formatted with the general format specifier (“G”). A format string.


[17983] ToString


[17984] [C#] public string ToString(string format, IFormatProvider provider);


[17985] [C++] public: _sealed String* ToString(String* format, IFormatProvider* provider);


[17986] [VB] NotOverridable Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String


[17987] [JScript] public function ToString(format: String, provider: IFormatProvider):


[17988] String;


[17989] Description


[17990] Converts the numeric value of this instance to its equivalent String representation using the specified format and culture-specific format information.


[17991] Return Value: The System.String representation of the value of this instance as specified by format and provider.


[17992] If format is null or an empty string (“ ”), the return value for this instance is formatted with the general format specifier (“G”). A format specification. An System.IFormatProvider interface implementation which supplies culture-specific formatting information about this instance.


[17993] UIntPtr Structure (System)


[17994] ToString


[17995] Description


[17996] A platform-specific type that is used to represent a pointer or a handle.


[17997] The System.UnItPtr type is designed to be a platform-specific, machine-sized integer. That is, an instance of this type is expected to be 32-bits on 32-bit hardware and operating systems, and 64-bits on 64-bit hardware and operating systems.


[17998] ToString


[17999] [C#] public static readonly UIntPtr Zero;


[18000] [C++] public: static UIntPtr Zero;


[18001] [VB] Public Shared ReadOnly Zero As UIntPtr


[18002] [JScript] public static var Zero: UIntPtr;


[18003] Description


[18004] A read-only field that represents an uninitialized pointer or handle.


[18005] The value of this field is not equivalent to null, but is instead a pointer which has not been assigned any value whatsoever. Use this field to efficiently determine whether an instance of UIntPtr has been set.


[18006] UIntPtr


[18007] Example Syntax:


[18008] ToString


[18009] [C#] public UIntPtr(uint value);


[18010] [C++] public: UIntPtr(unsigned int value);


[18011] [VB] Public Sub New(ByVal value As UInt32)


[18012] [JScript] public function UIntPtr(value: UInt32); Initializes a new instance of the System.UlntPtr structure.


[18013] Description


[18014] Initializes a new instance of the System.UIntPtr structure to the specified 32-bit pointer or handle. A pointer or handle contained in a 32-bit unsigned integer.


[18015] UIntPtr


[18016] Example Syntax:


[18017] ToString


[18018] [C#] public UIntPtr(ulong value);


[18019] [C++] public: UIntPtr(unsigned_int64 value);


[18020] [VB] Public Sub New(ByVal value As UInt64)


[18021] [JScript] public function UIntPtr(value: UInt64);


[18022] Description


[18023] Initializes a new instance of the System.UIntPtr structure to the specified 64-bit pointer or handle.


[18024] An exception is only thrown if the value of value requires more bits than the current platform supports. A pointer or handle contained in a 64-bit unsigned integer.


[18025] UIntPtr


[18026] Example Syntax:


[18027] ToString


[18028] [C#] unsafe public UIntPtr(void* value);


[18029] [C++] public: UIntPtr(void* value);


[18030] Size


[18031] ToString


[18032] [C#] public static int Size {get;}


[18033] [C++] public: property static int get_Size( );


[18034] [VB] Public Shared ReadOnly Property Size As Integer


[18035] [JScript] public static function get Size( ): int;


[18036] Description


[18037] Gets the size of this instance.


[18038] Equals


[18039] [C#] public override bool Equals(object obj);


[18040] [C++] public: bool Equals(Object* obj);


[18041] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[18042] [JScript] public override function Equals(obj: Object): Boolean;


[18043] Description


[18044] Returns a value indicating whether this instance is equal to a specified object.


[18045] Return Value: true if obj is an instance of UIntPtr and equals the value of this instance; otherwise, false. An object to compare with this instance or null.


[18046] GetHashCode


[18047] [C#] public override int GetHashCode( );


[18048] [C++] public: int GetHashCode( );


[18049] [VB] Overrides Public Function GetHashCode( ) As Integer


[18050] [JScript] public override function GetHashCode( ): int;


[18051] Description


[18052] Returns the hash code for this instance.


[18053] Return Value: A 32-bit signed integer hash code.


[18054] op_Equality


[18055] [C#] public static bool operator ==(UIntPtr value1, UIntPtr value2);


[18056] [C++] public: static bool op_Equality(UIntPtr value 1, UIntPtr value2);


[18057] [VB] returnValue =UIntPtr.op_Equality(value 1, value2)


[18058] [JScript] returnValue=value 1==value2;


[18059] Description


[18060] Determines whether two specified instances of System.UIntPtr are equal.


[18061] Return Value: true if value1 equals value2; otherwise, false. A UIntPtr. A UIntPtr.


[18062] op_Explicit


[18063] [C#] public static explicit operator UIntPtr(uint value);


[18064] [C++] public: static UIntPtr op_Explicit(unsigned int value);


[18065] [VB] returnValue=UIntPtr.op_Explicit(value)


[18066] [JScript] returnValue=UIntPtr(value);


[18067] Description


[18068] Converts the value of a 32-bit unsigned integer to an System.UIntPtr.


[18069] Return Value: A new instance of System.UIntPtr initialized to value. A 32-bit unsigned integer. op_Explicit


[18070] [C#] public static explicit operator UIntPtr(ulong value);


[18071] [C++] public: static UIntPtr op_Explicit(unsigned_int64 value);


[18072] [VB] returnValue=UIntPtr.op_Explicit(value)


[18073] [JScript] returnValue=UIntPtr(value);


[18074] Description


[18075] Converts the value of a 64-bit unsigned integer to an System.UIntPtr.


[18076] Return Value: A new instance of System.UlntPtr initialized to value. A 64-bit unsigned integer.


[18077] op_Explicit


[18078] [C#] unsafe public static explicit operator void*(UIntPtr value);


[18079] [C++] public: static void* op_Explicit( );


[18080] op_Explicit


[18081] [C#] public static explicit operator ulong(UIntPtr value);


[18082] [C++] public: static unsigned_int64 op_Explicit( );


[18083] [VB] returnValue=UIntPtr.op_Explicit(value)


[18084] [JScript] returnValue=UInt64(value);


[18085] Description


[18086] Converts the value of the specified System.UIntPtr instance to a 64-bit unsigned integer. A UIntPtr.


[18087] op_Explicit


[18088] [C#] public static explicit operator uint(UIntPtr value);


[18089] [C++] public: static unsigned int op_Explicit( );


[18090] [VB] returnValue=UIntPtr.op_Explicit(value)


[18091] [JScript] returnValue=UInt32(value);


[18092] Description


[18093] Converts the value of the specified System.UIntPtr instance to a 32-bit unsigned integer.


[18094] An exception is only thrown if the value of value requires more bits than the current platform supports. A UIntPtr.


[18095] op_Explicit


[18096] [C#] unsafe public static explicit operator UIntPtr(void* value);


[18097] [C++] public: static UIntPtr op_Explicit(void* value);


[18098] op_Inequality


[18099] [C#] public static bool operator !=(UIntPtr value 1, UIntPtr value2);


[18100] [C++] public: static bool op_Inequality(UIntPtr value1, UIntPtr value2);


[18101] [VB] returnvalue=UIntPtr.op_Inequality(value1, value2)


[18102] [JScript] returnvalue=value1 !=value2;


[18103] Description


[18104] Determines whether two specified instances of System.UIntPtr are not equal.


[18105] Return Value: true if value1 does not equal value2; otherwise, false. A UIntPtr. A UIntPtr.


[18106] ISerializable.GetObjectData


[18107] [C#] void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context);


[18108] [C++] void ISerializable::GetObjectData(SerializationInfo* info, StreamingContext context);


[18109] [VB] Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext) Implements ISerializable.GetObjectData


[18110] [JScript] function ISerializable.GetObjectData(info: SerializationInfo, context: StreamingContext);


[18111] ToPointer


[18112] [C#] unsafe public void* ToPointer( );


[18113] [C++] public: void* ToPointer( );


[18114] Description


[18115] Converts the value of this instance to a pointer to an unspecified type.


[18116] Return Value: A pointer to System.Void; that is, a pointer to memory containing data of an unspecified type.


[18117] ToString


[18118] [C#] public override string ToString( );


[18119] [C++] public: String* ToString( );


[18120] [VB] Overrides Public Function ToString( ) As String


[18121] [JScript] public override function ToString( ): String;


[18122] Description


[18123] Converts the numeric value of this instance to its equivalent String representation.


[18124] Return Value: The System.String representation of the value of this instance.


[18125] ToUInt32


[18126] [C#] public uint ToUInt32( );


[18127] [C++] public: unsigned int ToUInt32( );


[18128] [VB] Public Function ToUInt32( )As UInt32


[18129] [JScript] public function ToUInt32( ): UInt32;


[18130] Description


[18131] Converts the value of this instance to a 32-bit unsigned integer.


[18132] Return Value: A 32-bit unsigned integer.


[18133] An exception is only thrown if the value of value requires more bits than the current platform supports.


[18134] ToUInt64


[18135] [C#] public ulong ToUInt64( );


[18136] [C++] public: unsigned_int64 ToUInt64( );


[18137] [VB] Public Function ToUInt64 ( )As UInt64


[18138] [JScript] public function ToUInt64 ( ): UInt64;


[18139] Description


[18140] Converts the value of this instance to a 64-bit unsigned integer.


[18141] Return Value: A a 64-bit unsigned integer.


[18142] UnauthorizedAccessException class (System)


[18143] ToUInt64


[18144] Description


[18145] The exception that is thrown when the operating system denies access because of an I/O error or a specific type of security error.


[18146] UnauthorizedAccessException uses the HRESULT COR_E_UNAUTHORIZEDACCESS, which has the value 0x80070005.


[18147] UnauthorizedAccessException


[18148] Example Syntax:


[18149] ToUInt64


[18150] [C#] public UnauthorizedAccessException( );


[18151] [C++] public: UnauthorizedAccessException( );


[18152] [VB] Public Sub New( )


[18153] [JScript] public function UnauthorizedAccessException( ); Initializes a new instance of the System.UnauthorizedAccessException class.


[18154] Description


[18155] Initializes a new instance of the System.UnauthorizedAccessException class.


[18156] UnauthorizedAccessException


[18157] Example Syntax:


[18158] ToUInt64


[18159] [C#] public UnauthorizedAccessException(string message);


[18160] [C++] public: UnauthorizedAccessException(String* message);


[18161] [VB] Public Sub New(ByVal message As String)


[18162] [JScript] public function UnauthorizedAccessException(message: String);


[18163] Description


[18164] Initializes a new instance of the System.UnauthorizedAccessException class with a specified error message. The error message that explains the reason for the exception.


[18165] UnauthorizedAccessException


[18166] Example Syntax:


[18167] ToUInt64


[18168] [C#] protected UnauthorizedAccessException(SerializationInfo info, StreamingContext context);


[18169] [C++] protected: UnauthorizedAccessException(SerializationInfo* info, StreamingContext context);


[18170] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[18171] [JScript] protected function UnauthorizedAccessException(info: SerializationInfo, context: StreamingContext);


[18172] Description


[18173] Initializes a new instance of the System.UnauthorizedAccessException class with serialized data. The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.


[18174] UnauthorizedAccessException


[18175] Example Syntax:


[18176] ToUInt64


[18177] [C#] public UnauthorizedAccessException(string message, Exception inner);


[18178] [C++] public: UnauthorizedAccessException(String* message, Exception* inner);


[18179] [VB] Public Sub New(ByVal message As String, ByVal inner As Exception)


[18180] [JScript] public function UnauthorizedAccessxception(message: String, inner: Exception);


[18181] Description


[18182] Initializes a new instance of the System.UnauthorizedAccessException class with a specified error message and a reference to the inner exception that is the root cause of this exception.


[18183] When an ExceptionX is thrown as a direct result of a previous exception Y, the System.Exception.InnerException property of X should contain a reference to Y. The InnerException property returns the same value as was passed into the constructor, or null if the inner exception value was not supplied to the constructor. The error message that explains the reason for the exception. An instance of System.Exception that is the cause of the current Exception. If the inner parameter is non-null, then the current Exception is raised in a catch block handling inner.


[18184] HelpLink


[18185] HResult


[18186] InnerException


[18187] Message


[18188] Source


[18189] StackTrace


[18190] TargetSite


[18191] UnhandledExceptionEventArgs class (System)


[18192] ToString


[18193] Description


[18194] Provides data for the event that is raised when there is an exception that is not handled by the application domain.


[18195] System.UnhandledExceptionEventArgs provides access to the exception object and a flag indicating whether the common language runtime is terminating. The System.UnhandledExceptionEventArgs is one of the parameters passed into System.UnhandledExceptionEventHandler. UnhandledExceptionEventArgs


[18196] Example Syntax:


[18197] ToString


[18198] [C#] public UnhandledExceptionEventArgs(object exception, bool isTerminating);


[18199] [C++] public: UnhandledExceptionEventArgs(Object* exception, bool isTerminating);


[18200] [VB] Public Sub New(ByVal exception As Object, ByVal isTerminating As Boolean)


[18201] [JScript] public function UnhandledExceptionEventArgs(exception: Object, isTerminating: Boolean);


[18202] Description


[18203] Initializes a new instance of the System.UnhandledExceptionEventArgs class with the exception object and a common language runtime termination flag. The exception that is not handled. true if the runtime is terminating; otherwise, false.


[18204] ExceptionObject


[18205] ToString


[18206] [C#] public object ExceptionObject {get;}


[18207] [C++] public: _property Object* getExceptionObject( );


[18208] [VB] Public ReadOnly Property ExceptionObject As Object


[18209] [JScript] public function get ExceptionObject( ): Object;


[18210] Description


[18211] Gets the unhandled exception object.


[18212] IsTerminating


[18213] ToString


[18214] [C#] public bool IsTerminating {get;}


[18215] [C++] public: _Property bool get_IsTerminating( );


[18216] [VB] Public ReadOnly Property IsTerminating As Boolean


[18217] [JScript] public function get IsTerminating( ): Boolean;


[18218] Description


[18219] Indicates whether the common language runtime is terminating.


[18220] UnhandledExceptionEventHandler delegate (System)


[18221] ToString


[18222] Description


[18223] Represents the method that will handle the event triggered by an exception that is not handled by the application domain. The source of the unhandled exception event. An UnhandledExceptionEventArgs that contains the event data.


[18224] When you create an System.UnhandledExceptionEventHandler delegate, you identify the method that will handle the event. To associate the event handler with your event, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see .


[18225] ValueType class (System)


[18226] ToString


[18227] Description


[18228] Provides the base class for value types.


[18229] ValueType overrides the virtual methods from System.Object with more appropriate implementations for value types. See also System.Enum, which inherits from ValueType.


[18230] ValueType


[18231] Example Syntax:


[18232] ToString


[18233] [C#] protected ValueType( );


[18234] [C++] protected: ValueType( );


[18235] [VB] Protected Sub New( )


[18236] [JScript] protected function ValueType( );


[18237] Equals


[18238] [C#] public override bool Equals(object obj);


[18239] [C++] public: bool Equals(Object* obj);


[18240] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[18241] [JScript] public override function Equals(obj: Object): Boolean;


[18242] Description


[18243] Indicates whether this instance and a specified object are equal.


[18244] Return Value: true if obj and this instance are the same type and represent the same value; otherwise, false. Another object to compare to.


[18245] GetHashCode


[18246] [C#] public override int GetHashCode( );


[18247] [C++] public: int GetHashCode( );


[18248] [VB] Overrides Public Function GetHashCode( ) As Integer


[18249] [JScript] public override function GetHashCode( ): int;


[18250] Description


[18251] Returns the hash code for this instance.


[18252] Return Value: A 32-bit signed integer that is the hash code for this instance.


[18253] Any value types that are inserted into a Hashtable must override GetHashCode( ) for performance reasons. The default implementation on ValueType will return the same value for all instances of a particular type, which makes hashing as slow as a linked list. See the documentation for Object's GetHashCode for more details.


[18254] ToString


[18255] [C#] public override string ToString( );


[18256] [C++] public: String* ToString( );


[18257] [VB] Overrides Public Function ToString( ) As String


[18258] [JScript] public override function ToString( ): String;


[18259] Description


[18260] Returns the fully qualified type name of this instance.


[18261] Return Value: A System.String containing a fully qualified type name.


[18262] Version class (System)


[18263] ToString


[18264] Description


[18265] Represents the version number for a common language runtime assembly. This class cannot be inherited.


[18266] Version numbers consist of four components: major, minor, build, and revision. Components major and minor are required. Component revision is only optional if build is not defined.


[18267] Version


[18268] Example Syntax:


[18269] ToString


[18270] [C#] public Version( );


[18271] [C++] public: Version( );


[18272] [VB] Public Sub New( )


[18273] [JScript] public function Version( );


[18274] Description


[18275] Initializes a new instance of the System.Version class.


[18276] Version


[18277] Example Syntax:


[18278] ToString


[18279] [C#] public Version(string version);


[18280] [C++] public: Version(String* version);


[18281] [VB] Public Sub New(ByVal version As String)


[18282] [JScript] public function Version(version: String);


[18283] Description


[18284] Initializes a new instance of the Version class using the value represented by the specified String


[18285] version can only contain components major, minor, build, and revision, in that order and all separated by periods. There must be at least two components, and at most four. The first two components are assumed to be major and minor. A string containing the major, minor, build, and revision numbers, where each number is delimited with a period character (‘.’).


[18286] Version


[18287] Example Syntax:


[18288] ToString


[18289] [C#] public Version(int major, int minor);


[18290] [C++] public: Version(int major, int minor);


[18291] [VB] Public Sub New(ByVal major As Integer, ByVal minor As Integer)


[18292] [JScript] public function Version(major: int, minor: int);


[18293] Description


[18294] Initializes a new instance of the Version class using the specified major and minor values.


[18295] Metadata restricts major and minor to a maximum value of System.UIntl16.MaxValue −1. The major version number. The minor version number.


[18296] Version


[18297] Example Syntax:


[18298] ToString


[18299] [C#] public Version(int major, int minor, int build);


[18300] [C++] public: Version(int major, int minor, int build);


[18301] [VB] Public Sub New(ByVal major As Integer, ByVal minor As Integer, ByVal build As Integer)


[18302] [JScript] public function Version(major: int minor, int,build: int);


[18303] Description


[18304] Initializes a new instance of the Version class using the specified major, minor, and build values.


[18305] Metadata restricts major, minor, and build to a maximum value of System.UIntl16.MaxValue −1. The major version number. The minor version number. The build number.


[18306] Version


[18307] Example Syntax:


[18308] ToString


[18309] [C#] public Version(int major, int minor, int build, int revision);


[18310] [C++] public: Version(int major, int minor, int build, int revision);


[18311] [VB] Public Sub New(ByVal major As Integer, ByVal minor As Integer, ByVal build As Integer, ByVal revision As Integer)


[18312] [JScript] public function Version(major: int, minor: int, build: int, revision: int); Initializes a new instance of the Version class with the specified major, minor, build, and revision numbers.


[18313] Description


[18314] Initializes a new instance of the Version class with the specified major, minor, build, and revision numbers.


[18315] Metadata restricts major, minor, build, and revision to a maximum of System.UIntl16.MaxValue −1. The major version number. The minor version number. The build number. The revision number.


[18316] Build


[18317] ToString


[18318] [C#] public int Build {get;}


[18319] [C++] public: _property int get_Build( );


[18320] [VB] Public ReadOnly Property Build As Integer


[18321] [JScript] public function get Build( ): int;


[18322] Description


[18323] Gets the value of the build component of the version number for this instance.


[18324] For example, if the version number is 6.2.1.3, the build number is 1. If the version number is 6.2, the build number is undefined.


[18325] Major


[18326] ToString [C#] public int Major {get;}


[18327] [C++] public: property int get Major( );


[18328] [VB] Public ReadOnly Property Major As Integer


[18329] [JScript] public function get Major( ): int;


[18330] Description


[18331] Gets the value of the major component of the version number for this instance.


[18332] For example, if the version number is 6.2, the minor version is 6.


[18333] Minor


[18334] ToString


[18335] [C#] public int Minor {get;}


[18336] [C++] public: _property int get_minor( );


[18337] [VB] Public ReadOnly Property Minor As Integer


[18338] [JScript] public function get Minor( ): int;


[18339] Description


[18340] Gets the value of the major component of the version number for this instance.


[18341] For example, if the version number is 6.2, the minor version is 2.


[18342] Revison


[18343] ToString


[18344] [C#] public int Revision {get;}


[18345] [C++] public: _Property int get_Revison( );


[18346] [VB] Public ReadOnly Property Revision As Integer


[18347] [JScript] public function get Revision( ): int;


[18348] Description


[18349] Gets the value of the revision component of the version number for this instance.


[18350] For example, if the version number is 6.2.1.3, the revision number is 3. If the version number is 6.2, the revision number is undefined.


[18351] Clone


[18352] [C#] public object Clone( );


[18353] [C++] public: _sealed Object* Clone( );


[18354] [VB] NotOverridable Public Function Clone( ) As Object


[18355] [JScript] public function Clone( ): Object;


[18356] Description


[18357] Returns a new Version object whose value is the same as this instance.


[18358] Return Value: A copy of this Version object.


[18359] CompareTo


[18360] [C#] public int CompareTo(object version);


[18361] [C++] public: __sealed int CompareTo(Object* version);


[18362] [VB] NotOverridable Public Function CompareTo(ByVal version As Object) As Integer


[18363] [JScript] public function CompareTo(version: Object): int;


[18364] Description


[18365] Compares this instance to a specified object and returns an indication of their relative values.


[18366] Return Value: Return Value Description Less than zero This instance is prior to version.


[18367] The components of Version in decreasing order of importance are: major, minor, build, and revision. An unknown component is assumed to be older than any known component. An object to compare, or null.


[18368] Equals


[18369] [C#] public override bool Equals(object obj);


[18370] [C++] public: bool Equals(Object* obj);


[18371] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[18372] [JScript] public override function Equals(obj: Object): Boolean;


[18373] Description


[18374] Returns a value indicating whether this instance is equal to a specified object.


[18375] Return Value: true if this instance and version are both Version objects, and every component of this instance matches the corresponding component of version; otherwise, false. An object to compare with this instance.


[18376] GetHashCode


[18377] [C#] public override int GetHashCode( );


[18378] [C++] public: int GetHashCode( );


[18379] [VB] Overrides Public Function GetHashCode( ) As Integer


[18380] [JScript] public override function GetHashCode( ): int;


[18381] Description


[18382] Returns a hash code for this instance.


[18383] Return Value: A 32-bit signed integer hash code.


[18384] op_Equality


[18385] [C++] public static bool operator==(Version v1, Version v2);


[18386] [C++] public: static bool op_Equality(Version* v1, Version* v2);


[18387] [VB] returnValue=Version.op_Equality(v1, v2)


[18388] [JScript] returnValue=v1==v2;


[18389] Description


[18390] Determines whether two specified instances of Version are equal.


[18391] Return Value: true if v1 equals v2; otherwise false. The first instance of Version. The second instance of Version.


[18392] op_GreaterThan


[18393] [C#] public static bool operator>(Version v1, Version v2);


[18394] [C++] public: static bool op_GreaterThan(Version* v1, Version* v2);


[18395] [VB] returnValue=Version.op_GreaterThan(v1, v2)


[18396] [JScript] returnValue=v1>v2;


[18397] Description


[18398] Determines whether the first specified instance of Version is greater than the second specified instance of Version.


[18399] Return Value: true if v1 is greater than v2; otherwise false. The first instance of Version. The second instance of Version.


[18400] op_GreaterThanOrEqual


[18401] [C#] public static bool operator>=(Version v1, Version v2);


[18402] [C++] public: static bool op_GreaterThanOrEqual(Version* v1, Version* v2);


[18403] [VB] returnValue=Version.op_GreaterThanOrEqual(v1, v2)


[18404] [JScript] returnValue=v1>=v2;


[18405] Description


[18406] Determines whether the first specified instance of Version is greater than or equal to the second instance of Version.


[18407] Return Value: true if v1 is greater than or equal to v2; otherwise false. The first instance of Version. The second instance of Version.


[18408] op_Inequality


[18409] [C#] public static bool operator !=(Version v1, Version v2);


[18410] [C++] public: static bool op_Inequality(Version* v1, Version* v2);


[18411] [VB] returnValue=Version.op_Inequality(v1, v2)


[18412] [JScript] returnValue=v1 !=v2;


[18413] Description


[18414] Determines whether two specified instances of Version are not equal.


[18415] Return Value: true if v1 does not equal v2; otherwise false. The first instance of Version. The second instance of Version.


[18416] op_LessThan


[18417] [C#] public static bool operator


[18418] [C++] public: static bool op_LessThan(Version* v1, Version* v2);


[18419] [VB] returnValue=Version.op_LessThan(v1, v2)


[18420] [JScript] returnValue=v1<v2;


[18421] Description


[18422] Determines whether the first specified instance of Version is less than the second specified instance of Version .


[18423] Return Value: true if v1 is less than v2; otherwise false. The first instance of Version. The second instance of Version.


[18424] op_LessThanOrEqual


[18425] [C#] public static bool operator<=(Version v1, Version v2);


[18426] [C++] public: static bool op_LessThanOrEqual(Version* v1, Version* v2);


[18427] [VB] returnValue=Version.op_LessThanOrEqual(v1, v2)


[18428] [JScript] returnValue=v1<=v2;


[18429] Description


[18430] Determines whether the first specified instance of Version is less than or equal to the second instance of Version.


[18431] Return Value: true if v1 is less than or equal to v2; otherwise false. The first instance of Version. The second instance of Version.


[18432] ToString


[18433] [C#] public override string ToString( );


[18434] [C++] public: String* ToString( );


[18435] [VB] Overrides Public Function ToString( ) As String


[18436] [JScript] public override function ToString( ): String; Converts the value of this instance to its equivalent String representation.


[18437] Description


[18438] Converts the value of this instance to its equivalent String representation.


[18439] Return Value: The System.String representation of the values of the major, minor, build, and revision components of this instance, as depicted in the following format. Each component is separated by a period character (‘.’). Square brackets (‘[’ and ‘]’) indicate a component that will not appear in the return value if the component is not defined: major.minor[.build[.revision]] For example, if you create an instance of Version using the constructor Version(1,1) , the returned string is “1.1”. If you create an instance of Version using the constructor Version(1,3,4,2), the returned string is “1.3.4.2”.


[18440] ToString


[18441] [C#] public string ToString(int fieldCount);


[18442] [C++] public: String* ToString(int fieldCount);


[18443] [VB] Public Function ToString(ByVal fieldCount As Integer) As String


[18444] [JScript] public function ToString(fieldCount: int): String;


[18445] Description


[18446] Converts the value of this instance to its equivalent String representation. A specified count indicates the number of components to return.


[18447] Return Value: The System.String representation of the values of the major, minor, build, and revision components of this instance, each separated by a period character (‘.’). The number of components to return.


[18448] Void structure (System)


[18449] ToString


[18450] Description


[18451] Indicates a method that does not return a value; that is, the method has the void return type.


[18452] This class is used in the System.Reflection namespace. This class has no members, and you cannot create an instance of this class.


[18453] WeakReference class (System)


[18454] ToString


[18455] Description


[18456] Represents a “weak reference”, which references an object while still allowing it to be garbage collected.


[18457] The common language runtime “garbage collection” mechanism reclaims inaccessible (that is, “unreachable”) memory allocated to an object. An object becomes unreachable if all references to it become invalid, for example, by setting those references to null.


[18458] WeakReference


[18459] Example Syntax:


[18460] ToString


[18461] [C#] public WeakReference(object target);


[18462] [C++] public: WeakReference(Object* target);


[18463] [VB] Public Sub New(ByVal target As Object)


[18464] [JScript] public function WeakReference(target: Object); Initializes a new instance of the WeakReference class.


[18465] Description


[18466] Initializes a new instance of the WeakReference class, referencing the specified object.


[18467] This constructor creates a short weak reference to target. The object to track.


[18468] WeakReference


[18469] Example Syntax:


[18470] ToString


[18471] [C#] public WeakReference(object target, bool trackResurrection);


[18472] [C++] public: WeakReference(Object* target, bool trackResurrection);


[18473] [VB] Public Sub New(ByVal target As Object, ByVal trackResurrection As Boolean)


[18474] [JScript] public function WeakReference(target: Object, trackResurrection: Boolean);


[18475] Description


[18476] Initializes a new instance of the WeakReference class, referencing the specified object and using the specified resurrection tracking.


[18477] If trackResurrection is false , a short weak reference is created. If trackResurrection is true , a long weak reference is created. Typically, only short weak references are needed. An object to track. Indicates when to stop tracking the object. If true , the object is tracked after finalization; if false , the object is only tracked until finalization.


[18478] WeakReference


[18479] Example Syntax:


[18480] ToString


[18481] [C+] protected WeakReference(SerializationInfo info, StreamingContext context);


[18482] [C++] protected: WeakReference(SerializationInfo* info, StreamingContext context);


[18483] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[18484] [JScript] protected function WeakReference(info: SerializationInfo, context: StreamingContext);


[18485] Description


[18486] Initializes a new instance of the System.WeakReference class, using the specified serialization and stream information.


[18487] The context parameter is reserved, and does not currently participate in this operation. An object that holds all the data needed to serialize or deserialize this instance. (Reserved) Describes the source and destination of the serialized stream specified by info.


[18488] IsAlive


[18489] ToString


[18490] [C#] public virtual bool IsAlive {get;}


[18491] [C++] public: _property virtual bool get_IsAlive( );


[18492] [VB] Overridable Public ReadOnly Property IsAlive As Boolean


[18493] [JScript] public function get IsAlive( ): Boolean;


[18494] Description


[18495] Gets an indication whether the object referenced by this instance has been garbage collected.


[18496] WeakReferenceException is thrown if the object referenced by this instance is invalid. This can occur if there is an attempt to resurrect the referenced object after it has been finalized.


[18497] Target


[18498] ToString


[18499] [C#] public virtual object Target {get; set;}


[18500] [C++] public: _Property virtual Object* get Target( );public: _property virtual void set_Target(Object*);


[18501] [VB] Overridable Public Property Target As Object


[18502] [JScript] public function get Target( ): Object;public function set Target(Object);


[18503] Description


[18504] Gets or sets the object (the “target”) referenced by this instance.


[18505] WeakReferenceException will be thrown if the reference to the object referenced by this instance is invalid. This can occur if there is an attempt to resurrect the referenced object after it has been finalized.


[18506] TrackResurrection


[18507] ToString


[18508] [C#] public virtual bool TrackResurrection {get;}


[18509] [C++] public: _property virtual bool get_TrackResurrection( );


[18510] [VB] Overridable Public ReadOnly Property TrackResurrection As Boolean


[18511] [JScript] public function get TrackResurrection: Boolean;


[18512] Description


[18513] Gets an indication whether the object referenced by this instance is tracked after it is garbage collected and finalized.


[18514] Finalize


[18515] [C#]˜WeakReference;


[18516] [C++]˜WeakReference( );


[18517] [VB] Overrides Protected Sub Finalize( )


[18518] [JScript] protected override function Finalize( );


[18519] Description


[18520] Frees any resources allocated by this instance.


[18521] GetObjectData


[18522] [C#] public virtual void GetObjectData(SerializationInfo info, StreamingContext context);


[18523] [C++] public: virtual void GetObjectData(SerializationInfo* info, StreamingContext context);


[18524] [VB] Overridable Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[18525] [JScript] public function GetObjectData(info: SerializationInfo, context: StreamingContext);


[18526] Description


[18527] Populates a SerializationInfo object with all the data needed to serialize this instance.


[18528] This method stores all the information in info necessary to serialize this instance. A SerializationInfo object. (Reserved) The location where serialized data will be stored and retrieved.


[18529] Uri class (System)


[18530] ToString


[18531] Description


[18532] Provides an object representation of a uniform resource indentifier (URI) and easy access to the parts of the URI.


[18533] A URI is a compact representation of a resource available to your application on the Internet. The System.Uri class defines the properties and methods for handling URIs, including parsing, comparing, and combining. The System.Uri class properties are read-only, to modify a System.Uri instance use the System.UriBuilder class.


[18534] ToString


[18535] [C#] public static readonly string SchemeDelimiter;


[18536] [C++] public: static String* SchemeDelimiter;


[18537] [VB] Public Shared ReadOnly SchemeDelimiter As String


[18538] [JScript] public static var SchemeDelimiter: String;


[18539] Description


[18540] Specifies the characters that separate the communication protocol scheme from the address portion of the URI. This field is read-only.


[18541] ToString


[18542] [[C#] public static readonly string UriSchemeFile;


[18543] [C++] public: static String* UriSchemeFile;


[18544] [VB] Public Shared ReadOnly UriSchemeFile As String


[18545] [JScript] public static var UriSchemeFile: String;


[18546] Description


[18547] Specifies that the URI is a pointer to a file. This field is read-only.


[18548] ToString


[18549] [C#] public static readonly string UriSchemeFtp;


[18550] [C++] public: static String* UriSchemeFtp;


[18551] [VB] Public Shared ReadOnly UriSchemeFtp As String


[18552] [JScript] public static var UriSchemeFtp: String;


[18553] Description


[18554] Specifies that the URI is accessed through the File Transfer Protocol (FTP). This field is read-only.


[18555] ToString


[18556] [C#] public static readonly string UriSchemeGopher;


[18557] [C++] public: static String* UriSchemeGopher;


[18558] [VB] Public Shared ReadOnly UriSchemeGopher As String


[18559] [JScript] public static var UriSchemeGopher: String;


[18560] Description


[18561] Specifies that the URI is accessed through the Gopher protocol. This field is read-only.


[18562] ToString


[18563] [C#] public static readonly string UriSchemeHttp;


[18564] [C++] public: static String* UriSchemeHttp;


[18565] [VB] Public Shared ReadOnly UriSchemeHttp As String


[18566] [JScript] public static var UriSchemeHttp: String;


[18567] Description


[18568] Specifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP). This field is read-only.


[18569] ToString


[18570] [C#] public static readonly string UriSchemeHttps ;


[18571] [C++] public: static String* UriSchemeHttps;


[18572] [VB] Public Shared ReadOnly UriSchemeHttps As String


[18573] [JScript] public static var UriSchemeHttps: String;


[18574] Description


[18575] Specifies that the URI is accessed through the Secure Hypertext Transfer Protocol (HTTPS). This field is read-only.


[18576] ToString


[18577] [C#] public static readonly string UriSchemeMailto;


[18578] [C++] public: static String* UriSchemeMailto;


[18579] [VB] Public Shared ReadOnly UriSchemeMailto As String


[18580] [JScript] public static var UriSchemeMailto: String;


[18581] Description


[18582] Specifies that the URI is an email address and is accessed through the Simple Network Mail Protocol (SNMP). This field is read-only.


[18583] ToString


[18584] [C#] public static readonly string UriSchemeNews;


[18585] [C++] public: static String* UriSchemeNews;


[18586] [VB] Public Shared ReadOnly UriSchemeNews As String


[18587] [JScript] public static var UriSchemeNews: String;


[18588] Description


[18589] Specifes that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). This field is read-only.


[18590] ToString


[18591] [C#] public static readonly string UriSchemeNntp;


[18592] [C+] public: static String* UriSchemeNntp;


[18593] [VB] Public Shared ReadOnly UriSchemeNntp As String


[18594] [JScript] public static var UriSchemeNntp: String;


[18595] Description


[18596] Specifes that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). This field is read-only.


[18597] Uri


[18598] Example Syntax:


[18599] ToString


[18600] [C#] public Uri(string uriString);


[18601] [C++] public: Uri(String* uriString);


[18602] [VB] Public Sub New(ByVal uriString As String)


[18603] [JScript] public function Uri(uriString: String); Initializes a new instance of the System.Uri class.


[18604] Description


[18605] Initializes a new instance of the System.Uri class with the specified URI.


[18606] This constructor creates a System.Uri instance from a URI string. It parses the URI, puts it in canonical format, and makes any required escape encodings. A URI.


[18607] Uri


[18608] Example Syntax:


[18609] ToString


[18610] [C#] protected Uri(SerializationInfo serializationInfo, StreamingContext streamingContext);


[18611] [C++] protected: Uri(SerializationInfo* serializationInfo, StreamingContext streamingcontext);


[18612] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext)


[18613] [JScript] protected function Uri(serializationInfo: SerializationInfo, streamingcontext: StreamingContext);


[18614] Description


[18615] Initializes a new instance of the System.Uri class from the specified instances of the System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext classes.


[18616] This constructor implements the System.Runtime.Serialization.ISerializable interface for the System.Uri class. An instance of the System.Runtime.Serialization.SerializationInfo class containing the information required to serialize the new System.Uri instance. An instance of the System.Runtime.Serialization.StreamingContext class containing the source of the serialized stream associated with the new System.Uri instance.


[18617] Uri


[18618] Example Syntax:


[18619] ToString


[18620] [C#] public Uri(string uriString, bool dontEscape);


[18621] [C++] public: Uri(String* uriString, bool dontEscape);


[18622] [VB] Public Sub New(ByVal uriString As String, ByVal dontEscape As Boolean)


[18623] [JScript] public function Uri(uriString: String, dontEscape: Boolean);


[18624] Description


[18625] Initializes a new instance of the System.Uri class with the specified URI, with control of character escaping.


[18626] This constructor creates a System.Uri instance from a URI string. It parses the URI, and puts it in canonical format. The caller must set dontEscape to true if the URI is already escaped, or false if the constructor should transform the URI to its escaped encoding. The URI. true if the URI contains escape characters; otherwise, false.


[18627] Uri


[18628] Example Syntax:


[18629] ToString


[18630] [C#] public Uri(Uri baseUri, string relativeUri);


[18631] [C++] public: Uri(Uri* baseUri, String* relativeUri);


[18632] [VB] Public Sub New(ByVal baseUri As Uri, ByVal relativeUri As String)


[18633] [JScript] public function Uri(baseUri: Uri, relativeUri: String);


[18634] Description


[18635] Initializes a new instance of the System.Uri class based on the specified base and relative URIs.


[18636] This constructor creates a System.Uri instance by combining the baseUri and the relative Uri. If relative Uri is an absolute URI (containing a scheme, hostname, and optionally a port number) the System.Uri instance is created using only relative Uri. The base URI. The relative URI to add to the base URI.


[18637] Uri


[18638] Example Syntax:


[18639] ToString


[18640] [C#] public Uri(Uri baseUri, string relativeUri, bool dontEscape);


[18641] [C++] public: Uri(Uri* baseUri, String* relativeUri, bool dontEscape);


[18642] [VB] Public Sub New(ByVal baseUri As Uri, ByVal relativeUri As String, ByVal dontEscape As Boolean)


[18643] [JScript] public function Uri(baseUri: Uri, relativeUri: String, dontEscape: Boolean);


[18644] Description


[18645] Initializes a new instance of the System.Uri class based on the specified base and releative URIs, with control of character escaping.


[18646] This constructor creates a System.Uri instance by combining baseUri and relativeUri. If the URI passed in relativeUri is an absolute URI (containing a scheme, hostname, and optionally a port number) the System.Uri instance is created using only relative Uri. The caller must set dontEscape to true if the URI is already escaped. The base URI. The relative URI to add to the base URI. true if the URI contains escape characters; otherwise, false.


[18647] AbsolutePath


[18648] ToString


[18649] [C#] public string AbsolutePath {get;}


[18650] [C++] public: _property String* get_AbsolutePath( );


[18651] [VB] Public ReadOnly Property AbsolutePath As String


[18652] [JScript] public function get AbsolutePath( ): String;


[18653] Description


[18654] Gets the absolute path of the URI.


[18655] The System.Uri.AbsolutePath property contains the path information that the server uses to resolve requests for information. Typically this is the path to the desired information on the server's file system, although it also can indicate the application or script the server must run to provide the information.


[18656] AbsoluteUri


[18657] ToString


[18658] [C#] public string AbsoluteUri {get;}


[18659] [C++] public: _property String* get_AbsoluteUri( );


[18660] [VB] Public ReadOnly Property AbsoluteUri As String


[18661] [JScript] public function get AbsoluteUri( ): String;


[18662] Description


[18663] Gets the absolute URI.


[18664] The System.Uri.AbsoluteUri property includes the entire URI stored in the System.Uri instance, including all fragments and query strings.


[18665] Authority


[18666] ToString


[18667] [C#] public string Authority {get;}


[18668] [C++] public: _property String* get_Authority( );


[18669] [VB] Public ReadOnly Property Authority As String


[18670] [JScript] public function get Authority( ): String;


[18671] Description


[18672] Gets the Domain Name System (DNS) host name or IP address and the port number for a server.


[18673] The Authority property returns the fully qualified DNS host name or IP address of the server specified in the URI, along with the port number for non-default ports.


[18674] Fragment


[18675] ToString


[18676] [C#] public string Fragment {get;}


[18677] [C++] public: _property String* get_Fragment( );


[18678] [VB] Public ReadOnly Property Fragment As String


[18679] [JScript] public function get Fragment( ): String;


[18680] Description


[18681] Gets the escaped fragment.


[18682] The System.Uri.Fragment property gets any text following a fragment marker (#) in the URI, including the fragment marker itself. Given the URI http://www.contoso.com/index.htm#main, the fragment property would get #main.


[18683] Host


[18684] ToString


[18685] [C#] public string Host {get;}


[18686] [C++] public: _property String* get_Host( );


[18687] [VB] Public ReadOnly Property Host As String


[18688] [JScript] public function get Host( ): String;


[18689] Description


[18690] Gets the Domain Name System (DNS) host name, or IP address of the server specified in the URI.


[18691] The System.Uri.Host property gets the fully qualified DNS host name or IP address of the server specified in the URI.


[18692] HostNameType


[18693] ToString


[18694] [C#] public UriHostNameType HostNameType {get;}


[18695] [C++] public: _property UriHostNameType ge_tHostNameType( );


[18696] [VB] Public ReadOnly Property HostNameType As UriHostNameType


[18697] [JScript] public function get HostNameType( ): UriHostNameType;


[18698] Description


[18699] Returns the type of the host name specified in the URI.


[18700] IsDefaultPort


[18701] ToString


[18702] [C#] public bool IsDefaultPort {get;}


[18703] [C++] public: property bool get IsDefaultPort( );


[18704] [VB] Public ReadOnly Property IsDefaultPort As Boolean


[18705] [JScript] public function get IsDefaultPort( ): Boolean;


[18706] Description


[18707] Gets a value indicating whether the port value of the URI is the default for this scheme.


[18708] IsFile


[18709] ToString


[18710] [C#] public bool IsFile {get;}


[18711] [C++] public: _property bool get_IsFile( );


[18712] [VB] Public ReadOnly Property IsFile As Boolean


[18713] [JScript] public function get IsFile( ): Boolean;


[18714] Description


[18715] Gets a value indicating whether the specified System.Uri is a file URI.


[18716] The System.Uri.IsFile property is true when the System.Uri.Scheme property equals System.Uri.UriSchemeFile.


[18717] IsLoopback


[18718] ToString


[18719] [C#] public bool IsLoopback {get;}


[18720] [C++] public: _property bool get_IsLoopback( );


[18721] [VB] Public ReadOnly Property IsLoopback As Boolean


[18722] [JScript] public function get IsLoopback( ): Boolean;


[18723] Description


[18724] Gets a value indicating whether the specified System.Uri references the local host.


[18725] IsUnc


[18726] ToString


[18727] [C#] public bool IsUnc {get;}


[18728] [C++] public: _property bool get_IsUnc( );


[18729] [VB] Public ReadOnly Property IsUnc As Boolean


[18730] [JScript] public function get IsUnc( ): Boolean;


[18731] Description


[18732] Gets a value indicating whether the specified System.Uri is a universal naming convention (UNC) path.


[18733] The System.Uri.IsUnc property is true if the specified System.Uri instance is a UNC path (suc as serverfolder).


[18734] LocalPath


[18735] ToString


[18736]

8
C#] public string LocalPath {get;}


[18737] [C++] public: property String* get_LocalPath( );


[18738] [VB] Public ReadOnly Property LocalPath As String


[18739] [JScript] public function get LocalPath( ): String;


[18740] Description


[18741] Gets a local operating-system representation of a file name.


[18742] PathAndQuery


[18743] ToString


[18744] [C#] public string PathAndQuery {get;}


[18745] [C++] public: _property String* get_PathAndQuery;


[18746] [VB] Public ReadOnly Property PathAndQuery As String


[18747] [JScript] public function get PathAndQuery( ): String;


[18748] Description


[18749] Gets the System.Uri.AbsolutePath and System.Uri.Query properties separated by a question mark (?).


[18750] The System.Uri.PathAndQuery property contains the absolute path on the server and the query information sent with the request. It is identical to concatenating the System.Uri.AbsolutePath and System.Uri.Query properties.


[18751] Port


[18752] ToString


[18753] [C#] public int Port {get;}


[18754] [C++] public: _property int get_Port( );


[18755] [VB] Public ReadOnly Property Port As Integer


[18756] [JScript] public function get Port( ): int;


[18757] Description


[18758] Gets the port number of the specified URI.


[18759] The port number defines the protocol port used for contacting the server referenced in the URI. If a port is not is not specified as part of the URI, the System.Uri.Port property returns the default value for the protocol.


[18760] Query


[18761] ToString


[18762] [C#] public string Query {get;}


[18763] [C++] public: _property String* get_Query( );


[18764] [VB] Public ReadOnly Property Query As String


[18765] [JScript] public function get Query( ): String;


[18766] Description


[18767] Gets any query information included in the specified URI.


[18768] The System.Uri.Query property contains any query information included in the URI. Query information is separated from the path information by a question mark (?) and continues to the end of the URI. The query information returned includes the leading question mark.


[18769] Scheme


[18770] ToString


[18771] [C#] public string Scheme {get;}


[18772] [C++] public: _property String* get_Scheme( );


[18773] [VB] Public ReadOnly Property Scheme As String


[18774] [JScript] public function get Scheme( ): String;


[18775] Description


[18776] Gets the scheme name of the specified URI.


[18777] The following table lists the valid scheme names for the System.Uri.Scheme property.


[18778] Segments


[18779] ToString


[18780] [C#] public string[ ] Segments {get;}


[18781] [C++] public: _property String* get_Segments( );


[18782] [VB] Public ReadOnly Property Segments As String ( )


[18783] [JScript] public function get Segments( ): String[ ];


[18784] Description


[18785] Gets an array of the segments that make up the specified URI.


[18786] UserEscaped


[18787] ToString


[18788] [C#] public bool UserEscaped {get;}


[18789] [C++] public: _property bool get_UserEscaped( );


[18790] [VB] Public ReadOnly Property UserEscaped As Boolean


[18791] [JScript] public function get UserEscaped( ): Boolean;


[18792] Description


[18793] Indicates that the URI string was escaped before the System.Uri instance was created.


[18794] The System.Uri.UserEscaped property is set to true to indicate that the string used to create the System.Uri instance was escaped before it was passed to the constructor; that is, the dontEscape parameter of the constructor call was set to true.


[18795] UserInfo


[18796] ToString


[18797] [C#] public string UserInfo {get;}


[18798] [C++] public: _Property String* get_UserInfo( );


[18799] [VB] Public ReadOnly Property UserInfo As String


[18800] [JScript] public function get UserInfo( ): String;


[18801] Description


[18802] Gets the user name, password, and other user-specific information associated with the specified URI.


[18803] Canonicalize


[18804] [C#] protected virtual void Canonicalize( ); [C++] protected: virtual void Canonicalize( ); [VB] Overridable Protected Sub Canonicalize( ) [JScript] protected function Canonicalize( );


[18805] Description


[18806] CheckHostName


[18807] [C#] public static UriHostNameType CheckHostName(string name);


[18808] [C++] public: static UriHostNameType CheckHostName(String* name);


[18809] [VB] Public Shared Function CheckHostName(ByVal name As String) As UriHostNameType


[18810] [JScript] public static function CheckHostName(name: String): UriHostNameType;


[18811] Description


[18812] Determines whether the specified host name is valid.


[18813] Return Value: true if the host name is valid; otherwise, false.


[18814] The System.Uri.CheckHostName(System.String) method checks that the host name provided meets the requirements for a valid Internet host name. It does not, however, perform a host-name lookup to verify the existence of the host. The host name to validate.


[18815] CheckSchemeName


[18816] [C#] public static bool CheckSchemeName(string schemeName);


[18817] [C++] public: static bool CheckSchemeName(String* schemeName);


[18818] [VB] Public Shared Function CheckSchemeName(ByVal schemeName As String) As Boolean


[18819] [JScript] public static function CheckSchemeName(schemeName: String): Boolean;


[18820] Description


[18821] Determines whether the specified scheme name is valid.


[18822] Return Value: true if the scheme name is valid; otherwise, false.


[18823] The CheckSchemeName method checks the scheme name for validity according to RFC 2396. The scheme name must begin with a letter, and must contain only letters, digits, and the characters “.”, “+”, or “−”. The scheme name to validate.


[18824] CheckSecurity


[18825] [C#] protected virtual void CheckSecurity( );


[18826] [C++] protected: virtual void CheckSecurity( );


[18827] [VB] Overridable Protected Sub CheckSecurity( )


[18828] [JScript] protected function CheckSecurity( );


[18829] Description


[18830] Equals


[18831] [C#] public override bool Equals(object comparand);


[18832] [C++] public: bool Equals(Object* comparand);


[18833] [VB] Overrides Public Function Equals(ByVal comparand As Object) As Boolean


[18834] [JScript] public override function Equals(comparand: Object): Boolean;


[18835] Description


[18836] Compares two System.Uri instances for equality.


[18837] Return Value: true if the two System.Uri instances contain the same URI; otherwise, false.


[18838] The System.Uri.Equals(System.Object) method compares two URI instances without regard to any fragments that they might contain. For instance, given the URIs http://www.contoso.com/index.htm#search and http://www.contoso.com/index.htm the System.Uri.Equals(System.Object) method would return true. The System.Uri instance to compare with the current instance.


[18839] Escape


[18840] [C#] protected virtual void Escape( );


[18841] [C++] protected: virtual void Escape( );


[18842] [VB] Overridable Protected Sub Escape( )


[18843] [JScript] protected function Escape( );


[18844] Description


[18845] EscapeString


[18846] [C#] protected static string EscapeString(string str);


[18847] [C++] protected: static String* EscapeString(String* str);


[18848] [VB] Protected Shared Function EscapeString(ByVal str As String) As String


[18849] [JScript] protected static function EscapeString(str: String): String;


[18850] Description


[18851] Converts a string to its escaped representation.


[18852] Return Value: The escaped representation of the string.


[18853] The System.Uri.EscapeString(System.String) method converts all characters with an ASCII value greater than 127 to hexidecimal representation. The string to transform to its escaped representation.


[18854] FromHex


[18855] [C#] public static int FromHex(char digit);


[18856] [C++] public: static int FromHex(_wchar_t digit);


[18857] [VB] Public Shared Function FromHex(ByVal digit As Char) As Integer


[18858] [JScript] public static function FromHex(digit: Char): int;


[18859] Description


[18860] Returns the decimal value of a hexadecimal digit.


[18861] Return Value: A number from 1-15 that corresponds to the specified hexadecimal digit.


[18862] The System.Uri.FromHex(System.Char) method converts a character representing a hexadecimal digit (0-9, a-f, A-F) to its decimal value (0-15). If digit is not a valid hexadecimal digit, System.ArgumentException is thrown. The hexadecimal digit (0-9, a-f, A-F) to convert.


[18863] GetHashCode


[18864] [C#] public override int GetHashCode( );


[18865] [C++] public: int GetHashCode( );


[18866] [VB] Overrides Public Function GetHashCode( ) As Integer


[18867] [JScript] public override function GetHashCode( ): int;


[18868] Description


[18869] Returns the hash code for the specified URI.


[18870] Return Value: The hash value generated for the URI.


[18871] The System.Uri.GetHashCode method generates the URI's hash value without including any fragment identifiers. For example, the URIs http://www.contoso.com/index.htm#search and http://www.contoso.com/index.htm yield the same hash code.


[18872] GetLeftPart


[18873] [C#] public string GetLeftPart(UriPartial part);


[18874] [C++] public: String* GetLeftPart(UriPartial part);


[18875] [VB] Public Function GetLeftPart(By Val part As UriPartial) As String


[18876] [JScript] public function GetLeftPart(part: UriPartial): String;


[18877] Description


[18878] Returns the specified portion of a URI.


[18879] Return Value: A string containing the specified portion of the URI.


[18880] The System.Uri.GetLeftPart(System.UriPartial) method returns a string containing the left-most portion of the URI, ending with the portion specified by part. The string returned includes delimiters but does not include any fragments or queries or their delimiters, except in certain cases. One of the System.UriPartial values that specifies the the end of the portion of the URI to return.


[18881] HexEscape


[18882] [C#] public static string HexEscape(char character);


[18883] [C++] public: static String* HexEscape(_wchar_t character);


[18884] [VB] Public Shared Function HexEscape(ByVal character As Char) As String


[18885] [JScript] public static function HexEscape(character: Char): String;


[18886] Description


[18887] Converts a specified character into its hexadecimal equivalent.


[18888] Return Value: The hexadecimal representation of the specified character. The character to convert to hexadecimal representation.


[18889] HexUnescape


[18890] [C#] public static char HexUnescape(string pattern, ref int index);


[18891] [C++] public: static_wchar_t HexUnescape(string* pattern, int* index);


[18892] [VB] Public Shared Function HexUnescape(ByVal pattern As String, ByRef index As Integer) As Char


[18893] [JScript] public static function HexUnescape(pattern: String, index: int): Char;


[18894] Description


[18895] Converts a specified hexadecimal representation of a character to the character.


[18896] Return Value: The character represented by the hexadecimal encoding at position index. If the character at index is not hexadecimal encoded, the character at index is returned. The value of index is incremented to point to the character following the one returned. The hexadecimal representation of a character. The location in pattern where the hexadecimal representation of a character begins.


[18897] IsBadFileSystemCharacter


[18898] [C#] protected virtual bool IsBadFileSystemCharacter(char character);


[18899] [C++] protected: virtual bool IsBadFileSystemCharacter(_wchar_t character);


[18900] [VB] Overridable Protected Function IsBadFileSystemCharacter(ByVal character As Char) As Boolean


[18901] [JScript] protected function IsBadFileSystemCharacter(character: Char): Boolean;


[18902] Description


[18903] IsExcludedCharacter


[18904] [C#] protected static bool IsExcludedCharacter(char character);


[18905] [C++] protected: static bool IsExcludedCharacter(_wchar_t character);


[18906] [VB] Protected Shared Function IsExcludedCharacter(ByVal character As Char) As Boolean


[18907] [JScript] protected static function IsExcludedCharacter(character: Char) Boolean;


[18908] Description


[18909] IsHexDigit


[18910] [C#] public static bool IsHexDigit(char character);


[18911] [C++] public: static bool IsHexDigit(_wchar _t character);


[18912] [VB] Public Shared Function IsHexDigit(ByVal character As Char) As Boolean


[18913] [JScript] public static function IsHexDigit(character: Char): Boolean;


[18914] Description


[18915] Determines whether a specified character is a valid hexadecimal digit.


[18916] Return Value: true if the character is a valid hexadecimal digit; otherwise false.


[18917] Hexadecimal digits are the digits 0-9 and the letters A-F or a-f. The character to validate.


[18918] IsHexEncoding


[18919] [C#] public static bool IsHexEncoding(string pattern, int index);


[18920] [C++] public: static bool IsHexEncoding(String* pattern, int index);


[18921] [VB] Public Shared Function IsHexEncoding(ByVal pattern As String, ByVal index As Integer) As Boolean


[18922] [JScript] public static function IsHexEncoding(pattern: String, index: int): Boolean;


[18923] Description


[18924] Determines whether a string is hex encoded.


[18925] Return Value: true if pattern is hex encoded at the specified location; otherwise, false.


[18926] The System.Uri.IsHexEncoding(System.String,System.Int32) method checks for hex encoding that follows the pattern “% hexhex” in a string, where “hex” is a digit from 0-9 or or a letter from A-F (case-insensitive). The string to check. The location in pattern to check for hex encoding.


[18927] IsReservedCharacter


[18928] [C#] protected virtual bool IsReservedCharacter(char character);


[18929] [C++] protected: virtual bool IsReservedCharacter(_wchar_t character);


[18930] [VB] Overridable Protected Function IsReservedCharacter(ByVal character As Char) As Boolean


[18931] [JScript] protected function IsReservedCharacter(character: Char): Boolean;


[18932] Description


[18933] MakeRelative


[18934] [C#] public string MakeRelative(Uri to Uri);


[18935] [C++] public: String* MakeRelative(Uri* toUri);


[18936] [VB] Public Function MakeRelative(ByVal toUri As Uri) As String


[18937] [JScript] public function MakeRelative(toUri: Uri): String;


[18938] Description


[18939] Determines the difference between two System.Uri instances.


[18940] Return Value: If the two URIs are the same except for the path information, then that difference; if the two have additional differences, the absolute URI of to Uri. The URI to compare to the current URI.


[18941] Parse


[18942] [C#] protected virtual void Parse( );


[18943] [C++] protected: virtual void Parse( );


[18944] [VB] Overridable Protected Sub Parse( )


[18945] [JScript] protected function Parse( );


[18946] Description


[18947] ISerializable.GetObjectData


[18948] [C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext);


[18949] [C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[18950] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext) Implements ISerializable.GetObjectData


[18951] [JScript] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[18952] ToString


[18953] [C#] public override string ToString( );


[18954] [C++] public: String* ToString( );


[18955] [VB] Overrides Public Function ToString( ) As String


[18956] [JScript] public override fiction ToString( ): String;


[18957] Description


[18958] Returns the display string for the specified System.Uri instance.


[18959] Return Value: The string containing the unescaped display name of the System.Uri.


[18960] Unescape


[18961] [C#] protected virtual string Unescape(string path);


[18962] [C++] protected: virtual String* Unescape(String* path);


[18963] [VB] Overridable Protected Function Unescape(ByVal path As String) As String


[18964] [JScript] protected function Unescape(path: String): String;


[18965] Description


[18966] UriBuilder class (System)


[18967] Unescape


[18968] Description


[18969] Provides a custom constructor for uniform resource indentifiers (URIs) and modifies URIs for the System.Uri class.


[18970] The System.UriBuilder class provides a convenient way to modify the contents of a System.Uri instance without creating a new System.Uri instance for each modification.


[18971] UriBuilder


[18972] Example Syntax:


[18973] Unescape


[18974] [C#] public UriBuilder( );


[18975] [C++] public: UriBuilder( );


[18976] [VB] Public Sub New( )


[18977] [JScript] public function UriBuilder( ); Initializes a new instance of the System.UriBuilder class.


[18978] Description


[18979] Initializes a new instance of the System.UriBuilder class.


[18980] The default constructor creates a new instance of the System.UriBuilder class with all properties empty.


[18981] UriBuilder


[18982] Example Syntax:


[18983] Unescape


[18984] [C#] public UriBuilder(string uri);


[18985] [C++] public: UriBuilder(String* uri);


[18986] [VB] Public Sub New(ByVal uri As String)


[18987] [JScript] public function UriBuilder(uri: String);


[18988] Description Initializes a new instance of the System.UriBuilder class with the specified URI.


[18989] This constructor initializes a new instance of the System.UriBuilder class with the System.UriBuilder.Fragment, System.UriBuilder.Host, System.UriBuilder.Path, System.UriBuilder.Port, System.UriBuilder.Query , System.UriBuilder.Scheme, and System.UriBuilder.Uri properties set as specified in uri. A URI string.


[18990] UriBuilder


[18991] Example Syntax:


[18992] Unescape


[18993] [C#] public UriBuilder(Uri uri);


[18994] [C++] public: UriBuilder(Uri* uri);


[18995] [VB] Public Sub New(ByVal uri As Uri)


[18996] [JScript] public function UriBuilder(uri: Uri);


[18997] Description


[18998] Initializes a new instance of the System.UriBuilder class with the specified System.Uri instance.


[18999] This constructor initializes a new instance of the System.UriBuilder class with the System.UriBuilder.Fragment, System.UriBuilder.Host, System.UriBuilder.Path, System.UriBuilder.Port, System.UriBuilder.Query , System.UriBuilder.Scheme, and System.UriBuilder.Uri properties set as specified in uri. An instance of the System.Uri class.


[19000] UriBuilder


[19001] Example Syntax:


[19002] Unescape


[19003] [C#] public UriBuilder(string schemeName, string hostName);


[19004] [C++] public: UriBuilder(String* schemeName, String* hostName);


[19005] [VB] Public Sub New(ByVal schemeName As String, ByVal hostName As String)


[19006] [JScript] public function UriBuilder(schemeName: String, hostName: String);


[19007] Description


[19008] Initializes a new instance of the System.UriBuilder class with the specified scheme and host.


[19009] The System.UriBuilder instance is initialized with the System.UriBuilder.Scheme property set to schemeName and the System.UriBuilder.Host property set to hostName. An Internet access protocol. A DNS-style domain name or IP address.


[19010] UriBuilder


[19011] Example Syntax:


[19012] Unescape


[19013] [C#] public UriBuilder(string scheme, string host, int portNumber);


[19014] [C++] public: UriBuilder(String* scheme, String* host, int portNumber);


[19015] [VB] Public Sub New(ByVal scheme As String, ByVal host As String, ByVal portNumber As Integer)


[19016] [JScript] public function UriBuilder(scheme: String, host: String, portNumber: int);


[19017] Description


[19018] Initializes a new instance of the System.UriBuilder class with the specified scheme, host, and port.


[19019] The System.UriBuilder instance is initialized with the System.UriBuilder.Scheme property set to schemeName, the System.UriBuilder.Host property set to hostName, and the System.UriBuilder.Port property set to portNumber. The System.UriBuilder.Path property is set to the slash character (/). An Internet access protocol. A DNS-style domain name or IP address. An IP port number for the service.


[19020] UriBuilder


[19021] Example Syntax:


[19022] Unescape


[19023] [C#] public UriBuilder(string scheme, string host, int port, string pathValue);


[19024] [C++] public: UriBuilder(String* scheme, String* host, int port, String* pathValue);


[19025] [VB] Public Sub New(ByVal scheme As String, ByVal host As String, ByVal port As Integer, ByVal pathValue As String)


[19026] [JScript] public function UriBuilder(scheme: String, host: String, port: int, pathValue: String);


[19027] Description


[19028] Initializes a new instance of the System.UriBuilder class with the specified scheme, host, port number, and path.


[19029] The System.UriBuilder instance is initialized with the System.UriBuilder.Scheme property set to schemeName, the System.UriBuilder.Host property set to hostName, the System.UriBuilder.Port property set to portNumber and the System.UriBuilder.Path property set to pathValue. An Internet access protocol. A DNS-style domain name or IP address. An IP port number for the service. The path to the Internet resource.


[19030] UriBuilder


[19031] Example Syntax:


[19032] Unescape


[19033] [C#] public UriBuilder(string scheme, string host, int port, string path, string extraValue);


[19034] [C++] public: UriBuilder(String* scheme, String* host, int port, String* path, String* extraValue);


[19035] [VB] Public Sub New(ByVal scheme As String, ByVal host As String, ByVal port As Integer, ByVal path As String, ByVal extraValue As String)


[19036] [JScript] public function UriBuilder(scheme: String, host: String, port: int, path: String, extraValue: String);


[19037] Description


[19038] Initializes a new instance of the System.UriBuilder class with the specified scheme, host, port number, path and query string or fragment identifier.


[19039] The System.UriBuilder instance is initialized with the System.UriBuilder.Scheme property set to schemeName, the System.UriBuilder.Host property set to hostName, the System.UriBuilder.Port property set to portNumber, and the System.UriBuilder.Path property is set to path Value. If extra Value contains a number sign (#), then System.UriBuilder.Fragment is set to extra Value. If extra Value contains a question mark (?), then System.UriBuilder.Query is set to extra Value. An Internet access protocol. A DNS-style domain name or IP address. An IP port number for the service. The path to the Internet resource. A query string or fragment identifier.


[19040] Fragment


[19041] Unescape


[19042] [C#] public string Fragment {get; set;}


[19043] [C++] public: _property String* get_Fragment( );public: _property void set_Fragment(String*);


[19044] [VB] Public Property Fragment As String


[19045] [JScript] public function get Fragment( ): String;public function set Fragment(String);


[19046] Description


[19047] Gets or sets the fragment portion of the URI.


[19048] The System.UriBuilder.Fragment property contains any text following a fragment marker (#) in the URI, including the marker itself. When setting the System.UriBuilder.Fragment property, the fragment marker is added to its value.


[19049] Host


[19050] Unescape


[19051] [C#] public string Host {get; set;}


[19052] [C++] public: _property String* get Host( );public: _property void set_Host(String*);


[19053] [VB] Public Property Host As String


[19054] [JScript] public function get Host( ): String;public function set Host(String);


[19055] Description


[19056] Gets or sets the Domain Name System (DNS) host name or IP address of a server.


[19057] The System.UriBuilder.Host property contains the fully qualified DNS host name or IP address (in dotted-quad notation) of the server.


[19058] Password


[19059] Unescape


[19060] [C#] public string Password {get; set;}


[19061] [C++] public: _property String* get_Password( );public: _property void set_Password(String*);


[19062] [VB] Public Property Password As String


[19063] [JScript] public function get Password( ): String;public function set Password(String);


[19064] Description


[19065] Gets or sets the password associated with the user accessing the URI.


[19066] Path


[19067] Unescape


[19068] [C#] public string Path {get; set;}


[19069] [C++] public: _property String* get_Path( );public: _property void set Path(String*);


[19070] [VB] Public Property Path As String


[19071] [JScript] public function get Path( ): String;public function set Path(String);


[19072] Description


[19073] Gets or sets the path to the resource referenced by the URI.


[19074] The System.UriBuilder.Path property contains the path information that the server uses to resolve requests for information. Typically this is the path to the desired information on the server's file system, although it also can indicate the application or script that the server must run to provide the information.


[19075] Port


[19076] Unescape


[19077] [C#] public int Port {get; set;}


[19078] [C++] public: _property int get_Port( );public: _property void set_Port(int);


[19079] [VB] Public Property Port As Integer


[19080] [JScript] public function get_Port( ): int;public function set Port(int);


[19081] Description


[19082] Gets or sets the port number of the URI.


[19083] The port number defines the protocol port for contacting the server referenced in the URI. If a port is not specified as part of the URI, the System.Uri.Port property returns the value −1 to indicate that the server uses the default value for the protocol.


[19084] Query


[19085] Unescape


[19086] [C#] public string Query {get; set;}


[19087] [C++] public: _property String* get_Query( );public: _property void set_Query(String*);


[19088] [VB] Public Property Query As String


[19089] [JScript] public function get Query( ): String;public function set Query(String);


[19090] Description


[19091] Gets or sets any query information included in the URI.


[19092] The System.Uri.Query property contains any query information included in the URI. Query information is separated from the path information by a question mark (?) and continues to the end of the URI. The query information returned includes the leading question mark.


[19093] Scheme


[19094] Unescape


[19095] [C#] public string Scheme {get; set;}


[19096] [C++] public: _property String* get_Scheme( );public: _property void set_Scheme(String*);


[19097] [VB] Public Property Scheme As String


[19098] [JScript] public function get Scheme( ): String;public function set Scheme(String);


[19099] Description


[19100] Gets or sets the scheme name of the URI.


[19101] The following table lists the valid scheme names for the System.Uri.Scheme property.


[19102] Uri


[19103] Unescape


[19104] [C#] public Uri Uri {get;}


[19105] [C++] public: _property Uri* get_Uri( );


[19106] [VB] Public ReadOnly Property Uri As Uri


[19107] [JScript] public function get Uri( ): Uri;


[19108] Description


[19109] Gets the System.Uri instance constructed by the specified System.UriBuilder instance.


[19110] The System.UriBuilder.Uri property contains the System.Uri created by the System.UriBuilder. Any changes made to the System.UriBuilder properties are reflected in the System.UriBuilder.Uri property.


[19111] UserName


[19112] Unescape


[19113] [C#] public string UserName {get; set;}


[19114] [C++] public: _property String* get_UserName( );public: _property void set_UserName(String*);


[19115] [VB] Public Property UserName As String


[19116] [JScript] public function get UserName( ): String;public function set UserName(String);


[19117] Description


[19118] The user name associated with the user accessing the URI.


[19119] Equals


[19120] [C#] public override bool Equals(object rparam);


[19121] [C++] public: bool Equals(Object* rparam);


[19122] [VB] Overrides Public Function Equals(ByVal rparam As Object) As Boolean


[19123] [JScript] public override function Equals(rparam: Object): Boolean;


[19124] Description


[19125] Compares an existing System.Uri instance with the contents of the System.UriBuilder for equality.


[19126] Return Value: true if the specified System.Uri is equal to the System.Uri constructed by this System.UriBuilder instance; otherwise, false.


[19127] The System.UriBuilder.Equals(System.Object) method compares a specified System.Uri instance with the System.Uri instance built by the System.UriBuilder instance. If the two are the same, the System.UriBuilder.Equals(System.Object) method returns true. The System.Uri instance to compare with the current instance.


[19128] GetHashCode


[19129] [C#] public override int GetHashCode( );


[19130] [C++] public: int GetHashCode( );


[19131] [VB] Overrides Public Function GetHashCode( ) As Integer


[19132] [JScript] public override function GetHashCode( ): it;


[19133] Description


[19134] Returns the hash code for the URI.


[19135] Return Value: The hash code generated for the URI.


[19136] The hash code is generated without including any fragment included. The URIs http://www.contoso.com/index.htm# search and http://www.contoso.com/index.htm generate the same hash code.


[19137] ToString


[19138] [C#] public override string ToString( );


[19139] [C++] public: String* ToString( );


[19140] [VB] Overrides Public Function ToString( ) As String


[19141] [JScript] public override function ToString( ): String;


[19142] Description


[19143] Returns the display string for the specified System.UriBuilder instance.


[19144] Return Value: The string containing the unescaped display name of the System.UriBuilder.


[19145] UriFormatException class (System)


[19146] ToString


[19147] Description


[19148] The exception that is thrown when an invalid Uniform Resource Identifier (URI) is detected.


[19149] The System.UriFormatException is thrown by the Uri class constructor if the supplied URI could not correctly parsed. The format for a valid URI is defined in RFC 2396.


[19150] UriFormatException


[19151] Example Syntax.


[19152] ToString


[19153] [C+] public UriFormatException( );


[19154] [C++] public: UriFormatException( );


[19155] [VB] Public Sub New( )


[19156] [JScript] public function UriFormatException( ); Initializes a new instance of the System.UriFormatException class.


[19157] Description


[19158] Initializes a new instance of the System.UriFormatException class.


[19159] The default constructor initializes a new instance of the System.UriFormatException class with all fields set to null.


[19160] UriFormatException


[19161] Example Syntax:


[19162] ToString


[19163] [C#] public UriFormatException(string textstring);


[19164] [C++] public: UriFormatException(String* textString);


[19165] [VB] Public Sub New(ByVal textString As String)


[19166] [JScript] public function UriFormatException(textString: String);


[19167] Description


[19168] Initializes a new instance of the System.UriFormatException class with the specified message.


[19169] The UriFormatException constructor initializes the System.UriFormatException instance with the System.Exception.Message property set to the value of textString. The error message string.


[19170] UriFormatException


[19171] Example Syntax:


[19172] ToString


[19173] [C#] protected UriFormatException(SerializationInfo serializationInfo, StreamingContext streamingContext);


[19174] [C++] protected: UriFormatException(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[19175] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext)


[19176] [JScript] protected function UriFormatException(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[19177] HelpLink


[19178] HResult


[19179] InnerException


[19180] Message


[19181] Source


[19182] StackTrace


[19183] TargetSite


[19184] ISerializable.GetObjectData


[19185] [C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext);


[19186] [C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[19187] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext) Implements ISerializable.GetObjectData


[19188] [JScript] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[19189] UriHostNameType enumeration (System)


[19190] ToString


[19191] Description


[19192] Defines host name types for the System.Uri.CheckHostName(System.String) method.


[19193] The System.UriHostNameType enumeration defines the values that the System.Uri.CheckHostName(System.String) method can return.


[19194] ToString


[19195] [C] public const UriHostNameType Basic;


[19196] [C++] public: const UriHostNameType Basic;


[19197] [VB] Public Const Basic As UriHostNameType


[19198] [JScript] public var Basic: UriHostNameType;


[19199] Description


[19200] The host is set, but the type cannot be determined.


[19201] ToString


[19202] [C#] public const UriHostNameType Dns;


[19203] [C++] public: const UriHostNameType Dns;


[19204] [VB] Public Const Dns As UriHostNameType


[19205] [JScript] public var Dns: UriHostNameType;


[19206] Description


[19207] The host name is a domain name system (DNS) style host name.


[19208] ToString


[19209] [C#] public const UriHostNameType IPv4;


[19210] [C++] public: const UriHostNameType IPv4;


[19211] [VB] Public Const IPv4 As UriHostNameType


[19212] [JScript] public var IPv4: UriHostNameType;


[19213] Description


[19214] The host name is an Internet Protocol (IP) version 4 host address.


[19215] ToString


[19216] [C#] public const UriHostNameType IPv6;


[19217] [C++] public: const UriHostNameType IPv6;


[19218] [VB] Public Const IPv6 As UriHostNameType


[19219] [JScript] public var IPv6: UriHostNameType;


[19220] Description


[19221] The host name is an Internet Protocol (IP) version 6 host address.


[19222] ToString


[19223] [C#] public const UriHostNameType Unknown;


[19224] [C++] public: const UriHostNameType Unknown;


[19225] [VB] Public Const Unknown As UriHostNameType


[19226] [JScript] public var Unknown: UriHostNameType;


[19227] Description


[19228] The type of the host name is not supplied.


[19229] UriPartial enumeration (System)


[19230] ToString


[19231] Description


[19232] Defines the parts of a URI for the System.Uri.GetLeftPart(System.UriPartial) method.


[19233] The System.UriPartial enumeration defines the values that can be passed to the System.Uri.GetLeftPart(System.UriPartial) method.


[19234] ToString


[19235] [C] public const UriPartial Authority;


[19236] [C++] public: const UriPartial Authority;


[19237] [VB] Public Const Authority As UriPartial


[19238] [JScript] public var Authority: UriPartial;


[19239] Description


[19240] The scheme and authority segment of the URI.


[19241] ToString


[19242] [C#] public const UriPartial Path;


[19243] [C++] public: const UriPartial Path;


[19244] [VB] Public Const Path As UriPartial


[19245] [JScript] public var Path: UriPartial;


[19246] Description


[19247] The s


[19248] System.Collections Namespace


[19249] The System.Collections namespace contains classes and interfaces for in-memory data storage and manipulation. There are three main things this namespace is providing. The first is concrete implementations of commonly used collection classes such as a growable array (ArrayList), Hashtable, Stack, Queue, etc. Application developers use these classes as a convenient way to store and retrieve in-memory data. The second set of types in the System.Collections namespace is a set of interfaces to define a formal contract between developers creating new collections and developers consuming collections. For example the IEnumerable interface defines the contract for collections that can offer sequential access via an enumerator. The ASP.NET application model supports data binding controls to data sources that honor the IEnumerable contract. That means that any new collection implementation will automatically be databindable in the ASP.NET model. The third set of types in the System.Collections namespace supports creating strongly typed collections. The CollectionBase class offers data storage that is convenient for developers creating their own, strongly typed collections. This is common for library developers that frequently want to do something such as expose a ControlsCollection that has its Add and Remove method typed to take a Control. By implementing the ControlsCollection to derive from CollectionBase the developer is saved much of the tedious work of rewriting the collection from scratch.


[19250] The following example shows adding data to a data collection and outputting the data from collection.
2static void Main(string[ ] args){Console.WriteLine(“From an ArrayList”);ArrayList 1 = new ArrayList ( );1.Add (“Damien”);1.Add (“Mark”);1.Add (“Brad”);PrintItems (1);Console.WriteLine(“From a stack”);Stack s = new Stack( );s.Push (4.5);s.Push (12.3);s.Push (66.2);PrintItems (s);Console.WriteLine(“From a array”);PrintItems (new string[ ] {“monkey”, “cat”, “dog”});}static void PrintItems (ICollection c){int ct=0;foreach (object o in c){Console.WriteLine (“\t{1}:{0}”, o,ct++);}}


[19251] The following is a more detailed description of the System.Collections namespace, identifying various classes, interfaces, enumerations, and so forth contained in the System.Collections namespace (as well as the System.Collections.Specialized namespace included therein).


[19252] System.Collections


[19253] The namespace contains interfaces and classes that define various collections of objects, such as lists, queues, bit arrays, hashtables and dictionaries.


[19254] Description


[19255] The System.Collections namespace contains interfaces and classes that define various collections of objects, such as lists, queues, bit arrays, hashtables and dictionaries.


[19256] ArrayList class (System.Collections)


[19257] Description


[19258] Implements the System.Collections.IList interface using an array whose size is dynamically increased as required.


[19259] The capacity of an System.Collections.ArrayList is the number of elements the list can hold. As elements are added to an System.Collections.ArrayList, the capacity is automatically increased as required through reallocation. The capacity can be decreased by calling System.Collections.ArrayList.TrimToSize or by setting the System.Collections.ArrayList.Capacity property explicitly.


[19260] Constructors:


[19261] ArrayList


[19262] Example Syntax:


[19263] [C#] public ArrayList( );


[19264] [C++] public: ArrayList( );


[19265] [VB] Public Sub New( )


[19266] [JScript] public function ArrayList( ); Initializes a new instance of the System.Collections.ArrayList class.


[19267] Description


[19268] Initializes a new instance of the System.Collections.ArrayList class that is empty and has the default initial capacity.


[19269] The initial capacity is the starting capacity of the new System.Collections.ArrayList. The default initial capacity for an System.Collections.ArrayList is 16.


[19270] ArrayList


[19271] Example Syntax:


[19272] [C#] public ArrayList(ICollection c);


[19273] [C++] public: ArrayList(ICollection* c);


[19274] [VB] Public Sub New(ByVal c As ICollection)


[19275] [JScript] public function ArrayList(c: ICollection);


[19276] Description


[19277] Initializes a new instance of the System.Collections.ArrayList class that contains elements copied from the specified collection and that has the same initial capacity as the number of elements copied.


[19278] The initial capacity is the starting capacity of the new System.Collections.ArrayList. If the number of elements added to the list reaches the current capacity, the capacity is automatically doubled. The System.Collections.ICollection whose elements are copied to the new list.


[19279] ArrayList


[19280] Example Syntax:


[19281] [C#] public ArrayList(int capacity);


[19282] [C++] public: ArrayList(int capacity);


[19283] [VB] Public Sub New(ByVal capacity As Integer)


[19284] [JScript] public function ArrayList(capacity: int);


[19285] Description


[19286] Initializes a new instance of the System.Collections.ArrayList class that is empty and has the specified initial capacity.


[19287] The initial capacity is the starting capacity of the new System.Collections.ArrayList. The default initial capacity for an System.Collections.ArrayList is 16. If the specified initial capacity is zero, the default initial capacity is used. The number of elements that the new list is initially capable of storing.


[19288] Properties:


[19289] Capacity


[19290] [C#] public virtual int Capacity {get; set;}


[19291] [C++] public: _property virtual int get_Capacity( );public: _property virtual void set_Capacity(int);


[19292] [VB] Overridable Public Property Capacity As Integer


[19293] [JScript] public function get Capacity( ): int;public function set Capacity(int);


[19294] Description


[19295] Gets or sets the number of elements that the System.Collections.ArrayList can contain.


[19296] System.Collections.ArrayList.Capacity is the number of elements that the System.Collections.ArrayList is capable of storing.


[19297] Count


[19298] [C#] public virtual int Count {get;}


[19299] [C++] public: _property virtual int get_Count( );


[19300] [VB] Overridable Public ReadOnly Property Count As Integer


[19301] [JScript] public function get Count( ): int;


[19302] Description


[19303] Gets the number of elements actually contained in the System.Collections.ArrayList.


[19304] System.Collections.ArrayList.Count is the number of elements that are actually in the System.Collections.ArrayList.


[19305] IsFixedSize


[19306] [C#] public virtual bool IsFixedSize {get;}


[19307] [C++] public: _property virtual bool get_IsFixedSize( );


[19308] [VB] Overridable Public ReadOnly Property IsFixedSize As Boolean


[19309] [JScript] public function get IsFixedSize( ): Boolean;


[19310] Description


[19311] Gets a value indicating whether the System.Collections.ArrayList has a fixed size.


[19312] A collection with a fixed size does not allow the addition or removal of elements, but it allows the modification of existing elements.


[19313] IsReadOnly


[19314] [C#] public virtual bool IsReadOnly {get;}


[19315] [C++] public: _property virtual bool get_IsReadOnly( );


[19316] [VB] Overridable Public ReadOnly Property IsReadOnly As Boolean


[19317] [JScript] public function get IsReadOnly( ): Boolean;


[19318] Description


[19319] Gets a value indicating whether the System.Collections.ArrayList is read-only.


[19320] IsSynchronized


[19321] [C#] public virtual bool IsSynchronized {get;}


[19322] [C++] public: _property virtual bool get_IsSynchronized( );


[19323] [VB] Overridable Public ReadOnly Property IsSynchronized As Boolean


[19324] [JScript] public function get IsSynchronized( ): Boolean;


[19325] Description


[19326] Gets a value indicating whether access to the System.Collections.ArrayList is synchronized (thread-safe).


[19327] To guarantee the thread safety of the System.Collections.ArrayList, all operations must be done through the wrapper returned by the System.Collections.ArrayList.Synchronized(System.Collections.IList) method.


[19328] Item


[19329] [C#] public virtual object this [int index] {get; set;}


[19330] [C++] public: _property virtual Object* get_Item(int index);public: _property virtual void set_Item(int index, Object*);


[19331] [VB] Overridable Public Default Property Item(ByVal index As Integer) As Object


[19332] [JScript] return=Value ArrayListObject.Item(index);ArrayListObject.Item(index) =returnValue;


[19333] Description


[19334] Gets or sets the element at the specified index.


[19335] This property provides the ability to access a specific element in the collection by using the following syntax: my collection [index]. The zero-based index of the element to get or set.


[19336] SyncRoot


[19337] [C#] public virtual object SyncRoot {get;}


[19338] [C++] public: _property virtual Object* get_SyncRoot( );


[19339] [VB] Overridable Public ReadOnly Property SyncRoot As Object


[19340] [JScript] public function get SyncRoot( ): Object;


[19341] Description


[19342] Gets an object that can be used to synchronize access to the System.Collections.ArrayList.


[19343] To create a synchronized version of the System.Collections.ArrayList, use the System.Collections.ArrayList.Synchronized(System.Collections.IList) method. However, derived classes can provide their own synchronized version of the System.Collections.ArrayList using the System.Collections.ArrayList.SyncRoot property. The synchronizing code must perform operations on the System.Collections.ArrayList.SyncRoot of the System.Collections.ArrayList, not directly on the System.Collections.ArrayList. This ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the System.Collections.ArrayList object.


[19344] Methods:


[19345] Adapter


[19346] [C#] public static ArrayList Adapter(IList list);


[19347] [C++] public: static ArrayList* Adapter(IList* list);


[19348] [VB] Public Shared Function Adapter(ByVal list As IList) As ArrayList


[19349] [JScript] public static function Adapter(list: IList): ArrayList;


[19350] Description


[19351] Creates an System.Collections.ArrayList wrapper for a specific System.Collections.IList.


[19352] Return Value: The System.Collections.ArrayList wrapper around the System.Collections.IList.


[19353] System.Collections.ArrayList.Adapter(System.Collections.IList) does not copy the contents of System.Collections.IList. Instead, it only creates an System.Collections.ArrayList wrapper around System.Collections.IList; therefore, changes to the System.Collections.IList also affect the System.Collections.ArrayList. The System.Collections.IList to wrap.


[19354] Add


[19355] [C#] public virtual int Add(object value);


[19356] [C++] public: virtual int Add(Object* value);


[19357] [VB] Overridable Public Function Add(ByVal value As Object) As Integer


[19358] [JScript] public function Add(value: Object): int;


[19359] Description


[19360] Adds an object to the end of the System.Collections.ArrayList.


[19361] Return Value: The System.Collections.ArrayList index at which the value has been added.


[19362] If System.Collections.ArrayList.Count already equals System.Collections.ArrayList.Capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added. The System.Object to be added to the end of the System.Collections.ArrayList.


[19363] AddRange


[19364] [C#] public virtual void AddRange(ICollection c);


[19365] [C++] public: virtual void AddRange(ICollection* c);


[19366] [VB] Overridable Public Sub AddRange(ByVal c As ICollection)


[19367] [JScript] public function AddRange(c: ICollection);


[19368] Description


[19369] Adds the elements of an System.Collections.ICollection to the end of the System.Collections.ArrayList.


[19370] If the new System.Collections.ArrayList.Count (the current System.Collections.ArrayList.Count plus the size of the collection) will be greater than System.Collections.ArrayList.Capacity, the capacity of the list is either doubled or increased to the new System.Collections.ArrayList.Count, whichever is greater. The internal array is automatically reallocated to accommodate the new elements and the existing elements are copied to the new array before the new elements are added. The System.Collections.ICollection whose elements should be added to the end of the System.Collections.ArrayList.


[19371] BinarySearch


[19372] [C#] public virtual int BinarySearch(object value);


[19373] [C++] public: virtual int BinarySearch(Object* value);


[19374] [VB] Overridable Public Function BinarySearch(ByVal value As Object) As Integer


[19375] [JScript] public function BinarySearch(value: Object): int;


[19376] Description


[19377] Searches the entire sorted System.Collections.ArrayList for an element using the default comparer and returns the zero-based index of the element.


[19378] Return Value: The zero-based index of the value in the sorted System.Collections.ArrayList, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the next element.


[19379] The value parameter and each element of the System.Collections.ArrayList must implement the System.IComparable interface, which is used for comparisons. If the System.Collections.ArrayList is not already sorted according to the System.IComparable implementation, the result might be incorrect. The System.Object to locate.


[19380] BinarySearch


[19381] [C#] public virtual int BinarySearch(object value, IComparer comparer);


[19382] [C++] public: virtual int BinarySearch(Object* value, IComparer* comparer);


[19383] [VB] Overridable Public Function BinarySearch(ByVal value As Object, ByVal comparer As IComparer) As Integer


[19384] [JScript] public function BinarySearch(value: Object, comparer: IComparer) int;


[19385] Description


[19386] Searches the entire sorted System.Collections.ArrayList for an element using the specified comparer and returns the zero-based index of the element.


[19387] Return Value: The zero-based index of the value in the sorted System.Collections.ArrayList, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the next element.


[19388] The comparer customizes how the elements are compared. For example, you can use a System.Collections.CaseInsensitiveComparer instance as the comparer to perform case-insensitive string searches. The System.Object to locate. The System.Collections.IComparer implementation to use when comparing elements.


[19389] BinarySearch


[19390] [C#] public virtual int BinarySearch(int index, int count, object value, IComparer comparer);


[19391] [C++] public: virtual int BinarySearch(int index, int count, Object* value, IComparer* comparer);


[19392] [VB] Overridable Public Function BinarySearch(ByVal index As Integer, ByVal count As Integer, ByVal value As Object, ByVal comparer As IComparer) As Integer


[19393] [JScript] public function BinarySearch(index: int, count: int, value: Object, comparer: IComparer): int; Uses a binary search algorithm to locate a specific element in the sorted System.Collections.ArrayList or a portion of it.


[19394] Description


[19395] Searches a section of the sorted System.Collections.ArrayList for an element using the specified comparer and returns the zero-based index of the element.


[19396] Return Value: The zero-based index of the value in the sorted System.Collections.ArrayList, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the next element.


[19397] The comparer customizes how the elements are compared. For example, you can use a System.Collections.CaseInsensitiveComparer instance as the comparer to perform case-insensitive string searches. The zero-based starting index of the range to search. The length of the range to search. The System.Object to locate. The System.Collections.IComparer implementation to use when comparing elements.


[19398] Clear


[19399] [C#] public virtual void Clear( );


[19400] [C++] public: virtual void Clear( );


[19401] [VB] Overridable Public Sub Clear( )


[19402] [JScript] public function Clear( );


[19403] Description


[19404] Removes all elements from the System.Collections.ArrayList.


[19405] System.Collections.ArrayList.Count is set to zero.


[19406] Clone


[19407] [C#] public virtual object Clone( );


[19408] [C++] public: virtual Object* Clone( );


[19409] [VB] Overridable Public Function Clone( ) As Object


[19410] [JScript] public function Clone( ): Object;


[19411] Description


[19412] Creates a shallow copy of the System.Collections.ArrayList.


[19413] Return Value: A shallow copy of the System.Collections.ArrayList.


[19414] A shallow copy of a collection is a new collection containing references to the same elements as the original collection. The elements themselves or anything referenced by the elements are not copied. In contrast, a deep copy of a collection copies the elements and everything directly or indirectly referenced by the elements.


[19415] Contains


[19416] [C#] public virtual bool Contains(object item);


[19417] [C++] public: virtual bool Contains(Object* item);


[19418] [VB] Overridable Public Function Contains(ByVal item As Object) As Boolean


[19419] [JScript] public function Contains(item: Object): Boolean;


[19420] Description


[19421] Determines whether an element is in the System.Collections.ArrayList.


[19422] Return Value: true if item is found in the System.Collections.ArrayList; otherwise, false.


[19423] This method performs a linear search; therefore, the average execution time is proportional to System.Collections.ArrayList.Count. That is, this method is an O(n) operation, where n is System.Collections.ArrayList.Count. The System.Object to locate in the System.Collections.ArrayList.The element to locate can be null.


[19424] CopyTo


[19425] [C#] public virtual void CopyTo(Array array);


[19426] [C++] public: virtual void CopyTo(Array* array);


[19427] [VB] Overridable Public Sub CopyTo(ByVal array As Array)


[19428] [JScript] public function CopyTo(array: Array); Copies the System.Collections.ArrayList or a portion of it to a one-dimensional array.


[19429] Description


[19430] Copies the entire System.Collections.ArrayList to a compatible one-dimensional System.Array, starting at the beginning of the target array.


[19431] The specified array must be of a compatible type. The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ArrayList. The System.Array must have zero-based indexing.


[19432] CopyTo


[19433] [C#] public virtual void CopyTo(Array array, int arrayIndex);


[19434] [C++] public: virtual void CopyTo(Array* array, int arrayIndex);


[19435] [VB] Overridable Public Sub CopyTo(ByVal array As Array, ByVal arrayIndex As Integer)


[19436] [JScript] public function CopyTo(array: Array, arrayIndex: int);


[19437] Description


[19438] Copies the entire System.Collections.ArrayList to a compatible one-dimensional System.Array, starting at the specified index of the target array.


[19439] The specified array must be of a compatible type. The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ArrayList. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[19440] CopyTo


[19441] [C#] public virtual void CopyTo(int index, Array array, int arrayIndex, int count);


[19442] [C++] public: virtual void CopyTo(int index, Array* array, int arrayIndex, int count);


[19443] [VB] Overridable Public Sub CopyTo(ByVal index As Integer, ByVal array As Array, ByVal arrayIndex As Integer, ByVal count As Integer)


[19444] [JScript] public function CopyTo(index: int, array: Array, arrayIndex: int, count : int);


[19445] Description


[19446] Copies a range of elements from the System.Collections.ArrayList to a compatible one-dimensional System.Array, starting at the specified index of the target array.


[19447] The specified array must be of a compatible type. The zero-based index in the source System.Collections.ArrayList at which copying begins. The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ArrayList. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins. The number of elements to copy.


[19448] FixedSize


[19449] [C#] public static ArrayList FixedSize(ArrayList list);


[19450] [C++] public: static ArrayList* FixedSize(ArrayList* list);


[19451] [VB] Public Shared Function FixedSize(ByVal list As ArrayList) As ArrayList


[19452] [JScript] public static function FixedSize(list: ArrayList): ArrayList;


[19453] Description


[19454] Returns an System.Collections.ArrayList wrapper with a fixed size.


[19455] Return Value: An System.Collections.ArrayList wrapper with a fixed size.


[19456] This wrapper can be used to prevent additions to and deletions from the original System.Collections.ArrayList. The elements can still be modified or replaced. The System.Collections.ArrayList to wrap.


[19457] FixedSize


[19458] [C#] public static IList FixedSize(IList list);


[19459] [C++] public: static IList* FixedSize(IList* list);


[19460] [VB] Public Shared Function FixedSize(ByVal list As IList) As IList


[19461] [JScript] public static function FixedSize(list: IList): IList; Returns a list wrapper with a fixed size, where elements are allowed to be modified, but not added or removed. Description


[19462] Returns an System.Collections.IList wrapper with a fixed size.


[19463] Return Value: An System.Collections.IList wrapper with a fixed size.


[19464] This wrapper can be used to prevent additions to and deletions from the original System.Collections.IList. The elements can still be modified or replaced. The System.Collections.IList to wrap.


[19465] GetEnumerator


[19466] [C#] public virtual IEnumerator GetEnumerator( );


[19467] [C++] public: virtual IEnumerator* GetEnumerator( );


[19468] [VB] Overridable Public Function GetEnumerator( ) As IEnumerator


[19469] [JScript] public function GetEnumerator( ): IEnumerator; Returns an enumerator that can iterate through the System.Collections.ArrayList


[19470] Description


[19471] Returns an enumerator for the entire System.Collections.ArrayList.


[19472] Return Value: An System.Collections.IEnumerator for the entire System.Collections.ArrayList.


[19473] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[19474] GetEnumerator


[19475] [C#] public virtual IEnumerator GetEnumerator(int index, int count);


[19476] [C++] public: virtual IEnumerator* GetEnumerator(int index, int count);


[19477] [VB] Overridable Public Function GetEnumerator(ByVal index As Integer, ByVal count As Integer) As IEnumerator


[19478] [JScript] public fiction GetEnumerator(index: int, count: int): IEnumerator;


[19479] Description


[19480] Returns an enumerator for a section of the System.Collections.ArrayList.


[19481] Return Value: An System.Collections.IEnumerator for the specified section of the System.Collections.ArrayList.


[19482] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection. The zero-based starting index of the System.Collections.ArrayList section that the enumerator should refer to. The number of elements in the System.Collections.ArrayList section that the enumerator should refer to.


[19483] GetRange


[19484] [C#] public virtual ArrayList GetRange(int index, int count);


[19485] [C++] public: virtual ArrayList* GetRange(int index, int count);


[19486] [VB] Overridable Public Function GetRange(ByVal index As Integer, ByVal count As Integer) As ArrayList


[19487] [JScript] public function GetRange(index: int, count: int): ArrayList;


[19488] Description


[19489] Returns an System.Collections.ArrayList which represents a subset of the elements in the source System.Collections.ArrayList.


[19490] Return Value: An System.Collections.ArrayList which represents a subset of the elements in the source System.Collections.ArrayList.


[19491] This method does not create copies of the elements. The new System.Collections.ArrayList is only a view window into the source System.Collections.ArrayList. However, all subsequent changes to the source System.Collections.ArrayList must be done through this view window System.Collections.ArrayList. If changes are made directly to the source System.Collections.ArrayList, the view window System.Collections.ArrayList is invalidated and any operations on it will return an System.InvalidOperationException. The zero-based System.Collections.ArrayList index at which the range starts. The number of elements in the range.


[19492] IndexOf


[19493] [C#] public virtual int IndexOf(object value);


[19494] [C++] public: virtual int IndexOf(Object* value);


[19495] [VB] Overridable Public Function IndexOf(ByVal value As Object) As Integer


[19496] [JScript] public function IndexOf(value: Object): int; Returns the zero-based index of the first occurrence of a value in the System.Collections.ArrayList or in a portion of it.


[19497] Description


[19498] Searches for the specified System.Object and returns the zero-based index of the first occurrence within the entire System.Collections.ArrayList.


[19499] Return Value: The zero-based index of the first occurrence of value within the entire the System.Collections.ArrayList, if found; otherwise, −1.


[19500] The System.Collections.ArrayList is searched forward starting at the first element and ending at the last element. The System.Object to locate in the System.Collections.ArrayList.


[19501] IndexOf


[19502] [C#] public virtual int IndexOf(object value, int startIndex);


[19503] [C++] public: virtual int IndexOf(Object* value, int startIndex);


[19504] [VB] Overridable Public Function IndexOf(ByVal value As Object, ByVal startIndex As Integer) As Integer


[19505] [JScript] public function IndexOf(value: Object, startIndex: int): int;


[19506] Description


[19507] Searches for the specified System.Object and returns the zero-based index of the first occurrence within the section of the System.Collections.ArrayList that extends from the specified index to the last element.


[19508] Return Value: The zero-based index of the first occurrence of value within the section of the System.Collections.ArrayList that extends from startIndex to the last element, if found; otherwise, −1.


[19509] The System.Collections.ArrayList is searched forward starting at startIndex and ending at the last element. The System.Object to locate in the System.Collections.ArrayList. The zero-based starting index of the search.


[19510] IndexOf


[19511] [C#] public virtual int IndexOf(object value, int startIndex, int count);


[19512] [C++] public: virtual int IndexOf(Object* value, int startIndex, int count);


[19513] [VB] Overridable Public Function IndexOf(ByVal value As Object, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[19514] [JScript] public function IndexOf(value: Object, startIndex: int, count: int): int;


[19515] Description


[19516] Searches for the specified System.Object and returns the zero-based index of the first occurrence within the section of the System.Collections.ArrayList that starts at the specified index and contains the specified number of elements.


[19517] Return Value: The zero-based index of the first occurrence of value within the section of the System.Collections.ArrayList that starts at startIndex and contains count number of elements, if found; otherwise, −1.


[19518] The System.Collections.ArrayList is searched forward starting at startIndex and ending at startIndex+count−1. The System.Object to locate in the System.Collections.ArrayList. The zero-based starting index of the search. The number of elements in the section to search.


[19519] Insert


[19520] [C#] public virtual void Insert(int index, object value);


[19521] [C++] public: virtual void Insert(int index, Object* value);


[19522] [VB] Overridable Public Sub Insert(ByVal index As Integer, ByVal value As Object)


[19523] [JScript] public function Insert(index: int, value: Object);


[19524] Description


[19525] Inserts an element into the System.Collections.ArrayList at the specified index.


[19526] If System.Collections.ArrayList.Count already equals System.Collections.ArrayList.Capacity, the capacity of the list is doubled by automatically reallocating the internal array before the new element is inserted. The zero-based index at which value should be inserted. The System.Object to insert.


[19527] InsertRange


[19528] [C#] public virtual void InsertRange(int index, ICollection c);


[19529] [C++] public: virtual void InsertRange(int index, ICollection* c);


[19530] [VB] Overridable Public Sub InsertRange(ByVal index As Integer, ByVal c As ICollection)


[19531] [JScript] public function InsertRange(index: int, c: ICollection);


[19532] Description


[19533] Inserts the elements of a collection into the System.Collections.ArrayList at the specified index.


[19534] If the new System.Collections.ArrayList.Count (the current System.Collections.ArrayList.Count plus the size of the collection) is greater than System.Collections.ArrayList.Capacity, the capacity of the list is either doubled or increased to the new count, whichever is greater. The internal array is automatically reallocated to accommodate the new elements. The zero-based index at which the new elements should be inserted. The System.Collections.ICollection whose elements should be inserted into the System.Collections.ArrayList.


[19535] LastIndexOf


[19536] [C#] public virtual int LastIndexOf(object value);


[19537] [C++] public: virtual int LastIndexOf(Object* value);


[19538] [VB] Overridable Public Function LastIndexOf(ByVal value As Object) As Integer


[19539] [JScript] public function LastIndexOf(value: Object): int; Returns the zero-based index of the last occurrence of a value in the System.Collections.ArrayList or in a portion of it.


[19540] Description


[19541] Searches for the specified System.Object and returns the zero-based index of the last occurrence within the entire System.Collections.ArrayList.


[19542] Return Value: The zero-based index of the last occurrence of value within the entire the System.Collections.ArrayList, if found; otherwise, −1.


[19543] The System.Collections.ArrayList is searched backward starting at the last element and ending at the first element. The System.Object to locate in the System.Collections.ArrayList.


[19544] LastIndexOf


[19545] [C#] public virtual int LastIndexOf(object value, int startIndex);


[19546] [C++] public: virtual int LastIndexOf(Object* value, int startIndex);


[19547] [VB] Overridable Public Function LastIndexOf(ByVal value As Object, ByVal startIndex As Integer) As Integer


[19548] [JScript] public function LastIndexOf(value: Object, startIndex: int): int;


[19549] Description


[19550] Searches for the specified System.Object and returns the zero-based index of the last occurrence within the section of the System.Collections.ArrayList that extends from the first element to the specified index.


[19551] Return Value: The zero-based index of the last occurrence of value within the section of the System.Collections.ArrayList that extends from the first element to startIndex, if found; otherwise, −1.


[19552] The System.Collections.ArrayList is searched backward starting at startIndex and ending at the first element. The System.Object to locate in the System.Collections.ArrayList. The zero-based starting index of the backward search.


[19553] LastIndexOf


[19554] [C#] public virtual int LastIndexOf(object value, int startIndex, int count);


[19555] [C++] public: virtual int LastIndexOf(Object* value, int startIndex, int count);


[19556] [VB] Overridable Public Function LastIndexOf(ByVal value As Object, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[19557] [JScript] public function LastIndexOf(value: Object, startIndex: int, count: int) int;


[19558] Description


[19559] Searches for the specified System.Object and returns the zero-based index of the last occurrence within the section of the System.Collections.ArrayList that contains the specified number of elements and ends at the specified index.


[19560] Return Value: The zero-based index of the last occurrence of value within the section of the System.Collections.ArrayList that contains count number of elements and ends at startIndex, if found; otherwise, −1.


[19561] The System.Collections.ArrayList is searched backward starting at startIndex and ending at startIndex−count+1. The System.Object to locate in the System.Collections.ArrayList. The zero-based starting index of the backward search. The number of elements in the section to search.


[19562] ReadOnly


[19563] [C#] public static ArrayList ReadOnly(ArrayList list);


[19564] [C++] public: static ArrayList* ReadOnly(ArrayList* list);


[19565] [VB] Public Shared Function ReadOnly(ByVal list As ArrayList) As ArrayList


[19566] [JScript] public static function ReadOnly(list: ArrayList): ArrayList;


[19567] Description


[19568] Returns a read-only System.Collections.ArrayList wrapper.


[19569] Return Value: A read-only System.Collections.ArrayList wrapper around list.


[19570] To prevent any modifications to list, expose list only through this wrapper. The System.Collections.ArrayList to wrap.


[19571] ReadOnly


[19572] [C#] public static IList ReadOnly(IList list);


[19573] [C++] public: static IList* ReadOnly(IList* list);


[19574] [VB] Public Shared Function ReadOnly(ByVal list As IList) As IList


[19575] [JScript] public static function ReadOnly(list: IList): IList; Returns a list wrapper that is read-only.


[19576] Description


[19577] Returns a read-only System.Collections.IList wrapper.


[19578] Return Value: A read-only System.Collections.IList wrapper around list.


[19579] To prevent any modifications to list, expose list only through this wrapper. The System.Collections.IList to wrap.


[19580] Remove


[19581] [C#] public virtual void Remove(object obj);


[19582] [C++] public: virtual void Remove(Object* obj);


[19583] [VB] Overridable Public Sub Remove(ByVal obj As Object)


[19584] [JScript] public function Remove(obj: Object);


[19585] Description


[19586] Removes the first occurrence of a specific object from the System.Collections.ArrayList.


[19587] This method performs a linear search; therefore, the average execution time is proportional to System.Collections.ArrayList.Count. That is, this method is an O(n) operation, where n is System.Collections.ArrayList.Count. The System.Object to remove from the System.Collections.ArrayList.


[19588] RemoveAt


[19589] [C#] public virtual void RemoveAt(int index);


[19590] [C++] public: virtual void RemoveAt(int index);


[19591] [VB] Overridable Public Sub RemoveAt(ByVal index As Integer)


[19592] [JScript] public function RemoveAt(index: int);


[19593] Description


[19594] Removes the element at the specified index of the System.Collections.ArrayList.


[19595] In collections such as lists, queues and stacks, the elements that follow the removed element move up to occupy the vacated spot. The zero-based index of the element to remove.


[19596] RemoveRange


[19597] [C#] public virtual void RemoveRange(int index, int count);


[19598] [C++] public: virtual void RemoveRange(int index, int count);


[19599] [VB] Overridable Public Sub RemoveRange(ByVal index As Integer, ByVal count As Integer)


[19600] [JScript] public function RemoveRange(index: int, count: int);


[19601] Description


[19602] Removes a range of elements from the System.Collections.ArrayList.


[19603] In collections such as lists, queues and stacks, the elements that follow the removed elements move up to occupy the vacated spots. The zero-based starting index of the range of elements to remove. The number of elements to remove.


[19604] Repeat


[19605] [C#] public static ArrayList Repeat(object value, int count);


[19606] [C++] public: static ArrayList* Repeat(Object* value, int count);


[19607] [VB] Public Shared Function Repeat(ByVal value As Object, ByVal count As Integer) As ArrayList


[19608] [JScript] public static function Repeat(value: Object, count: int): ArrayList;


[19609] Description


[19610] Returns an System.Collections.ArrayList whose elements are copies of the specified value.


[19611] Return Value: An System.Collections.ArrayList with count number of elements, all of which are copies of value. The System.Object to copy multiple times in the new System.Collections.ArrayList. The value to copy can be null. The number of times value should be copied.


[19612] Reverse


[19613] [C#] public virtual void Reverse( );


[19614] [C++] public: virtual void Reverse( );


[19615] [VB] Overridable Public Sub Reverse( )


[19616] [JScript] public function Reverse( ); Reverses the order of the elements in the System.Collections.ArrayList or a portion of it.


[19617] Description


[19618] Reverses the order of the elements in the entire System.Collections.ArrayList.


[19619] Reverse


[19620] [C#] public virtual void Reverse(int index, int count);


[19621] [C++] public: virtual void Reverse(int index, int count);


[19622] [VB] Overridable Public Sub Reverse(ByVal index As Integer, ByVal count As Integer)


[19623] [JScript] public function Reverse(index: int, count: int);


[19624] Description


[19625] Reverses the order of the elements in the specified range.


[19626] This method uses System.Array.Reverse(System.Array) to reverse the order of the elements, such that the element at System.Collections.ArrayList [i], where i is any index within the range, moves to System.Collections.ArrayList [j], where j equals index+index+count−i−1. The zero-based starting index of the range to reverse. The number of elements in the range to reverse.


[19627] SetRange


[19628] [C#] public virtual void SetRange(int index, ICollection c);


[19629] [C++] public: virtual void SetRange(int index, ICollection* c);


[19630] [VB] Overridable Public Sub SetRange(ByVal index As Integer, ByVal c As ICollection)


[19631] [JScript] public function SetRange(index: int, c: ICollection);


[19632] Description


[19633] Copies the elements of a collection over a range of elements in the System.Collections.ArrayList. The zero-based System.Collections.ArrayList index at which to start copying the elements of c. The System.Collections.ICollection whose elements to copy to the System.Collections.ArrayList.


[19634] Sort


[19635] [C#] public virtual void Sort( );


[19636] [C++] public: virtual void Sort( );


[19637] [VB] Overridable Public Sub Sort( )


[19638] [JScript] public function Sort( ); Sorts the elements in the System.Collections.ArrayList or a portion of it.


[19639] Description


[19640] Sorts the elements in the entire System.Collections.ArrayList using the System.IComparable implementation of each element.


[19641] This method uses System.Array.Sort(System.Array), which uses the QuickSort algorithm. This is an O(n log n) operation, where n is the number of elements to sort.


[19642] Sort


[19643] [C#] public virtual void Sort(IComparer comparer);


[19644] [C++] public: virtual void Sort(IComparer* comparer);


[19645] [VB] Overridable Public Sub Sort(ByVal comparer As IComparer)


[19646] [JScript] public function Sort(comparer: IComparer);


[19647] Description


[19648] Sorts the elements in the entire System.Collections.ArrayList using the specified comparer.


[19649] This method uses System.Array.Sort(System.Array), which uses the QuickSort algorithm. This is an O(n log n) operation, where n is the number of elements to sort. The System.Collections.IComparer implementation to use when comparing elements.


[19650] Sort


[19651] [C#] public virtual void Sort(int index, int count, IComparer comparer);


[19652] [C++] public: virtual void Sort(int index, int count, IComparer* comparer);


[19653] [VB] Overridable Public Sub Sort(ByVal index As Integer, ByVal count As Integer, ByVal comparer As IComparer)


[19654] [JScript] public function Sort(index: int, count: int, comparer: IComparer);


[19655] Description


[19656] Sorts the elements in a section of System.Collections.ArrayList using the specified comparer.


[19657] This method uses System.Array.Sort(System.Array), which uses the QuickSort algorithm. This is an O(n log n) operation, where n is the number of elements to sort. The zero-based starting index of the range to sort. The length of the range to sort. The System.Collections.IComparer implementation to use when comparing elements.


[19658] Synchronized


[19659] [C#] public static ArrayList Synchronized(ArrayList list);


[19660] [C++] public: static ArrayList* Synchronized(ArrayList* list);


[19661] [VB] Public Shared Function Synchronized(ByVal list As ArrayList) As ArrayList


[19662] [JScript] public static function Synchronized(list: ArrayList): ArrayList;


[19663] Description


[19664] Returns an System.Collections.ArrayList wrapper that is synchronized (thread-safe).


[19665] Return Value: An System.Collections.ArrayList wrapper that is synchronized (thread-safe).


[19666] To guarantee the thread safety of the System.Collections.ArrayList, all operations must be done through this wrapper. The System.Collections.ArrayList to synchronize.


[19667] Synchronized


[19668] [C#] public static IList Synchronized(IList list);


[19669] [C++] public: static IList* Synchronized(IList* list);


[19670] [VB] Public Shared Function Synchronized(ByVal list As IList) As IList


[19671] [JScript] public static function Synchronized(list: IList): IList; Returns a list wrapper that is synchronized (thread-safe).


[19672] Description


[19673] Returns an System.Collections.IList wrapper that is synchronized (thread-safe).


[19674] Return Value: An System.Collections.IList wrapper that is synchronized (thread-safe).


[19675] To guarantee the thread safety of the System.Collections.ArrayList, all operations must be done through this wrapper. The System.Collections.IList to synchronize.


[19676] ToArray


[19677] [C#] public virtual object[ ] ToArray( );


[19678] [C++] public: virtual Object* ToArray( ) _gc[ ];


[19679] [VB] Overridable Public Function ToArray( ) As Object( )


[19680] [JScript] public function ToArray( ): Object[ ]; Copies the elements of the System.Collections.ArrayList to a new array.


[19681] Description


[19682] Copies the elements of the System.Collections.ArrayList to a new System.Object array.


[19683] Return Value: An System.Object array containing copies of the elements of the System.Collections.ArrayList.


[19684] The elements are copied using System.Array.Copy(System.Array,System.Array,System.Int32), which is an O(n) operation, where n is System.Collections.ArrayList.Count.


[19685] ToArray


[19686] [C#] public virtual Array ToArray(Type type);


[19687] [C++] public: virtual Array* ToArray(Type* type);


[19688] [VB] Overridable Public Function ToArray(ByVal type As Type) As Array 6


[19689] [JScript] public function ToArray(type: Type): Array;


[19690] Description


[19691] Copies the elements of the System.Collections.ArrayList to a new array of the specified type.


[19692] Return Value: An array of the specified type containing copies of the elements of the System.Collections.ArrayList.


[19693] The elements are copied using System.Array.Copy(System.Array,System.Array,System.Int32), which is an O(n) operation, where n is System.Collections.ArrayList.Count. The System.Type of array to create and copy elements to.


[19694] TrimToSize


[19695] [C#] public virtual void TrimToSize( );


[19696] [C++] public: virtual void TrimToSize( );


[19697] [VB] Overridable Public Sub TrimToSize( )


[19698] [JScript] public function TrimToSize( );


[19699] Description


[19700] Sets the capacity to the actual number of elements in the System.Collections.ArrayList.


[19701] This method can be used to minimize a list's memory overhead if no new elements will be added to the list.


[19702] BitArray class (System.Collections)


[19703] TrimToSize


[19704] Description


[19705] Manages a compact array of bit values, which are represented as Booleans, where true indicates that the bit is on (1) and false indicates the bit is off (0).


[19706] The size of a System.Collections.BitArray is controlled by the client; indexing past the end of the System.Collections.BitArray throws an System.ArgumentException.


[19707] BitArray


[19708] Example Syntax:


[19709] TrimToSize


[19710] [C#] public BitArray(BitArray bits);


[19711] [C++] public: BitArray(BitArray* bits);


[19712] [VB] Public Sub New(ByVal bits As BitArray)


[19713] [JScript] public function BitArray(bits: BitArray);


[19714] Description


[19715] Initializes a new instance of the System.Collections.BitArray class that contains bit values copied from the specified System.Collections.BitArray. The System.Collections.BitArray to copy.


[19716] BitArray


[19717] Example Syntax:


[19718] TrimToSize


[19719] [C#] public BitArray(bool[ ] values);


[19720] [C++] public: BitArray(bool values_gc[ ]);


[19721] [VB] Public Sub New(ByVal values( ) As Boolean)


[19722] [JScript] public function BitArray(values: Boolean[ ]);


[19723] Description


[19724] Initializes a new instance of the System.Collections.BitArray class that contains bit values copied from the specified array of Booleans. An array of Booleans to copy.


[19725] BitArray


[19726] Example Syntax:


[19727] TrimToSize


[19728] [C#] public BitArray(byte[ ] bytes);


[19729] [C++] public: BitArray(unsigned char bytes_gc[ ]);


[19730] [VB] Public Sub New(ByVal bytes( ) As Byte)


[19731] [JScript] public function BitArray(bytes: Byte[ ]);


[19732] Description


[19733] Initializes a new instance of the System.Collections.BitArray class that contains bit values copied from the specified array of bytes.


[19734] The first byte in the array represents bits 0 through 7, the second byte represents bits 8 through 15, and so on. The Least Significant Bit of each byte represents the lowest index value: “bytes [0] & 1” represents bit 0, “bytes [0] & 2” represents bit 1, “bytes [0] & 4” represents bit 2, and so on. An array of bytes containing the values to copy, where each byte represents eight consecutive bits.


[19735] BitArray


[19736] Example Syntax:


[19737] TrimToSize


[19738] [C#] public BitArray(int length);


[19739] [C++] public: BitArray(int length);


[19740] [VB] Public Sub New(ByVal length As Integer)


[19741] [JScript] public function BitArray(length: int); Initializes a new instance of the System.Collections.BitArray class whose capacity and initial values can be specified.


[19742] Description


[19743] Initializes a new instance of the System.Collections.BitArray class that can hold the specified number of bit values, which are initially set to false. The number of bit values in the new System.Collections.BitArray.


[19744] BitArray


[19745] Example Syntax:


[19746] TrimToSize


[19747] [C#] public BitArray(int[ ] values);


[19748] [C++] public: BitArray(int values_gc[ ]);


[19749] [VB] Public Sub New(ByVal values( ) As Integer)


[19750] [JScript] public function BitArray(values: int[ ]);


[19751] Description


[19752] Initializes a new instance of the System.Collections.BitArray class that contains bit values copied from the specified array of 32-bit integers.


[19753] The number in the first values array element represents bits 0 through 31, the second number in the array represents bits 32 through 63, and so on. The Least Significant Bit of each integer represents the lowest index value: “values [0] & 1” represents bit 0, “values [0] & 2” represents bit 1, “values [0] & 4” represents bit 2, and so on. An array of integers containing the values to copy, where each integer represents 32 consecutive bits.


[19754] BitArray


[19755] Example Syntax:


[19756] TrimToSize


[19757] [C#] public BitArray(int length, bool defaultValue);


[19758] [C++] public: BitArray(int length, bool defaultValue);


[19759] [VB] Public Sub New(ByVal length As Integer, ByVal defaultValue As Boolean)


[19760] [JScript] public function BitArray(length: int, defaultValue: Boolean);


[19761] Description


[19762] Initializes a new instance of the System.Collections.BitArray class that can hold the specified number of bit values, which are initially set to the specified value. The number of bit values in the new System.Collections.BitArray. The Boolean value to assign to each bit.


[19763] Count


[19764] TrimToSize


[19765] [C#] public int Count {get;}


[19766] [C++] public: _Property int get_Count( );


[19767] [VB] Public ReadOnly Property Count As Integer


[19768] [JScript] public function get Count( ): int;


[19769] Description


[19770] Gets the number of elements contained in the System.Collections.BitArray.


[19771] System.Collections.BitArray.Length and System.Collections.BitArray.Count return the same value.


[19772] IsReadOnly


[19773] TrimToSize


[19774] [C#] public bool IsReadOnly {get;}


[19775] [C++] public: _property bool get_IsReadOnly( );


[19776] [VB] Public ReadOnly Property IsReadOnly As Boolean


[19777] [JScript] public function get IsReadOnly( ): Boolean;


[19778] Description


[19779] Gets a value indicating whether the System.Collections.BitArray is read-only.


[19780] System.Collections.BitArray implements the System.Collections.BitArray.IsReadOnly property because it is required by the System.Collections.IList interface.


[19781] IsSynchronized


[19782] TrimToSize


[19783] [C#] public bool IsSynchronized {get;}


[19784] [C++] public: _property bool get_IsSynchronized( );


[19785] [VB] Public ReadOnly Property IsSynchronized As Boolean


[19786] [JScript] public function get IsSynchronized( ): Boolean;


[19787] Description


[19788] Gets a value indicating whether access to the System.Collections.BitArray is synchronized (thread-safe).


[19789] System.Collections.BitArray implements the System.Collections.BitArray.IsSynchronized property because it is required by the System.Collections.ICollection interface.


[19790] Item


[19791] TrimToSize


[19792] [C#] public bool this[int index] {get; set;}


[19793] [C++] public: _property bool get_Item(int index);public: _property void set_Item(int index, bool);


[19794] [VB] Public Default Property Item(ByVal index As Integer) As Boolean


[19795] [JScript] returnValue=BitArrayObject.Item(index);BitArrayObject.Item(index)=returnValue;


[19796] Description


[19797] Gets or sets the value of the bit at a specific position in the System.Collections.BitArray.


[19798] This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[index]. The zero-based index of the value to get or set.


[19799] Length


[19800] TrimToSize


[19801] [C#] public int Length {get; set;}


[19802] [C++] public: _property int get_Length( );public: _property void set_Length(int);


[19803] [VB] Public Property Length As Integer


[19804] [JScript] public function get Length( ): int;public function set Length(int);


[19805] Description


[19806] Gets or sets the number of elements in the System.Collections.BitArray


[19807] System.Collections.BitArray.Length and System.Collections.BitArray.Count return the same value.


[19808] SyncRoot


[19809] TrimToSize


[19810] [C#] public object SyncRoot {get;}


[19811] [C++] public: _property Object* get_SyncRoot( );


[19812] [VB] Public ReadOnly Property SyncRoot As Object


[19813] [JScript] public function get SyncRoot( ): Object;


[19814] Description


[19815] Gets an object that can be used to synchronize access to the System.Collections.BitArray.


[19816] Derived classes can provide their own synchronized version of the System.Collections.BitArray using the System.Collections.BitArray.SyncRoot property. The synchronizing code must perform operations on the System.Collections.BitArray.SyncRoot of the System.Collections.BitArray, not directly on the System.Collections.BitArray. This ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the System.Collections.BitArray object.


[19817] And


[19818] [C#] public BitArray And(BitArray value);


[19819] [C++] public: BitArray* And(BitArray* value);


[19820] [VB] Public Function And(ByVal value As BitArray) As BitArray


[19821] [JScript] public function And(value: BitArray): BitArray;


[19822] Description


[19823] Performs the bitwise AND operation on the elements in the current System.Collections.BitArray against the corresponding elements in the specified System.Collections.BitArray.


[19824] Return Value: A System.Collections.BitArray containing the result of the bitwise AND operation on the elements in the current System.Collections.BitArray against the corresponding elements in the specified System.Collections.BitArray.


[19825] The bitwise AND operation returns true if both operands are true, and returns false if one or both operands are false The System.Collections.BitArray with which to perform the bitwise AND operation.


[19826] Clone


[19827] [C#] public object Clone( );


[19828] [C++] public: _seated Object* Clone( );


[19829] [VB] NotOverridable Public Function Clone( ) As Object


[19830] [JScript] public function Clone( ): Object;


[19831] Description


[19832] Creates a shallow copy of the System.Collections.BitArray.


[19833] Return Value: A shallow copy of the System.Collections.BitArray.


[19834] A shallow copy of a collection is a new collection containing references to the same elements as the original collection. The elements themselves or anything referenced by the elements are not copied. In contrast, a deep copy of a collection copies the elements and everything directly or indirectly referenced by the elements.


[19835] CopyTo


[19836] [C#] public void CopyTo(Array array, int index);


[19837] [C++] public: _sealed void CopyTo(Array* array, int index);


[19838] [VB] NotOverridable Public Sub CopyTo(ByVal array As Array, ByVal index As Integer)


[19839] [JScript] public function CopyTo(array: Array, index: int);


[19840] Description


[19841] Copies the entire System.Collections.BitArray to a compatible one-dimensional System.Array, starting at the specified index of the target array.


[19842] The specified array must be of a compatible type. Only bool, int and byte types of arrays are supported. The one-dimensional System.Array that is the destination of the elements copied from System.Collections.BitArray. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[19843] Get


[19844] [C#] public bool Get(int index);


[19845] [C++] public: bool Get(int index);


[19846] [VB] Public Function Get(ByVal index As Integer) As Boolean


[19847] [JScript] public function Get(index: int): Boolean;


[19848] Description


[19849] Gets the value of the bit at a specific position in the System.Collections.BitArray.


[19850] Return Value: The value of the bit at position index. The zero-based index of the value to get.


[19851] GetEnumerator


[19852] [C#] public IEnumerator GetEnumerator( );


[19853] [C++] public: _sealed IEnumerator* GetEnumerator( );


[19854] [VB] NotOverridable Public Function GetEnumerator( ) As IEnumerator


[19855] [JScript] public function GetEnumerator( ): IEnumerator;


[19856] Description


[19857] Returns an enumerator that can iterate through the System.Collections.BitArray.


[19858] Return Value: An System.Collections.IEnumerator for the entire System.Collections.BitArray.


[19859] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[19860] Not


[19861] [C#] public BitArray Not( );


[19862] [C++] public: BitArray* Not( );


[19863] [VB] Public Function Not( ) As BitArray


[19864] [JScript] public function Not( ): BitArray;


[19865] Description


[19866] Inverts all the bit values in the current System.Collections.BitArray, so that elements set to true are changed to false, and elements set to false are changed to true.


[19867] Return Value: The current instance with inverted bit values.


[19868] Or


[19869] [C#] public BitArray Or(BitArray value);


[19870] [C++] public: BitArray* Or(BitArray* value);


[19871] [VB] Public Function Or(ByVal value As BitArray) As BitArray


[19872] [JScript] public function Or(value: BitArray): BitArray;


[19873] Description


[19874] Performs the bitwise OR operation on the elements in the current System.Collections.BitArray against the corresponding elements in the specified System.Collections.BitArray.


[19875] Return Value: A System.Collections.BitArray containing the result of the bitwise OR operation on the elements in the current System.Collections.BitArray against the corresponding elements in the specified System.Collections.BitArray.


[19876] The bitwise OR operation returns true if one or both operands are true, and returns false if both operands are false. The System.Collections.BitArray with which to perform the bitwise OR operation.


[19877] Set


[19878] [C#] public void Set(int index, bool value);


[19879] [C++] public: void Set(int index, bool value);


[19880] [VB] Public Sub Set(ByVal index As Integer, ByVal value As Boolean)


[19881] [JScript] public function Set(index: int, value: Boolean);


[19882] Description


[19883] Sets the bit at a specific position in the System.Collections.BitArray to the specified value. The zero-based index of the bit to set. The Boolean value to assign to the bit.


[19884] SetAll


[19885] [C#] public void SetAll(bool value);


[19886] [C++] public: void SetAll(bool value);


[19887] [VB] Public Sub SetAll(ByVal value As Boolean)


[19888] [JScript] public function SetAll(value: Boolean);


[19889] Description


[19890] Sets all bits in the System.Collections.BitArray to the specified value. The Boolean value to assign to all bits.


[19891] Xor


[19892] [C#] public BitArray Xor(BitArray value);


[19893] [C++] public: BitArray* Xor(BitArray* value);


[19894] [VB] Public Function Xor(ByVal value As BitArray) As BitArray


[19895] [JScript] public function Xor(value: BitArray): BitArray;


[19896] Description


[19897] Performs the bitwise eXclusive OR operation on the elements in the current System.Collections.BitArray against the corresponding elements in the specified System.Collections.BitArray.


[19898] Return Value: A System.Collections.BitArray containing the result of the bitwise eXclusive OR operation on the elements in the current System.Collections.BitArray against the corresponding elements in the specified System.Collections.BitArray.


[19899] The bitwise exclusive OR operation returns true if exactly one operand is true, and returns false if both operands have the same Boolean value. The System.Collections.BitArray with which to perform the bitwise eXclusive OR operation.


[19900] CaseInsensitiveComparer class (System.Collections)


[19901] Xor


[19902] Description


[19903] Compares two objects for equivalence, ignoring the case of strings.


[19904] System.Collections.CaseInsensitiveComparer implements the System.Collections.IComparer interface supporting case-insensitive comparisons on strings, just as System.Collections.CaseInsensitiveHashCodeProvider implements the System.Collections.IHashCodeProvider interface supporting case-insensitive comparisons on strings.


[19905] CaseInsensitiveComparer


[19906] Example Syntax:


[19907] Xor


[19908] [C#] public CaseInsensitiveComparer( );


[19909] [C++] public: CaseInsensitiveComparer( );


[19910] [VB] Public Sub New( )


[19911] [JScript] public function CaseInsensitiveComparer( ); Initializes a new instance of the System.Collections.CaseInsensitiveComparer class.


[19912] Description


[19913] Initializes a new instance of the System.Collections.CaseInsensitiveComparer class using the System.Threading.Thread.CurrentCulture of the current thread.


[19914] Comparison procedures use the System.Threading.Thread.CurrentCulture of the current thread to determine the sort order. String comparisons might have different results depending on the culture. For more information on culture-specific comparisons, see the System.Globalization namespace and.


[19915] CaseInsensitiveComparer


[19916] Example Syntax:


[19917] Xor


[19918] [C#] public CaseInsensitiveComparer(CultureInfo culture);


[19919] [C++] public: CaseInsensitiveComparer(CultureInfo* culture);


[19920] [VB] Public Sub New(ByVal culture As CultureInfo)


[19921] [JScript] public function CaseInsensitiveComparer(culture: CultureInfo);


[19922] Description


[19923] Initializes a new instance of the System.Collections.CaseInsensitiveComparer class using the specified System.Globalization.CultureInfo.


[19924] Comparison procedures use the specified System.Globalization.CultureInfo to determine the sort order. String comparisons might have different results depending on the culture. For more information on culture-specific comparisons, see the System.Globalization namespace and. The System.Globalization.CultureInfo to use for the new System.Collections.CaseInsensitiveComparer.


[19925] Default


[19926] Xor


[19927] [C#] public static CaseInsensitiveComparer Default {get;}


[19928] [C++] public: _property static CaseInsensitiveComparer* get_Default( );


[19929] [VB] Public Shared ReadOnly Property Default As CaseInsensitiveComparer


[19930] [JScript] public static function get Default( ): CaseInsensitiveComparer;


[19931] Description


[19932] Gets an instance of System.Collections.CaseInsensitiveComparer that is always available.


[19933] Compare


[19934] [C#] public int Compare(object a, object b);


[19935] [C++] public: _sealed int Compare(Object* a, Object* b);


[19936] [VB] NotOverridable Public Function Compare(ByVal a As Object, ByVal b As Ad Object) As Integer


[19937] [JScript] public function Compare(a: Object, b: Object): int;


[19938] Description


[19939] Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to or greater than the other.


[19940] Return Value: Value Condition Less than zero a is less than b, with casing ignored.


[19941] If a implements System.IComparable, then a. The first object to compare. The second object to compare.


[19942] CaseInsensitiveHashCodeProvider class (System.Collections)


[19943] ToString


[19944] Description


[19945] Supplies a hash code for an object, using a hashing algorithm that ignores the case of strings.


[19946] System.Collections.CaseInsensitiveHashCodeProvider implements the System.Collections.IHashCodeProvider interface supporting case-insensitive comparisons on strings, just as System.Collections.CaseInsensitiveComparer implements the System.Collections.IComparer interface supporting case-insensitive comparisons on strings.


[19947] CaseInsensitiveHashCodeProvider


[19948] Example Syntax:


[19949] ToString


[19950] [C#] public CaseInsensitiveHashCodeProvider( );


[19951] [C++] public: CaseInsensitiveHashCodeProvider( );


[19952] [VB] Public Sub New( )


[19953] [JScript] public function CaseInsensitiveHashCodeProvider( ); Initializes a new instance of the System.Collections.CaseInsensitiveHashCodeProvider class.


[19954] Description


[19955] Initializes a new instance of the System.Collections.CaseInsensitiveHashCodeProvider class using the current System.Globalization.CultureInfo.


[19956] The System.Globalization.CultureInfo provides information about casing.


[19957] CaseInsensitiveHashCodeProvider


[19958] Example Syntax:


[19959] ToString


[19960] [C#] public CaseInsensitiveHashCodeProvider(CultureInfo culture);


[19961] [C++] public: CaseInsensitiveHashCodeProvider(CultureInfo* culture);


[19962] [VB] Public Sub New(ByVal culture As CultureInfo)


[19963] [JScript] public function CaseInsensitiveHashCodeProvider(culture: CultureInfo);


[19964] Description


[19965] Initializes a new instance of the System.Collections.CaseInsensitiveHashCodeProvider class using the current System.Globalization.CultureInfo.


[19966] The System.Globalization.CultureInfo provides information about casing. The System.Globalization.CultureInfo to use for the new System.Collections.CaseInsensitiveHashCodeProvider.


[19967] Default


[19968] ToString


[19969] [C#] public static CaseInsensitiveHashCodeProvider Default {get;}


[19970] [C++] public: _property static CaseInsensitiveHashCodeProvider* get_Default( );


[19971] [VB] Public Shared ReadOnly Property Default As CaseInsensitiveHashCodeProvider


[19972] [JScript] public static function get Default( ): CaseInsensitiveHashCodeProvider;


[19973] Description


[19974] Gets an instance of System.Collections.CaseInsensitiveHashCodeProvider that is always available.


[19975] GetHashCode


[19976] [C#] public int GetHashCode(object obj);


[19977] [C++] public: _sealed int GetHashCode(Object* obj);


[19978] [VB] NotOverridable Public Function GetHashCode(ByVal obj As Object) As Integer


[19979] [JScript] public function GetHashCode(obj: Object): int; Returns a hash code, using a hashing algorithm that ignores the case of strings.


[19980] Description


[19981] Returns a hash code for the given object, using a hashing algorithm that ignores the case of strings.


[19982] Return Value: A hash code for the given object, using a hashing algorithm that ignores the case of strings.


[19983] The return value from this method must not be persisted for two reasons. First, the hash function of a class might be altered to generate a better distribution, rendering any values from the old hash function useless. Second, the default implementation of this class does not guarantee that the same value will be returned by different instances. The System.Object for which a hash code is to be returned.


[19984] CollectionBase class (System.Collections)


[19985] ToString


[19986] Description


[19987] Provides the abstract base class for a strongly typed collection.


[19988] A System.Collections.CollectionBase instance is always modifiable. See System.Collections.ReadOnlyCollectionBase for a read-only version of this class.


[19989] CollectionBase


[19990] Example Syntax:


[19991] ToString


[19992] [C#] protected CollectionBase( );


[19993] [C++] protected: CollectionBase( );


[19994] [VB] Protected Sub New( )


[19995] [JScript] protected function CollectionBase( );


[19996] Count


[19997] ToString


[19998] [C#] public int Count {get;}


[19999] [C++] public: _property int get_Count( );


[20000] [VB] Public ReadOnly Property Count As Integer


[20001] [JScript] public function get Count( ): int;


[20002] Description


[20003] Gets the number of elements contained in the System.Collections.CollectionBase instance.


[20004] InnerList


[20005] ToString


[20006] [C#] protected ArrayList InnerList {get;}


[20007] [C++] protected: _property ArrayList* get_InnerList( );


[20008] [VB] Protected ReadOnly Property InnerList As ArrayList


[20009] [JScript] protected function get InnerList( ): ArrayList;


[20010] Description


[20011] Gets an System.Collections.ArrayList containing the list of elements in the System.Collections.CollectionBase instance.


[20012] List


[20013] ToString


[20014] [C#] protected IList List {get;}


[20015] [C++] protected: _property IList* get_List( );


[20016] [VB] Protected ReadOnly Property List As IList


[20017] [JScript] protected function get List( ): IList;


[20018] Description


[20019] Gets an System.Collections.IList containing the list of elements in the System.Collections.CollectionBase instance.


[20020] Clear


[20021] [C#] public void Clear( );


[20022] [C++] public: _sealed void Clear( );


[20023] [VB] NotOverridable Public Sub Clear( )


[20024] [JScript] public function Clear( );


[20025] Description


[20026] Removes all objects from the System.Collections.CollectionBase instance.


[20027] System.Collections.CollectionBase.Count is set to zero.


[20028] GetEnumerator


[20029] [C#] public IEnumerator GetEnumerator( );


[20030] [C++] public: _sealed IEnumerator* GetEnumerator( );


[20031] [VB] NotOverridable Public Function GetEnumerator( ) As IEnumerator


[20032] [JScript] public function GetEnumerator( ): IEnumerator;


[20033] Description


[20034] Returns an enumerator that can iterate through the System.Collections.CollectionBase instance.


[20035] Return Value: An System.Collections.IEnumerator for the System.Collections.CollectionBase instance.


[20036] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[20037] OnClear


[20038] [C#] protected virtual void OnClear( );


[20039] [C++] protected: virtual void OnClear( );


[20040] [VB] Overridable Protected Sub OnClear( )


[20041] [JScript] protected function OnClear( );


[20042] Description


[20043] Performs additional custom processes when clearing the contents of the System.Collections.CollectionBase instance.


[20044] The default implementation of this method is intended to be overridden by a derived class to perform some action before the collection is cleared.


[20045] OnClearComplete


[20046] [C#] protected virtual void OnClearComplete( );


[20047] [C++] protected: virtual void OnClearComplete( );


[20048] [VB] Overridable Protected Sub OnClearComplete( )


[20049] [JScript] protected function OnClearComplete( );


[20050] Description


[20051] Performs additional custom processes after clearing the contents of the System.Collections.CollectionBase instance.


[20052] The default implementation of this method is intended to be overridden by a derived class to perform some action after the collection is cleared.


[20053] OnInsert


[20054] [C#] protected virtual void OnInsert(int index, object value);


[20055] [C++] protected: virtual void OnInsert(int index, Object* value);


[20056] [VB] Overridable Protected Sub OnInsert(ByVal index As Integer, ByVal value As Object)


[20057] [JScript] protected function OnInsert(index: int, value: Object);


[20058] Description


[20059] Performs additional custom processes before inserting a new element into the System.Collections.CollectionBase instance.


[20060] The default implementation of this method is intended to be overridden by a derived class to perform some action before the specified element is inserted. The zero-based index at which to insert value. The new value of the element at index.


[20061] OnInsertComplete


[20062] [C#] protected virtual void OnInsertComplete(int index, object value);


[20063] [C++] protected: virtual void OnInsertComplete(int index, Object* value);


[20064] [VB] Overridable Protected Sub OnInsertComplete(ByVal index As Integer, ByVal value As Object)


[20065] [JScript] protected function OnInsertComplete(index: int, value: Object);


[20066] Description


[20067] Performs additional custom processes after inserting a new element into the System.Collections.CollectionBase instance.


[20068] The default implementation of this method is intended to be overridden by a derived class to perform some action after the specified element is inserted. The zero-based index at which to insert value. The new value of the element at index.


[20069] OnRemove


[20070] [C#] protected virtual void OnRemove(int index, object value);


[20071] [C++] protected: virtual void OnRemove(int index, Object* value);


[20072] [VB] Overridable Protected Sub OnRemove(ByVal index As Integer, ByVal value As Object)


[20073] [JScript] protected function OnRemove(index: int, value: Object);


[20074] Description


[20075] Performs additional custom processes when removing an element from the System.Collections.CollectionBase instance.


[20076] The default implementation of this method is intended to be overridden by a derived class to perform some action before the specified element is removed. The zero-based index at which value can be found. The value of the element to remove from index.


[20077] OnRemoveComplete


[20078] [C#] protected virtual void OnRemoveComplete(int index, object value);


[20079] [C++] protected: virtual void OnRemoveComplete(int index, Object* value);


[20080] [VB] Overridable Protected Sub OnRemoveComplete(ByVal index As Integer, ByVal value As Object)


[20081] [JScript] protected function OnRemoveComplete(index: int, value: Object);


[20082] Description


[20083] Performs additional custom processes after removing an element from the System.Collections.CollectionBase instance.


[20084] The default implementation of this method is intended to be overridden by a derived class to perform some action after the specified element is removed. The zero-based index at which value can be found. The value of the element to remove from index.


[20085] OnSet


[20086] [C#] protected virtual void OnSet(int index, object oldValue, object newValue);


[20087] [C++] protected: virtual void OnSet(int index, Object* oldValue, Object* newValue);


[20088] [VB] Overridable Protected Sub OnSet(ByVal index As Integer, ByVal oldValue As Object, ByVal newValue As Object)


[20089] [JScript] protected function OnSet(index: int, oldValue: Object, newValue: Object);


[20090] Description


[20091] Performs additional custom processes before setting a value in the System.Collections.CollectionBase instance.


[20092] The default implementation of this method is intended to be overridden by a derived class to perform some action before the specified element is set. The zero-based index at which oldValue can be found. The value to replace with new Value. The new value of the element at index.


[20093] OnSetComplete


[20094] [C#] protected virtual void OnSetComplete(int index, object oldValue, object newValue);


[20095] [C++] protected: virtual void OnSetComplete(int index, Object* oldValue, Object* newValue);


[20096] [VB] Overridable Protected Sub OnSetComplete(ByVal index As Integer, ByVal oldValue As Object, ByVal newValue As Object)


[20097] [JScript] protected function OnSetComplete(index: int, oldValue: Object, newValue: Object);


[20098] Description


[20099] Performs additional custom processes after setting a value in the System.Collections.CollectionBase instance.


[20100] The default implementation of this method is intended to be overridden by a derived class to perform some action after the specified element is set. The zero-based index at which oldValue can be found. The value to replace with newValue. The new value of the element at index.


[20101] OnValidate


[20102] [C#] protected virtual void OnValidate(object value);


[20103] [C++] protected: virtual void OnValidate(Object* value);


[20104] [VB] Overridable Protected Sub OnValidate(ByVal value As Object)


[20105] [JScript] protected function OnValidate(value: Object);


[20106] Description


[20107] Performs additional custom processes when validating a value.


[20108] The default implementation of this method determines whether value is null, and, if so, throws System.ArgumentNullException. It is intended to be overridden by a derived class to perform additional action when the specified element is validated. The object to validate.


[20109] RemoveAt


[20110] [C#] public void RemoveAt(int index);


[20111] [C++] public: sealed void RemoveAt(int index);


[20112] [VB] NotOverridable Public Sub RemoveAt(ByVal index As Integer)


[20113] [JScript] public function RemoveAt(index: int);


[20114] Description


[20115] Removes the element at the specified index of the System.Collections.CollectionBase instance.


[20116] In collections such as lists, queues and stacks, the elements that follow the removed element move up to occupy the vacated spot. The zero-based index of the element to remove.


[20117] ICollection.CopyTo


[20118] [C#] void ICollection.CopyTo(Array array, int index);


[20119] [C++] void ICollection::CopyTo(Array* array, int index);


[20120] [VB] Sub CopyTo(ByVal array As Array, ByVal index As Integer) Implements ICollection.CopyTo


[20121] [JScript] function ICollection.CopyTo(array: Array, index: int);


[20122] IList.Add


[20123] [C#] int IList.Add(object value);


[20124] [C++] int IList::Add(Object* value);


[20125] [VB] Function Add(ByVal value As Object) As Integer Implements IList.Add


[20126] [JScript] function IList.Add(value: Object): int;


[20127] IList.Contains


[20128] [C#] bool IList.Contains(object value);


[20129] [C++] bool IList::Contains(Object* value);


[20130] [VB] Function Contains(ByVal value As Object) As Boolean Implements IList.Contains


[20131] [JScript] function IList.Contains(value: Object): Boolean;


[20132] IList.IndexOf


[20133] [C#] int IList.IndexOf(object value);


[20134] [C++] int IList::IndexOf(Object* value);


[20135] [VB] Function IndexOf(ByVal value As Object) As Integer Implements IList.IndexOf


[20136] [JScript] function IList.IndexOf(value: Object): int;


[20137] IList.Insert


[20138] [C#] void IList.Insert(int index, object value);


[20139] [C++] void IList::Insert(int index, Object* value);


[20140] [VB] Sub Insert(ByVal index As Integer, ByVal value As Object) Implements IList.Insert


[20141] [JScript] function IList.Insert(index: int, value: Object);


[20142] IList.Remove


[20143] [C#] void IList.Remove(object value);


[20144] [C++] void IList::Remove(Object* value);


[20145] [VB] Sub Remove(ByVal value As Object) Implements IList.Remove


[20146] [JScript] function IList.Remove(value: Object);


[20147] Comparer class (System.Collections)


[20148] ToString


[20149] Description


[20150] Compares two objects for equivalence, where string comparisons are case-sensitive.


[20151] This class is the default implementation of the System.Collections.IComparer interface. The System.Collections.CaseInsensitiveComparer class is the implementation of the System.Collections.IComparer interface that performs case-insensitive string comparisons.


[20152] ToString


[20153] [C#] public static readonly Comparer Default;


[20154] [C++] public: static Comparer* Default;


[20155] [VB] Public Shared ReadOnly Default As Comparer


[20156] [JScript] public static var Default: Comparer;


[20157] Description


[20158] Gets an instance of System.Collections.Comparer that is always available.


[20159] An instance of System.Collections.Comparer that is always available.


[20160] Compare


[20161] [C#] public int Compare(object a, object b);


[20162] [C++] public: sealed int Compare(Object* a, Object* b);


[20163] [VB] NotOverridable Public Function Compare(ByVal a As Object, ByVal b As Object) As Integer


[20164] [JScript] public function Compare(a: Object, b: Object): int;


[20165] Description


[20166] Performs a case-sensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to or greater than the other.


[20167] Return Value: Value Condition Less than zero a is less than b.


[20168] If a implements System.IComparable, then a. The first object to compare. The second object to compare.


[20169] DictionaryBase class (System.Collections)


[20170] ToString


[20171] Description


[20172] Provides the abstract base class for a strongly typed collection of key-and-value pairs.


[20173] Each element is a key-and-value pair stored in a System.Collections.DictionaryEntry object.


[20174] DictionaryBase


[20175] Example Syntax:


[20176] ToString


[20177] [C#] protected DictionaryBase( );


[20178] [C++] protected: DictionaryBase( );


[20179] [VB] Protected Sub New( )


[20180] [JScript] protected function DictionaryBase( );


[20181] Count


[20182] ToString


[20183] [C#] public int Count {get;}


[20184] [C++] public: _property int get_Count( );


[20185] [VB] Public ReadOnly Property Count As Integer


[20186] [JScript] public function get Count( ): int;


[20187] Description


[20188] Gets the number of elements contained in the System.Collections.DictionaryBase instance.


[20189] Dictionary


[20190] ToString


[20191] [C#] protected IDictionary Dictionary {get;}


[20192] [C++] protected: _property IDictionary* get_Dictionary( );


[20193] [VB] Protected ReadOnly Property Dictionary As IDictionary


[20194] [JScript] protected function get Dictionary( ): IDictionary;


[20195] Description Gets the list of elements contained in the System.Collections.DictionaryBase instance.


[20196] InnerHashtable


[20197] ToString


[20198] [C#] protected Hashtable InnerHashtable {get;}


[20199] [C++] protected: _property Hashtable* get_InnerHashtable( );


[20200] [VB] Protected ReadOnly Property InnerHashtable As Hashtable


[20201] [JScript] protected function get InnerHashtable( ): Hashtable;


[20202] Description


[20203] Gets the list of elements contained in the System.Collections.DictionaryBase instance.


[20204] Clear


[20205] [C#] public void Clear( );


[20206] [C++] public: _sealed void Clear( );


[20207] [VB] NotOverridable Public Sub Clear( )


[20208] [JScript] public function Clear( );


[20209] Description


[20210] Clears the contents of the System.Collections.DictionaryBase instance.


[20211] System.Collections.DictionaryBase.Count is set to zero.


[20212] CopyTo


[20213] [C#] public void CopyTo(Array array, int index);


[20214] [C++] public: _sealed void CopyTo(Array* array, int index);


[20215] [VB] NotOverridable Public Sub CopyTo(ByVal array As Array, ByVal index As Integer)


[20216] [JScript] public function CopyTo(array: Array, index: int);


[20217] Description


[20218] Copies the System.Collections.DictionaryBase elements to a one-dimensional System.Array at the specified index.


[20219] The elements are copied to the System.Array in the same order in which the enumerator iterates through the System.Collections.DictionaryBase. The one-dimensional System.Array that is the destination of the System.Collections.DictionaryEntry objects copied from the System.Collections.DictionaryBase instance. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[20220] GetEnumerator


[20221] [C#] public IDictionaryEnumerator GetEnumerator( );


[20222] [C++] public: _sealed IDictionaryEnumerator* GetEnumerator( );


[20223] [VB] NotOverridable Public Function GetEnumerator( ) As IDictionaryEnumerator


[20224] [JScript] public function GetEnumerator( ): IDictionaryEnumerator;


[20225] Description


[20226] Returns an enumerator that can iterate through the System.Collections.DictionaryBase instance.


[20227] Return Value: An System.Collections.IEnumerator for the System.Collections.DictionaryBase instance.


[20228] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[20229] OnClear


[20230] [C#] protected virtual void OnClear( );


[20231] [C++] protected: virtual void OnClear( );


[20232] [VB] Overridable Protected Sub OnClear( )


[20233] [JScript] protected function OnClear( );


[20234] Description


[20235] Performs additional custom processes before clearing the contents of the System.Collections.DictionaryBase instance.


[20236] The default implementation of this method is intended to be overridden by a derived class to perform some action before the collection is cleared.


[20237] OnClearComplete


[20238] [C#] protected virtual void OnClearComplete( );


[20239] [C++] protected: virtual void OnClearComplete( );


[20240] [VB] Overridable Protected Sub OnClearComplete( )


[20241] [JScript] protected function OnClearComplete( );


[20242] Description


[20243] Performs additional custom processes after clearing the contents of the System.Collections.DictionaryBase instance.


[20244] The default implementation of this method is intended to be overridden by a derived class to perform some action after the collection is cleared.


[20245] OnGet


[20246] [C#] protected virtual object OnGet(object key, object currentValue);


[20247] [C++] protected: virtual Object* OnGet(Object* key, Object* currentValue);


[20248] [VB] Overridable Protected Function OnGet(ByVal key As Object, ByVal currentValue As Object) As Object


[20249] [JScript] protected function OnGet(key: Object, currentValue: Object): Object;


[20250] Description


[20251] Gets the element with the specified key and value in the System.Collections.DictionaryBase instance.


[20252] Return Value: An System.Object containing the element with the specified key and value.


[20253] The default implementation of this method returns currentValue. It is intended to be overridden by a derived class to perform additional action when the specified element is retrieved. The key of the element to get. The current value of the element associated with key.


[20254] OnInsert


[20255] [C#] protected virtual void OnInsert(object key, object value);


[20256] [C++] protected: virtual void OnInsert(Object* key, Object* value);


[20257] [VB] Overridable Protected Sub OnInsert(ByVal key As Object, ByVal value As Object)


[20258] [JScript] protected function OnInsert(key: Object, value: Object);


[20259] Description


[20260] Performs additional custom processes before inserting a new element into the System.Collections.DictionaryBase instance.


[20261] The default implementation of this method is intended to be overridden by a derived class to perform some action before the specified element is inserted. The key of the element to insert. The value of the element to insert.


[20262] OnInsertComplete


[20263] [C#] protected virtual void OnInsertComplete(object key, object value);


[20264] [C++] protected: virtual void OnInsertComplete(Object* key, Object* value);


[20265] [VB] Overridable Protected Sub OnInsertComplete(ByVal key As Object, ByVal value As Object)


[20266] [JScript] protected function OnInsertComplete(key: Object, value: Object);


[20267] Description


[20268] Performs additional custom processes after inserting a new element into the System.Collections.DictionaryBase instance.


[20269] The default implementation of this method is intended to be overridden by a derived class to perform some action after the specified element is inserted. The key of the element to insert. The value of the element to insert.


[20270] OnRemove


[20271] [C#] protected virtual void OnRemove(object key, object value)


[20272] [C++] protected: virtual void OnRemove(Object* key, Object* value);


[20273] [VB] Overridable Protected Sub OnRemove(ByVal key As Object, ByVal value As Object)


[20274] [JScript] protected function OnRemove(key: Object, value: Object);


[20275] Description


[20276] Performs additional custom processes before removing an element from the System.Collections.DictionaryBase instance.


[20277] The default implementation of this method is intended to be overridden by a derived class to perform some action before the specified element is removed. The key of the element to remove. The value of the element to remove.


[20278] OnRemoveComplete


[20279] [C#] protected virtual void OnRemoveComplete(object key, object value);


[20280] [C++] protected: virtual void OnRemoveComplete(Object* key, Object* value);


[20281] [VB] Overridable Protected Sub OnRemoveComplete(ByVal key As Object, ByVal value As Object)


[20282] [JScript] protected function OnRemoveComplete(key: Object, value: Object);


[20283] Description


[20284] Performs additional custom processes after removing an element from the System.Collections.DictionaryBase instance.


[20285] The default implementation of this method is intended to be overridden by a derived class to perform some action after the specified element is removed. The key of the element to remove. The value of the element to remove.


[20286] OnSet


[20287] [C#] protected virtual void OnSet(object key, object oldValue, object newValue);


[20288] [C++] protected: virtual void OnSet(Object* key, Object* oldValue, Object* newValue);


[20289] [VB] Overridable Protected Sub OnSet(ByVal key As Object, ByVal oldValue As Object, ByVal newValue As Object)


[20290] [JScript] protected function OnSet(key: Object, oldValue: Object, newValue: Object);


[20291] Description


[20292] Performs additional custom processes before setting a value in the System.Collections.DictionaryBase instance.


[20293] The default implementation of this method is intended to be overridden by a derived class to perform some action before the specified element is set. The key of the element to locate. The old value of the element associated with key. The new value of the element associated with key.


[20294] OnSetComplete


[20295] [C#] protected virtual void OnSetComplete(object key, object oldValue, object newValue);


[20296] [C++] protected: virtual void OnSetComplete(Object* key, Object* oldValue, Object* newValue);


[20297] [VB] Overridable Protected Sub OnSetComplete(ByVal key As Object, ByVal oldValue As Object, ByVal newValue As Object)


[20298] [JScript] protected function OnSetComplete(key: Object, oldValue: Object, newValue: Object);


[20299] Description


[20300] Performs additional custom processes after setting a value in the System.Collections.DictionaryBase instance.


[20301] The default implementation of this method is intended to be overridden by a derived class to perform some action after the specified element is set. The key of the element to locate. The old value of the element associated with key. The new value of the element associated with key.


[20302] OnValidate


[20303] [C#] protected virtual void OnValidate(object key, object value);


[20304] [C++] protected: virtual void OnValidate(Object* key, Object* value);


[20305] [VB] Overridable Protected Sub OnValidate(ByVal key As Object, ByVal value As Object)


[20306] [JScript] protected function OnValidate(key: Object, value: Object);


[20307] Description


[20308] Performs additional custom processes when validating the element with the specified key and value.


[20309] The default implementation of this method is intended to be overridden by a derived class to perform some action when the specified element is validated. The key of the element to validate. The value of the element to validate.


[20310] IDictionary.Add


[20311] [C#] void IDictionary.Add(object key, object value);


[20312] [C++] void IDictionary::Add(Object* key, Object* value);


[20313] [VB] Sub Add(ByVal key As Object, ByVal value As Object) Implements IDictionary.Add


[20314] [JScript] function IDictionary.Add(key: Object, value: Object);


[20315] IDictionary.Contains


[20316] [C#] bool IDictionary.Contains(object key);


[20317] [C++] bool IDictionary::Contains(Object* key);


[20318] [VB] Function Contains(ByVal key As Object) As Boolean Implements IDictionary.Contains


[20319] [JScript] function IDictionary.Contains(key: Object): Boolean;


[20320] IDictionary.Remove


[20321] [C#] void IDictionary.Remove(object key);


[20322] [C++] void IDictionary::Remove(Object* key);


[20323] [VB] Sub Remove(ByVal key As Object) Implements IDictionary.Remove


[20324] [JScript] function IDictionary.Remove(key: Object);


[20325] IEnumerable.GetEnumerator


[20326] [C#] IEnumerator IEnumerable.GetEnumerator( );


[20327] [C++] IEnumerator* IEnumerable::GetEnumerator( );


[20328] [VB] Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator


[20329] [JScript] function IEnumerable.GetEnumerator( ): IEnumerator;


[20330] DictionaryEntry structure (System.Collections)


[20331] ToString


[20332] Description


[20333] Defines a dictionary key-and-value pair that can be set or retrieved.


[20334] The System.Collections.IDictionaryEnumerator.Entry method returns an instance of this class.


[20335] DictionaryEntry


[20336] Example Syntax:


[20337] ToString


[20338] [C#] public DictionaryEntry(object key, object value);


[20339] [C++] public: DictionaryEntry(Object* key, Object* value);


[20340] [VB] Public Sub New(ByVal key As Object, ByVal value As Object)


[20341] [JScript] public function DictionaryEntry(key: Object, value: Object);


[20342] Description


[20343] Initializes an instance of the System.Collections.DictionaryEntry class with the specified key and value. The object defined in each key-and-value pair. The definition associated with key.


[20344] Key


[20345] ToString


[20346] [C#] public object Key {get; set;}


[20347] [C++] public: _property Object* get_Key( ); public: _property void set_Key(Object*);


[20348] [VB] Public Property Key As Object


[20349] [JScript] public function get Key( ): Object; public function set Key(Object);


[20350] Description


[20351] Gets or sets the key in the key-and-value pair.


[20352] Value


[20353] ToString


[20354] [C#] public object Value {get; set;}


[20355] [C++] public: _property Object* get_Value( ); public: _property void set_Value(Object*);


[20356] [VB] Public Property Value As Object


[20357] [JScript] public function get Value( ): Object; public function set Value(Object);


[20358] Description


[20359] Gets or sets the value in the key-and-value pair.


[20360] Hashtable class (System.Collections)


[20361] ToString


[20362] Description


[20363] Represents a collection of key-and-value pairs that are organized based on the hash code of the key.


[20364] Each element is a key-and-value pair stored in a System.Collections.DictionaryEntry object.


[20365] Hashtable


[20366] Example Syntax:


[20367] ToString


[20368] [C#] public Hashtable( );


[20369] [C++] public: Hashtable( );


[20370] [VB] Public Sub New( )


[20371] [JScript] public function Hashtable( ); Initializes a new instance of the System.Collections.Hashtable class.


[20372] Description


[20373] Creates an empty System.Collections.Hashtable with the default initial capacity and using the default load factor, the default hash code provider and the default comparer.


[20374] A hashtable's capacity is used to calculate the optimal number of hashtable buckets based on the load factor. The default initial capacity is zero. Capacity is automatically increased as required.


[20375] Hashtable


[20376] Example Syntax:


[20377] ToString


[20378] [C#] public Hashtable(IDictionary d);


[20379] [C++] public: Hashtable(IDictionary* d);


[20380] [VB] Public Sub New(ByVal d As IDictionary)


[20381] [JScript] public function Hashtable(d: IDictionary);


[20382] Description


[20383] Copies the elements from the specified dictionary to a new System.Collections.Hashtable with the same initial capacity as the number of elements copied and using the default load factor, the default hash code provider and the default comparer.


[20384] The initial capacity is set to the number of elements in the source dictionary. Capacity is automatically increased as required based on the load factor. The System.Collections.IDictionary to copy to a new System.Collections.Hashtable.


[20385] Hashtable


[20386] Example Syntax:


[20387] ToString


[20388] [C#] public Hashtable(int capacity);


[20389] [C++] public: Hashtable(int capacity);


[20390] [VB] Public Sub New(ByVal capacity As Integer)


[20391] [JScript] public function Hashtable(capacity: int);


[20392] Description


[20393] Creates an empty System.Collections.Hashtable with the specified initial capacity and using the default load factor, the default hash code provider and the default comparer.


[20394] Specifying the initial capacity eliminates the need to perform a number of resizing operations while adding elements to the System.Collections.Hashtable. Capacity is automatically increased as required based on the load factor. The approximate number of elements that the System.Collections.Hashtable can initially contain.


[20395] Hashtable


[20396] Example Syntax:


[20397] ToString


[20398] [C#] public Hashtable(IDictionary d, float loadFactor);


[20399] [C++] public: Hashtable(IDictionary* d, float loadFactor);


[20400] [VB] Public Sub New(ByVal d As IDictionary, ByVal loadFactor As Single)


[20401] [JScript] public function Hashtable(d: IDictionary, loadFactor: float);


[20402] Description


[20403] Copies the elements from the specified dictionary to a new System.Collections.Hashtable with the same initial capacity as the number of elements copied and using the specified load factor, the default hash code provider and the default comparer.


[20404] The initial capacity is set to the number of elements in the source dictionary. Capacity is automatically increased as required based on the load factor. The System.Collections.IDictionary to copy to a new System.Collections.Hashtable. A number in the range from 0.1 through 1.0 indicating the maximum ratio of elements to buckets.


[20405] Hashtable


[20406] Example Syntax:


[20407] ToString


[20408] [C#] public Hashtable(IHashCodeProvider hcp, IComparer comparer);


[20409] [C++] public: Hashtable(IHashCodeProvider* hcp, IComparer* comparer);


[20410] [VB] Public Sub New(ByVal hcp As IHashCodeProvider, ByVal comparer As IComparer)


[20411] [JScript] public function Hashtable(hcp: IHashCodeProvider, comparer: IComparer);


[20412] Description


[20413] Creates an empty System.Collections.Hashtable with the default initial capacity and using the default load factor, the specified hash code provider and the specified comparer.


[20414] A hashtable's capacity is used to calculate the optimal number of hashtable buckets based on the load factor. The default initial capacity is zero. Capacity is automatically increased as required. The System.Collections.IHashCodeProvider that supplies the hash codes for all keys in the System.Collections.Hashtable. The System.Collections.IComparer to use to determine whether two keys are equal.


[20415] Hashtable


[20416] Example Syntax:


[20417] ToString


[20418] [C#] public Hashtable(int capacity, float loadFactor);


[20419] [C++] public: Hashtable(int capacity, float loadFactor);


[20420] [VB] Public Sub New(ByVal capacity As Integer, ByVal loadFactor As Single)


[20421] [JScript] public function Hashtable(capacity: int, loadFactor: float);


[20422] Description


[20423] Creates an empty System.Collections.Hashtable with the specified initial capacity and using the specified load factor, the default hash code provider and the default comparer.


[20424] Specifying the initial capacity eliminates the need to perform a number of resizing operations while adding elements to the System.Collections.Hashtable. Capacity is automatically increased as required based on the load factor. The approximate number of elements that the System.Collections.Hashtable can initially contain. A number in the range from 0.1 through 1.0 indicating the maximum ratio of elements to buckets.


[20425] Hashtable


[20426] Example Syntax:


[20427] ToString


[20428] [C#] protected Hashtable(SerializationInfo info, StreamingContext context);


[20429] [C++] protected: Hashtable(SerializationInfo* info, StreamingContext context);


[20430] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[20431] [JScript] protected function Hashtable(info: SerializationInfo, context: StreamingContext);


[20432] Hashtable


[20433] Example Syntax:


[20434] ToString


[20435] [C#] public Hashtable(IDictionary d, IHashCodeProvider hcp, IComparer comparer);


[20436] [C++] public: Hashtable(IDictionary* d, IHashCodeProvider* hcp, IComparer* comparer);


[20437] [VB] Public Sub New(ByVal d As IDictionary, ByVal hcp As IHashCodeProvider, ByVal comparer As IComparer)


[20438] [JScript] public function Hashtable(d: IDictionary, hcp: IHashCodeProvider, comparer: IComparer);


[20439] Description


[20440] Copies the elements from the specified dictionary to a new System.Collections.Hashtable with the same initial capacity as the number of elements copied and using the default load factor, the specified hash code provider and the specified comparer.


[20441] The initial capacity is set to the number of elements in the source dictionary. Capacity is automatically increased as required based on the load factor. The System.Collections.IDictionary to copy to a new System.Collections.Hashtable. The System.Collections.IHashCodeProvider that supplies the hash codes for all keys in the System.Collections.Hashtable. The System.Collections.IComparer to use to determine whether two keys are equal.


[20442] Hashtable


[20443] Example Syntax:


[20444] ToString


[20445] [C#] public Hashtable(int capacity, IHashCodeProvider hcp, IComparer comparer);


[20446] [C++] public: Hashtable(int capacity, IHashCodeProvider* hcp, IComparer* comparer);


[20447] [VB] Public Sub New(ByVal capacity As Integer, ByVal hcp As IHashCodeProvider, ByVal comparer As IComparer)


[20448] [JScript] public function Hashtable(capacity: int, hcp: IHashCodeProvider, comparer: IComparer);


[20449] Description


[20450] Creates an empty System.Collections.Hashtable with the specified initial capacity and using the default load factor, the specified hash code provider and the specified comparer.


[20451] Specifying the initial capacity eliminates the need to perform a number of resizing operations while adding elements to the System.Collections.Hashtable. Capacity is automatically increased as required based on the load factor. The approximate number of elements that the System.Collections.Hashtable can initially contain. The System.Collections.IHashCodeProvider that supplies the hash codes for all keys in the System.Collections.Hashtable. The System.Collections.IComparer to use to determine whether two keys are equal.


[20452] Hashtable


[20453] Example Syntax:


[20454] ToString


[20455] [C#] public Hashtable(IDictionary d, float loadFactor, IHashCodeProvider hcp, IComparer comparer);


[20456] [C++] public: Hashtable(IDictionary* d, float loadFactor, IHashCodeProvider* hcp, IComparer* comparer);


[20457] [VB] Public Sub New(ByVal d As IDictionary, ByVal loadFactor As Single, ByVal hcp As IHashCodeProvider, ByVal comparer As IComparer)


[20458] [JScript] public function Hashtable(d: IDictionary, loadFactor: float, hcp: IHashCodeProvider, comparer: IComparer);


[20459] Description


[20460] Copies the elements from the specified dictionary to a new System.Collections.Hashtable with the same initial capacity as the number of elements copied and using the specified load factor, the specified hash code provider and the specified comparer.


[20461] The initial capacity is set to the number of elements in the source dictionary. Capacity is automatically increased as required based on the load factor. The System.Collections.IDictionary to copy to a new System.Collections.Hashtable. A number in the range from 0.1 through 1.0 indicating the maximum ratio of elements to buckets. The System.Collections.IHashCodeProvider that supplies the hash codes for all keys in the System.Collections.Hashtable. The System.Collections.IComparer to use to determine whether two keys are equal.


[20462] Hashtable


[20463] Example Syntax:


[20464] ToString


[20465] [C#] public Hashtable(int capacity, float loadFactor, IHashCodeProvider hcp, IComparer comparer);


[20466] [C++] public: Hashtable(int capacity, float loadFactor, IHashCodeProvider* hcp, IComparer* comparer);


[20467] [VB] Public Sub New(ByVal capacity As Integer, ByVal loadFactor As Single, ByVal hcp As IHashCodeProvider, ByVal comparer As IComparer)


[20468] [JScript] public function Hashtable(capacity: int, loadFactor: float, hcp: IHashCodeProvider, comparer: IComparer);


[20469] Description


[20470] Creates an empty System.Collections.Hashtable with the specified initial capacity and using the specified load factor, the specified hash code provider and the specified comparer.


[20471] Specifying the initial capacity eliminates the need to perform a number of resizing operations while adding elements to the System.Collections.Hashtable. Capacity is automatically increased as required based on the load factor. The approximate number of elements that the System.Collections.Hashtable can initially contain. A number in the range from 0.1 through 1.0 indicating the maximum ratio of elements to buckets. The System.Collections.IHashCodeProvider that supplies the hash codes for all keys in the System.Collections.Hashtable. The System.Collections.IComparer to use to determine whether two keys are equal.


[20472] comparer


[20473] ToString


[20474] [C#] protected IComparer comparer {get; set;}


[20475] [C++] protected: _property IComparer* get_comparer( ); protected: _property void set_comparer(IComparer*);


[20476] [VB] Protected Property comparer As IComparer


[20477] [JScript] protected function get comparer( ): IComparer; protected function set comparer(IComparer);


[20478] Description


[20479] Gets or sets the comparer to use for the System.Collections.Hashtable.


[20480] Count


[20481] ToString


[20482] [C#] public virtual int Count {get;}


[20483] [C++] public: _property virtual int get_Count( );


[20484] [VB] Overridable Public ReadOnly Property Count As Integer


[20485] [JScript] public function get Count( ): int;


[20486] Description


[20487] Gets the number of key-and-value pairs contained in the System.Collections.Hashtable.


[20488] hcp


[20489] ToString


[20490] [C#] protected IHashCodeProvider hcp {get; set;}


[20491] [C++] protected: _property IHashCodeProvider* get_hcp( );protected: _property void set_hcp(IHashCodeProvider*);


[20492] [VB] Protected Property hcp As IHashCodeProvider


[20493] [JScript] protected function get hcp( ): IHashCodeProvider;protected function set hcp(IHashCodeProvider);


[20494] Description


[20495] Gets or sets the object that can dispense hash codes.


[20496] IsFixedSize


[20497] ToString


[20498] [C#] public virtual bool IsFixedSize {get;}


[20499] [C++] public: _property virtual bool get_IsFixedSize( );


[20500] [VB] Overridable Public ReadOnly Property IsFixedSize As Boolean


[20501] [JScript] public function get IsFixedSize( ): Boolean;


[20502] Description


[20503] Gets a value indicating whether the System.Collections.Hashtable has a fixed size.


[20504] A collection with a fixed size does not allow the addition or removal of elements, but it allows the modification of existing elements.


[20505] IsReadOnly


[20506] ToString


[20507] [C#] public virtual bool IsReadOnly {get;}


[20508] [C++] public: _property virtual bool get_IsReadOnly( );


[20509] [VB] Overridable Public ReadOnly Property IsReadOnly As Boolean


[20510] [JScript] public function get IsReadOnly( ): Boolean;


[20511] Description


[20512] Gets a value indicating whether the System.Collections.Hashtable is read-only.


[20513] IsSynchronized


[20514] ToString


[20515] [C#] public virtual bool IsSynchronized {get;}


[20516] [C++] public: _property virtual bool get_IsSynchronized( );


[20517] [VB] Overridable Public ReadOnly Property IsSynchronized As Boolean


[20518] [JScript] public function get IsSynchronized( ): Boolean;


[20519] Description


[20520] Gets a value indicating whether access to the System.Collections.Hashtable is synchronized (thread-safe).


[20521] A System.Collections.Hashtable can safely support one writer and multiple readers concurrently. To support multiple writers, all operations must be done through the wrapper returned by the System.Collections.Hashtable.Synchronized(System.Collections.Hashtable) method.


[20522] Item


[20523] ToString


[20524] [C#] public virtual object this[object key] {get; set;}


[20525] [C++] public: _property virtual Object* get_Item(Object* key);public:


[20526] _property virtual void set_Item(Object* key, Object*);


[20527] [VB] Overridable Public Default Property Item(ByVal key As Object) As Object


[20528] [JScript] return Value = HashtableObject.Item(key); HashtableObject.Item(key) = return Value;


[20529] Description


[20530] Gets or sets the value associated with the specified key.


[20531] This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[key]. The key whose value to get or set.


[20532] Keys


[20533] ToString


[20534] [C#] public virtual ICollection Keys {get;}


[20535] [C++] public: _property virtual ICollection* get_Keys( );


[20536] [VB] Overridable Public ReadOnly Property Keys As ICollection


[20537] [JScript] public function get Keys( ): ICollection;


[20538] Description


[20539] Gets an System.Collections.ICollection containing the keys in the System.Collections.Hashtable.


[20540] The order of the keys in the System.Collections.ICollection is unspecified, but it is the same order as the associated values in the System.Collections.ICollection returned by the System.Collections.Hashtable.Values method.


[20541] SyncRoot


[20542] ToString


[20543] [C#] public virtual object SyncRoot {get;}


[20544] [C++] public: _property virtual Object* get_SyncRoot( );


[20545] [VB] Overridable Public ReadOnly Property SyncRoot As Object


[20546] [JScript] public function get SyncRoot( ): Object;


[20547] Description


[20548] Gets an object that can be used to synchronize access to the System.Collections.Hashtable.


[20549] To create a synchronized version of the System.Collections.Hashtable, use the System.Collections.Hashtable.Synchronized(System.Collections.Hashtable) method. However, derived classes can provide their own synchronized version of the System.Collections.Hashtable using the System.Collections.Hashtable.SyncRoot property. The synchronizing code must perform operations on the System.Collections.Hashtable.SyncRoot of the System.Collections.Hashtable, not directly on the System.Collections.Hashtable. This ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the System.Collections.Hashtable object.


[20550] Values


[20551] ToString


[20552] [C#] public virtual ICollection Values {get;}


[20553] [C++] public: _property virtual ICollection* get_Values( );


[20554] [VB] Overridable Public ReadOnly Property Values As ICollection


[20555] [JScript] public function get Values( ): ICollection;


[20556] Description


[20557] Gets an System.Collections.ICollection containing the values in the System.Collections.Hashtable.


[20558] The order of the values in the System.Collections.ICollection is unspecified, but it is the same order as the associated keys in the System.Collections.ICollection returned by the System.Collections.Hashtable.Keys method.


[20559] Add


[20560] [C#] public virtual void Add(object key, object value);


[20561] [C++] public: virtual void Add(Object* key, Object* value);


[20562] [VB] Overridable Public Sub Add(ByVal key As Object, ByVal value As Object)


[20563] [JScript] public function Add(key: Object, value: Object);


[20564] Description


[20565] Adds an element with the specified key and value into the System.Collections.Hashtable.


[20566] An object that has no correlation between its state and its hash code value should typically not be used as the key. For example, String objects are better than StringBuilder objects for use as keys. The key of the element to add. The value of the element to add.


[20567] Clear


[20568] [C#] public virtual void Clear( );


[20569] [C++] public: virtual void Clear( );


[20570] [VB] Overridable Public Sub Clear( )


[20571] [JScript] public function Clear( );


[20572] Description


[20573] Removes all elements from the System.Collections.Hashtable.


[20574] System.Collections.Hashtable.Count is set to zero.


[20575] Clone


[20576] [C#] public virtual object Clone( );


[20577] [C++] public: virtual Object* Clone( );


[20578] [VB] Overridable Public Function Clone( ) As Object


[20579] [JScript] public function Clone( ): Object;


[20580] Description


[20581] Creates a shallow copy of the System.Collections.Hashtable.


[20582] Return Value: A shallow copy of the System.Collections.Hashtable.


[20583] A shallow copy of a collection is a new collection containing references to the same elements as the original collection. The elements themselves or anything referenced by the elements are not copied. In contrast, a deep copy of a collection copies the elements and everything directly or indirectly referenced by the elements.


[20584] Contains


[20585] [C#] public virtual bool Contains(object key);


[20586] [C++] public: virtual bool Contains(Object* key);


[20587] [VB] Overridable Public Function Contains(ByVal key As Object) As Boolean


[20588] [JScript] public function Contains(key: Object): Boolean;


[20589] Description


[20590] Determines whether the System.Collections.Hashtable contains a specific key.


[20591] Return Value: true if the System.Collections.Hashtable contains an element with the specified key; otherwise, false.


[20592] This implementation is close to O(1) in most cases. The key to locate in the System.Collections.Hashtable.


[20593] ContainsKey


[20594] [C#] public virtual bool ContainsKey(object key);


[20595] [C++] public: virtual bool ContainsKey(Object* key);


[20596] [VB] Overridable Public Function ContainsKey(ByVal key As Object) As Boolean


[20597] [JScript] public function ContainsKey(key: Object): Boolean;


[20598] Description


[20599] Determines whether the System.Collections.Hashtable contains a specific key.


[20600] Return Value: true if the System.Collections.Hashtable contains an element with the specified key; otherwise, false.


[20601] This implementation is close to O(1) in most cases. The key to locate in the System.Collections.Hashtable.


[20602] ContainsValue


[20603] [C#] public virtual bool Contains Value(object value);


[20604] [C++] public: virtual bool Contains Value(Object* value);


[20605] [VB] Overridable Public Function Contains Value(ByVal value As Object) As Boolean


[20606] [JScript] public function Contains Value(value: Object): Boolean;


[20607] Description


[20608] Determines whether the System.Collections.Hashtable contains a specific value.


[20609] Return Value: true if the System.Collections.Hashtable contains an element with the specified value; otherwise, false.


[20610] This method performs a linear search; therefore, the average execution time is proportional to System.Collections.Hashtable.Count. That is, this method is an O(n) operation, where n is System.Collections.Hashtable.Count. The value to locate in the System.Collections.Hashtable.


[20611] CopyTo


[20612] [C#] public virtual void CopyTo(Array array, int arrayIndex);


[20613] [++] public: virtual void CopyTo(Array* array, int arrayIndex);


[20614] [VB] Overridable Public Sub CopyTo(ByVal array As Array, ByVal arrayIndex As Integer)


[20615] [JScript] public function CopyTo(array: Array, arrayIndex: int);


[20616] Description


[20617] Copies the System.Collections.Hashtable elements to a one-dimensional System.Array instance at the specified index.


[20618] The elements are copied to the System.Array in the same order in which the enumerator iterates through the System.Collections.Hashtable. The one-dimensional System.Array that is the destination of the System.Collections.DictionaryEntry objects copied from System.Collections.Hashtable. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[20619] GetEnumerator


[20620] [C#] public virtual IDictionaryEnumerator GetEnumerator( );


[20621] [C++] public: virtual IDictionaryEnumerator* GetEnumerator( );


[20622] [VB] Overridable Public Function GetEnumerator( ) As IDictionaryEnumerator


[20623] [JScript] public function GetEnumerator( ): IDictionaryEnumerator;


[20624] Description


[20625] Returns an enumerator that can iterate through the System.Collections.Hashtable.


[20626] Return Value: An System.Collections.IDictionaryEnumerator for the System.Collections.Hashtable.


[20627] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[20628] GetHash


[20629] [C+] protected virtual int GetHash(object key);


[20630] [C++] protected: virtual int GetHash(Object* key);


[20631] [VB] Overridable Protected Function GetHash(ByVal key As Object) As Integer


[20632] [JScript] protected function GetHash(key: Object): int;


[20633] Description


[20634] Returns the hash code for the specified key.


[20635] Return Value: The hash code for key.


[20636] If the hashtable was created with a specific System.Collections.IHashCodeProvider implementation, this method uses that hash code provider; otherwise, it uses the System.Object.GetHashCode implementation of key. The System.Object for which a hash code is to be returned.


[20637] GetObjectData


[20638] [C#] public virtual void GetObjectData(SerializationInfo info, StreamingContext context);


[20639] [C++] public: virtual void GetObjectData(SerializationInfo* info, StreamingContext context);


[20640] [VB] Overridable Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[20641] [JScript] public function GetObjectData(info: SerializationInfo, context: StreamingContext);


[20642] Description


[20643] Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the System.Collections.Hashtable. A System.Runtime.Serialization.SerializationInfo object containing the information required to serialize the System.Collections.Hashtable. A System.Runtime.Serialization.StreamingContext object containing the source and destination of the serialized stream associated with the System.Collections.Hashtable.


[20644] KeyEquals


[20645] [C#] protected virtual bool KeyEquals(object item, object key);


[20646] [C++] protected: virtual bool KeyEquals(Object* item, Object* key);


[20647] [VB] Overridable Protected Function KeyEquals(ByVal item As Object, ByVal key As Object) As Boolean


[20648] [JScript] protected function KeyEquals(item: Object, key: Object): Boolean;


[20649] Description


[20650] Compares a specific System.Object with a specific key in the System.Collections.Hashtable.


[20651] Return Value: true if item and key are equal; otherwise, false.


[20652] If the hashtable was created with a specific System.Collections.IComparer implementation, this method uses that comparer; that is, System.Collections.IComparer.Compare(System.Object,System.Object) (item , key). Otherwise, it uses item.Equals(key). The System.Object to compare with key. The key in the System.Collections.Hashtable to compare with item.


[20653] OnDeserialization


[20654] [C#] public virtual void OnDeserialization(object sender);


[20655] [C++] public: virtual void OnDeseriaization(Object* sender);


[20656] [VB] Overridable Public Sub OnDeserialization(ByVal sender As Object)


[20657] [JScript] public function OnDeserialization(sender: Object);


[20658] Description


[20659] Implements the System.Runtime.Serialization.ISerializable interface and raises the deserialization event when the deserialization is complete. The source of the deserialization event.


[20660] Remove


[20661] [C#] public virtual void Remove(object key);


[20662] [C++] public: virtual void Remove(Object* key);


[20663] [VB] Overridable Public Sub Remove(ByVal key As Object)


[20664] [JScript] public function Remove(key: Object);


[20665] Description


[20666] Removes the element with the specified key from the System.Collections.Hashtable.


[20667] If the System.Collections.Hashtable does not contain an element with the specified key, the System.Collections.Hashtable remains unchanged. No exception is thrown. The key of the element to remove.


[20668] Synchronized


[20669] [C+] public static Hashtable Synchronized(Hashtable table);


[20670] [C++] public: static Hashtable* Synchronized(Hashtable* table);


[20671] [VB] Public Shared Function Synchronized(ByVal table As Hashtable) As Hashtable


[20672] [JScript] public static function Synchronized(table: Hashtable): Hashtable;


[20673] Description


[20674] Returns a synchronized (thread-safe) wrapper for the System.Collections.Hashtable.


[20675] Return Value: A synchronized (thread-safe) wrapper for the System.Collections.Hashtable.


[20676] A System.Collections.Hashtable can safely support one writer and multiple readers concurrently. To support multiple writers, all operations must be done through this wrapper only. The System.Collections.Hashtable to synchronize.


[20677] IEnumerable.GetEnumerator


[20678] [C#] IEnumerator IEnumerable.GetEnumerator( );


[20679] [C++] IEnumerator* IEnumerable::GetEnumerator( );


[20680] [VB] Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator


[20681] [JScript] function IEnumerable.GetEnumerator( ): IEnumerator;


[20682] ICollection interface (System.Collections)


[20683] ToString


[20684] Description


[20685] Defines size, enumerators and synchronization methods for all collections.


[20686] The System.Collections.ICollection interface is the base interface for classes in the System.Collections namespace.


[20687] Count


[20688] ToString


[20689] [C#] int Count {get;}


[20690] [C++] int_get Count( );


[20691] [VB] ReadOnly Property Count As Integer


[20692] [JScript] abstract function get Count( ): int;


[20693] Description


[20694] When implemented by a class, gets the number of elements contained in the System.Collections.ICollection.


[20695] IsSynchronized


[20696] ToString


[20697] [C#] bool IsSynchronized {get;}


[20698] [C++] bool get_IsSynchronized( );


[20699] [VB] ReadOnly Property IsSynchronized As Boolean


[20700] [JScript] abstract function get IsSynchronized( ): Boolean;


[20701] Description


[20702] When implemented by a class, gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread-safe).


[20703] System.Collections.ICollection.SyncRoot returns an object, which can be used to synchronize access to the System.Collections.ICollection


[20704] SyncRoot


[20705] ToString


[20706] [C#] object SyncRoot {get;}


[20707] [C++] Object* get_SyncRoot( );


[20708] [VB] ReadOnly Property SyncRoot As Object


[20709] [JScript] abstract function get SyncRoot( ): Object;


[20710] Description


[20711] When implemented by a class, gets an object that can be used to synchronize access to the System.Collections.ICollection.


[20712] For collections whose underlying store is not publicly available, the expected implementation is to return the current instance. Note that the pointer to the current instance might not be sufficient for collections that wrap other collections; those should return the underlying collection's SyncRoot property.


[20713] CopyTo


[20714] [C#] void CopyTo(Array array, int index);


[20715] [C++] void CopyTo(Array* array, int index);


[20716] [VB] Sub CopyTo(ByVal array As Array, ByVal index As Integer)


[20717] [JScript] function CopyTo(array: Array, index: int);


[20718] Description


[20719] When implemented by a class, copies the elements of the System.Collections.ICollection to an System.Array, starting at a particular System.Array index. The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ICollection. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[20720] IComparer interface (System.Collections)


[20721] CopyTo


[20722] Description


[20723] Exposes a method that compares two objects.


[20724] This interface is used in conjunction with the System.Array.Sort(System.Array) and System.Array.BinarySearch(System.Array,System.Object) methods. It provides a way to customize the sort order of a collection.


[20725] Compare


[20726] [C#] int Compare(object x, object y);


[20727] [C++] int Compare(Object* x, Object* y);


[20728] [VB] Function Compare(ByVal x As Object, ByVal y As Object) As Integer


[20729] [JScript] function Compare(x: Object, y: Object): int;


[20730] Description


[20731] Compares two objects and returns a value indicating whether one is less than, equal to or greater than the other.


[20732] Return Value: Value Condition Less than zero x is less than y.


[20733] The preferred implementation is to use the System.IComparable.CompareTo(System.Object) method of one of the parameters. First object to compare. Second object to compare.


[20734] IDictionary interface (System.Collections)


[20735] Compare


[20736] Description


[20737] Represents a collection of key-and-value pairs.


[20738] The System.Collections.IDictionary class is the base interface for collections of key-and-value pairs.


[20739] IsFixedSize


[20740] Compare


[20741] [C#] bool IsFixedSize {get;}


[20742] [C++] bool get_IsFixedSize( );


[20743] [VB] ReadOnly Property IsFixedSize As Boolean


[20744] [JScript] abstract function get IsFixedSize( ): Boolean;


[20745] Description


[20746] When implemented by a class, gets a value indicating whether the System.Collections.IDictionary has a fixed size.


[20747] A collection with a fixed size does not allow the addition or removal of elements, but it allows the modification of existing elements.


[20748] IsReadOnly


[20749] Compare


[20750] [C#] bool IsReadOnly {get;}


[20751] [C++] bool get_IsReadOnly( );


[20752] [VB] ReadOnly Property IsReadOnly As Boolean


[20753] [JScript] abstract function get IsReadOnly( ): Boolean;


[20754] Description


[20755] When implemented by a class, gets a value indicating whether the System.Collections.IDictionary is read-only.


[20756] Item


[20757] Compare


[20758] [C#] object this[object key] {get; set;}


[20759] [C++] Object* get_Item(Object* key);void set_Item(Object* key, Object*);


[20760] [VB] Default Property Item(ByVal key As Object) As Object


[20761] [JScript] abstract returnValue=. IDictionaryObject.Item(key);IDictionaryObject.Item(key)=returnvalue;


[20762] Description


[20763] When implemented by a class, gets or sets the element with the specified key.


[20764] This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[key]. The key of the element to get or set.


[20765] Keys


[20766] Compare


[20767] [C#] ICollection Keys {get;}


[20768] [C++] ICollection* get_Keys( );


[20769] [VB] ReadOnly Property Keys As ICollection [JScript] abstract function get Keys( ): ICollection;


[20770] Description


[20771] When implemented by a class, gets an System.Collections.ICollection containing the keys of the System.Collections.IDictionary.


[20772] The order of the keys in the returned System.Collections.ICollection is unspecified, but it is guaranteed to be the same order as the corresponding values in the System.Collections.ICollection returned by the System.Collections.IDictionary.Values method.


[20773] Values


[20774] Compare


[20775] [C#] ICollection Values {get;}


[20776] [C++] ICollection* get_Values( );


[20777] [VB] ReadOnly Property Values As ICollection


[20778] [JScript] abstract function get Values( ): ICollection;


[20779] Description


[20780] When implemented by a class, gets an System.Collections.ICollection containing the values in the System.CollectionsIDictionary


[20781] The order of the values in the returned System.Collections.ICollection is unspecified, but it is guaranteed to be the same order as the corresponding keys in the System.Collections.ICollection returned by the System.Collections.IDictionary.Keys method.


[20782] Add


[20783] [C#] void Add(object key, object value);


[20784] [C++] void Add(Object* key, Object* value);


[20785] [VB] Sub Add(ByVal key As Object, ByVal value As Object)


[20786] [JScript] function Add(key: Object, value: Object);


[20787] Description


[20788] When implemented by a class, adds an element with the provided key and value to the System.Collections.IDictionary.


[20789] The System.Collections.IDictionary.Item(System.Object) property can also be used to add new elements by setting the value of a key that does not exist in the dictionary. For example: myCollection[“myNonexistentKey”]=myvalue. However, if the specified key already exists in the dictionary, setting the System.Collections.IDictionary.Item(System.Object) property overwrites the old value. In contrast, the System.Collections.IDictionary.Add(System.Object,System.Object) method does not modify existing elements. The System.Object to use as the key of the element to add. The System.Object to use as the value of the element to add.


[20790] Clear


[20791] [C#] void Clear( );


[20792] [C++] void Clear( );


[20793] [VB] Sub Clear( )


[20794] [JScript] function Clear( );


[20795] Description


[20796] When implemented by a class, removes all elements from the System.Collections.IDictionary.


[20797] Contains


[20798] [C#] bool Contains(object key);


[20799] [C++] bool Contains(Object* key);


[20800] [VB] Function Contains(ByVal key As Object) As Boolean


[20801] [JScript] function Contains(key: Object): Boolean;


[20802] Description


[20803] When implemented by a class, determines whether the System.Collections.IDictionary contains an element with the specified key.


[20804] Return Value: true if the System.Collections.IDictionary contains an element with the key; otherwise, false. The key to locate in the System.Collections.IDictionary.


[20805] GetEnumerator


[20806] [C#] IDictionaryEnumerator GetEnumerator( );


[20807] [C++] IDictionaryEnumerator* GetEnumerator( );


[20808] [VB] Function GetEnumerator( ) As IDictionaryEnumerator


[20809] [JScript] function GetEnumerator( ): IDictionaryEnumerator;


[20810] Description


[20811] When implemented by a class, returns an System.Collections.IDictionaryEnumerator for the System.Collections.IDictionary.


[20812] Return Value: An System.Collections.IDictionaryEnumerator for the System.Collections.IDictionary.


[20813] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[20814] Remove


[20815] [C#] void Remove(object key);


[20816] [C++] void Remove(Object* key);


[20817] [VB] Sub Remove(ByVal key As Object)


[20818] [JScript] function Remove(key: Object);


[20819] Description


[20820] When implemented by a class, removes the element with the specified key from the System.Collections.IDictionary.


[20821] In collections such as lists, queues and stacks, the elements that follow the removed element move up to occupy the vacated spot. The key of the element to remove.


[20822] IDictionaryEnumerator interface (System.Collections)


[20823] Remove


[20824] Description


[20825] Enumerates the elements of a dictionary.


[20826] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[20827] Entry


[20828] Remove


[20829] [C#] DictionaryEntry Entry {get;}


[20830] [C++] DictionaryEntry get_Entry( );


[20831] [VB] ReadOnly Property Entry As DictionaryEntry


[20832] [JScript] abstract function get Entry( ): DictionaryEntry;


[20833] Description


[20834] When implemented by a class, gets both the key and the value of the current dictionary entry.


[20835] After an enumerator is created or after a System.Collections.IEnumerator.Reset, System.Collections.IEnumerator.MoveNext must be called to advance the enumerator to the first element of the collection before reading the value of System.Collections.IDictionaryEnumerator.Entry; otherwise, System.Collections.IDictionaryEnumerator.Entry is undefined.


[20836] Key


[20837] Remove


[20838] [C#] object Key {get;}


[20839] [C++] Object* get_Key( );


[20840] [VB] ReadOnly Property Key As Object


[20841] [JScript] abstract function get Key( ): Object;


[20842] Description


[20843] When implemented by a class, gets the key of the current dictionary entry.


[20844] After an enumerator is created or after a System.Collections.IEnumerator.Reset, System.Collections.IEnumerator.MoveNext must be called to advance the enumerator to the first element of the collection before reading the value of System.Collections.IDictionaryEnumerator.Key; otherwise, System.Collections.IDictionaryEnumerator.Key is undefined.


[20845] Value


[20846] Remove


[20847] [C#] object Value {get;}


[20848] [C++] Object* get_Value( );


[20849] [VB] ReadOnly Property Value As Object


[20850] [JScript] abstract function get Value( ): Object;


[20851] Description


[20852] When implemented by a class, gets the value of the current dictionary entry.


[20853] After an enumerator is created or after a System.Collections.IEnumerator.Reset, System.Collections.IEnumerator.MoveNext must be called to advance the enumerator to the first element of the collection before reading the value of System.Collections.IDictionaryEnumerator.Value; otherwise, System.Collections.IDictionaryEnumerator.Value is undefined.


[20854] IEnumerable interface (System. Collections)


[20855] Remove


[20856] Description


[20857] Exposes the enumerator, which supports a simple iteration over a collection.


[20858] System.Collections.IEnumerable must be implemented to support the ForEach semantics of Microsoft Visual Basic. COM classes that allow enumerators also implement this interface.


[20859] GetEnumerator


[20860] [C#] IEnumerator GetEnumerator( );


[20861] [C++] IEnumerator* GetEnumerator( );


[20862] [VB] Function GetEnumerator( ) As IEnumerator


[20863] [JScript] function GetEnumerator( ): IEnumerator;


[20864] Description


[20865] Returns an enumerator that can iterate through a collection.


[20866] Return Value: An System.Collections.IEnumerator that can be used to iterate through the collection.


[20867] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[20868] IEnumerator interface (System. Collections)


[20869] GetEnumerator


[20870] Description


[20871] Supports a simple iteration over a collection.


[20872] System.Collections.IEnumerator is the base interface for all enumerators.


[20873] Current


[20874] GetEnumerator


[20875] [C#] object Current {get;}


[20876] [C++] Object* get_Current( );


[20877] [VB] ReadOnly Property Current As Object


[20878] [JScript] abstract function get Current( ): Object;


[20879] Description


[20880] Gets the current element in the collection.


[20881] After an enumerator is created or after a System.Collections.IEnumerator.Reset, System.Collections.IEnumerator.MoveNext must be called to advance the enumerator to the first element of the collection before reading the value of System.Collections.IEnumerator.Current; otherwise, System.Collections.IEnumerator.Current is undefined.


[20882] MoveNext


[20883] [C#] bool MoveNext( );


[20884] [C++] bool MoveNext( );


[20885] [VB] Function MoveNext( ) As Boolean


[20886] [JScript] function MoveNext( ): Boolean;


[20887] Description


[20888] Advances the enumerator to the next element of the collection.


[20889] Return Value: true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.


[20890] After an enumerator is created or after a call to System.Collections.IEnumerator.Reset, an enumerator is positioned before the first element of the collection, and the first call to System.Collections.IEnumerator.MoveNext moves the enumerator over the first element of the collection.


[20891] Reset


[20892] [C#] void Reset( );


[20893] [C++] void Reset( );


[20894] [VB] Sub Reset( )


[20895] [JScript] function Reset( );


[20896] Description


[20897] Sets the enumerator to its initial position, which is before the first element in the collection.


[20898] All calls to System.Collections.IEnumerator.Reset must result in the same state for the enumerator. This may involve taking a new snapshot of the collection or moving to the beginning of the collection.


[20899] IHashCodeProvider interface (System.Collections)


[20900] Reset


[20901] Description


[20902] Supplies a hash code for an object, using a custom hash function.


[20903] The System.Collections.IHashCodeProvider interface is used in conjunction with System.Collections.Hashtable. The objects used as keys by a System.Collections.Hashtable must implement or inherit the System.Object.GetHashCode and System.Object.Equals(System.Object) methods. However, if the System.Collections.Hashtable constructor is passed a reference to an object that implements both the System.Collections.IHashCodeProvider interface and the System.Collections.IComparer interface, then System.Collections.IHashCodeProvider.GetHashCode(System.Object) and System.Collections.IComparer.Compare(System.Object,System.Object) can be used instead.


[20904] GetHashCode


[20905] [C#] int GetHashCode(object obj);


[20906] [C#+] int GetHashCode(Object* obj);


[20907] [VB] Function GetHashCode(ByVal obj As Object) As Integer


[20908] [JScript] function GetHashCode(obj: Object): int;


[20909] Description


[20910] Returns a hash code for the specified object.


[20911] Return Value: A hash code for the specified object. leehayes pk 5 1449 MSI-862US.APP


[20912] The return value from this method must not be persisted for two reasons. First, the hash function of a class might be altered to generate a better distribution, rendering any values from the old hash function useless. Second, the default implementation of this class does not guarantee that the same value will be returned by different instances. The System.Object for which a hash code is to be returned.


[20913] IList interface (System.Collections)


[20914] GetHashCode


[20915] Description


[20916] Represents a collection of objects that can be individually accessed by index.


[20917] System.Collections.IList is a descendant of the System.Collections.ICollection interface and is the base interface of all lists.


[20918] IsFixedSize


[20919] GetHashCode


[20920] [C#] bool IsFixedSize {get;}


[20921] [C++] bool get_IsFixedSize( );


[20922] [VB] ReadOnly Property IsFixedSize As Boolean


[20923] [JScript] abstract function get IsFixedSize( ): Boolean;


[20924] Description


[20925] When implemented by a class, gets a value indicating whether the System.Collections.IList has a fixed size.


[20926] A collection with a fixed size does not allow the addition or removal of elements, but it allows the modification of existing elements.


[20927] IsReadOnly


[20928] GetHashCode


[20929] [C#] bool IsReadOnly {get;}


[20930] [C++] bool get_IsReadOnly( );


[20931] [VB] ReadOnly Property IsReadOnly As Boolean


[20932] [JScript] abstract function get IsReadOnly( ): Boolean;


[20933] Description


[20934] When implemented by a class, gets a value indicating whether the System.Collections.IList is read-only.


[20935] Item


[20936] GetHashCode


[20937] [C#] object this [int index] {get; set;}


[20938] [C++] Object* get_Item(int index);void set_Item(int index, Object*);


[20939] [VB] Default Property Item(ByVal index As Integer) As Object


[20940] [JScript] abstract returnValue=IListObject.Item(index);IListObject.Item(index)=returnValue;


[20941] Description


[20942] When implemented by a class, gets or sets the element at the specified index.


[20943] This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[index]. The zero-based index of the element to get or set.


[20944] Add


[20945] [C#] int Add(object value);


[20946] [C++] int Add(Object* value);


[20947] [VB] Function Add(ByVal value As Object) As Integer


[20948] [JScript] function Add(value: Object): int;


[20949] Description


[20950] When implemented by a class, adds an item to the System.Collections.IList.


[20951] Return Value: The position into which the new element was inserted. The System.Object to add to the System.Collections.IList.


[20952] Clear


[20953] [C#] void Clear( );


[20954] [C++] void Clear( );


[20955] [VB] Sub Clear( )


[20956] [JScript] function Clear( );


[20957] Description


[20958] When implemented by a class, removes all items from the System.Collections.IList.


[20959] Contains


[20960] [C#] bool Contains(object value);


[20961] [C++] bool Contains(Object* value);


[20962] [VB] Function Contains(ByVal value As Object) As Boolean


[20963] [JScript] function Contains(value: Object): Boolean;


[20964] Description


[20965] When implemented by a class, determines whether the System.Collections.IList contains a specific value.


[20966] Return Value: true if the System.Object is found in the System.Collections.IList; otherwise, false. The System.Object to locate in the System.Collections.IList.


[20967] IndexOf


[20968] [C#] int IndexOf(object value);


[20969] [C++] int IndexOf(Object* value);


[20970] [VB] Function IndexOf(ByVal value As Object) As Integer


[20971] [JScript] function IndexOf(value: Object): int;


[20972] Description


[20973] When implemented by a class, determines the index of a specific item in the System.Collections.IList.


[20974] Return Value: The index of value if found in the list; otherwise, −1. The System.Object to locate in the System.Collections.IList.


[20975] Insert


[20976] [C#] void Insert(int index, object value);


[20977] [C++] void Insert(int index, Object* value);


[20978] [VB] Sub Insert(ByVal index As Integer, ByVal value As Object)


[20979] [JScript] function Insert(index: int, value: Object);


[20980] Description


[20981] When implemented by a class, inserts an item to the System.Collections.IList at the specified position.


[20982] If index equals the number of items in the System.Collections.IList, then value is appended to the end. The zero-based index at which value should be inserted. The System.Object to insert into the System.Collections.IList.


[20983] Remove


[20984] [C#] void Remove(object value);


[20985] [C++] void Remove(Object* value);


[20986] [VB] Sub Remove(ByVal value As Object)


[20987] [JScript] function Remove(value: Object);


[20988] Description


[20989] When implemented by a class, removes the first occurrence of a specific object from the System.Collections.IList.


[20990] In collections such as lists, queues and stacks, the elements that follow the removed element move up to occupy the vacated spot. The System.Object to remove from the System.Collections.IList.


[20991] RemoveAt


[20992] [C#] void RemoveAt(int index);


[20993] [C++] void RemoveAt(int index);


[20994] [VB] Sub RemoveAt(ByVal index As Integer)


[20995] [JScript] function RemoveAt(index: int);


[20996] Description


[20997] When implemented by a class, removes the System.Collections.IList item at the specified index.


[20998] In collections such as lists, queues and stacks, the elements that follow the removed element move up to occupy the vacated spot. The zero-based index of the item to remove.


[20999] Queue class (System.Collections)


[21000] RemoveAt


[21001] Description


[21002] Represents a first-in, first-out collection of objects.


[21003] Queues are useful for storing messages in the order they were received for sequential processing. This class implements a queue as a circular array. Objects stored in a System.Collections.Queue are inserted at one end and removed from the other. If the number of elements added to the System.Collections.Queue reaches the current capacity, the capacity is automatically increased to accommodate more elements. The capacity can be decreased by calling System.Collections.Queue.TrimToSize.


[21004] Queue


[21005] Example Syntax:


[21006] RemoveAt


[21007] [C#] public Queue( );


[21008] [C++] public: Queue( );


[21009] [VB] Public Sub New( )


[21010] [JScript] public function Queue( ); Initializes a new instance of the System.Collections.Queue class.


[21011] Description


[21012] Initializes a new instance of the System.Collections.Queue class that is empty, has the default initial capacity and uses the default growth factor.


[21013] The initial capacity is the starting capacity of the new System.Collections.Queue. The growth factor is the number by which the current capacity is multiplied when a greater capacity is required. The default initial capacity is 32 and the default growth factor is 2.0.


[21014] Queue


[21015] Example Syntax:


[21016] RemoveAt


[21017] [C1] public Queue(ICollection col);


[21018] [C++] public: Queue(ICollection* col);


[21019] [VB] Public Sub New(ByVal col As ICollection)


[21020] [JScript] public function Queue(col: ICollection);


[21021] Description


[21022] Initializes a new instance of the System.Collections.Queue class that contains elements copied from the specified collection, has the same initial capacity as the number of elements copied and uses the default growth factor.


[21023] The initial capacity is the starting capacity of the new System.Collections.Queue. The growth factor is the number by which the current capacity is multiplied when a greater capacity is required. The default initial capacity is 32 and the default growth factor is 2.0. The System.Collections.ICollection to copy elements from.


[21024] Queue


[21025] Example Syntax:


[21026] RemoveAt


[21027] [C#] public Queue(int capacity);


[21028] [C++] public: Queue(int capacity);


[21029] [VB] Public Sub New(ByVal capacity As Integer)


[21030] [JScript] public function Queue(capacity: int);


[21031] Description


[21032] Initializes a new instance of the System.Collections.Queue class that is empty, has the specified initial capacity and uses the default growth factor.


[21033] The initial capacity is the starting capacity of the new System.Collections.Queue. The growth factor is the number by which the current capacity is multiplied when a greater capacity is required. The default initial capacity is 32 and the default growth factor is 2.0. The initial number of elements that the System.Collections.Queue can contain.


[21034] Queue


[21035] Example Syntax:


[21036] RemoveAt


[21037] [C#] public Queue(int capacity, float growFactor);


[21038] [C++] public: Queue(int capacity, float growFactor);


[21039] [VB] Public Sub New(ByVal capacity As Integer, ByVal growFactor As Single)


[21040] [JScript] public function Queue(capacity: int, growFactor: float);


[21041] Description


[21042] Initializes a new instance of the System.Collections.Queue class that is empty, has the specified initial capacity and uses the specified growth factor.


[21043] The initial capacity is the starting capacity of the new System.Collections.Queue. The growth factor is the number by which the current capacity is multiplied when a greater capacity is required. The default initial capacity is 32 and the default growth factor is 2.0. The initial number of elements that the System.Collections.Queue can contain. The factor by which the capacity of the System.Collections.Queue is expanded.


[21044] Count


[21045] RemoveAt


[21046] [C#] public virtual int Count {get;}


[21047] [C++] public: _property virtual int get_Count( );


[21048] [VB] Overridable Public ReadOnly Property Count As Integer


[21049] [JScript] public function get Count( ): int;


[21050] Description


[21051] Gets the number of elements contained in the System.Collections.Queue.


[21052] System.Collections.Queue.Count is the number of elements that are actually in the System.Collections.Queue. The capacity of a System.Collections.Queue is the number of elements that the System.Collections.Queue is capable of storing.


[21053] Synchronized


[21054] RemoveAt


[21055] [C#] public virtual bool IsSynchronized {get;}


[21056] [C++] public: _property virtual bool get_IsSynchronized( );


[21057] [VB] Overridable Public ReadOnly Property IsSynchronized As Boolean


[21058] [JScript] public function get IsSynchronized( ): Boolean;


[21059] Description


[21060] Gets a value indicating whether access to the System.Collections.Queue is synchronized (thread-safe).


[21061] To guarantee the thread safety of the System.Collections.Queue, all operations must be done through the wrapper returned by the System.Collections.Queue.Synchronized(System.Collections.Queue) method.


[21062] SyncRoot


[21063] RemoveAt


[21064] [C#] public virtual object SyncRoot {get;}


[21065] [C++] public: _property virtual Object* get_SyncRoot( );


[21066] [VB] Overridable Public ReadOnly Property SyncRoot As Object


[21067] [JScript] public function get SyncRoot( ): Object;


[21068] Description


[21069] Gets an object that can be used to synchronize access to the System.Collections.Queue.


[21070] To create a synchronized version of the System.Collections.Queue, use the System.Collections.Queue.Synchronized(System.Collections.Queue) method. However, derived classes can provide their own synchronized version of the System.Collections.Queue using the System.Collections.Queue.SyncRoot property. The synchronizing code must perform operations on the System.Collections.Queue.SyncRoot of the System.Collections.Queue, not directly on the System.Collections.Queue. This ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the System.Collections.Queue object.


[21071] Clear


[21072] [C#] public virtual void Clear( );


[21073] [C++] public: virtual void Clear( );


[21074] [VB] Overridable Public Sub Clear( )


[21075] [JScript] public function Clear( );


[21076] Description


[21077] Removes all objects from the System.Collections.Queue.


[21078] System.Collections.Queue.Count is set to zero. To reset the capacity of the System.Collections.Queue, call System.Collections.Queue.TrimToSize. Trimming an empty System.Collections.Queue sets the capacity of the System.Collections.Queue to the default capacity, not zero.


[21079] Clone


[21080] [C#] public virtual object Clone( );


[21081] [C++] public: virtual Object* Clone( );


[21082] [VB] Overridable Public Function Clone( ) As Object


[21083] [JScript] public function Clone( ): Object;


[21084] Description


[21085] Creates a shallow copy of the System.Collections.Queue


[21086] Return Value: A shallow copy of the System.Collections.Queue.


[21087] A shallow copy of a collection is a new collection containing references to the same elements as the original collection. The elements themselves or anything referenced by the elements are not copied. In contrast, a deep copy of a collection copies the elements and everything directly or indirectly referenced by the elements.


[21088] Contains


[21089] [C#] public virtual bool Contains(object obj);


[21090] [C++] public: virtual bool Contains(Object* obj);


[21091] [VB] Overridable Public Function Contains(ByVal obj As Object) As Boolean


[21092] [JScript] public function Contains(obj: Object): Boolean;


[21093] Description


[21094] Determines whether an element is in the System.Collections.Queue.


[21095] Return Value: true if obj is found in the System.Collections.Queue; otherwise, false.


[21096] This method performs a linear search; therefore, the average execution time is proportional to System.Collections.Queue.Count. That is, this method is an O( n )operation, where n is System.Collections.Queue.Count. The System.Object to locate in the System.Collections.Queue. The element to locate can be null.


[21097] CopyTo


[21098] [C#] public virtual void CopyTo(Array array, int index);


[21099] [C++] public: virtual void CopyTo(Array* array, int index);


[21100] [VB] Overridable Public Sub CopyTo(ByVal array As Array, ByVal index As Integer)


[21101] [JScript] public function CopyTo(array: Array, index: int);


[21102] Description


[21103] Copies the System.Collections.Queue elements to an existing one-dimensional System.Array, starting at the specified array index.


[21104] The elements are copied to the System.Array in the same order in which the enumerator iterates through the System.Collections.Queue. The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Queue. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[21105] Dequeue


[21106] [C#] public virtual object Dequeue( );


[21107] [C++] public: virtual Object* Dequeue( );


[21108] [VB] Overridable Public Function Dequeue( ) As Object


[21109] [JScript] public function Dequeue( ): Object;


[21110] Description


[21111] Removes and returns the object at the beginning of the System.Collections.Queue.


[21112] Return Value: The object that is removed from the beginning of the System.Collections.Queue.


[21113] This method is similar to the System.Collections.Queue.Peek method, but System.Collections.Queue.Peek does not modify the System.Collections.Queue


[21114] Enqueue


[21115] [C#] public virtual void Enqueue(object obj);


[21116] [C++] public: virtual void Enqueue(Object* obj);


[21117] [VB] Overridable Public Sub Enqueue(ByVal obj As Object)


[21118] [JScript] public function Enqueue(obj: Object);


[21119] Description


[21120] Adds an object to the end of the System.Collections.Queue.


[21121] If System.Collections.Queue.Count already equals the capacity of the System.Collections.Queue, the capacity is increased by automatically reallocating the internal array before copying the old elements and adding the new element. The new capacity is determined by multiplying the current capacity by the growth factor, which is determined when the System.Collections.Queue is constructed. The object to add to the System.Collections.Queue.


[21122] GetEnumerator


[21123] [C#] public virtual IEnumerator GetEnumerator( );


[21124] [C++] public: virtual IEnumerator* GetEnumerator( );


[21125] [VB] Overridable Public Function GetEnumerator( ) As IEnumerator


[21126] [JScript] public function GetEnumerator( ): IEnumerator;


[21127] Description


[21128] Returns an enumerator that can iterate through the System.Collections.Queue.


[21129] Return Value: An System.Collections.IEnumerator for the System.Collections.Queue.


[21130] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[21131] Peek


[21132] [C#] public virtual object Peek( );


[21133] [C++] public: virtual Object* Peek( );


[21134] [VB] Overridable Public Function Peek( ) As Object


[21135] [JScript] public function Peek( ): Object;


[21136] Description


[21137] Returns the object at the beginning of the System.Collections.Queue without removing it.


[21138] Return Value: The object at the beginning of the System.Collections.Queue.


[21139] This method is similar to the System.Collections.Queue.Dequeue method, but System.Collections.Queue.Peek does not modify the System.Collections.Queue.


[21140] Synchronized


[21141] [C#] public static Queue Synchronized(Queue queue);


[21142] [C++] public: static Queue* Synchronized(Queue* queue);


[21143] [VB] Public Shared Function Synchronized(ByVal queue As Queue) As Queue


[21144] [JScript] public static function Synchronized(queue: Queue): Queue;


[21145] Description


[21146] Returns a System.Collections.Queue wrapper that is synchronized (thread-safe).


[21147] Return Value: A System.Collections.Queue wrapper that is synchronized (thread-safe).


[21148] To guarantee the thread safety of the System.Collections.Queue, all operations must be done through this wrapper only. The System.Collections.Queue to synchronize.


[21149] ToArray


[21150] [C#] public virtual object[ ] ToArray( );


[21151] [C++] public: virtual Object* ToArray( ) _gc[ ];


[21152] [VB] Overridable Public Function ToArray( ) As Object( )


[21153] [JScript] public function ToArray( ): Object[ ];


[21154] Description


[21155] Copies the System.Collections.Queue elements to a new array.


[21156] Return Value: A new array containing elements copied from the System.Collections.Queue.


[21157] The System.Collections.Queue is not modified. The order of the elements in the new array is the same as the order of the elements from the beginning of the System.Collections.Queue to its end.


[21158] TrimToSize


[21159] [C#] public virtual void TrimToSize( );


[21160] [C++] public: virtual void TrimToSize( );


[21161] [VB] Overridable Public Sub TrimToSize( )


[21162] [JScript] public function TrimToSize( );


[21163] Description


[21164] Sets the capacity to the actual number of elements in the System.Collections.Queue.


[21165] This method can be used to minimize a list's memory overhead if no new elements will be added to the list.


[21166] ReadOnlyCollectionBase class (System.Collections)


[21167] TrimToSize


[21168] Description


[21169] Provides the abstract base class for a strongly typed read-only collection.


[21170] A System.Collections.ReadOnlyCollectionBase instance is always read-only. See System.Collections.CollectionBase for a modifiable version of this class.


[21171] ReadOnlyCollectionBase


[21172] Example Syntax:


[21173] TrimToSize


[21174] [C#] protected ReadOnlyCollectionBase( );


[21175] [C++] protected: ReadOnlyCollectionBase( );


[21176] [VB] Protected Sub New( )


[21177] [JScript] protected function ReadOnlyCollectionBase( );


[21178] Count


[21179] TrimToSize


[21180] [C#] public int Count {get;}


[21181] [C++] public: _property int get_Count( );


[21182] [VB] Public ReadOnly Property Count As Integer


[21183] [JScript] public function get Count( ): int;


[21184] Description


[21185] Gets the number of elements contained in the System.Collections.ReadOnlyCollectionBase instance.


[21186] InnerList


[21187] TrimToSize


[21188] [C#] protected ArrayList InnerList {get;}


[21189] [C++] protected: _property ArrayList* get_InnerList( );


[21190] [VB] Protected ReadOnly Property InnerList As ArrayList


[21191] [JScript] protected function get InnerList( ): ArrayList;


[21192] Description


[21193] Gets the list of elements contained in the System.Collections.ReadOnlyCollectionBase instance.


[21194] GetEnumerator


[21195] [C#] public IEnumerator GetEnumerator( );


[21196] [C++] public: _sealed IEnumerator* GetEnumerator( );


[21197] [VB] NotOverridable Public Function GetEnumerator( ) As IEnumerator


[21198] [JScript] public function GetEnumerator( ): IEnumerator;


[21199] Description


[21200] Returns an enumerator that can iterate through the System.Collections.ReadOnlyCollectionBase instance.


[21201] Return Value: An System.Collections.IEnumerator for the System.Collections.ReadOnlyCollectionBase instance.


[21202] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[21203] ICollection.CopyTo


[21204] [C#] void ICollection.CopyTo(Array array, int index);


[21205] [C++] void ICollection::CopyTo(Array* array, int index);


[21206] [VB] Sub CopyTo(ByVal array As Array, ByVal index As Integer) Implements ICollection.CopyTo


[21207] [JScript] function ICollection.CopyTo(array: Array, index: int);


[21208] SortedList class (System.Collections)


[21209] ToString


[21210] Description


[21211] Represents a collection of key-and-value pairs that are sorted by the keys and are accessible by key and by index.


[21212] A System.Collections.SortedList is a hybrid between a System.Collections.Hashtable and an System.Array. When an element is accessed by its key using the System.Collections.SortedList.Item(System.Object) indexer property, it behaves like a System.Collections.Hashtable. When an element is accessed by its index using System.Collections.SortedList.GetBylndex(System.Int32) or System.Collections.SortedList.SetBylndex(System.Int32, System.Object), it behaves like an System.Array.


[21213] SortedList


[21214] Example Syntax:


[21215] ToString


[21216] [C+] public SortedList( );


[21217] [C++] public: SortedList( );


[21218] [VB] Public Sub New( )


[21219] [JScript] public function SortedList( ); Initializes a new instance of the System.Collections.SortedList class.


[21220] Description


[21221] Initializes a new instance of the System.Collections.SortedList class that is empty, has the default initial capacity and is sorted according to the System.IComparable interface implemented by each key added to the System.Collections.SortedList.


[21222] The initial capacity is the starting capacity of the new System.Collections.SortedList. The default initial capacity for a System.Collections.SortedList is 16.


[21223] SortedList


[21224] Example Syntax:


[21225] ToString


[21226] [C#] public SortedList(IComparer comparer);


[21227] [C++] public: SortedList(IComparer* comparer);


[21228] [VB] Public Sub New(ByVal comparer As IComparer)


[21229] [JScript] public function SortedList(comparer: IComparer);


[21230] Description


[21231] Initializes a new instance of the System.Collections.SortedList class that is empty, has the default initial capacity and is sorted according to the specified System.Collections.IComparer interface.


[21232] The initial capacity is the starting capacity of the new System.Collections.SortedList. The default initial capacity for a System.Collections.SortedList is 16. The System.Collections.IComparer implementation to use when comparing keys.


[21233] SortedList


[21234] Example Syntax:


[21235] ToString


[21236] [C#] public SortedList(IDictionary d);


[21237] [C++] public: SortedList(IDictionary* d);


[21238] [VB] Public Sub New(ByVal d As IDictionary)


[21239] [JScript] public function SortedList(d: IDictionary);


[21240] Description


[21241] Initializes a new instance of the System.Collections.SortedList class that contains elements copied from the specified dictionary, has the same initial capacity as the number of elements copied and is sorted according to the System.IComparable interface implemented by each key.


[21242] The initial capacity is the starting capacity of the new System.Collections.SortedList. When adding elements to the list, if the number of elements exceeds the current capacity, the capacity is automatically doubled. The System.Collections.IDictionary to copy to a new System.Collections.SortedList.


[21243] SortedList


[21244] Example Syntax:


[21245] ToString


[21246] [C#] public SortedList(int initialCapacity);


[21247] [C++] public: SortedList(int initialCapacity);


[21248] [VB] Public Sub New(ByVal initialCapacity As Integer)


[21249] [JScript] public function SortedList(initialCapacity: int);


[21250] Description


[21251] Initializes a new instance of the System.Collections.SortedList class that is empty, has the specified initial capacity and is sorted according to the System.IComparable interface implemented by each key added to the System.Collections.SortedList.


[21252] The initial capacity is the starting capacity of the new System.Collections.SortedList. The default initial capacity for a System.Collections.SortedList is 16. The initial number of elements that the System.Collections.SortedList can contain.


[21253] SortedList


[21254] Example Syntax:


[21255] ToString


[21256] [C#] public SortedList(IComparer comparer, int capacity);


[21257] [C++] public: SortedList(IComparer* comparer, int capacity);


[21258] [VB] Public Sub New(ByVal comparer As IComparer, ByVal capacity As Integer)


[21259] [JScript] public function SortedList(comparer: IComparer, capacity: int);


[21260] Description


[21261] Initializes a new instance of the System.Collections.SortedList class that is empty, has the specified initial capacity and is sorted according to the specified System.Collections.IComparer interface.


[21262] The initial capacity is the starting capacity of the new System.Collections.SortedList. The default initial capacity for a System.Collections.SortedList is 16. The System.Collections.IComparer implementation to use when comparing keys. The initial number of elements that the System.Collections.SortedList can contain.


[21263] SortedList


[21264] Example Syntax:


[21265] ToString


[21266] [C,] public SortedList(IDictionary d, IComparer comparer);


[21267] [C#+] public: SortedList(IDictionary* d, IComparer* comparer);


[21268] [VB] Public Sub New(ByVal d As IDictionary, ByVal comparer As IComparer)


[21269] [JScript] public function SortedList(d: IDictionary, comparer: IComparer);


[21270] Description


[21271] Initializes a new instance of the System.Collections.SortedList class that contains elements copied from the specified dictionary, has the same initial capacity as the number of elements copied and is sorted according to the specified System.Collections.IComparer interface.


[21272] The initial capacity is the starting capacity of the new System.Collections.SortedList. When adding elements to the list, if the number of elements exceeds the current capacity, the capacity is automatically doubled. The System.Collections.IDictionary to copy to a new System.Collections.SortedList. The System.Collections.IComparer implementation to use when comparing keys.


[21273] Capacity


[21274] ToString


[21275] [C#] public virtual int Capacity {get; set;}


[21276] [C++] public: _property virtual int get_Capacity( );public: _property virtual void set_Capacity(int);


[21277] [VB] Overridable Public Property Capacity As Integer


[21278] [JScript] public function get Capacity( ): int;public function set Capacity(int);


[21279] Description


[21280] Gets or sets the capacity of the System.Collections.SortedList.


[21281] If the number of elements added to the list reaches the current capacity, the capacity is automatically doubled.


[21282] Count


[21283] ToString


[21284] [C#] public virtual int Count {get;}


[21285] [C++] public: _property virtual int get_Count( );


[21286] [VB] Overridable Public ReadOnly Property Count As Integer


[21287] [JScript] public function get Count( ): int;


[21288] Description


[21289] Gets the number of elements contained in the System.Collections.SortedList.


[21290] Each element is a key-and-value pair that can be accessed as a System.Collections.DictionaryEntry object.


[21291] IsFixedSize


[21292] ToString


[21293] [C#] public virtual bool IsFixedSize {get;}


[21294] [C++] public: _property virtual bool get_IsFixedSize( );


[21295] [VB] Overridable Public ReadOnly Property IsFixedSize As Boolean


[21296] [JScript] public function get IsFixedSize( ): Boolean;


[21297] Description


[21298] Gets a value indicating whether the System.Collections.SortedList has a fixed size.


[21299] A collection with a fixed size does not allow the addition or removal of elements, but it allows the modification of existing elements.


[21300] IsReadOnly


[21301] ToString


[21302] [C#] public virtual bool IsReadOnly {get;}


[21303] [C++] public: _property virtual bool get_IsReadOnly( );


[21304] [VB] Overridable Public ReadOnly Property IsReadOnly As Boolean


[21305] [JScript] public function get IsReadOnly( ): Boolean;


[21306] Description


[21307] Gets a value indicating whether the System.Collections.SortedList is read-only.


[21308] IsSynchronized


[21309] ToString


[21310] [C#] public virtual bool IsSynchronized {get;}


[21311] [C++] public: _property virtual bool get_IsSynchronized( );


[21312] [VB] Overridable Public ReadOnly Property IsSynchronized As Boolean


[21313] [JScript] public function get IsSynchronized( ): Boolean;


[21314] Description


[21315] Gets a value indicating whether access to the System.Collections.SortedList is synchronized (thread-safe).


[21316] To guarantee the thread safety of the System.Collections.SortedList, all operations must be done through the wrapper returned by the System.Collections.SortedList.Synchronized(System.Collections.SortedList) method.


[21317] Item


[21318] ToString


[21319] [C#] public virtual object this[object key] {get; set;}


[21320] [C++] public: _property virtual Object* get_Item(Object* key);public: _property virtual void set_Item(Object* key, Object*);


[21321] [VB] Overridable Public Default Property Item(ByVal key As Object) As Object


[21322] [JScript] returnValue=SortedListObject.Item(key);SortedListObject.Item(key)=returnValue;


[21323] Description


[21324] Gets and sets the value associated with a specific key in the System.Collections.SortedList.


[21325] If setting the value of key and key does not exist in the System.Collections.SortedList, a new element is created with the specified key and the specified value. The key associated with the value to get or set.


[21326] Keys


[21327] ToString


[21328] [C#] public virtual ICollection Keys {get;}


[21329] [C++] public: _property virtual ICollection* get_Keys( );


[21330] [VB] Overridable Public ReadOnly Property Keys As ICollection


[21331] [JScript] public function get Keys( ): ICollection;


[21332] Description


[21333] Gets the keys in the System.Collections.SortedList.


[21334] The System.Collections.ICollection is a read-only view of the keys of the System.Collections.SortedList. Modifications made to the underlying System.Collections.SortedList are immediately reflected in the System.Collections.ICollection.


[21335] SyncRoot


[21336] ToString


[21337] [C#] public virtual object SyncRoot {get;}


[21338] [C++] public: _property virtual Object* get_SyncRoot( );


[21339] [VB] Overridable Public ReadOnly Property SyncRoot As Object


[21340] [JScript] public function get SyncRoot( ): Object;


[21341] Description


[21342] Gets an object that can be used to synchronize access to the System.Collections.SortedList


[21343] To create a synchronized version of the System.Collections.SortedList, use the System.Collections.SortedList.Synchronized(System.Collections.SortedList) method. However, derived classes can provide their own synchronized version of the System.Collections.SortedList using the System.Collections.SortedList.SyncRoot property. The synchronizing code must perform operations on the System.Collections.SortedList.SyncRoot of the System.Collections.SortedList, not directly on the System.Collections.SortedList. This ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the System.Collections.SortedList object.


[21344] Values


[21345] ToString


[21346] [C#] public virtual ICollection Values {get;}


[21347] [C++] public: _property virtual ICollection* get_Values( );


[21348] [VB] Overridable Public ReadOnly Property Values As ICollection


[21349] [JScript] public function get Values( ): ICollection;


[21350] Description


[21351] Gets the values in the System.Collections.SortedList.


[21352] The System.Collections.ICollection is a read-only view of the values of the System.Collections.SortedList. Modifications made to the underlying System.Collections.SortedList are immediately reflected in the System.Collections.ICollection.


[21353] Add


[21354] [C#] public virtual void Add(object key, object value);


[21355] [C++] public: virtual void Add(Object* key, Object* value);


[21356] [VB] Overridable Public Sub Add(ByVal key As Object, ByVal value As Object)


[21357] [JScript] public function Add(key: Object, value: Object);


[21358] Description


[21359] Adds an element with the specified key and value to the System.Collections.SortedList.


[21360] If the number of elements added to the list reaches the current capacity, the capacity is automatically doubled. The insertion point is determined based on the comparer selected, either explicitly or by default when the System.Collections.SortedList was created. The key of the element to add. The value of the element to add.


[21361] Clear


[21362] [C+] public virtual void Clear( );


[21363] [C++] public: virtual void Clear( );


[21364] [VB] Overridable Public Sub Clear( )


[21365] [JScript] public function Clear( );


[21366] Description


[21367] Removes all elements from the System.Collections.SortedList.


[21368] System.Collections.SortedList.Count is set to zero.


[21369] Clone


[21370] [C#] public virtual object Clone( );


[21371] [C++] public: virtual Object* Clone( );


[21372] [VB] Overridable Public Function Clone( ) As Object


[21373] [JScript] public function Clone( ): Object;


[21374] Description


[21375] Creates a shallow copy of the System.Collections.SortedList.


[21376] Return Value: A shallow copy of the System.Collections.SortedList.


[21377] A shallow copy of a collection is a new collection containing references to the same elements as the original collection. The elements themselves or anything referenced by the elements are not copied. In contrast, a deep copy of a collection copies the elements and everything directly or indirectly referenced by the elements.


[21378] Contains


[21379] [C#] public virtual bool Contains(object key);


[21380] [C++] public: virtual bool Contains(Object* key);


[21381] [VB] Overridable Public Function Contains(ByVal key As Object) As Boolean


[21382] [JScript] public function Contains(key: Object): Boolean;


[21383] Description


[21384] Determines whether the System.Collections.SortedList contains a specific key.


[21385] Return Value: true if the System.Collections.SortedList contains an element with the specified key; otherwise, false.


[21386] The elements of a System.Collections.SortedList are sorted by the keys either according to a specific System.Collections.IComparer implementation specified when the System.Collections.SortedList is created or according to the System.IComparable implementation provided by the keys themselves. The key to locate in the System.Collections.SortedList.


[21387] ContainsKey


[21388] [C#] public virtual bool ContainsKey(object key);


[21389] [C++] public: virtual bool ContainsKey(Object* key);


[21390] [VB] Overridable Public Function ContainsKey(ByVal key As Object) As Boolean


[21391] [JScript] public function ContainsKey(key: Object): Boolean;


[21392] Description


[21393] Determines whether the System.Collections.SortedList contains a specific key.


[21394] Return Value: true if the System.Collections.SortedList contains an element with the specified key; otherwise, false.


[21395] The elements of a System.Collections.SortedList are sorted by the keys either according to a specific System.Collections.IComparer implementation specified when the System.Collections.SortedList is created or according to the System.IComparable implementation provided by the keys themselves. The key to locate in the System.Collections.SortedList.


[21396] ContainsValue


[21397] [C#] public virtual bool ContainsValue(object value);


[21398] [C++] public: virtual bool ContainsValue(Object* value);


[21399] [VB] Overridable Public Function ContainsValue(ByVal value As Object) As Boolean


[21400] [JScript] public function ContainsValue(value: Object): Boolean;


[21401] Description


[21402] Determines whether the System.Collections.SortedList contains a specific value.


[21403] Return Value: true if the System.Collections.SortedList contains an element with the specified value; otherwise, false.


[21404] This method performs a linear search; therefore, the average execution time is proportional to System.Collections.SortedList.Count. That is, this method is an O( n ) operation, where n is System.Collections.SortedList.Count. The value to locate in the System.Collections.SortedList.


[21405] CopyTo


[21406] [C#] public virtual void CopyTo(Array array, int arrayIndex);


[21407] [C++] public: virtual void CopyTo(Array* array, int arrayIndex);


[21408] [VB] Overridable Public Sub CopyTo(ByVal array As Array, ByVal arrayIndex As Integer)


[21409] [JScript] public function CopyTo(array: Array, arrayIndex: int);


[21410] Description


[21411] Copies the System.Collections.SortedList elements to a one-dimensional System.Array instance at the specified index.


[21412] The key-and-value pairs are copied to the System.Array in the same order in which the enumerator iterates through the System.Collections.SortedList. The one-dimensional System.Array that is the destination of the System.Collections.DictionaryEntry objects copied from System.Collections.SortedList. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[21413] GetByIndex


[21414] [C#] public virtual object GetByIndex(int index);


[21415] [C++] public: virtual Object* GetByIndex(int index);


[21416] [VB] Overridable Public Function GetByIndex(ByVal index As Integer) As Object


[21417] [JScript] public function GetByIndex(index: int): Object;


[21418] Description


[21419] Gets the value at the specified index of the System.Collections.SortedList


[21420] Return Value: The value at the specified index of the System.Collections.SortedList.


[21421] The index sequence is based on the sort sequence. When an element is added, it is inserted into System.Collections.SortedList in the correct sort order, and the indexing adjusts accordingly. When an element removed, the indexing also adjusts accordingly. Therefore, the index of a specific key-and-value pair might change as elements are added or removed from the System.Collections.SortedList. The zero-based index of the value to get.


[21422] GetEnumerator


[21423] [C#] public virtual IDictionaryEnumerator GetEnumerator( );


[21424] [C++] public: virtual IDictionaryEnumerator* GetEnumerator( );


[21425] [VB] Overridable Public Function GetEnumerator( ) As IDictionaryEnumerator


[21426] [JScript] public function GetEnumerator( ): IDictionaryEnumerator;


[21427] Description


[21428] Returns an enumerator that can iterate through the System.Collections.SortedList.


[21429] Return Value: An System.Collections.IDictionaryEnumerator for the System.Collections.SortedList.


[21430] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[21431] GetKey


[21432] [C#] public virtual object GetKey(int index);


[21433] [C++] public: virtual Object* GetKey(int index);


[21434] [VB] Overridable Public Function GetKey(ByVal index As Integer) As Object


[21435] [JScript] public function GetKey(index: int): Object;


[21436] Description


[21437] Gets the key at the specified index of the System.Collections.SortedList.


[21438] Return Value: The key at the specified index of the System.Collections.SortedList.


[21439] The index sequence is based on the sort sequence. When an element is added, it is inserted into System.Collections.SortedList in the correct sort order, and the indexing adjusts accordingly. When an element removed, the indexing also adjusts accordingly. Therefore, the index of a specific key-and-value pair might change as elements are added or removed from the System.Collections.SortedList. The zero-based index of the key to get.


[21440] GetKeyList


[21441] [C#] public virtual IList GetKeyList( );


[21442] [C++] public: virtual IList* GetKeyList( );


[21443] [VB] Overridable Public Function GetKeyList( ) As IList


[21444] [JScript] public function GetKeyList( ): IList;


[21445] Description


[21446] Gets the keys in the System.Collections.SortedList.


[21447] Return Value: An System.Collections.IList containing the keys in the System.Collections.SortedList.


[21448] The returned System.Collections.IList is a read-only view of the keys of the System.Collections.SortedList. Modifications made to the underlying System.Collections.SortedList are immediately reflected in the System.Collections.IList.


[21449] GetValueList


[21450] [C#] public virtual IList GetValueList( );


[21451] [C#+] public: virtual IList* GetValueList( );


[21452] [VB] Overridable Public Function GetValueList( ) As IList


[21453] [JScript] public function GetValueList( ): IList;


[21454] Description


[21455] Gets the values in the System.Collections.SortedList.


[21456] Return Value: An System.Collections.IList containing the values in the System.Collections.SortedList.


[21457] The returned System.Collections.IList is a read-only view of the values of the System.Collections.SortedList. Modifications made to the underlying System.Collections.SortedList are immediately reflected in the System.Collections.IList.


[21458] IndexOfKey


[21459] [C+] public virtual int IndexOfKey(object key);


[21460] [C++] public: virtual int IndexOfKey(Object* key);


[21461] [VB] Overridable Public Function IndexOfKey(ByVal key As Object) As Integer


[21462] [JScript] public function IndexOfKey(key: Object): int;


[21463] Description


[21464] Returns the zero-based index of the specified key in the System.Collections.SortedList.


[21465] Return Value: The zero-based index of key, if key is found in the System.Collections.SortedList; otherwise, −1.


[21466] The elements of a System.Collections.SortedList are sorted by the keys either according to a specific System.Collections.IComparer implementation specified when the System.Collections.SortedList is created or according to the System.IComparable implementation provided by the keys themselves. The key to locate in the System.Collections.SortedList.


[21467] IndexOfValue


[21468] [C#] public virtual int IndexOfValue(object value);


[21469] [C++] public: virtual int IndexOfValue(Object* value);


[21470] [VB] Overridable Public Function IndexOfValue(ByVal value As Object) As Integer


[21471] [JScript] public function IndexOfValue(value: Object): int;


[21472] Description


[21473] Returns the zero-based index of the first occurrence of the specified value in the System.Collections.SortedList.


[21474] Return Value: The zero-based index of the first occurrence of value, if value is found in the System.Collections.SortedList; otherwise, −1.


[21475] The index sequence is based on the sort sequence. When an element is added, it is inserted into System.Collections.SortedList in the correct sort order, and the indexing adjusts accordingly. When an element removed, the indexing also adjusts accordingly. Therefore, the index of a specific key-and-value pair might change as elements are added or removed from the System.Collections.SortedList. The value to locate in the System.Collections.SortedList.


[21476] Remove


[21477] [C#] public virtual void Remove(object key);


[21478] [C++] public: virtual void Remove(Object* key);


[21479] [VB] Overridable Public Sub Remove(ByVal key As Object)


[21480] [JScript] public function Remove(key: Object);


[21481] Description


[21482] Removes the element with the specified key from System.Collections.SortedList.


[21483] If the System.Collections.SortedList does not contain an element with the specified key, the System.Collections.SortedList remains unchanged. No exception is thrown. The key of the element to remove.


[21484] RemoveAt


[21485] [C#] public virtual void RemoveAt(int index);


[21486] [C++] public: virtual void RemoveAt(int index);


[21487] [VB] Overridable Public Sub RemoveAt(ByVal index As Integer)


[21488] [JScript] public function RemoveAt(index: int);


[21489] Description


[21490] Removes the element at the specified index of System.Collections.SortedList.


[21491] The index sequence is based on the sort sequence. When an element is added, it is inserted into System.Collections.SortedList in the correct sort order, and the indexing adjusts accordingly. When an element removed, the indexing also adjusts accordingly. Therefore, the index of a specific key-and-value pair might change as elements are added or removed from the System.Collections.SortedList. The zero-based index of the element to remove.


[21492] SetByIndex


[21493] [C#] public virtual void SetByIndex(int index, object value);


[21494] [C++] public: virtual void SetByIndex(int index, Object* value);


[21495] [VB] Overridable Public Sub SetByIndex(ByVal index As Integer, ByVal value As Object)


[21496] [JScript] public function SetByIndex(index: int, value: Object);


[21497] Description


[21498] Replaces the value at a specific index in the System.Collections.SortedList.


[21499] The index sequence is based on the sort sequence. When an element is added, it is inserted into System.Collections.SortedList in the correct sort order, and the indexing adjusts accordingly. When an element removed, the indexing also adjusts accordingly. Therefore, the index of a specific key-and-value pair might change as elements are added or removed from the System.Collections.SortedList. The zero-based index at which to save value. The System.Object to save into the System.Collections.SortedList.


[21500] Synchronized


[21501] [C#] public static SortedList Synchronized(SortedList list);


[21502] [C++] public: static SortedList* Synchronized(SortedList* list);


[21503] [VB] Public Shared Function Synchronized(ByVal list As SortedList) As SortedList


[21504] [JScript] public static function Synchronized(list: SortedList): SortedList;


[21505] Description


[21506] Returns a synchronized (thread-safe) wrapper for the System.Collections.SortedList.


[21507] Return Value: A synchronized (thread-safe) wrapper for the System.Collections.SortedList.


[21508] To guarantee the thread safety of the System.Collections.SortedList, all operations must be done through this wrapper only. The System.Collections.SortedList to synchronize.


[21509] IEnumerable.GetEnumerator


[21510] [C#] IEnumerator IEnumerable.GetEnumerator( );


[21511] [C++] IEnumerator* IEnumerable::Getnumerator( );


[21512] [VB] Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator


[21513] [JScript] function IEnumerable.GetEnumerator( ): IEnumerator;


[21514] TrimToSize


[21515] [C#] public virtual void TrimToSize( );


[21516] [C++] public: virtual void TrimToSize( );


[21517] [VB] Overridable Public Sub TrimToSize( )


[21518] [JScript] public function TrimToSize( );


[21519] Description


[21520] Sets the capacity to the actual number of elements in the System.Collections.SortedList.


[21521] This method can be used to minimize a list's memory overhead if no new elements will be added to the list.


[21522] Stack class (System.Collections)


[21523] TrimToSize


[21524] Description


[21525] Represents a simple last-in-first-out collection of objects.


[21526] System.Collections.Stack is implemented as a circular buffer.


[21527] Stack


[21528] Example Syntax:


[21529] TrimToSize


[21530] [C#] public Stack( );


[21531] [C++] public: Stack( );


[21532] [VB] Public Sub New( )


[21533] [JScript] public function Stack( ); Initializes a new instance of the System.Collections.Stack class.


[21534] Description


[21535] Initializes a new instance of the System.Collections.Stack class that is empty and has the default initial capacity.


[21536] The initial capacity is the starting capacity of the new System.Collections.Stack. The default initial capacity for a System.Collections.Stack is 10.


[21537] Stack


[21538] Example Syntax:


[21539] TrimToSize


[21540] [C#] public Stack(ICollection col);


[21541] [C++] public: Stack(ICollection* col);


[21542] [VB] Public Sub New(ByVal col As ICollection)


[21543] [JScript] public function Stack(col: ICollection);


[21544] Description


[21545] Initializes a new instance of the System.Collections.Stack class that contains elements copied from the specified collection and has the same initial capacity as the number of elements copied.


[21546] The initial capacity is the starting capacity of the new System.Collections.Stack. If the number of elements added to the stack reaches the current capacity, the capacity is automatically doubled. The System.Collections.ICollection to copy elements from.


[21547] Stack


[21548] Example Syntax:


[21549] TrimToSize


[21550] [C#] public Stack(int initialCapacity);


[21551] [C++] public: Stack(int initialcapacity);


[21552] [VB] Public Sub New(ByVal initialCapacity As Integer)


[21553] [JScript] public function Stack(initialCapacity: int);


[21554] Description


[21555] Initializes a new instance of the System.Collections.Stack class that is empty and has the specified initial capacity or the default initial capacity, whichever is greater.


[21556] The initial capacity is the starting capacity of the new System.Collections.Stack. The default initial capacity for a System.Collections.Stack is 10. The initial number of elements that the System.Collections.Stack can contain.


[21557] Count


[21558] TrimToSize


[21559] [C#] public virtual int Count {get;}


[21560] [C++] public: _property virtual int get_Count( );


[21561] [VB] Overridable Public ReadOnly Property Count As Integer


[21562] [JScript] public function get Count( ): int;


[21563] Description


[21564] Gets the number of elements contained in the System.Collections.Stack.


[21565] IsSynchronized


[21566] TrimToSize


[21567] [C#] public virtual bool IsSynchronized {get;}


[21568] [C++] public: _property virtual bool get_IsSynchronized( );


[21569] [VB] Overridable Public ReadOnly Property IsSynchronized As Boolean


[21570] [JScript] public function get IsSynchronized( ): Boolean;


[21571] Description


[21572] Gets a value indicating whether access to the System.Collections.Stack is synchronized (thread-safe).


[21573] To guarantee the thread safety of the System.Collections.Stack, all operations must be done through the wrapper returned by the System.Collections.Stack.Synchronized(System.Collections.Stack) method.


[21574] SyncRoot


[21575] TrimToSize


[21576] [C#] public virtual object SyncRoot {get;}


[21577] [C++] public: _property virtual Object* get_SyncRoot( );


[21578] [VB] Overridable Public ReadOnly Property SyncRoot As Object


[21579] [JScript] public function get SyncRoot( ): Object;


[21580] Description


[21581] Gets an object that can be used to synchronize access to the System.Collections.Stack.


[21582] To create a synchronized version of the System.Collections.Stack, use the System.Collections.Stack.Synchronized(System.Collections.Stack) method. However, derived classes can provide their own synchronized version of the System.Collections.Stack using the System.Collections.Stack.SyncRoot property. The synchronizing code must perform operations on the System.Collections.Stack.SyncRoot of the System.Collections.Stack, not directly on the System.Collections.Stack. This ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the System.Collections.Stack object.


[21583] Clear


[21584] [C#] public virtual void Clear( );


[21585] [C++] public: virtual void Clear( );


[21586] [VB] Overridable Public Sub Clear( )


[21587] [JScript] public function Clear( );


[21588] Description


[21589] Removes all objects from the System.Collections.Stack.


[21590] System.Collections.Stack.Count is set to zero.


[21591] Clone


[21592] [C#] public virtual object Clone( );


[21593] [C++] public: virtual Object* Clone( );


[21594] [VB] Overridable Public Function Clone( ) As Object


[21595] [JScript] public function Clone( ): Object;


[21596] Description


[21597] Creates a shallow copy of the System.Collections.Stack.


[21598] Return Value: A shallow copy of the System.Collections.Stack.


[21599] A shallow copy of a collection is a new collection containing references to the same elements as the original collection. The elements themselves or anything referenced by the elements are not copied. In contrast, a deep copy of a collection copies the elements and everything directly or indirectly referenced by the elements.


[21600] Contains


[21601] [C+] public virtual bool Contains(object obj);


[21602] [C++] public: virtual bool Contains(Object* obi);


[21603] [VB] Overridable Public Function Contains(ByVal obj As Object) As Boolean


[21604] [JScript] public function Contains(obj: Object): Boolean;


[21605] Description


[21606] Determines whether an element is in the System.Collections.Stack.


[21607] Return Value: true if obj is found in the System.Collections.Stack; otherwise, false.


[21608] This method performs a linear search; therefore, the average execution time is proportional to System.Collections.Stack.Count. That is, this method is an O( n ) operation, where n is System.Collections.Stack.Count. The System.Object to locate in the System.Collections.Stack. The element to locate can be null.


[21609] CopyTo


[21610] [C+] public virtual void CopyTo(Array array, int index);


[21611] [C++] public: virtual void CopyTo(Array* array, int index);


[21612] [VB] Overridable Public Sub CopyTo(ByVal array As Array, ByVal index As Integer)


[21613] [JScript] public function CopyTo(array: Array, index: int);


[21614] Description


[21615] Copies the System.Collections.Stack to an existing one-dimensional System.Array, starting at the specified array index.


[21616] The elements are copied onto the array in a last-in-first-out order, similar to the order of the elements returned by a succession of calls to System.Collections.Stack.Pop. The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Stack. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[21617] GetEnumerator


[21618] [C#] public virtual IEnumerator GetEnumerator( );


[21619] [C++] public: virtual IEnumerator* GetEnumerator( );


[21620] [VB] Overridable Public Function GetEnumerator( ) As IEnumerator


[21621] [JScript] public function GetEnumerator( ): IEnumerator;


[21622] Description


[21623] Returns an System.Collections.IEnumerator for the System.Collections.Stack.


[21624] Return Value: An System.Collections.IEnumerator for the System.Collections.Stack.


[21625] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[21626] Peek


[21627] [C#] public virtual object Peek( );


[21628] [C++] public: virtual Object* Peek( );


[21629] [VB] Overridable Public Function Peek( )As Object


[21630] [JScript] public function Peek( ): Object;


[21631] Description


[21632] Returns the object at the top of the System.Collections.Stack without removing it.


[21633] Return Value: The System.Object at the top of the System.Collections.Stack.


[21634] null can be pushed onto the System.Collections.Stack as a placeholder, if needed. To distinguish between a null value and the end of the stack, check the System.Collections.Stack.Count property or catch the System.InvalidOperationException, which is thrown when the System.Collections.Stack is empty.


[21635] Pop


[21636] [C#] public virtual object Pop( );


[21637] [C++] public: virtual Object* Pop( );


[21638] [VB] Overridable Public Function Pop( )As Object


[21639] [JScript] public function Pop( ): Object;


[21640] Description


[21641] Removes and returns the object at the top of the System.Collections.Stack


[21642] Return Value: The System.Object removed from the top of the System.Collections.Stack.


[21643] System.Collections.Stack is implemented as a circular buffer.


[21644] Push


[21645] [C#] public virtual void Push(object obj);


[21646] [C++] public: virtual void Push(Object* obj);


[21647] [VB] Overridable Public Sub Push(ByVal obj As Object)


[21648] [JScript] public function Push(obj: Object);


[21649] Description


[21650] Inserts an object at the top of the System.Collections.Stack.


[21651] System.Collections.Stack is implemented as a circular buffer. The System.Object to push onto the System.Collections.Stack.


[21652] Synchronized


[21653] [C#] public static Stack Synchronized(Stack stack);


[21654] [C++] public: static Stack* Synchronized(Stack* stack);


[21655] [VB] Public Shared Function Synchronized(ByVal stack As Stack) As Stack


[21656] [JScript] public static function Synchronized(stack: Stack): Stack;


[21657] Description


[21658] Returns a synchronized (thread-safe) wrapper for the System.Collections.Stack.


[21659] Return Value: A synchronized wrapper around the System.Collections.Stack.


[21660] To guarantee the thread safety of the System.Collections.Stack, all operations must be done through this wrapper. The System.Collections.Stack to synchronize.


[21661] ToArray


[21662] [C#] public virtual object[ ] ToArray( );


[21663] [C++] public: virtual Object* ToArray( )_gc[ ];


[21664] [VB] Overridable Public Function ToArray( ) As Object[ ];


[21665] [JScript] public function ToArray( ): Object[ ];


[21666] Description


[21667] Copies the System.Collections.Stack to a new array.


[21668] Return Value: A new array containing copies of the elements of the System.Collections.Stack


[21669] The elements are copied onto the array in a last-in-first-out order, similar to the order


[21670] System.Collections.Specialized


[21671] The namespace contains specialized and strongly-typed collections; for example, a linked list dictionary, a bit vector and collections that contain only strings.


[21672] Description


[21673] The System.Collections.Specialized namespace contains specialized and strongly-typed collections; for example, a linked list dictionary, a bit vector and collections that contain only strings.


[21674] BitVector32 structure (System.Collections.Specialized)


[21675] Description


[21676] Provides a simple structure that stores Boolean values and small integers in 32 bits of memory.


[21677] System.Collections.Specialized.BitVector32 is more efficient than System.Collections.BitArray for Boolean values and small integers that are used internally.


[21678] Constructors:


[21679] BitVector32


[21680] Example Syntax:


[21681] [C#] public BitVector32(BitVector32 value);


[21682] [C++] public: BitVector32(BitVector32 value);


[21683] [VB] Public Sub New(ByVal value As BitVector32)


[21684] [JScript] public function BitVector32(value: BitVector32);


[21685] Description


[21686] Initializes a new instance of the System.Collections.Specialized.BitVector32 structure containing the data represented in an existing System.Collections.Specialized.BitVector32 structure. A System.Collections.Specialized.BitVector32 structure that contains the data to copy.


[21687] BitVector32


[21688] Example Syntax:


[21689] [C+] public BitVector32(int data);


[21690] [C++] public: BitVector32(int data);


[21691] [VB] Public Sub New(ByVal data As Integer)


[21692] [JScript] public function BitVector32(data: int); Initializes a new instance of the System.Collections.Specialized.BitVector32 structure.


[21693] Description


[21694] Initializes a new instance of the System.Collections.Specialized.BitVector32 structure containing the data represented in an integer. An integer representing the data of the new System.Collections.Specialized.BitVector32.


[21695] Properties:


[21696] Data


[21697] [C#] public int Data {get;}


[21698] [C++] public: _property int get _Data( );


[21699] [VB] Public ReadOnly Property Data As Integer


[21700] [JScript] public function get Data( ): int;


[21701] Description


[21702] Gets the value of the System.Collections.Specialized.BitVector32 as an integer.


[21703] To access the value of the individual sections or bit flags, use the System.Collections.Specialized.BitVector32.Item(System.Int32) property.


[21704] Item


[21705] [C#] public int this [BitVector32.Section section] {get; set;}


[21706] [C++] public: _property int get_Item (BitVector32.Section section);public: _property void set_Item(BitVector32.Section section, int);


[21707] [VB] Public Default Property Item(ByVal section As BitVector32.Section) As Integer


[21708] [JScript] returnValue =BitVector32Object.Item(section);BitVector32Object.Item(section)=returnValue;


[21709] Description


[21710] Gets or sets the value stored in the specified System.Collections.Specialized.BitVector32.Section.


[21711] System.Collections.Specialized.BitVector32.Item(System.Int32) [Section] property is the indexer for a System.Collections.Specialized.BitVector32 that is set up as sections, and System.Collections.Specialized.BitVector32.Item(System.Int32) [int] property is the indexer for a System.Collections.Specialized.BitVector32 that is set up as bit flags. A System.Collections.Specialized.BitVector32.Section that contains the value to get or set.


[21712] Item


[21713] [C#] public bool this[int bit] {get; set;}


[21714] [C++] public: _property bool get_Item(int bit);public: _property void set_Item(int bit, bool);


[21715] [VB] Public Default Property Item(ByVal bit As Integer) As Boolean


[21716] [JScript] returnValue=BitVector32Object.Item(bit);BitVector32Object.Item(bit)=returnValue; Gets or sets the value of the specified section or bit flag.


[21717] Description


[21718] Gets or sets the state of the bit flag indicated by the specified mask.


[21719] System.Collections.Specialized.BitVector32.Item(System.Int32) [Section] property is the indexer for a System.Collections.Specialized.BitVector32 that is set up as sections, and System.Collections.Specialized.BitVector32.Item(System.Int32) [int] property is the indexer for a System.Collections.Specialized.BitVector32 that is set up as bit flags. A mask that indicates the bit to get or set.


[21720] Methods:


[21721] CreateMask


[21722] [C#] public static int CreateMask( );


[21723] [C++] public: static int CreateMask( );


[21724] [VB] Public Shared Function CreateMask( ) As Integer


[21725] [JScript] public static function CreateMask( ): int; Creates a series of masks that can be used to access individual bits in a System.Collections.Specialized.BitVector32 that is set up as bit flags.


[21726] Description


[21727] Creates the first mask in a series of masks that can be used to access individual bits in a System.Collections.Specialized.BitVector32 that is set up as bit flags.


[21728] Return Value: A mask that isolates the first bit flag in the System.Collections.Specialized.BitVector32.


[21729] Use CreateMask( ) to create the first mask in a series and CreateMask(int) for all subsequent masks.


[21730] CreateMask


[21731] [C#] public static int CreateMask(int previous);


[21732] [C++] public: static int CreateMask(int previous);


[21733] [VB] Public Shared Function CreateMask(ByVal previous As Integer) As Integer


[21734] [JScript] public static function CreateMask(previous: int): int;


[21735] Description


[21736] Creates the mask following the specified mask in a series of masks that can be used to access individual bits in a System.Collections.Specialized.BitVector32 that is set up as bit flags.


[21737] Return Value: A mask that isolates the bit flag following the one that previous points to in System.Collections.Specialized.BitVector32.


[21738] Use CreateMask( ) to create the first mask in a series and CreateMask(int) for all subsequent masks. The mask that indicates the previous bit flag.


[21739] CreateSection


[21740] [C#] public static Section CreateSection(short maxValue);


[21741] [C++] public: static Section CreateSection(short maxValue);


[21742] [VB] Public Shared Function CreateSection(ByVal maxValue As Short) As Section


[21743] [JScript] public static function CreateSection(maxValue: Int16): Section; Creates a series of sections that contain small integers.


[21744] Description


[21745] Creates the first System.Collections.Specialized.BitVector32.Section in a series of sections that contain small integers.


[21746] Return Value: A System.Collections.Specialized.BitVector32.Section that can hold a number from zero to maxValue.


[21747] A System.Collections.Specialized.BitVector32.Section is a window into the System.Collections.Specialized.BitVector32 and is composed of the smallest number of consecutive bits that can contain the maximum value specified in System.Collections.Specialized.BitVector32.CreateSection(System.Int16). For example, a section with a maximum value of 1 is composed of only one bit, whereas a section with a maximum value of 5 is composed of three bits. You can create a System.Collections.Specialized.BitVector32.Section with a maximum value of 1 to serve as a Boolean, thereby allowing you to store integers and Booleans in the same System.Collections.Specialized.BitVector32. A 16-bit signed integer that specifies the maximum value for the new System.Collections.Specialized.BitVector32.Section.


[21748] CreateSection


[21749] [C#] public static Section CreateSection(short maxValue, BitVector32.Section previous);


[21750] [C++] public: static Section CreateSection(short maxValue, BitVector32.Section previous);


[21751] [VB] Public Shared Function CreateSection(ByVal maxValue As Short, ByVal previous As BitVector32.Section) As Section


[21752] [JScript] public static function CreateSection(maxValue: Int 16,previous: BitVector32.Section): Section;


[21753] Description


[21754] Creates a new System.Collections.Specialized.BitVector32.Section following the specified System.Collections.Specialized.BitVector32.Section in a series of sections that contain small integers.


[21755] Return Value: A System.Collections.Specialized.BitVector32.Section that can hold a number from zero to maxValue.


[21756] A System.Collections.Specialized.BitVector32.Section is a window into the System.Collections.Specialized.BitVector32 and is composed of the smallest number of consecutive bits that can contain the maximum value specified in System.Collections.Specialized.BitVector32.CreateSection(System.Int16). For example, a section with a maximum value of 1 is composed of only one bit, whereas a section with a maximum value of 5 is composed of three bits. You can create a System.Collections.Specialized.BitVector32.Section with a maximum value of 1 to serve as a Boolean, thereby allowing you to store integers and Booleans in the same System.Collections.Specialized.BitVector32.A 16-bit signed integer that specifies the maximum value for the new System.Collections.Specialized.BitVector32.Section. The previous System.Collections.Specialized.BitVector32.Section in the System.Collections.Specialized.BitVector32.


[21757] Equals


[21758] [C#] public override bool Equals(object o);


[21759] [C++] public: bool Equals(Object* o);


[21760] [VB] Overrides Public Function Equals(ByVal o As Object) As Boolean


[21761] [JScript] public override function Equals(o: Object): Boolean;


[21762] Description


[21763] Determines whether the specified object is equal to the System.Collections.Specialized.BitVector32.


[21764] Return Value: true if the specified System.Object is equal to the System.Collections.Specialized.BitVector32; otherwise, false.


[21765] The object o is considered equal to the System.Collections.Specialized.BitVector32 if the type of o is compatible with the System.Collections.Specialized.BitVector32 type and if the value of o is equal to the value of System.Collections.Specialized.BitVector32.Data. The System.Object to compare with the current System.Collections.Specialized.BitVector32.


[21766] GetHashCode


[21767] [C#] public override int GetHashCode( );


[21768] [C++] public: int GetHashCode( );


[21769] [VB] Overrides Public Function GetHashCode( ) As Integer


[21770] [JScript] public override function GetHashCode( ): int;


[21771] Description


[21772] Serves as a hash function for the System.Collections.Specialized.BitVector32.


[21773] Return Value: A hash code for the System.Collections.Specialized.BitVector32.


[21774] The hash code of a System.Collections.Specialized.BitVector32 is based on the value of System.Collections.Specialized.BitVector32.Data. Two instances of System.Collections.Specialized.BitVector32 with the same value for System.Collections.Specialized.BitVector32.Data will also generate the same hash code.


[21775] ToString


[21776] [C#] public override string ToString( );


[21777] [C++] public: String* ToString( );


[21778] [VB] Overrides Public Function ToString( ) As String


[21779] [JScript] public override function ToString( ): String;


[21780] Description


[21781] ToString


[21782] [C#] public static string ToString(BitVector32 value);


[21783] [C++] public: static String* ToString(BitVector32 value);


[21784] [VB] Public Shared Function ToString(ByVal value As BitVector32) As String


[21785] [JScript] public static function ToString(value: BitVector32): String;


[21786] Description


[21787] CollectionsUtil class (System.Collections.Specialized)


[21788] ToString


[21789] Description


[21790] Creates collections that ignore the case in strings.


[21791] These methods generate a case-insensitive instance of the collection using case-insensitive implementations of the hash code provider and the comparer. The resulting instance can be used like any other instances of that class, although it may behave differently.


[21792] CollectionsUtil


[21793] Example Syntax:


[21794] ToString


[21795] [C#] public CollectionsUtil( );


[21796] [C++] public: CollectionsUtil( );


[21797] [VB] Public Sub New( )


[21798] [JScript] public function CollectionsUtil( );


[21799] CreateCaseInsensitiveHashtable


[21800] [C#] public static Hashtable CreateCaseInsensitiveHashtable( );


[21801] [C++] public: static Hashtable* CreateCaseInsensitiveHashtable( );


[21802] [VB] Public Shared Function CreateCaseInsensitiveHashtable( ) As Hashtable


[21803] [JScript] public static function CreateCaseInsensitiveHashtable( ): Hashtable;


[21804] Creates a new instance of the System.Collections.Hashtable class that ignores the case of strings.


[21805] Description


[21806] Creates a new case-insensitive instance of the System.Collections.Hashtable class with the default initial capacity.


[21807] Return Value: A new case-insensitive instance of the System.Collections.Hashtable class with the default initial capacity.


[21808] The new System.Collections.Hashtable instance uses the default load factor, the System.Collections.CaseInsensitiveHashCodeProvider, and the System.Collections.CaseInsensitiveComparer.


[21809] CreateCaseInsensitiveHashtable


[21810] [C#] public static Hashtable CreateCaseInsensitiveHashtable(IDictionary d);


[21811] [C++] public: static Hashtable* CreateCaseInsensitiveHashtable(IDictionary* d);


[21812] [VB] Public Shared Function CreateCaseInsensitiveHashtable(ByVal d As IDictionary) As Hashtable


[21813] [JScript] public static function CreateCaseInsensitiveHashtable(d: IDictionary): Hashtable;


[21814] Description


[21815] Copies the entries from the specified dictionary to a new case-insensitive instance of the System.Collections.Hashtable class with the same initial capacity as the number of entries copied.


[21816] Return Value: A new case-insensitive instance of the System.Collections.Hashtable class containing the entries from the specified System.Collections.IDictionary


[21817] The new System.Collections.Hashtable instance uses the default load factor, the System.Collections.CaseInsensitiveHashCodeProvider, and the System.Collections.CaseInsensitiveComparer. The System.Collections.IDictionary to copy to a new case-insensitive System.Collections.Hashtable.


[21818] CreateCaseInsensitiveHashtable


[21819] [C#] public static Hashtable CreateCaseInsensitiveHashtable(int capacity);


[21820] [C++] public: static Hashtable* CreateCaseInsensitiveHashtable(int capacity);


[21821] [VB] Public Shared Function CreateCaseInsensitiveHashtable(ByVal capacity As Integer) As Hashtable


[21822] [JScript] public static function CreateCaseInsensitiveHashtable(capacity: int): Hashtable;


[21823] Description


[21824] Creates a new case-insensitive instance of the System.Collections.Hashtable class with the specified initial capacity.


[21825] Return Value: A new case-insensitive instance of the System.Collections.Hashtable class with the specified initial capacity.


[21826] The new System.Collections.Hashtable instance uses the default load factor, the System.Collections.CaseInsensitiveHashCodeProvider, and the System.Collections.CaseInsensitiveComparer. The approximate number of entries that the System.Collections.Hashtable can initially contain.


[21827] CreateCaseInsensitiveSortedList


[21828] [C#] public static SortedList CreateCaseInsensitiveSortedList( );


[21829] [C++] public: static SortedList* CreateCaseInsensitiveSortedList( );


[21830] [VB] Public Shared Function CreateCaseInsensitiveSortedList( ) As SortedList


[21831] [JScript] public static function CreateCaseInsensitiveSortedList( ): SortedList;


[21832] Description


[21833] Creates a new instance of the System.Collections.SortedList class that ignores the case of strings.


[21834] Return Value: A new instance of the System.Collections.SortedList class that ignores the case of strings.


[21835] The new System.Collections.SortedList instance is sorted according to the System.Collections.CaseInsensitiveComparer.


[21836] HybridDictionary class (System.Collections.Specialized)


[21837] ToString


[21838] Description


[21839] Implements IDictionary by using a System.Collections.Specialized.ListDictionary while the collection is small, and then switching to a System.Collections.Hashtable when the collection gets large.


[21840] This class is recommended for cases where the number of elements in a dictionary is unknown. It takes advantage of the improved performance of a System.Collections.Specialized.ListDictionary with small collections, and offers the flexibility of switching to a System.Collections.Hashtable which handles larger collections better than System.Collections.Specialized.ListDictionary.


[21841] HybridDictionary


[21842] Example Syntax:


[21843] ToString


[21844] [C#] public HybridDictionary( );


[21845] [C++] public: HybridDictionary( );


[21846] [VB] Public Sub New( )


[21847] [JScript] public function HybridDictionary( ); Initializes a new instance of the System.Collections.Specialized.HybridDictionary class.


[21848] Description


[21849] Creates an empty case-sensitive System.Collections.Specialized.HybridDictionary.


[21850] By default, the collection is case-sensitive and uses the key's implementation of System.Object.GetHashCode as the hash code provider and the key's implementation of System.Object.Equals(System.Object) as the comparer.


[21851] HybridDictionary


[21852] Example Syntax:


[21853] ToString


[21854] [C#] public HybridDictionary(bool caseInsensitive);


[21855] [C++] public: HybridiDictionary(bool caseInsensitive);


[21856] [VB] Public Sub New(ByVal caseInsensitive: As Boolean)


[21857] [JScript] public function HybridDictionary(caseInsensitive: Boolean);


[21858] Description


[21859] Creates an empty System.Collections.Specialized.HybridDictionary with the specified case-sensitivity.


[21860] If caseInsensitive is false, the collection uses the key's implementations of System.Object.GetHashCode and System.Object.Equals(System.Object) If caseInsensitive is true, the collection uses the System.Collections.CaseInsensitiveHashCodeProvider and a private case-insensitive and culture-insensitive implementation of the System.Collections.IComparer interface that only converts the strings to the same case and compares the Unicode values of the characters. A Boolean that denotes whether the System.Collections.Specialized.HybridDictionary is case-insensitive.


[21861] HybridDictionary


[21862] Example Syntax:


[21863] ToString


[21864] [C#] public HybridDictionary(int initialSize);


[21865] [C++] public: HybridDictionary(int initialSize);


[21866] [VB] Public Sub New(ByVal initialSize As Integer)


[21867] [JScript] public function HybridDictionary(initialSize: int);


[21868] Description


[21869] Creates a case-sensitive System.Collections.Specialized.HybridDictionary with the specified initial size.


[21870] If the initial size of the collection is greater than the optimal size for a System.Collections.Specialized.ListDictionary, the collection is stored in a System.Collections.Hashtable right away to avoid the overhead of copying elements from the System.Collections.Specialized.ListDictionary to the System.Collections.Hashtable. The approximate number of entries that the System.Collections.Specialized.HybridDictionary can initially contain.


[21871] HybridDictionary


[21872] Example Syntax:


[21873] ToString


[21874] [C#] public HybridDictionary(int initialSize, bool caseInsensitive);


[21875] [C++] public: HybridDictionary(int initialSize, bool caseInsensitive);


[21876] [VB] Public Sub New(ByVal initialSize As Integer, ByVal caseInsensitive As Boolean)


[21877] [JScript] public function HybridDictionary(initialSize: int, caseInsensitive: Boolean);


[21878] Description


[21879] Creates a System.Collections.Specialized.HybridDictionary with the specified initial size and case-sensitivity.


[21880] If the initial size of the collection is greater than the optimal size for a System.Collections.Specialized.ListDictionary, the collection is stored in a System.Collections.Hashtable right away to avoid the overhead of copying elements from the System.Collections.Specialized.ListDictionary to the System.Collections.Hashtable. The approximate number of entries that the System.Collections.Specialized.HybridDictionary can initially contain. A Boolean that denotes whether the System.Collections.Specialized.HybridDictionary is case-insensitive.


[21881] Count


[21882] ToString


[21883] [C#] public int Count {get;}


[21884] [C++] public: _property int get _Count( );


[21885] [VB] Public ReadOnly Property Count As Integer


[21886] [JScript] public function get Count( ): int;


[21887] Description


[21888] Gets the number of key-and-value pairs contained in the System.Collections.Specialized.HybridDictionary.


[21889] IsFixedSize


[21890] ToString


[21891] [C#] public bool IsFixedSize {get;}


[21892] [C++] public: _property bool get _IsFixedSize( );


[21893] [VB] Public ReadOnly Property IsFixedSize As Boolean


[21894] [JScript] public function get IsFixedSize( ): Boolean;


[21895] Description


[21896] Gets a value indicating whether the System.Collections.Specialized.HybridDictionary has a fixed size.


[21897] System.Collections.Specialized.HybridDictionary implements the System.Collections.Specialized.HybridDictionary.IsFixedSize property because it is required by the interface.


[21898] IsReadOnly


[21899] ToString


[21900] [C#] public bool IsReadOnly {get;}


[21901] [C++] public: _property bool get _IsReadOnly( );


[21902] [VB] Public ReadOnly Property IsReadOnly As Boolean


[21903] [JScript] public function get IsReadOnly( ): Boolean;


[21904] Description


[21905] Gets a value indicating whether the System.Collections.Specialized.HybridDictionary is read-only.


[21906] System.Collections.Specialized.HybridDictionary implements the System.Collections.Specialized.HybridDictionary.IsReadOnly property because it is required by the interface.


[21907] IsSynchronized


[21908] ToString


[21909] [C#] public bool IsSynchronized {get;}


[21910] [C++] public: _property bool get_IsSynchronized( );


[21911] [VB] Public ReadOnly Property IsSynchronized As Boolean


[21912] [JScript] public function get IsSynchronized( ): Boolean;


[21913] Description


[21914] Gets a value indicating whether the System.Collections.Specialized.HybridDictionary is synchronized (thread-safe).


[21915] System.Collections.Specialized.HybridDictionary implements the System.Collections.Specialized.HybridDictionary.IsSynchronized property because it is required by the interface.


[21916] Item


[21917] ToString


[21918] [C#] public object this[object key] {get; set;}


[21919] [C++] public: _property Object* get_Item(Object* key);public: _property void set_Item(Object* key, Object*);


[21920] [VB] Public Default Property Item(ByVal key As Object) As Object


[21921] [JScript] returnValue=HybridDictionaryObject.Item(key);HybridDictionaryObject.Item(key)=returnValue;


[21922] Description


[21923] Gets or sets the value associated with the specified key.


[21924] This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[key]. The key whose value to get or set.


[21925] Keys


[21926] ToString


[21927] [C#] public ICollection Keys {get;}


[21928] [C++] public: _property ICollection* get_Keys( );


[21929] [VB] Public ReadOnly Property Keys As ICollection


[21930] [JScript] public function get Keys( ): ICollection;


[21931] Description


[21932] Gets an System.Collections.ICollection containing the keys in the System.Collections.Specialized.HybridDictionary.


[21933] The order of the values in the System.Collections.ICollection is unspecified, but it is the same order as the associated values in the System.Collections.ICollection returned by the System.Collections.Specialized.HybridDictionary.Values method.


[21934] SyncRoot


[21935] ToString


[21936] [C#] public object SyncRoot {get;}


[21937] [C++] public: _property Object* get_SyncRoot( );


[21938] [VB] Public ReadOnly Property SyncRoot As Object


[21939] [JScript] public function get SyncRoot( ): Object;


[21940] Description


[21941] Gets an object that can be used to synchronize access to the System.Collections.Specialized.HybridDictionary.


[21942] Derived classes can provide their own synchronized version of the System.Collections.Specialized.HybridDictionary using the System.Collections.Specialized.HybridDictionary.SyncRoot property. The synchronizing code must perform operations on the System.Collections.Specialized.HybridDictionary.SyncRoot of the System.Collections.Specialized.HybridDictionary, not directly on the System.Collections.Specialized.HybridDictionary. This ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the System.Collections.Specialized.HybridDictionary object.


[21943] Values


[21944] ToString


[21945] [C#] public ICollection Values {get;}


[21946] [C++] public: _property ICollection* get_Values( );


[21947] [VB] Public ReadOnly Property Values As ICollection


[21948] [JScript] public function get Values( ): ICollection;


[21949] Description


[21950] Gets an System.Collections.lCollection containing the values in the System.Collections.Specialized.HybridDictionary.


[21951] The order of the values in the System.Collections.ICollection is unspecified, but it is the same order as the associated keys in the System.Collections.ICollection returned by the System.Collections.Specialized.HybridDictionary.Keys method.


[21952] Add


[21953] [C#] public void Add(object key, object value);


[21954] [C++] public: _sealed void Add(Object* key, Object* value);


[21955] [VB] NotOverridable Public Sub Add(ByVal key As Object, ByVal value As Object)


[21956] [JScript] public function Add(key: Object, value: Object);


[21957] Description


[21958] Adds an entry with the specified key and value into the System.Collections.Specialized.HybridDictionary.


[21959] An object that has no correlation between its state and its hash code value should typically not be used as the key. For example, String objects are better than StringBuilder objects for use as keys. The key of the entry to add. The value of the entry to add.


[21960] Clear


[21961] [C#] public void Clear( );


[21962] [C++] public: _sealed void Clear( );


[21963] [VB] NotOverridable Public Sub Clear( )


[21964] [JScript] public function Clear( );


[21965] Description


[21966] Removes all entries from the System.Collections.Specialized.HybridDictionary.


[21967] System.Collections.Specialized.HybridDictionary.Count is set to zero.


[21968] Contains


[21969] [C#] public bool Contains(object key);


[21970] [C++] public: _sealed bool Contains(Object* key);


[21971] [VB] NotOveridable Public Function Contains(ByVal key As Object) As Boolean


[21972] [JScript] public function Contains(key: Object): Boolean;


[21973] Description


[21974] Determines whether the System.Collections.Specialized.HybridDictionary contains a specific key.


[21975] Return Value: true if the System.Collections.Specialized.HybridDictionary contains an entry with the specified key; otherwise, false.


[21976] This implementation is close to O(1) in most cases. The key to locate in the System.Collections.Specialized.HybridDictionary.


[21977] CopyTo


[21978] [C#] public void CopyTo(Array array, int index);


[21979] [C++] public: _sealed void CopyTo(Array* array, int index);


[21980] [VB] NotOverridable Public Sub CopyTo(ByVal array As Array, ByVal index As Integer)


[21981] [JScript] public function CopyTo(array: Array, index: int);


[21982] Description


[21983] Copies the System.Collections.Specialized.HybridDictionary entries to a one-dimensional System.Array instance at the specified index.


[21984] The elements are copied to the System.Array in the same order in which the enumerator iterates through the System.Collections.Specialized.HybridDictionary The one-dimensional System.Array that is the destination of the System.Collections.DictionaryEntry objects copied from System.Collections.Specialized.HybridDictionary. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[21985] GetEnumerator


[21986] [C#] public IDictionaryEnumerator GetEnumerator( );


[21987] [C++] public: _sealed IDictionaryEnumerator* GetEnumerator( );


[21988] [VB] NotOverridable Public Function GetEnumerator( ) As IDictionaryEnumerator


[21989] [JScript] public function GetEnumerator( ): IDictionaryEnumerator; Returns an enumerator that can iterate through the System.Collections.Specialized.HybridDictionary.


[21990] Description


[21991] Returns an enumerator that can iterate through the System.Collections.Specialized.HybridDictionary.


[21992] Return Value: An System.Collections.lDictionaryEnumerator for the System.Collections.Specialized.HybridDictionary.


[21993] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[21994] Remove


[21995] [C#] public void Remove(object key);


[21996] [C++] public: _sealed void Remove(Object* key);


[21997] [VB] NotOverridable Public Sub Remove(ByVal key As Object)


[21998] [JScript] public function Remove(key: Object);


[21999] Description


[22000] Removes the entry with the specified key from the System.Collections.Specialized.HybridDictionary.


[22001] If the System.Collections.Specialized.HybridDictionary does not contain an element with the specified key, the System.Collections.Specialized.HybridDictionary remains unchanged. No exception is thrown. The key of the entry to remove.


[22002] IEnumerable.GetEnumerator


[22003] [C#] IEnumerator IEnumerable.GetEnumerator( );


[22004] [C++] IEnumerator* IEnumerable::GetEnumerator( );


[22005] [VB] Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator


[22006] [JScript] function IEnumerable.GetEnumerator( ): IEnumerator;


[22007] NameObjectCollectionBase.KeysCollection class (System.Collections.Specialized)


[22008] ToString


[22009] Description


[22010] Represents a collection of the System.String keys of a collection.


[22011] Count


[22012] ToString


[22013] [C#] public int Count {get;}


[22014] [C++] public: _property int get_Count( );


[22015] [VB] Public ReadOnly Property Count As Integer


[22016] [JScript] public function get Count( ): int;


[22017] Description


[22018] Gets the number of keys in the System.Collections.Specialized.NameObjectCollectionBase.KeysCollection


[22019] Item


[22020] ToString


[22021] [C#] public string this[int index] {get;}


[22022] [C++] public: _property String* getItem(int index);


[22023] [VB] Public Default ReadOnly Property Item(ByVal index As Integer) As String


[22024] [JScript] returnValue=KeysCollectionObject.Item(index);


[22025] Description


[22026] Gets the entry at the specified index of the collection.


[22027] This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[index] (In Visual Basic, myCollection(index)). The zero-based index of the entry to locate in the collection.


[22028] Get


[22029] [C#] public virtual string Get(int index);


[22030] [C++] public: virtual String* Get(int index);


[22031] [VB] Overridable Public Function Get(ByVal index As Integer) As String


[22032] [JScript] public function Get(index: int): String;


[22033] Description


[22034] Gets the key at the specified index of the collection.


[22035] Return Value: A System.String that contains the key at the specified index of the collection. The zero-based index of the key to get from the collection.


[22036] GetEnumerator


[22037] [C#] public IEnumerator GetEnumerator( );


[22038] [C++] public: _sealed IEnumerator* GetEnumerator( );


[22039] [VB] NotOverridable Public Function GetEnumerator( ) As IEnumerator


[22040] [JScript] public function GetEnumerator( ): IEnumerator;


[22041] Description


[22042] Returns an enumerator that can iterate through the System.Collections.Specialized.NameObjectCollectionBase.KeysCollection.


[22043] Return Value: An System.Collections.IEnumerator for the System.Collections.Specialized.NameObjectCollectionBase.KeysCollection.


[22044] This enumerator returns the keys of the collection as strings.


[22045] ICollection.CopyTo


[22046] [C#] void ICollection.CopyTo(Array array, int index);


[22047] [C++] void ICollection::CopyTo(Array* array, int index);


[22048] [VB] Sub CopyTo(ByVal array As Array, ByVal index As Integer) Implements ICollection.CopyTo


[22049] [JScript] function ICollection.CopyTo(array: Array, index: int);


[22050] ListDictionary class (System.Collections.Specialized)


[22051] ToString


[22052] Description


[22053] Implements IDictionary using a singly linked list for collections that contain 10 items or less.


[22054] This is a simple implementation of System.Collections.IDictionary using a singly linked list. It is smaller and faster than a System.Collections.Hashtable if the number of elements is 10 or less. This should not be used if performance is important for large numbers of elements.


[22055] ListDictionary


[22056] Example Syntax:


[22057] ToString


[22058] [C#] public ListDictionary( );


[22059] [C++] public: ListDictionary( );


[22060] [VB] Public Sub New( )


[22061] [JScript] public function ListDictionary( ); Initializes a new instance of the System.Collections.Specialized.ListDictionary class.


[22062] Description


[22063] Creates an empty System.Collections.Specialized.ListDictionary using the default comparer.


[22064] The comparer determines whether two keys are equal. Every key in a System.Collections.Specialized.ListDictionary must be unique. The default comparer is the key's implementation of System.Object.Equals(System.Object).


[22065] ListDictionary


[22066] Example Syntax:


[22067] ToString


[22068] [C#] public ListDictionary(IComparer comparer);


[22069] [C++] public: ListDictionary(IComparer* comparer);


[22070] [VB] Public Sub New(ByVal comparer As IComparer)


[22071] [JScript] public function ListDictionary(comparer: IComparer);


[22072] Description


[22073] Creates an empty System.Collections.Specialized.ListDictionary using the specified comparer.


[22074] The comparer determines whether two keys are equal. Every key in a System.Collections.Specialized.ListDictionary must be unique. The default comparer is the key's implementation of System.Object.Equals(System.Object). The System.Collections.IComparer to use to determine whether two keys are equal.


[22075] Count


[22076] ToString


[22077] [C#] public int Count {get;}


[22078] [C++] public: property int getCount( );


[22079] [VB] Public ReadOnly Property Count As Integer


[22080] [JScript] public function get Count( ): int;


[22081] Description


[22082] Gets the number of key-and-value pairs contained in the System.Collections.Specialized.ListDictionary.


[22083] IsFixedSize


[22084] ToString


[22085] [C#] public bool IsFixedSize {get;}


[22086] [C++] public: _property bool get_IsFixedSize( );


[22087] [VB] Public ReadOnly Property IsFixedSize As Boolean


[22088] [JScript] public function get IsFixedSize( ): Boolean;


[22089] Description


[22090] Gets a value indicating whether the System.Collections.Specialized.ListDictionary has a fixed size.


[22091] System.Collections.Specialized.ListDictionary implements the System.Collections.Specialized.ListDictionary.IsFixedSize property because it is required by the interface.


[22092] IsReadOnly


[22093] ToString


[22094] [C#] public bool IsReadOnly {get;}


[22095] [C++] public: _property bool get_IsReadOnly( );


[22096] [VB] Public ReadOnly Property IsReadOnly As Boolean


[22097] [JScript] public function get IsReadOnly( ): Boolean;


[22098] Description


[22099] Gets a value indicating whether the System.Collections.Specialized.ListDictionary is read-only.


[22100] System.Collections.Specialized.ListDictionary implements the System.Collections.Specialized.ListDictionary.IsReadOnly property because it is required by the interface.


[22101] IsSynchronized


[22102] ToString


[22103] [C#] public bool IsSynchronized {get;}


[22104] [C++] public: _property bool get_IsSynchronized( );


[22105] [VB] Public ReadOnly Property IsSynchronized As Boolean


[22106] [JScript] public function get IsSynchronized( ): Boolean;


[22107] Description


[22108] Gets a value indicating whether the System.Collections.Specialized.ListDictionary is synchronized (thread-safe).


[22109] System.Collections.Specialized.ListDictionary implements the System.Collections.Specialized.ListDictionary.IsSynchronized property because it is required by the interface.


[22110] Item


[22111] ToString


[22112] [C#] public object this [object key] {get; set;}


[22113] [C++] public: _property Object* get_Item(Object* key);public: _property void set_Item(Object* key, Object*);


[22114] [VB] Public Default Property Item(ByVal key As Object) As Object


[22115] [JScript] returnValue=ListDictionaryObject.Item(key);ListDictionaryObject.Item(key)=returnvalue;


[22116] Description


[22117] Gets or sets the value associated with the specified key.


[22118] This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[key]. The key whose value to get or set.


[22119] Keys


[22120] ToString


[22121] [C#] public ICollection Keys {get;}


[22122] [C++] public: _Property ICollection* get_Keys( );


[22123] [VB] Public ReadOnly Property Keys As ICollection


[22124] [JScript] public function get Keys( ): ICollection;


[22125] Description


[22126] Gets an System.Collections.ICollection containing the keys in the System.Collections.Specialized.ListDictionary.


[22127] The order of the values in the System.Collections.ICollection is unspecified, but it is the same order as the associated values in the System.Collections.ICollection returned by the System.Collections.Specialized.ListDictionary.Values method.


[22128] SyncRoot


[22129] ToString


[22130] [C#] public object SyncRoot {get;}


[22131] [C++] public: _property Object* get_SyncRoot( );


[22132] [VB] Public ReadOnly Property SyncRoot As Object


[22133] [JScript] public function get SyncRoot( ): Object;


[22134] Description


[22135] Gets an object that can be used to synchronize access to the System.Collections.Specialized.ListDictionary.


[22136] Derived classes can provide their own synchronized version of the System.Collections.Specialized.ListDictionary using the System.Collections.Specialized.ListDictionary.SyncRoot property. The synchronizing code must perform operations on the System.Collections.Specialized.ListDictionary.SyncRoot of the System.Collections.Specialized.ListDictionary, not directly on the System.Collections.Specialized.ListDictionary. This ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the System.Collections.Specialized.ListDictionary object.


[22137] Values


[22138] ToString


[22139] [C#] public ICollection Values {get;}


[22140] [C++] public: _property ICollection* get_Values( );


[22141] [VB] Public ReadOnly Property Values As ICollection


[22142] [JScript] public function get Values( ): ICollection;


[22143] Description


[22144] Gets an System.Collections.ICollection containing the values in the System.Collections.Specialized.ListDictionary.


[22145] The order of the values in the System.Collections.ICollection is unspecified, but it is the same order as the associated keys in the System.Collections.ICollection returned by the System.Collections.Specialized.ListDictionary.Keys method.


[22146] Add


[22147] [C#] public void Add(object key, object value);


[22148] [C++] public: _sealed void Add(Object* key, Object* value);


[22149] [VB] NotOverridable Public Sub Add(ByVal key As Object, ByVal value As Object)


[22150] [JScript] public function Add(key: Object, value: Object);


[22151] Description


[22152] Adds an entry with the specified key and value into the System.Collections.Specialized.ListDictionary.


[22153] An object that has no correlation between its state and its hash code value should typically not be used as the key. For example, String objects are better than StringBuilder objects for use as keys. The key of the entry to add. The value of the entry to add.


[22154] Clear


[22155] [C#] public void Clear( );


[22156] [C++] public: _sealed void Clear( );


[22157] [VB] NotOverridable Public Sub Clear( )


[22158] [JScript] public function Clear( );


[22159] Description


[22160] Removes all entries from the System.Collections.Specialized.ListDictionary.


[22161] System.Collections.Specialized.ListDictionary.Count is set to zero.


[22162] Contains


[22163] [C#] public bool Contains(object key);


[22164] [C++] public: _sealed bool Contains(Object* key);


[22165] [VB] NotOverridable Public Function Contains(ByVal key As Object) As Boolean


[22166] [JScript] public function Contains(key: Object): Boolean;


[22167] Description


[22168] Determines whether the System.Collections.Specialized.ListDictionary contains a specific key.


[22169] Return Value: true if the System.Collections.Specialized.ListDictionary contains an entry with the specified key; otherwise, false.


[22170] This implementation is close to O(1) in most cases. The key to locate in the System.Collections.Specialized.ListDictionary.


[22171] CopyTo


[22172] [C#] public void CopyTo(Array array, int index);


[22173] [C++] public: _sealed void CopyTo(Array* array, int index);


[22174] [VB] NotOverridable Public Sub CopyTo(ByVal array As Array, ByVal index As Integer)


[22175] [JScript] public function CopyTo(array: Array, index: int);


[22176] Description


[22177] Copies the System.Collections.Specialized.ListDictionary entries to a one-dimensional System.Array instance at the specified index.


[22178] The elements are copied to the System.Array in the same order in which the enumerator iterates through the System.Collections.Specialized.ListDictionary. The one-dimensional System.Array that is the destination of the System.Collections.DictionaryEntry objects copied from System.Collections.Specialized.ListDictionary. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[22179] GetEnumerator


[22180] [C#] public IDictionaryEnumerator GetEnumerator( );


[22181] [C++] public: _sealed IDictionaryEnumerator* GetEnumerator( );


[22182] [VB] NotOverridable Public Function GetEnumerator( ) As IDictionaryEnumerator


[22183] [JScript] public function GetEnumerator( ): IDictionaryEnumerator;


[22184] Description


[22185] Returns an enumerator that can iterate through the System.Collections.Specialized.ListDictionary.


[22186] Return Value: An System.Collections.lDictionaryEnumerator for the System.Collections.Specialized.ListDictionary.


[22187] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[22188] Remove


[22189] [C#] public void Remove(object key);


[22190] [C++] public: _sealed void Remove(Object* key);


[22191] [VB] NotOverridable Public Sub Remove(ByVal key As Object)


[22192] [JScript] public function Remove(key: Object);


[22193] Description


[22194] Removes the entry with the specified key from the System.Collections.Specialized.ListDictionary


[22195] If the System.Collections.Specialized.ListDictionary does not contain an element with the specified key, the System.Collections.Specialized.ListDictionary remains unchanged. No exception is thrown. The key of the entry to remove.


[22196] IEnumerable.GetEnumerator


[22197] [C#] IEnumerator IEnumerable.GetEnumerator( );


[22198] [C++] IEnumerator* IEnumerable::GetEnumerator( );


[22199] [VB] Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator


[22200] [JScript] function IEnumerable.GetEnumerator( ): IEnumerator;


[22201] NameObjectCollectionBase class (System.Collections.Specialized)


[22202] ToString


[22203] Description


[22204] Provides the abstract base class for a sorted collection of associated System.String keys and System.Object values that can be accessed either with the key or with the index.


[22205] The underlying structure for this class is a hashtable.


[22206] NameObjectCollectionBase


[22207] Example Syntax:


[22208] ToString


[22209] [C#] protected NameObjectCollectionBase( );


[22210] [C++] protected: NameObjectCollectionBase( );


[22211] [VB] Protected Sub New( )


[22212] [JScript] protected function NameObjectCollectionBase( ); Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class.


[22213] Description


[22214] Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is empty.


[22215] The capacity is the number of key-and-value pairs that the System.Collections.Specialized.NameObjectCollectionBase instance can contain. The default initial capacity is zero. The capacity is automatically increased as required.


[22216] NameObjectCollectionBase


[22217] Example Syntax:


[22218] ToString


[22219] [C+] protected NameObjectCollectionBase(int capacity);


[22220] [C++] protected: NameObjectCollectionBase(int capacity);


[22221] [VB] Protected Sub New(ByVal capacity As Integer)


[22222] [JScript] protected function NameObjectCollectionBase(capacity: int);


[22223] Description


[22224] Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is empty and has the specified initial capacity.


[22225] The capacity is the number of key-and-value pairs that the System.Collections.Specialized.NameObjectCollectionBase instance can contain. Specifying the initial capacity eliminates the need to perform a number of resizing operations while entries are added to the System.Collections.Specialized.NameObjectCollectionBase instance. The capacity is automatically increased as required. The approximate number of entries that the System.Collections.Specialized.NameObjectCollectionBase instance can initially contain.


[22226] NameObjectCollectionBase


[22227] Example Syntax:


[22228] ToString


[22229] [C#] protected NameObjectCollectionBase(IHashCodeProvider hashProvider, IComparer comparer);


[22230] [C++] protected: NameObjectCollectionBase(IHashCodeProvider* hashProvider, IComparer* comparer);


[22231] [VB] Protected Sub New(ByVal hashprovider As IHashCodeProvider, ByVal comparer As IComparer)


[22232] [JScript] protected function NameObjectCollectionBase(hashProvider: IHashCodeProvider, comparer: IComparer);


[22233] Description


[22234] Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is empty and uses the specified hash code provider and the specified comparer.


[22235] The capacity is the number of key-and-value pairs that the System.Collections.Specialized.NameObjectCollectionBase instance can contain. The default initial capacity is zero. The capacity is automatically increased as required. The System.Collections.IHashCodeProvider that will supply the hash codes for all keys in the System.Collections.Specialized.NameObjectCollectionBase instance. The System.Collections.IComparer to use to determine whether two keys are equal.


[22236] NameObjectCollectionBase


[22237] Example Syntax:


[22238] ToString


[22239] [C#] protected NameObjectCollectionBase(SerializationInfo info, StreamingContext context);


[22240] [C++] protected: NameObjectCollectionBase(SerializationInfo* info, StreamingContext context);


[22241] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[22242] [JScript] protected function NameObjectCollectionBase(info: SerializationInfo, context: StreamingContext);


[22243] Description


[22244] Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is serializable and uses the specified System.Runtime.Serialization.Serializationlnfo and System.Runtime.Serialization.StreamingContext. A System.Runtime.Serialization.Serializationlnfo object that contains the information required to serialize the new System.Collections.Specialized.NameObjectCollectionBase instance. A System.Runtime.Serialization.StreamingContext object that contains the source and destination of the serialized stream associated with the new System.Collections.Specialized.NameObjectCollectionBase instance.


[22245] NameObjectCollectionBase


[22246] Example Syntax:


[22247] ToString


[22248] [C#] protected NameObjectCollectionBase(int capacity, IHashCodeProvider hashProvider, IComparer comparer);


[22249] [C++] protected: NameObjectCollectionBase(int capacity, IHashCodeProvider* hashProvider, IComparer* comparer);


[22250] [VB] Protected Sub New(ByVal capacity As Integer, ByVal hashprovider As IHashCodeProvider, ByVal comparer As IComparer)


[22251] [JScript] protected function NameObjectCollectionBase(capacity: int, hashprovider: IHashCodeProvider, comparer: IComparer);


[22252] Description


[22253] Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is empty, has the specified initial capacity and uses the specified case-insensitive hash code provider and the specified case-insensitive comparer.


[22254] The capacity is the number of key-and-value pairs that the System.Collections.Specialized.NameObjectCollectionBase instance can contain. Specifying the initial capacity eliminates the need to perform a number of resizing operations while entries are added to the System.Collections.Specialized.NameObjectCollectionBase instance. The capacity is automatically increased as required. The approximate number of entries that the System.Collections.Specialized.NameObjectCollectionBase instance can initially contain. The case-insensitive System.Collections.IHashCodeProvider that will supply the hash codes for all keys in the System.Collections.Specialized.NameObjectCollectionBase instance. The case-insensitive System.Collections.IComparer to use to determine whether two keys are equal.


[22255] Count


[22256] ToString


[22257] [C#] public virtual int Count get;}


[22258] [C++] public: _property virtual int get_Count( );


[22259] [VB] Overridable Public ReadOnly Property Count As Integer


[22260] [JScript] public function get Count( ): int;


[22261] Description


[22262] Gets the number of key-and-value pairs contained in the System.Collections.Specialized.NameObjectCollectionBase instance.


[22263] IsReadOnly


[22264] ToString


[22265] [C#] protected bool IsReadOnly {get; set;}


[22266] [C++] protected: _property bool get_IsReadOnly( );protected: _property void set_IsReadOnly(bool);


[22267] [VB] Protected Property IsReadOnly As Boolean


[22268] [JScript] protected function get IsReadOnly( ): Boolean;protected function set IsReadOnly(Boolean);


[22269] Description


[22270] Gets or sets a value indicating whether the System.Collections.Specialized.NameObjectCollectionBase instance is read-only.


[22271] Keys


[22272] ToString


[22273] [C#] public virtual NameObjectCollectionBase.KeysCollection Keys {get;}


[22274] [C++] public: _property virtual NameObjectCollectionBase.KeysCollection* get_Keys( );


[22275] [VB] Overridable Public ReadOnly Property Keys As NameObjectCollectionBase.KeysCollection


[22276] [JScript] public function get Keys( ): NameObjectCollectionBase.KeysCollection;


[22277] Description


[22278] Gets a System.Collections.Specialized.NameObjectCollectionBase.KeysCollection instance that contains all the keys in the System.Collections.Specialized.NameObjectCollectionBase instance.


[22279] BaseAdd


[22280] [C#] protected void BaseAdd(string name, object value);


[22281] [C++] protected: void BaseAdd(String* name, Object* value);


[22282] [VB] Protected Sub BaseAdd(ByVal name As String, ByVal value As Object)


[22283] [JScript] protected function BaseAdd(name: String, value: Object);


[22284] Description


[22285] Adds an entry with the specified key and value into the System.Collections.Specialized.NameObjectCollectionBase instance. The System.String key of the entry to add. The key can be null. The System.Object value of the entry to add. The value can be null.


[22286] BaseClear


[22287] [C#] protected void BaseClear( );


[22288] [C++] protected: void BaseClear( );


[22289] [VB] Protected Sub BaseClear( )


[22290] [JScript] protected function BaseClear( );


[22291] Description


[22292] Removes all entries from the System.Collections.Specialized.NameObjectCollectionBase instance.


[22293] System.Collections.Specialized.NameObjectCollectionBase.Count is set to zero.


[22294] BaseGet


[22295] [C#] protected object BaseGet(int index);


[22296] [C++] protected: Object* BaseGet(int index);


[22297] [VB] Protected Function BaseGet(ByVal index As Integer) As Object


[22298] [JScript] protected function BaseGet(index: int): Object;


[22299] Description


[22300] Gets the value of the entry at the specified index of the System.Collections.Specialized.NameObjectCollectionBase instance.


[22301] Return Value: An System.Object that represents the value of the entry at the specified index. The zero-based index of the value to get.


[22302] BaseGet


[22303] [C#] protected object BaseGet(string name);


[22304] [C++] protected: Object* BaseGet(String* name);


[22305] [VB] Protected Function BaseGet(ByVal name As String) As Object


[22306] [JScript] protected function BaseGet(name String) Object; Gets the value of the specified entry from the System.Collections.Specialized.NameObjectCollectionBase instance.


[22307] Description


[22308] Gets the value of the first entry with the specified key from the System.Collections.Specialized.NameObjectCollectionBase instance.


[22309] Return Value: An System.Object that represents the value of the first entry with the specified key, if found; otherwise, null.


[22310] If the collection contains multiple entries with the specified key, this method returns only the first entry. To get the values of subsequent entries with the same key, use the enumerator to iterate through the collection and compare the keys. The System.String key of the entry to get. The key can be null.


[22311] BaseGetAllKeys


[22312] [C#] protected string[ ] BaseGetAllKeys( );


[22313] [C++] protected: String* BaseGetAllKeys( )_gc[ ];


[22314] [VB] Protected Function BaseGetAllKeys( ) As String( )


[22315] [JScript] protected function BaseGetAllKeys( ): String[ ];


[22316] Description


[22317] Returns a System.String array that contains all the keys in the System.Collections.Specialized.NameObjectCollectionBase instance.


[22318] Return Value: A System.String array that contains all the keys in the System.Collections.Specialized.NameObjectCollectionBase instance.


[22319] BaseGetAllValues


[22320] [C#] protected object[ ] BaseGetAllValues( );


[22321] [C++] protected: Object* BaseGetAllValues( )_gc[ ];


[22322] [VB] Protected Function BaseGetAllValues( ) As Object( )


[22323] [JScript] protected function BaseGetAllValues( ): Object[ ]; Returns an array that contains all the values in the System.Collections.Specialized.NameObjectCollectionBase instance.


[22324] Description


[22325] Returns an System.Object array that contains all the values in the System.Collections.Specialized.NameObjectCollectionBase instance.


[22326] Return Value: An System.Object array that contains all the values in the System.Collections.Specialized.NameObjectCollectionBase instance.


[22327] BaseGetAllValues


[22328] [C#] protected object[ ] BaseGetAllValues(Type type);


[22329] [C++] protected: Object* BaseGetAllValues(Type* type)_gc[ ];


[22330] [VB] Protected Function BaseGetAllValues(ByVal type As Type) As Object( )


[22331] [JScript] protected function BaseGetAllValues(type: Type): Object[ ];


[22332] Description


[22333] Returns an array of the specified type that contains all the values in the System.Collections.Specialized.NameObjectCollectionBase instance.


[22334] Return Value: An array of the specified type that contains all the values in the System.Collections.Specialized.NameObjectCollectionBase instance. A System.Type that represents the type of array to return.


[22335] BaseGetKey


[22336] [C#] protected string BaseGetKey(int index);


[22337] [C++] protected: String* BaseGetKey(int index);


[22338] [VB] Protected Function BaseGetKey(ByVal index As Integer) As String


[22339] [JScript] protected function BaseGetKey(index: int): String;


[22340] Description


[22341] Gets the key of the entry at the specified index of the System.Collections.Specialized.NameObjectCollectionBase instance.


[22342] Return Value: A System.String that represents the key of the entry at the specified index. The zero-based index of the key to get.


[22343] BaseHasKeys


[22344] [C#] protected bool BaseHasKeys( );


[22345] [C++] protected: bool BaseHasKeys( );


[22346] [VB] Protected Function BaseHasKeys( ) As Boolean


[22347] [JScript] protected function BaseHasKeys( ): Boolean;


[22348] Description


[22349] Gets a value indicating whether the System.Collections.Specialized.NameObjectCollectionBase instance contains entries whose keys are not null.


[22350] Return Value: true if the System.Collections.Specialized.NameObjectCollectionBase instance contains entries whose keys are not null; otherwise, false.


[22351] BaseRemove


[22352] [C#] protected void BaseRemove(string name);


[22353] [C++] protected: void BaseRemove(String* name);


[22354] [VB] Protected Sub BaseRemove(ByVal name As String)


[22355] [JScript] protected function BaseRemove(name: String); Removes the specified entries from the System.Collections.Specialized.NameObjectCollectionBase instance.


[22356] Description


[22357] Removes the entries with the specified key from the System.Collections.Specialized.NameObjectCollectionBase instance.


[22358] In collections such as lists, queues and stacks, the elements that follow the removed element move up to occupy the vacated spot. The System.String key of the entries to remove. The key can be null.


[22359] BaseRemoveAt


[22360] [C#] protected void BaseRemoveAt(int index);


[22361] [C++] protected: void BaseRemoveAt(int index);


[22362] [VB] Protected Sub BaseRemoveAt(ByVal index As Integer)


[22363] [JScript] protected function BaseRemoveAt(index: int);


[22364] Description


[22365] Removes the entry at the specified index of the System.Collections.Specialized.NameObjectCollectionBase instance.


[22366] In collections such as lists, queues and stacks, the elements that follow the removed element move up to occupy the vacated spot. The zero-based index of the entry to remove.


[22367] BaseSet


[22368] [C#] protected void BaseSet(int index, object value);


[22369] [C++] protected: void BaseSet(int index, Object* value);


[22370] [VB] Protected Sub BaseSet(ByVal index As Integer, ByVal value As Object)


[22371] [JScript] protected function BaseSet(index: int, value: Object);


[22372] Description


[22373] Sets the value of the entry at the specified index of the System.Collections.Specialized.NameObjectCollectionBase instance. The zero-based index of the entry to set. The System.Object that represents the new value of the entry to set. The value can be null.


[22374] BaseSet


[22375] [C#] protected void BaseSet(string name, object value);


[22376] [C++] protected: void BaseSet(String* name, Object* value);


[22377] [VB] Protected Sub BaseSet(ByVal name As String, ByVal value As Object)


[22378] [JScript] protected function BaseSet(name: String, value: Object); Sets the value of an entry in the System.Collections.Specialized.NameObjectCollectionBase instance.


[22379] Description


[22380] Sets the value of the first entry with the specified key in the System.Collections.Specialized.NameObjectCollectionBase instance, if found; otherwise, adds an entry with the specified key and value into the System.Collections.Specialized.NameObjectCollectionBase instance.


[22381] If the collection contains multiple entries with the specified key, this method sets only the first entry. To set the values of subsequent entries with the same key, use the enumerator to iterate through the collection and compare the keys. The System.String key of the entry to set. The key can be null. The System.Object that represents the new value of the entry to set. The value can be null.


[22382] GetEnumerator


[22383] [C#] public IEnumerator GetEnumerator( );


[22384] [C++] public: _sealed IEnumerator* GetEnumerator( );


[22385] [VB] NotOverridable Public Function GetEnumerator( ) As IEnumerator


[22386] [JScript] public function GetEnumerator( ): IEnumerator;


[22387] Description


[22388] Returns an enumerator that can iterate through the System.Collections.Specialized.NameObjectCollectionBase.


[22389] Return Value: An System.Collections.IEnumerator for the System.Collections.Specialized.NameObjectCollectionBase instance.


[22390] This enumerator returns the keys of the collection as strings.


[22391] GetObjectData


[22392] [C#] public virtual void GetObjectData(Serializationlnfo info, StreamingContext context);


[22393] [C++] public: virtual void GetObjectData(SerializationInfo* info, StreamingContext context);


[22394] [VB] Overridable Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[22395] [JScript] public function GetObjectData(info: SerializationInfo, context: StreamingContext);


[22396] Description


[22397] Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the System.Collections.Specialized.NameObjectCollectionBase instance. A System.Runtime.Serialization.SerializationInfo object that contains the information required to serialize the System.Collections.Specialized.NameObjectCollectionBase instance. A System.Runtime.Serialization.StreamingContext object that contains the source and destination of the serialized stream associated with the System.Collections.Specialized.NameObjectCollectionBase instance.


[22398] OnDeserialization


[22399] [C#] public virtual void OnDeserialization(object sender);


[22400] [C++] public: virtual void OnDeserialization(Object* sender);


[22401] [VB] Overridable Public Sub OnDeserialization(ByVal sender As Object)


[22402] [JScript] public function OnDeserialization(sender: Object);


[22403] Description


[22404] Implements the System.Runtime.Serialization.ISerializable interface and raises the deserialization event when the deserialization is complete. The source of the deserialization event.


[22405] ICollection.CopyTo


[22406] [C#] void ICollection.CopyTo(Array array, int index);


[22407] [C++] void ICollection::CopyTo(Array* array, int index);


[22408] [VB] Sub CopyTo(ByVal array As Array, ByVal index As Integer) Implements ICollection.CopyTo


[22409] [JScript] function ICollection.CopyTo(array: Array, index: int);


[22410] NameValueCollection class (System.Collections.Specialized)


[22411] ToString


[22412] Description


[22413] Represents a sorted collection of associated System.String keys and System.String values that can be accessed either with the key or with the index.


[22414] This collection is based on the System.Collections.Specialized.NameObjectCollectionBase class. However, unlike the System.Collections.Specialized.NameObjectCollectionBase, this class stores multiple string values under a single key.


[22415] NameValueCollection


[22416] Example Syntax:


[22417] ToString


[22418] [C#] public NameValueCollection( );


[22419] [C++] public: NameValueCollection( );


[22420] [VB] Public Sub New( )


[22421] [JScript] public function NameValueCollection( ); Initializes a new instance of the System.Collections.Specialized.NameValueCollection class.


[22422] Description


[22423] Initializes a new instance of the System.Collections.Specialized.NameValueCollection class that is empty, has the default initial capacity and uses the default case-insensitive hash code provider and the default case-insensitive comparer.


[22424] The capacity is the number of key-and-value pairs that the System.Collections.Specialized.NameValueCollection can contain. The default initial capacity is zero. The capacity is automatically increased as required.


[22425] NameValueCollection


[22426] Example Syntax:


[22427] ToString


[22428] [C#] public NameValueCollection(int capacity);


[22429] [C++] public: NameValueCollection(int capacity);


[22430] [VB] Public Sub New(ByVal capacity As Integer)


[22431] [JScript] public function NameValueCollection(capacity: int);


[22432] Description


[22433] Initializes a new instance of the System.Collections.Specialized.NameValueCollection class that is empty, has the specified initial capacity and uses the default case-insensitive hash code provider and the default case-insensitive comparer.


[22434] The capacity is the number of key-and-value pairs that the System.Collections.Specialized.NameValueCollection can contain. The default initial capacity is zero. The capacity is automatically increased as required. The initial number of entries that the System.Collections.Specialized.NameValueCollection can contain.


[22435] NameValueCollection


[22436] Example Syntax:


[22437] ToString


[22438] [C#] public NameValueCollection(NameValueCollection col);


[22439] [C++] public: NameValueCollection(NameValueCollection* col);


[22440] [VB] Public Sub New(ByVal col As NameValueCollection)


[22441] [J Script] public function NameValueCollection(col: NameValueCollection);


[22442] Description


[22443] Copies the entries from the specified System.Collections.Specialized.NameValueCollection to a new System.Collections.Specialized.NameValueCollection with the same initial capacity as the number of entries copied and using the same hash code provider and the same comparer as the source collection.


[22444] The capacity is the number of key-and-value pairs that the System.Collections.Specialized.NameValueCollection can contain. The default initial capacity is zero. The capacity is automatically increased as required. The System.Collections.Specialized.NameValueCollection to copy to the new System.Collections.Specialized.NameValueCollection instance.


[22445] NameValueCollection


[22446] Example Syntax:


[22447] ToString


[22448] [C#] public NameValueCollection(IHashCodeProvider hashProvider, IComparer comparer);


[22449] [C++] public: NameValueCollection(IHashCodeProvider* hashProvider, IComparer* comparer);


[22450] [VB] Public Sub New(ByVal hashProvider As IHashCodeProvider, ByVal comparer As IComparer)


[22451] [JScript] public function NameValueCollection(hashProvider: IHashCodeProvider, comparer: IComparer);


[22452] Description


[22453] Initializes a new instance of the System.Collections.Specialized.NameValueCollection class that is empty, has the default initial capacity and uses the specified hash code provider and the specified comparer.


[22454] The capacity is the number of key-and-value pairs that the System.Collections.Specialized.NameValueCollection can contain. The default initial capacity is zero. The capacity is automatically increased as required. The System.Collections.IHashCodeProvider that will supply the hash codes for all keys in the System.Collections.Specialized.NameValueCollection. The System.Collections.IComparer to use to determine whether two keys are equal.


[22455] NameValueCollection


[22456] Example Syntax:


[22457] ToString


[22458] [C#] public NameValueCollection(int capacity, NameValueCollection col);


[22459] [C++] public: NameValueCollection(int capacity, NameValueCollection* col);


[22460] [VB] Public Sub New(ByVal capacity As Integer, ByVal col As NameValueCollection)


[22461] [JScript] public function NameValueCollection(capacity: int, col: NameValueCollection);


[22462] Description


[22463] Copies the entries from the specified System.Collections.Specialized.NameValueCollection to a new System.Collections.Specialized.NameValueCollection with the specified initial capacity or the same initial capacity as the number of entries copied, whichever is greater, and using the default case-insensitive hash code provider and the default case-insensitive comparer.


[22464] The capacity is the number of key-and-value pairs that the System.Collections.Specialized.NameValueCollection can contain. The default initial capacity is zero. The capacity is automatically increased as required. The initial number of entries that the System.Collections.Specialized.NameValueCollection can contain. The System.Collections.Specialized.NameValueCollection to copy to the new System.Collections.Specialized.NameValueCollection instance.


[22465] NameValueCollection


[22466] Example Syntax:


[22467] ToString


[22468] [C#] protected NameValueCollection(SerializationInfo info, StreamingContext context);


[22469] [C++] protected: NameValueCollection(SerializationInfo* info, StreamingContext context);


[22470] [VB] Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)


[22471] [JScript] protected function NameValueCollection(info: SerializationInfo, context: StreamingContext);


[22472] Description


[22473] Initializes a new instance of the System.Collections.Specialized.NameValueCollection class that is serializable and uses the specified System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext. A System.Runtime.Serialization.SerializationInfo object that contains the information required to serialize the new System.Collections.Specialized.NameValueCollection instance. A System.Runtime.Serialization.StreamingContext object that contains the source and destination of the serialized stream associated with the new System.Collections.Specialized.NameValueCollection instance.


[22474] NameValueCollection


[22475] Example Syntax:


[22476] ToString


[22477] [C#] public NameValueCollection(int capacity, IHashCodeProvider hashProvider, IComparer comparer);


[22478] [C++] public: NameValueCollection(int capacity, IHashCodeProvider* hashProvider, IComparer* comparer);


[22479] [VB] Public Sub New(ByVal capacity As Integer, ByVal hashProvider As IHashCodeProvider, ByVal comparer As IComparer)


[22480] [JScript] public function NameValueCollection(capacity: int, hashProvider: IHashCodeProvider, comparer: IComparer);


[22481] Description


[22482] Initializes a new instance of the System.Collections.Specialized.NameValueCollection class that is empty, has the specified initial capacity and uses the specified hash code provider and the specified comparer.


[22483] The capacity is the number of key-and-value pairs that the System.Collections.Specialized.NameValueCollection can contain. The default initial capacity is zero. The capacity is automatically increased as required. The initial number of entries that the System.Collections.Specialized.NameValueCollection can contain. The System.Collections.IHashCodeProvider that will supply the hash codes for all keys in the System.Collections.Specialized.NameValueCollection. The System.Collections.IComparer to use to determine whether two keys are equal.


[22484] AllKeys


[22485] ToString


[22486] [C#] public virtual string[ ] AllKeys {get;}


[22487] [C++] public: property virtual String* get_AllKeys( );


[22488] [VB] Overridable Public ReadOnly Property AllKeys As String ( )


[22489] [JScript] public function get AllKeys( ): String[ ];


[22490] Description


[22491] Gets all the keys in the System.Collections.Specialized.NameValueCollection.


[22492] If the collection is empty, this method returns an empty System.String array, not null.


[22493] Count


[22494] IsReadOnly


[22495] Item


[22496] ToString


[22497] Description


[22498] Gets the entry at the specified index of the System.Collections.Specialized.NameValueCollection.


[22499] This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[index]. The zero-based index of the entry to locate in the collection.


[22500] Item


[22501] ToString


[22502] [C#] public string this[string name] {get; set;}


[22503] [C++] public: _property String* get_Item(String* name);public: _property void set_Item(String* name, String*);


[22504] [VB] Public Default Property Item(ByVal name As String) As String


[22505] [JScript] returnValue=NameValueCollectionObject.Item(name);NameValueCollectionObject.Item(name )=returnValue; Gets or sets the specified entry of the System.Collections.Specialized.NameValueCollection.


[22506] Description


[22507] Gets or sets the entry with the specified key in the System.Collections.Specialized.NameValueCollection.


[22508] This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[name]. The System.String key of the entry to locate. The key can be null.


[22509] Keys


[22510] Add


[22511] [C#] public void Add(NameValueCollection c);


[22512] [C++] public: void Add(NameValueCollection* c);


[22513] [VB] Public Sub Add(ByVal c As NameValueCollection)


[22514] [JScript] public function Add(c: NameValueCollection); Adds entries to the current System.Collections.Specialized.NameValueCollection.


[22515] Description


[22516] Copies the entries in the specified System.Collections.Specialized.NameValueCollection to the current System.Collections.Specialized.NameValueCollection.


[22517] If a key in c already exists in the target System.Collections.Specialized.NameValueCollection instance, the associated value in c is added to the existing comma-separated list of values associated with the same key in the target System.Collections.Specialized.NameValueCollection instance. The System.Collections.Specialized.NameValueCollection to copy to the current System.Collections.Specialized.NameValueCollection.


[22518] Add


[22519] [C#] public virtual void Add(string name, string value);


[22520] [C++] public: virtual void Add(String* name, String* value);


[22521] [VB] Overridable Public Sub Add(ByVal name As String, ByVal value As String)


[22522] [J Script] public function Add(name: String, value: String);


[22523] Description


[22524] Adds an entry with the specified name and value to the System.Collections.Specialized.NameValueCollection.


[22525] If the specified key already exists in the target System.Collections.Specialized.NameValueCollection instance, the specified value is added to the existing comma-separated list of values associated with the same key in the target System.Collections.Specialized.NameValueCollection instance. The System.String key of the entry to add. The key can be null. The System.String value of the entry to add. The value can be null.


[22526] Clear


[22527] [C#] public void Clear( );


[22528] [C++] public: void Clear( );


[22529] [VB] Public Sub Clear( )


[22530] [JScript] public function Clear( );


[22531] Description


[22532] Invalidates the cached arrays and removes all entries from the System.Collections.Specialized.NameValueCollection.


[22533] CopyTo


[22534] [C#] public void CopyTo(Array dest, int index);


[22535] [C++] public: void CopyTo(Array* dest, int index);


[22536] [VB] Public Sub CopyTo(ByVal dest As Array, ByVal index As Integer)


[22537] [JScript] public function CopyTo(dest: Array, index: int);


[22538] Description


[22539] Copies the entire System.Collections.Specialized.NameValueCollection to a compatible one-dimensional System.Array, starting at the specified index of the target array.


[22540] The specified array must be of a compatible type. The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Specialized.NameValueCollection. The System.Array must have zero-based indexing. The zero-based index in dest at which copying begins.


[22541] Get


[22542] [C#] public virtual string Get(int index);


[22543] [C++] public: virtual String* Get(int index);


[22544] [VB] Overridable Public Function Get(ByVal index As Integer) As String


[22545] [JScript] public function Get(index: int): String;


[22546] Description


[22547] Gets the values at the specified index of the System.Collections.Specialized.NameValueCollection combined into one comma-separated list.


[22548] Return Value: A System.String that contains a comma-separated list of the values at the specified index of the System.Collections.Specialized.NameValueCollection, if found; otherwise, null. The zero-based index of the entry that contains the values to get from the collection.


[22549] Get


[22550] [C#] public virtual string Get(string name);


[22551] [C++] public: virtual String* Get(String* name);


[22552] [VB] Overridable Public Function Get(ByVal name As String) As String


[22553] [JScript] public function Get(name: String): String; Gets the values of a specified entry in the System.Collections.Specialized.NameValueCollection combined into one comma-separated list.


[22554] Description


[22555] Gets the values associated with the specified key from the System.Collections.Specialized.NameValueCollection combined into one comma-separated list.


[22556] Return Value: A System.String that contains a comma-separated list of the values associated with the specified key from the System.Collections.Specialized.NameValueCollection, if found; otherwise, null. The System.String key of the entry that contains the values to get. The key can be null.


[22557] GetKey


[22558] [C#] public virtual string GetKey(int index);


[22559] [C++] public: virtual String* GetKey(int index);


[22560] [VB] Overridable Public Function GetKey(ByVal index As Integer) As String


[22561] [JScript] public function GetKey(index: int): String;


[22562] Description


[22563] Gets the key at the specified index of the System.Collections.Specialized.NameValueCollection.


[22564] Return Value: A System.String that contains the key at the specified index of the System.Collections.Specialized.NameValueCollection, if found; otherwise, null. The zero-based index of the key to get from the collection.


[22565] GetValues


[22566] [C#] public virtual string[ ] GetValues(int index);


[22567] [C++] public: virtual String* GetValues(int index)_gc[ ];


[22568] [VB] Overridable Public Function GetValues(ByVal index As Integer) As String( )


[22569] [JScript] public function GetValues(index: int): String[ ];


[22570] Description


[22571] Gets the values at the specified index of the System.Collections.Specialized.NameValueCollection.


[22572] Return Value: A System.String array that contains the values at the specified index of the System.Collections.Specialized.NameValueCollection, if found; otherwise, null. The zero-based index of the entry that contains the values to get from the collection.


[22573] GetValues


[22574] [C#] public virtual string[ ] GetValues(string name);


[22575] [C++] public: virtual String* GetValues(String* name)_gc[ ];


[22576] [VB] Overridable Public Function GetValues(ByVal name As String) As String( )


[22577] [JScript] public function GetValues(name: String): String[ ]; Gets the values of a specified entry in the System.Collections.Specialized.NameValueCollection.


[22578] Description


[22579] Gets the values associated with the specified key from the System.Collections.Specialized.NameValueCollection.


[22580] Return Value: A System.String array that contains the values associated with the specified key from the System.Collections.Specialized.NameValueCollection, if found; otherwise, null. The System.String key of the entry that contains the values to get. The key can be null.


[22581] HasKeys


[22582] [C#] public bool HasKeys( );


[22583] [C++] public: bool HasKeys( );


[22584] [VB] Public Function HasKeys( ) As Boolean


[22585] [JScript] public function HasKeys( ): Boolean;


[22586] Description


[22587] Gets a value indicating whether the System.Collections.Specialized.NameValueCollection contains keys that are not null.


[22588] Return Value: true if the System.Collections.Specialized.NameValueCollection contains keys that are not null; otherwise, false.


[22589] InvalidateCachedArrays


[22590] [C#] protected void InvalidateCachedArrays( );


[22591] [C++] protected: void InvalidateCachedArrays( );


[22592] [VB] Protected Sub InvalidateCachedArrays( )


[22593] [JScript] protected function InvalidateCachedArrays( );


[22594] Description


[22595] Resets the cached arrays of the collection to null.


[22596] The arrays returned by System.Collections.Specialized.NameValueCollection.AllKeys are cached for better performance and are automatically refreshed when the collection changes. A derived class can invalidate the cached version by calling System.Collections.Specialized.NameValueCollection.InvalidateCachedArrays, thereby forcing the arrays to be recreated.


[22597] Remove


[22598] [C#] public virtual void Remove(string name);


[22599] [C++] public: virtual void Remove(String* name);


[22600] [VB] Overridable Public Sub Remove(ByVal name As String)


[22601] [JScript] public function Remove(name: String);


[22602] Description


[22603] Removes the entries with the specified key from the System.Collections.Specialized.NameObjectCollectionBase instance.


[22604] In collections such as lists, queues and stacks, the elements that follow the removed element move up to occupy the vacated spot. The System.String key of the entry to remove. The key can be null.


[22605] Set


[22606] [C#] public virtual void Set(string name, string value);


[22607] [C++] public: virtual void Set(String* name, String* value);


[22608] [VB] Overridable Public Sub Set(ByVal name As String, ByVal value As String)


[22609] [JScript] public function Set(name: String, value: String);


[22610] Description


[22611] Sets the value of an entry in the System.Collections.Specialized.NameValueCollection.


[22612] If the specified key already exists in the collection, this method overwrites the existing values with the specified value. To add the new value to the existing list of values, use the System.Collections.Specialized.NameValueCollection.Add(System.Collections. Specialized.NameValueCollection) method. The System.String key of the entry to add the new value to. The key can be null. The System.Object that represents the new value to add to the specified entry. The value can be null.


[22613] BitVector32.Section structure (System.Collections.Specialized)


[22614] ToString


[22615] Description


[22616] Represents an section of the vector that can contain a integer number.


[22617] Use System.Collections.Specialized.BitVector32.CreateSection(System.Int16) to define a new section. A System.Collections.Specialized.BitVector32.Section is a window into the System.Collections.Specialized.BitVector32 and is composed of the smallest number of consecutive bits that can contain the maximum value specified in System.Collections.Specialized.BitVector32.CreateSection(System.Int16). For example, a section with a maximum value of 1 is composed of only one bit, whereas a section with a maximum value of 5 is composed of three bits. You can create a System.Collections.Specialized.BitVector32.Section with a maximum value of 1 to serve as a Boolean, thereby allowing you to store integers and Booleans in the same System.Collections.Specialized.BitVector32.


[22618] Mask


[22619] ToString


[22620] [C#] public short Mask {get;}


[22621] [C++] public: _property short get_Mask( );


[22622] [VB] Public ReadOnly Property Mask As Short


[22623] [JScript] public function get Mask( ): Int16;


[22624] Description


[22625] Offset


[22626] ToString


[22627] [C#] public short Offset {get;}


[22628] [C++] public: _property short get_Offset( );


[22629] [VB] Public ReadOnly Property Offset As Short


[22630] [JScript] public function get Offset( ): Int16;


[22631] Description


[22632] Equals


[22633] [C#] public override bool Equals(object o);


[22634] [C++] public: bool Equals(Object* o);


[22635] [VB] Overrides Public Function Equals(ByVal o As Object) As Boolean


[22636] [JScript] public override function Equals(o: Object): Boolean;


[22637] Description


[22638] GetHashCode


[22639] [C#] public override int GetHashCode( );


[22640] [C++] public: int GetHashCode( );


[22641] [VB] Overrides Public Function GetHashCode( ) As Integer


[22642] [JScript] public override function GetHashCode( ): int;


[22643] Description


[22644] ToString


[22645] [C#] public override string ToString( );


[22646] [C++] public: String* ToString( );


[22647] [VB] Overrides Public Function ToString( ) As String


[22648] [JScript] public override function ToString( ): String;


[22649] Description


[22650] ToString


[22651] [C#] public static string ToString(BitVector32.Section value);


[22652] [C++] public: static String* ToString(BitVector32.Section value);


[22653] [VB] Public Shared Function ToString(ByVal value As BitVector32.Section) As String


[22654] [JScript] public static function ToString(value: BitVector32.Section): String;


[22655] Description


[22656] StringCollection class (System.Collections.Specialized)


[22657] ToString


[22658] Description


[22659] Represents a collection of strings.


[22660] Duplicate strings are allowed in System.Collections.Specialized.StringCollection.


[22661] StringCollection


[22662] Example Syntax:


[22663] ToString


[22664] [C#] public StringCollection( );


[22665] [C++] public: StringCollection( );


[22666] [VB] Public Sub New( )


[22667] [JScript] public function StringCollection( );


[22668] Count


[22669] ToString


[22670] [C#] public int Count {get;}


[22671] [C++] public: _property int get_Count( );


[22672] [VB] Public ReadOnly Property Count As Integer


[22673] [JScript] public function get Count( ): int;


[22674] Description


[22675] Gets the number of strings contained in the System.Collections.Specialized.StringCollection.


[22676] IsReadOnly


[22677] ToString


[22678] [C#] public bool IsReadOnly {get;}


[22679] [C++] public: _property bool get_IsReadOnly( );


[22680] [VB] Public ReadOnly Property IsReadOnly As Boolean


[22681] [JScript] public function get IsReadOnly( ): Boolean;


[22682] Description


[22683] Gets a value indicating whether the System.Collections.Specialized.StringCollection is read-only.


[22684] System.Collections.Specialized.StringCollection implements the System.Collections.Specialized.StringCollection.IsReadOnly property because it is required by the interface.


[22685] IsSynchronized


[22686] ToString


[22687] [C#] public bool IsSynchronized {get;}


[22688] [C++] public: _property bool get_IsSynchronized( );


[22689] [VB] Public ReadOnly Property IsSynchronized As Boolean


[22690] [JScript] public function get IsSynchronized( ): Boolean;


[22691] Description


[22692] Gets a value indicating whether access to the System.Collections.Specialized.StringCollection is synchronized (thread-safe).


[22693] System.Collections.Specialized.StringCollection implements the System.Collections.Specialized.StringCollection.IsSynchronized property because it is required by the interface.


[22694] Item


[22695] ToString


[22696] [C#] public string this[int index] {get; set;}


[22697] [C++] public: _property String* get_Item(int index);public: _property void set_Item(int index, String*);


[22698] [VB] Public Default Property Item(ByVal index As Integer) As String


[22699] [JScript] returnValue=StringCollectionObject.Item(index);StringCollectionObject.Item(index)= returnValue;


[22700] Description


[22701] Gets or sets the element at the specified index.


[22702] This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[index]. The zero-based index of the entry to get or set.


[22703] SyncRoot


[22704] ToString


[22705] [C#] public object SyncRoot {get;}


[22706] [C++] public: _property Object* get_SyncRoot( );


[22707] [VB] Public ReadOnly Property SyncRoot As Object


[22708] [JScript] public function get SyncRoot( ): Object;


[22709] Description


[22710] Gets an object that can be used to synchronize access to the System.Collections.Specialized.StringCollection.


[22711] Derived classes can provide their own synchronized version of the System.Collections.Specialized.StringCollection using the System.Collections.Specialized.StringCollection.SyncRoot property. The synchronizing code must perform operations on the System.Collections.Specialized.StringCollection.SyncRoot of the System.Collections.Specialized.StringCollection, not directly on the System.Collections.Specialized.StringCollection. This ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the System.Collections.Specialized.StringCollection object.


[22712] Add


[22713] [C#] public int Add(string value);


[22714] [C++] public: int Add(String* value);


[22715] [VB] Public Function Add(ByVal value As String) As Integer


[22716] [JScript] public function Add(value: String): int;


[22717] Description


[22718] Adds a string to the end of the System.Collections.Specialized.StringCollection.


[22719] Return Value: The zero-based index at which the new element is inserted.


[22720] Duplicate strings are allowed in System.Collections.Specialized.StringCollection. The string to add to the end of the System.Collections.Specialized.StringCollection.


[22721] AddRange


[22722] [C#] public void AddRange(string[ ] value);


[22723] [C++] public: void AddRange(String* value_gc[ ]);


[22724] [VB] Public Sub AddRange(ByVal value( ) As String)


[22725] [JScript] public function AddRange(value: String[ ]);


[22726] Description


[22727] Copies the elements of a string array to the end of the System.Collections.Specialized.StringCollection.


[22728] Duplicate strings are allowed in System.Collections.Specialized.StringCollection. An array of strings to add to the end of the System.Collections.Specialized.StringCollection.


[22729] Clear


[22730] [C#] public void Clear( );


[22731] [C++] public: _sealed void Clear( );


[22732] [VB] NotOverridable Public Sub Clear( )


[22733] [JScript] public function Clear( );


[22734] Description


[22735] Removes all the strings from the System.Collections.Specialized.StringCollection.


[22736] System.Collections.Specialized.StringCollection.Count is set to zero.


[22737] Contains


[22738] [C#] public bool Contains(string value);


[22739] [C++] public: bool Contains(String* value);


[22740] [VB] Public Function Contains(ByVal value As String) As Boolean


[22741] [JScript] public function Contains(value: String): Boolean;


[22742] Description


[22743] Determines whether the specified string is in the System.Collections.Specialized.StringCollection.


[22744] Return Value: true if value is found in the System.Collections.Specialized.StringCollection; otherwise, false.


[22745] The System.Collections.Specialized.StringCollection.Contains(System.String) method can confirm the existence of a string before performing further operations. The string to locate in the System.Collections.Specialized.StringCollection.


[22746] CopyTo


[22747] [C#] public void CopyTo(string[ ] array, int index);


[22748] [C++] public: void CopyTo(String* array_gc[ ], int index);


[22749] [VB] Public Sub CopyTo(ByVal array( ) As String, ByVal index As Integer)


[22750] [JScript] public function CopyTo(array: String[ ], index: int);


[22751] Description


[22752] Copies the System.Collections.Specialized.StringCollection values to a compatible one-dimensional System.Array, starting at the specified index of the target array.


[22753] The specified array must be of a compatible type. The one-dimensional System.Array that is the destination of the values copied from System.Collections.Specialized.StringCollection. The System.Array must have zero-based indexing. The zero-based index in array at which copying begins.


[22754] GetEnumerator


[22755] [C#] public StringEnumerator GetEnumerator( );


[22756] [C++] public: StringEnumerator* GetEnumerator( );


[22757] [VB] Public Function GetEnumerator( ) As StringEnumerator


[22758] [JScript] public function GetEnumerator( ): StringEnumerator;


[22759] Description


[22760] Returns an enumerator that can iterate through the System.Collections.Specialized.StringCollection.


[22761] Return Value: An System.Collections.IEnumerator for the System.Collections.Specialized.StringCollection.


[22762] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[22763] IndexOf


[22764] [C#] public int IndexOf(string value);


[22765] [C++] public: int IndexOf(String* value);


[22766] [VB] Public Function IndexOf(ByVal value As String) As Integer


[22767] [JScript] public function IndexOf(value: String): int;


[22768] Description


[22769] Searches for the specified string and returns the zero-based index of the first occurrence within the System.Collections.Specialized.StringCollection.


[22770] Return Value: The zero-based index of the first occurrence of value in the System.Collections.Specialized.StringCollection, if found; otherwise, −1.


[22771] This method performs a linear search. On average, this is an O(n/2) operation, where n is System.Collections.Specialized.StringCollection.Count. The longest search is an O(n) operation, where n is System.Collections.Specialized.StringCollection.Count. The string to locate.


[22772] Insert


[22773] [C#] public void Insert(int index, string value);


[22774] [C++] public: void Insert(int index, String* value);


[22775] [VB] Public Sub Insert(ByVal index As Integer, ByVal value As String)


[22776] [JScript] public function Insert(index: int, value: String);


[22777] Description


[22778] Inserts a string into the System.Collections.Specialized.StringCollection at the specified index.


[22779] Duplicate strings are allowed in System.Collections.Specialized.StringCollection. The zero-based index at which value is inserted. The string to insert.


[22780] Remove


[22781] [C#] public void Remove(string value);


[22782] [C++] public: void Remove(String* value);


[22783] [VB] Public Sub Remove(ByVal value As String)


[22784] [JScript] public function Remove(value: String);


[22785] Description


[22786] Removes the first occurrence of a specific string from the System.Collections.Specialized.StringCollection.


[22787] Duplicate strings are allowed in System.Collections.Specialized.StringCollection. Only the first occurrence is removed. To remove all occurrences of the specified string, use RemoveAt(IndexOf(value)) repeatedly while System.Collections.Specialized.StringCollection.IndexOf(System.String) does not return −1. The string to remove from the System.Collections.Specialized.StringCollection.


[22788] RemoveAt


[22789] [C#] public void RemoveAt(int index);


[22790] [C++] public: _sealed void RemoveAt(int index);


[22791] [VB] NotOverridable Public Sub RemoveAt(ByVal index As Integer)


[22792] [JScript] public function RemoveAt(index: int);


[22793] Description


[22794] Removes the string at the specified index of the System.Collections.Specialized.StringCollection.


[22795] In collections such as lists, queues and stacks, the elements that follow the removed element move up to occupy the vacated spot. The zero-based index of the string to remove.


[22796] ICollection.CopyTo


[22797] [C#] void ICollection.CopyTo(Array array, int index);


[22798] [C++] void ICollection::CopyTo(Array* array, int index);


[22799] [VB] Sub CopyTo(ByVal array As Array, ByVal index As Integer) Implements ICollection.CopyTo


[22800] [JScript] function ICollection.CopyTo(array: Array, index: int);


[22801] IEnumerable.GetEnumerator


[22802] [C#] IEnumerator IEnumerable.GetEnumerator( );


[22803] [C++] IEnumerator* IEnumerable::GetEnumerator( );


[22804] [VB] Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator


[22805] [JScript] function IEnumerable.GetEnumerator( ): IEnumerator;


[22806] IList.Add


[22807] [C#] int IList.Add(object value);


[22808] [C++] int IList::Add(Object* value);


[22809] [VB] Function Add(ByVal value As Object) As Integer Implements IList.Add


[22810] [JScript] function IList.Add(value: Object): int;


[22811] IList.Contains


[22812] [C#] bool IList.Contains(object value);


[22813] [C++] bool IList::Contains(Object* value);


[22814] [VB] Function Contains(ByVal value As Object) As Boolean Implements IList.Contains


[22815] [JScript] function IList.Contains(value: Object): Boolean;


[22816] IList.IndexOf


[22817] [C#] int IList.IndexOf(object value);


[22818] [C++] int IList::IndexOf(Object* value);


[22819] [VB] Function IndexOf(ByVal value As Object) As Integer Implements IList.IndexOf


[22820] [JScript] function IList.IndexOf(value: Object): int;


[22821] IList.Insert


[22822] [C#] void IList.Insert(int index, object value);


[22823] [C++] void IList::Insert(int index, Object* value);


[22824] [VB] Sub Insert(ByVal index As Integer, ByVal value As Object) Implements IList.Insert


[22825] [JScript] function IList.Insert(index: int, value: Object);


[22826] IList.Remove


[22827] [C#] void IList.Remove(object value);


[22828] [C++] void IList::Remove(Object* value);


[22829] [VB] Sub Remove(ByVal value As Object) Implements IList.Remove


[22830] [JScript] function IList.Remove(value: Object);


[22831] StringDictionary class (System.Collections.Specialized)


[22832] ToString


[22833] Description


[22834] Implements a hashtable with the key strongly typed to be a string rather than an object.


[22835] The key is handled in a case-insensitive manner; it will be translated to lower case before it is used with the string dictionary.


[22836] StringDictionary


[22837] Example Syntax:


[22838] ToString


[22839] [C#] public StringDictionary( );


[22840] [C++] public: StringDictionary( );


[22841] [VB] Public Sub New( )


[22842] [JScript] public function StringDictionary( );


[22843] Description


[22844] Initializes a new instance of the System.Collections.Specialized.StringDictionary class.


[22845] Count


[22846] ToString


[22847] [C#] public virtual int Count {get;}


[22848] [C++] public: _property virtual int get_Count( );


[22849] [VB] Overridable Public ReadOnly Property Count As Integer


[22850] [JScript] public function get Count( ): int;


[22851] Description


[22852] Gets the number of key-and-value pairs in the System.Collections.Specialized.StringDictionary.


[22853] IsSynchronized


[22854] ToString


[22855] [C#] public virtual bool IsSynchronized {get;}


[22856] [C++] public: _property virtual bool get_IsSynchronized( );


[22857] [VB] Overridable Public ReadOnly Property IsSynchronized As Boolean


[22858] [JScript] public function get IsSynchronized( ): Boolean;


[22859] Description


[22860] Indicates whether access to the System.Collections.Specialized.StringDictionary is synchronized (thread-safe). This property is read-only.


[22861] Item


[22862] ToString


[22863] [C#] public virtual string this[string key] {get; set;}


[22864] [C++] public: _property virtual String* get_Item(String* key);public: _property virtual void set_Item(String* key, String*);


[22865] [VB] Overridable Public Default Property Item(ByVal key As String) As String


[22866] [JScript] returnValue=StringDictionaryObject.Item(key); StringDictionaryObject.Item(key)=returnValue;


[22867] Description


[22868] Gets or sets the value associated with the specified key.


[22869] The key is handled in a case-insensitive manner; it will be translated to lower case before it is used. The key whose value to get or set.


[22870] Keys


[22871] ToString


[22872] [C#] public virtual ICollection Keys {get;}


[22873] [C++] public: _Property virtual ICollection* get_Keys( );


[22874] [VB] Overridable Public ReadOnly Property Keys As ICollection


[22875] [JScript] public function get Keys( ): ICollection;


[22876] Description


[22877] Gets a collection of keys in the System.Collections.Specialized.StringDictionary.


[22878] The order of the keys in the System.Collections.ICollection is unspecified, but it is the same order as the associated values in the System.Collections.ICollection returned by the System.Collections.Specialized.StringDictionary.Values method.


[22879] SyncRoot


[22880] ToString


[22881] [C#] public virtual object SyncRoot {get;}


[22882] [C++] public: _Property virtual Object* get_SyncRoot( );


[22883] [VB] Overridable Public ReadOnly Property SyncRoot As Object


[22884] [JScript] public function get SyncRoot( ): Object;


[22885] Description


[22886] Gets an object that can be used to synchronize access to the System.Collections.Specialized.StringDictionary.


[22887] Values


[22888] ToString


[22889] [C#] public virtual ICollection Values {get;}


[22890] [C++] public: _property virtual ICollection* get_Values( );


[22891] [VB] Overridable Public ReadOnly Property Values As ICollection


[22892] [JScript] public function get Values( ): ICollection;


[22893] Description


[22894] Gets a collection of values in the System.Collections.Specialized.StringDictionary.


[22895] The order of the values in the System.Collections.ICollection is unspecified, but it is the same order as the associated keys in the System.Collections.ICollection returned by the System.Collections.Specialized.StringDictionary.Keys method.


[22896] Add


[22897] [C#] public virtual void Add(string key, string value);


[22898] [C++] public: virtual void Add(String* key, String* value);


[22899] [VB] Overridable Public Sub Add(ByVal key As String, ByVal value As String)


[22900] [JScript] public function Add(key: String, value: String);


[22901] Description


[22902] Adds an entry with the specified key and value into the System.Collections.Specialized.StringDictionary.


[22903] The key is handled in a case-insensitive manner; it will be translated to lower case before it is added to the string dictionary. The key of the entry to add. The value of the entry to add.


[22904] Clear


[22905] [C#] public virtual void Clear( );


[22906] [C++] public: virtual void Clear( );


[22907] [VB] Overridable Public Sub Clear( )


[22908] [JScript] public function Clear( );


[22909] Description


[22910] Removes all entries from the System.Collections.Specialized.StringDictionary.


[22911] ContainsKey


[22912] [C#] public virtual bool ContainsKey(string key);


[22913] [C++] public: virtual bool ContainsKey(String* key);


[22914] [VB] Overridable Public Function ContainsKey(ByVal key As String) As Boolean


[22915] [JScript] public function ContainsKey(key: String): Boolean;


[22916] Description


[22917] Determines if the string dictionary contains a specific key


[22918] Return Value: true if the System.Collections.Specialized.StringDictionary contains an entry with the specified key; otherwise, false.


[22919] This implementation is an O(1) operation. The key to locate in the System.Collections.Specialized.StringDictionary.


[22920] ContainsValue


[22921] [C#] public virtual bool ContainsValue(string value);


[22922] [C++] public: virtual bool ContainsValue(String* value);


[22923] [VB] Overridable Public Function ContainsValue(ByVal value As String) As Boolean


[22924] [JScript] public function ContainsValue(value: String): Boolean;


[22925] Description


[22926] Determines if the System.Collections.Specialized.StringDictionary contains a specific value.


[22927] Return Value: true if the System.Collections.Specialized.StringDictionary contains an element with the specified value; otherwise, false.


[22928] The values of the elements of the StringDictionary are compared to the specified value using the System.Object.Equals(System.Object) method. The value to locate in the System.Collections.Specialized.StringDictionary.


[22929] CopyTo


[22930] [C#] public virtual void CopyTo(Array array, int index);


[22931] [C++] public: virtual void CopyTo(Array* array, int index);


[22932] [VB] Overridable Public Sub CopyTo(ByVal array As Array, ByVal index As Integer)


[22933] [JScript] public function CopyTo(array: Array, index: int);


[22934] Description


[22935] Copies the string dictionary values to a one-dimensional System.Array instance at the specified index.


[22936] System.Collections.Specialized.StringDictionary.CopyTo(System.Array, System.Int32) only copies the values in the StringDictionary, not the keys. The one-dimensional System.Array that is the destination of the values copied from the System.Collections.Specialized.StringDictionary. The index in the array where copying begins.


[22937] GetEnumerator


[22938] [C#] public virtual IEnumerator GetEnumerator( );


[22939] [C++] public: virtual IEnumerator* GetEnumerator( );


[22940] [VB] Overridable Public Function GetEnumerator( ) As IEnumerator


[22941] [JScript] public function GetEnumerator( ): IEnumerator;


[22942] Description


[22943] Returns an enumerator that can iterate through the string dictionary.


[22944] Return Value: An System.Collections.IEnumerator that can iterate through the string dictionary.


[22945] The enumerator does not have exclusive access to the System.Collections.Specialized.StringDictionary; therefore, any changes made to the System.Collections.Specialized.StringDictionary can cause System.Collections.IEnumerator.Current or System.Collections.IEnumerator.MoveNext to throw an exception.


[22946] Remove


[22947] [C#] public virtual void Remove(string key);


[22948] [C++] public: virtual void Remove(String* key);


[22949] [VB] Overridable Public Sub Remove(ByVal key As String)


[22950] [JScript] public function Remove(key: String);


[22951] Description


[22952] Removes the entry with the specified key from the string dictionary.


[22953] The key is handled in a case-insensitive manner; it will be translated to lower case before it is used to find the entry to remove from the string dictionary. The key of the entry to remove.


[22954] StringEnumerator class (System.Collections.Specialized)


[22955] ToString


[22956] Description


[22957] Supports a simple iteration over a System.Collections.Specialized.StringCollection.


[22958] Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.


[22959] Current


[22960] ToString


[22961] [C#] public string Current {get;}


[22962] [C++] public: _property String* get_Current( );


[22963] [VB] Public ReadOnly Property Current As String


[22964] [JScript] public function get Current( ): String;


[22965] Description


[22966] Gets the current element in the collection.


[22967] After an enumerator is created or after a System.Collections.Specialized.StringEnumerator.Reset, System.Collections.Specialized.StringEnumerator.MoveNext must be called to advance the enumerator to the first element of the collection before reading the value of System.Collections.Specialized.StringEnumerator.Current; otherwise, System.Collections.Specialized.StringEnumerator.Current is undefined.


[22968] MoveNext


[22969] [C#] public bool MoveNext( );


[22970] [C++] public: bool MoveNext( );


[22971] [VB] Public Function MoveNext( ) As Boolean


[22972] [JScript] public function MoveNext( ): Boolean;


[22973] Description


[22974] Advances the enumerator to the next element of the collection.


[22975] Return Value: true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.


[22976] After an enumerator is created or after a call to System.Collections.Specialized.StringEnumerator.Reset, an enumerator is positioned before the first element of the collection, and the first call to System.Collections.Specialized.StringEnumerator.MoveNext moves the enumerator over the first element of the collection.


[22977] Reset


[22978] [C#] public void Reset( );


[22979] [C++] public: void Reset( );


[22980] [VB] Public Sub Reset( )


[22981] [JScript] public function Reset( );


[22982] System.Globalization Namespace


[22983] The System.Globalization namespace contains classes that define culture-related information, such as the language, the country/region, the calendars in use, the format patterns for dates, currency and numbers, and the sort order for strings.


[22984] The .NET Framework is introducing a distinction to the globalization world. The concept that was previously referred to as “Locale” has been split apart into two separate types that allows much more flexibility. The Locale concept is represented as two different types in the .NET world: CultureInfo and RegionInfo. CultureInfo represents information about the users' culture, what language they specify, how they prefer numbers formatted, what calendar they use, etc. The RegionInfo class represents information about where a person physically is, what currency symbol they use, if they use metric or not, etc.


[22985] The following is a more detailed description of the System.Globalization namespace, identifying various classes, interfaces, enumerations, and so forth contained in the System.Globalization namespace.


[22986] System.Globalization


[22987] The namespace contains classes that define culture-related information, including the language, the country/region, the calendars in use, the format patterns for dates, currency and numbers, and the sort order for strings.


[22988] Description


[22989] The System.Globalization namespace contains classes that define culture-related information, including the language, the country/region, the calendars in use, the format patterns for dates, currency and numbers, and the sort order for strings.


[22990] Calendar Class (System.Globalization)


[22991] Description


[22992] Represents time in divisions, such as weeks, months, and years.


[22993] A calendar divides time into measures, such as weeks, months, and years. The number, length, and start of the divisions vary in each calendar.


[22994] [C#] public const int CurrentEra;


[22995] [C++] public: const int CurrentEra;


[22996] [VB] Public Const CurrentEra As Integer


[22997] [JScript] public var CurrentEra: int;


[22998] Description


[22999] Represents the current era for the current calendar.


[23000] Constructors:


[23001] Calendar


[23002] Example Syntax:


[23003] [C#] protected Calendar( );


[23004] [C++] protected: Calendar( );


[23005] [VB] Protected Sub New( )


[23006] [JScript] protected function Calendar( );


[23007] Description


[23008] Initializes a new instance of the System.Globalization.Calendar class.


[23009] Properties:


[23010] Eras


[23011] [C#] public abstract int[ ] Eras {get;}


[23012] [C++] public: _property virtual int get_Eras( ) =0;


[23013] [VB] MustOverride Public ReadOnly Property Eras As Integer ( )


[23014] [JScript] public abstract function get Eras( ): int[ ];


[23015] Description


[23016] When implemented by a derived class, gets the list of eras in the current calendar.


[23017] TwoDigitYearMax


[23018] [C#] public virtual int TwoDigitYearMax {get; set;}


[23019] [C++] public: _property virtual int get_TwoDigitYearMax( ); public: _property virtual void set_TwoDigitYearMax(int);


[23020] [VB] Overridable Public Property TwoDigitYearMax As Integer


[23021] [JScript] public function get TwoDigitYearMax( ): int; public function set TwoDigitYearMax(int);


[23022] Description


[23023] Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.


[23024] This property allows a 2-digit year to be properly translated to a 4-digit year. For example, if this property is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029.


[23025] Methods:


[23026] AddDays


[23027] [C#] public virtual DateTime AddDays(DateTime time, int days);


[23028] [C++] public: virtual DateTime AddDays(DateTime time, int days);


[23029] [VB] Overridable Public Function AddDays(ByVal time As DateTime, ByVal days As Integer) As DateTime


[23030] [JScript] public function AddDays(time: DateTime, days: int): DateTime;


[23031] Description Returns a System.DateTime that is the specified number of days away from the specified System.DateTime.


[23032] Return Value: The System.DateTime that results from adding the specified number of days to the specified System.DateTime.


[23033] The days value is rounded to the nearest millisecond before it is added to the specified System.DateTime. If days is negative, the resulting System.DateTime would be earlier than the specified System.DateTime. The System.DateTime instance to add. The number of days to add.


[23034] AddHours


[23035] [C++] public virtual DateTime AddHours(DateTime time, int hours);


[23036] [C++] public: virtual DateTime AddHours(DateTime time, int hours);


[23037] [VB] Overridable Public Function AddHours(ByVal time As DateTime, ByVal hours As Integer) As DateTime


[23038] [JScript] public function AddHours(time: DateTime, hours: int): DateTime;


[23039] Description


[23040] Returns a System.DateTime that is the specified number of hours away from the specified System.DateTime.


[23041] Return Value: The System.DateTime that results from adding the specified number of hours to the specified System.DateTime.


[23042] The hours value is rounded to the nearest millisecond before it is added to the specified System.DateTime. If hours is negative, the resulting System.DateTime would be earlier than the specified System.DateTime. The System.DateTime instance to add. The number of hours to add.


[23043] AddMilliseconds


[23044] [C#] public virtual DateTime AddMilliseconds(DateTime time, double milliseconds);


[23045] [C++] public: virtual DateTime AddMilliseconds(DateTime time, double milliseconds);


[23046] [VB] Overridable Public Function AddMilliseconds(ByVal time As DateTime, ByVal milliseconds As Double) As DateTime


[23047] [JScript] public function AddMilliseconds(time: DateTime, milliseconds: double): DateTime;


[23048] Description


[23049] Returns a System.DateTime that is the specified number of milliseconds away from the specified System.DateTime.


[23050] Return Value: The System.DateTime that results from adding the specified number of milliseconds to the specified System.DateTime.


[23051] The milliseconds value is rounded to the nearest integer before it is added to the specified System.DateTime. If milliseconds is negative, the resulting System.DateTime would be earlier than the specified System.DateTime. The g System.DateTime instance to add. The number of milliseconds to add.


[23052] AddMinutes


[23053] [C#] public virtual DateTime AddMinutes(DateTime time, int minutes);


[23054] [C++] public: virtual DateTime AddMinutes(DateTime time, int minutes);


[23055] [VB] Overridable Public Function AddMinutes(ByVal time As DateTime, ByVal minutes As Integer) As DateTime


[23056] [JScript] public function AddMinutes(time: DateTime, minutes: int): DateTime;


[23057] Description


[23058] Returns a System.DateTime that is the specified number of minutes away from the specified System.DateTime.


[23059] Return Value: The System.DateTime that results from adding the specified number of minutes to the specified System.DateTime.


[23060] The minutes value is rounded to the nearest millisecond before it is added to the specified System.DateTime. If minutes is negative, the resulting System.DateTime would be earlier than the specified System.DateTime. The System.DateTime instance to add. The number of minutes to add.


[23061] AddMonths


[23062] [C#] public abstract DateTime AddMonths(DateTime time, int months);


[23063] [C++] public: virtual DateTime AddMonths(DateTime time, int months)=0;


[23064] [VB] MustOverride Public Function AddMonths(ByVal time As DateTime, ByVal months As Integer) As DateTime


[23065] [JScript] public abstract function AddMonths(time: DateTime, months: int): DateTime;


[23066] Description


[23067] When implemented by a derived class, returns a System.DateTime that is the specified number of months away from the specified System.DateTime.


[23068] Return Value: The System.DateTime that results from adding the specified number of months to the specified System.DateTime.


[23069] The year part of the resulting System.DateTime is affected if the resulting month is beyond the last month of the current year. The day part of the resulting System.DateTime is also affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of months to add.


[23070] AddSeconds


[23071] [C#] public virtual DateTime AddSeconds(DateTime time, int seconds);


[23072] [C++] public: virtual DateTime AddSeconds(DateTime time, int seconds);


[23073] [VB] Overridable Public Function AddSeconds(ByVal time As DateTime, ByVal seconds As Integer) As DateTime


[23074] [JScript] public function AddSeconds(time: DateTime, seconds: int): DateTime;


[23075] Description


[23076] Returns a System.DateTime that is the specified number of seconds away from the specified System.DateTime.


[23077] Return Value: The System.DateTime that results from adding the specified number of seconds to the specified System.DateTime.


[23078] The value parameter is rounded to the nearest millisecond before it is added to the specified System.DateTime. If value is negative, the resulting System.DateTime would be earlier than the specified System.DateTime The System.DateTime instance to add. The number of seconds to add.


[23079] AddWeeks


[23080] [C#] public virtual DateTime AddWeeks(DateTime time, int weeks);


[23081] [C++] public: virtual DateTime AddWeeks(DateTime time, int weeks);


[23082] [VB] Overridable Public Function AddWeeks(ByVal time As DateTime, ByVal weeks As Integer) As DateTime


[23083] [JScript] public function AddWeeks(time: DateTime, weeks: int): DateTime;


[23084] Description


[23085] Return a System.DateTime that is the specified number of weeks away from the specified System.DateTime.


[23086] Return Value: The System.DateTime that results from adding the specified number of weeks to the specified System.DateTime.


[23087] If weeks is negative, the resulting System.DateTime would be earlier than the specified System.DateTime. The System.DateTime instance to add. The number of weeks to add.


[23088] AddYears


[23089] [C#] public abstract DateTime AddYears(DateTime time, int years);


[23090] [C++] public: virtual DateTime AddYears(DateTime time, int years)=0;


[23091] [VB] MustOverride Public Function AddYears(ByVal time As DateTime, ByVal years As Integer) As DateTime


[23092] [JScript] public abstract function AddYears(time: DateTime, years: int) DateTime;


[23093] Description


[23094] When implemented by a derived class, returns a System.DateTime that is the specified number of years away from the specified System.DateTime.


[23095] Return Value: The System.DateTime that results from adding the specified number of years to the specified System.DateTime.


[23096] The day part of the resulting System.DateTime is affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of years to add.


[23097] GetDayOfMonth


[23098] [C#] public abstract int GetDayOfMonth(DateTime time);


[23099] [C++] public: virtual int GetDayOfMonth(DateTime time)=0;


[23100] [VB] MustOverride Public Function GetDayOfMonth(ByVal time As DateTime) As Integer


[23101] [JScript] public abstract function GetDayOfMonth(time: DateTime): int;


[23102] Description


[23103] When implemented by a derived class, gets the day of the month in the specified System.DateTime.


[23104] Return Value: An integer that represents the day of the month in time. The System.DateTime instance to read.


[23105] GetDayOfWeek


[23106] [C#] public abstract DayOfWeek GetDayOfWeek(DateTime time);


[23107] [C++] public: virtual DayOfWeek GetDayOfWeek(DateTime time)=0;


[23108] [VB] MustOverride Public Function GetDayOfWeek(ByVal time As DateTime) As DayOfWeek


[23109] [JScript] public abstract function GetDayOfWeek(time: DateTime): DayOfWeek;


[23110] Description


[23111] When implemented by a derived class, gets the day of the week in the specified System.DateTime


[23112] Return Value: A System.DayOfWeek value that represents the day of the week in time.


[23113] The System.DayOfWeek values are Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday. The System.DateTime instance to read.


[23114] GetDayOfYear


[23115] [C#] public abstract int GetDayOfYear(DateTime time);


[23116] [C++] public: virtual int GetDayOfYear(DateTime time) 0;


[23117] [VB] MustOverride Public Function GetDayOfYear(ByVal time As DateTime) As Integer


[23118] [JScript] public abstract function GetDayOfYear(time: DateTime): int;


[23119] Description


[23120] When implemented by a derived class, gets the day of the year in the specified System.DateTime


[23121] Return Value: An integer that represents the day of the year in time. The System.DateTime instance to read.


[23122] GetDaysInMonth


[23123] [C#] public virtual int GetDaysInMonth(int year, int month);


[23124] [C++] public: virtual int GetDaysInMonth(int year, int month);


[23125] [VB] Overridable Public Function GetDaysInMonth(ByVal year As Integer, ByVal month As Integer) As Integer


[23126] [JScript] public function GetDaysInMonth(year: int, month: int): int; Gets the number of days in the specified month.


[23127] Description


[23128] Gets the number of days in the month specified by the year and month parameters.


[23129] Return Value: The number of days in the specified month in the specified year in the current era.


[23130] For example, in the Gregorian calendar, this method might return 28 or 29 for February (month=2), depending on whether year is a leap year. An integer that represents the year. An integer that represents the month.


[23131] GetDaysInMonth


[23132] [C#] public abstract int GetDaysInMonth(int year, int month, int era);


[23133] [C++] public: virtual int GetDaysInMonth(int year, int month, int era)=0;


[23134] [VB] MustOverride Public Function GetDaysInMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Integer


[23135] [JScript] public abstract function GetDaysInMonth(year: int, month: int, era: int): int;


[23136] Description


[23137] When implemented by a derived class, gets the number of days in the month specified by the year, month, and era parameters.


[23138] Return Value: The number of days in the specified month in the specified year in the specified era.


[23139] For example, in the Gregorian calendar, this method might return 28 or 29 for February (month=2), depending on whether year is a leap year. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[23140] GetDaysInYear


[23141] [C#] public virtual int GetDaysInYear(int year);


[23142] [C++] public: virtual int GetDaysInYear(int year);


[23143] [VB] Overridable Public Function GetDaysInYear(ByVal year As Integer) As Integer


[23144] [JScript] public function GetDaysInYear(year: int): int; Gets the number of days in the specified year.


[23145] Description


[23146] Gets the number of days in the year specified by the year parameter.


[23147] Return Value: The number of days in the specified year in the current era.


[23148] For example, in the Gregorian calendar, this method might return 365 or 366, depending on whether year is a leap year. An integer that represents the year.


[23149] GetDaysInYear


[23150] [C#] public abstract int GetDaysInYear(int year, int era);


[23151] [C++] public: virtual int GetDaysInYear(int year, int era)=0;


[23152] [VB] MustOverride Public Function GetDaysInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[23153] [JScript] public abstract function GetDaysInYear(year: int, era: int): int;


[23154] Description


[23155] When implemented by a derived class, gets the number of days in the year specified by the year and era parameters.


[23156] Return Value: The number of days in the specified year in the specified era.


[23157] For example, in the Gregorian calendar, this method might return 365 or 366, depending on whether year is a leap year. An integer that represents the year. An integer that represents the era.


[23158] GetEra


[23159] [C#] public abstract int GetEra(DateTime time);


[23160] [C++] public: virtual int GetEra(DateTime time)=0;


[23161] [VB] MustOverride Public Function GetEra(ByVal time As DateTime) As Integer


[23162] [JScript] public abstract function GetEra(time: DateTime): int;


[23163] Description


[23164] When implemented by a derived class, gets the era in the specified System.DateTime instance.


[23165] Return Value: An integer that represents the era in time. The System.DateTime instance to read.


[23166] GetHour


[23167] [C#] public virtual int GetHour(DateTime time);


[23168] [C++] public: virtual int GetHour(DateTime time);


[23169] [VB] Overridable Public Function GetHour(ByVal time As DateTime) As Integer


[23170] [JScript] public function GetHour(time: DateTime): int;


[23171] Description


[23172] Gets the hours value in the specified System.DateTime.


[23173] Return Value: An integer from 0 to 23 that represents the hour in time. The System.DateTime instance to read.


[23174] GetMilliseconds


[23175] [Cg] public virtual double GetMilliseconds(DateTime time);


[23176] [C++] public: virtual double GetMilliseconds(DateTime time);


[23177] [VB] Overridable Public Function GetMilliseconds(ByVal time As DateTime) As Double


[23178] [JScript] public function GetMilliseconds(time: DateTime): double;


[23179] Description


[23180] Gets the milliseconds value in the specified System.DateTime.


[23181] Return Value: An integer that represents the milliseconds in time


[23182] The returned value is an integer from 0 to 999. The System.DateTime instance to read.


[23183] GetMinute


[23184] [C#] public virtual int GetMinute(DateTime time);


[23185] [C++] public: virtual int GetMinute(DateTime time);


[23186] [VB] Overridable Public Function GetMinute(ByVal time As DateTime) As Integer


[23187] [JScript] public function GetMinute(time: DateTime): int;


[23188] Description


[23189] Gets the minutes value in the specified System.DateTime.


[23190] Return Value: An integer that represents the minutes in time.


[23191] The returned value is an integer from 0 to 59. The System.DateTime instance to read.


[23192] GetMonth


[23193] [C#] public abstract int GetMonth(DateTime time);


[23194] [C++] public: virtual int GetMonth(DateTime time)=0;


[23195] [VB] MustOverride Public Function GetMonth(ByVal time As DateTime) As Integer


[23196] [JScript] public abstract function GetMonth(time: DateTime): int;


[23197] Description


[23198] When implemented by a derived class, gets the month in the specified System.DateTime.


[23199] Return Value: An integer that represents the month in time. The System.DateTime instance to read.


[23200] GetMonthsInYear


[23201] [C#] public virtual int GetMonthsInYear(int year);


[23202] [C++] public: virtual int GetMonthsInYear(int year),


[23203] [VB] Overridable Public Function GetMonthsInYear(ByVal year As Integer) As Integer


[23204] [JScript] public function GetMonthsInYear(year: int): int; Gets the number of months in the specified year.


[23205] Description


[23206] Gets the number of months in the year specified by the year parameter.


[23207] Return Value: The number of months in the specified year in the current era. An integer that represents the year.


[23208] GetMonthsInYear


[23209] [C#] public abstract int GetMonthsInYear(int year, int era);


[23210] [C++] public: virtual int GetMonthsInYear(int year, int era)=0;


[23211] [VB] MustOverride Public Function GetMonthsInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[23212] [JScript] public abstract function GetMonthsInYear(year: int, era: int): int;


[23213] Description


[23214] When implemented by a derived class, gets the number of months in the year specified by the year and era parameters.


[23215] Return Value: The number of months in the specified year in the specified era. An integer that represents the year. An integer that represents the era.


[23216] GetSecond


[23217] [C#] public virtual int GetSecond(DateTime time);


[23218] [C++] public: virtual int GetSecond(DateTime time);


[23219] [VB] Overridable Public Function GetSecond(ByVal time As DateTime) As Integer


[23220] [JScript] public function GetSecond(time: DateTime): int;


[23221] Description


[23222] Gets the seconds value in the specified System.DateTime.


[23223] Return Value: An integer that represents the seconds in time.


[23224] The returned value is an integer from 0 to 59. The System.DateTime instance to read.


[23225] GetWeekOfYear


[23226] [C#] public virtual int GetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek);


[23227] [C++] public: virtual int GetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek);


[23228] [VB] Overridable Public Function GetWeekOfYear(ByVal time As DateTime, ByVal rule As CalendarWeekRule, ByVal firstDayOfWeek As DayOfWeek) As Integer


[23229] [JScript] public function GetWeekOfYear(time: DateTime, rule: CalendarWeekRule, firstDayOfWeek: DayOfWeek): int;


[23230] Description


[23231] Gets the week of the year that includes the date in the specified System.DateTime.


[23232] Return Value: An integer that represents the week of the year that includes the date in time.


[23233] System.Globalization.DateTimeFormatInfo.FirstDayOfWeek of System.Globalization.CultureInfo.DateTimeFormat contains the default System.DayOfWeek value that represents the first day of the week for a specific culture. The System.DateTime instance to read. A System.Globalization.CalendarWeekRule value that defines a calendar week. A System.DayOfWeek value that represents the first day of the week.


[23234] GetYear


[23235] [C#] public abstract int GetYear(DateTime time);


[23236] [C++] public: virtual int GetYear(DateTime time) 0;


[23237] [VB] MustOverride Public Function GetYear(ByVal time As DateTime) As Integer


[23238] [JScript] public abstract function GetYear(time: DateTime): int;


[23239] Description


[23240] When implemented by a derived class, gets the year in the specified System.DateTime.


[23241] Return Value: An integer that represents the year in time. The System.DateTime instance to read.


[23242] IsLeapDay


[23243] [C#] public virtual bool IsLeapDay(int year, int month, int day);


[23244] [C++] public: virtual bool IsLeapDay(int year, int month, int day);


[23245] [VB] Overridable Public Function IsLeapDay(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer) As Boolean


[23246] [JScript] public function IsLeapDay(year: int, month: int, day: int): Boolean; Determines whether a date is a leap day.


[23247] Description


[23248] Determines whether the date specified by the year, month, and day parameters is a leap day.


[23249] Return Value: true if the specified day is a leap day; otherwise, false.


[23250] A leap year has a different number of days than a standard calendar year, in order to make up for the difference between the calendar year and the actual time that the earth rotates around the sun. Each System.Globalization.Calendar implementation defines leap years differently. An integer that represents the year. An integer that represents the month. An integer that represents the day.


[23251] IsLeapDay


[23252] [C#] public abstract bool IsLeapDay(int year, int month, int day, int era);


[23253] [C++] public: virtual bool IsLeapDay(int year, int month, int day, int era)=0;


[23254] [VB] MustOverride Public Function IsLeapDay(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal era As Integer) As Boolean


[23255] [JScript] public abstract function IsLeapDay(year: int, month: int, day: int, era: int): Boolean;


[23256] Description


[23257] When implemented by a derived class, determines whether the date specified by the year, month, day, and era parameters is a leap day.


[23258] Return Value: true if the specified day is a leap day; otherwise, false. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the era.


[23259] IsLeapMonth


[23260] [C#] public virtual bool IsLeapMonth(int year, int month);


[23261] [C++] public: virtual bool IsLeapMonth(int year, int month);


[23262] [VB] Overridable Public Function IsLeapMonth(ByVal year As Integer, ByVal month As Integer) As Boolean


[23263] [JScript] public function IsLeapMonth(year: int, month: int): Boolean; Determines whether a month is a leap month.


[23264] Description


[23265] Determines whether the month specified by the year and month parameters is a leap month.


[23266] Return Value: true if the specified month is a leap month; otherwise, false.


[23267] A leap year has a different number of days than a standard calendar year, in order to make up for the difference between the calendar year and the actual time that the earth rotates around the sun. Each System.Globalization.Calendar implementation defines leap years differently. An integer that represents the year. An integer that represents the month.


[23268] IsLeapMonth


[23269] [C#] public abstract bool IsLeapMonth(int year, int month, int era);


[23270] [C++] public: virtual bool IsLeapMonth(int year, int month, int era)=0;


[23271] [VB] MustOverride Public Function IsLeapMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Boolean


[23272] [JScript] public abstract function IsLeapMonth(year: int, month: int, era: int) Boolean;


[23273] Description


[23274] When implemented by a derived class, determines whether the month specified by the year, month, and era parameters is a leap month.


[23275] Return Value: true if the specified month is a leap month; otherwise, false. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[23276] IsLeapYear


[23277] [C#] public virtual bool IsLeapYear(int year);


[23278] [C++] public: virtual bool IsLeapYear(int year);


[23279] [VB] Overridable Public Function IsLeapYear(ByVal year As Integer) As Boolean


[23280] [JScript] public function IsLeapYear(year: int): Boolean; Determines whether a year is a leap year.


[23281] Description


[23282] Determines whether the year specified by the year parameter is a leap year.


[23283] Return Value: true if the specified year is a leap year; otherwise, false.


[23284] A leap year has a different number of days than a standard calendar year, in order to make up for the difference between the calendar year and the actual time that the earth rotates around the sun. Each System.Globalization.Calendar implementation defines leap years differently. An integer that represents the year.


[23285] IsLeapYear


[23286] [C#] public abstract bool IsLeapYear(int year, int era);


[23287] [C++] public: virtual bool IsLeapYear(int year, int era)=0;


[23288] [VB] MustOverride Public Function IsLeapYear(ByVal year As Integer, ByVal era As Integer) As Boolean


[23289] [JScript] public abstract function IsLeapYear(year: int, era: int): Boolean;


[23290] Description


[23291] When implemented by a derived class, determines whether the year specified by the year and era parameters is a leap year.


[23292] Return Value: true if the specified year is a leap year; otherwise, false. An integer that represents the year. An integer that represents the era.


[23293] ToDateTime


[23294] [C#] public virtual DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond);


[23295] [C++] public: virtual DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond);


[23296] [VB] Overridable Public Function ToDateTime(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer) As DateTime


[23297] [JScript] public function ToDateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int): DateTime; Returns a System.DateTime that is set to the specified date and time.


[23298] Description


[23299] Return a System.DateTime that is set to the specified date and time in the current era.


[23300] Return Value: The System.DateTime instance set to the specified date and time in the current era. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the hour. An integer that represents the minute. An integer that represents the second. An integer that represents the millisecond.


[23301] ToDateTime


[23302] [C#] public abstract DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[23303] [C++] public: virtual DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era)=0;


[23304] [VB] MustOverride Public Function ToDateTime(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal era As Integer) As DateTime


[23305] [JScript] public abstract function ToDateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, era: int): DateTime;


[23306] Description


[23307] When implemented by a derived class, returns a System.DateTime that is set to the specified date and time in the specified era.


[23308] Return Value: The System.DateTime instance set to the specified date and time in the current era. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the hour. An integer that represents the minute. An integer that represents the second. An integer that represents the millisecond. An integer that represents the era.


[23309] ToFourDigitYear


[23310] [C#] public virtual int ToFourDigitYear(int year);


[23311] [C++] public: virtual int ToFourDigitYear(int year);


[23312] [VB] Overridable Public Function ToFourDigitYear(ByVal year As Integer) As Integer


[23313] [JScript] public function ToFourDigitYear(year: int): int;


[23314] Description


[23315] Converts the specified two-digit year to a four-digit year by using the System.Globalization.Calendar.TwoDigitYearMax property to determine the appropriate century.


[23316] Return Value: An integer that contains the four-digit representation of year.


[23317] System.Globalization.Calendar.TwoDigitYearMax is the last year in the 100-year range that can be represented by a two-digit year. The century is determined by finding the sole occurrence of the two-digit year within that 100-year range. For example, if System.Globalization.Calendar.TwoDigitYearMax is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029. A two-digit integer that represents the year to convert.


[23318] CalendarWeekRule enumeration (System.Globalization)


[23319] ToString


[23320] Description


[23321] Defines different rules for determining the first week of the year.


[23322] These calendar week rules depend on the System.DayOfWeek value that is designated as the first day of the week. The System.Globalization.DateTimeFormatInfo.FirstDayOfWeek property provides the default value for a culture, but any System.DayOfWeek value can be specified as the first day of the week in System.Globalization.Calendar.GetWeekOftear(System.DateTime,System.G lobalization.CalendarWeekRule,System.DayOfWeek).


[23323] ToString


[23324] [C#] public const CalendarWeekRule FirstDay;


[23325] [C++] public: const CalendarWeekule FirstDay;


[23326] [VB] Public Const FirstDay As CalendarWeekRule


[23327] [JScript] public var FirstDay: CalendarWeekRule;


[23328] Description


[23329] Indicates that the first week of the year starts on the first day of the year and ends before the following designated first day of the week. The value is 0.


[23330] ToString


[23331] [C#] public const CalendarWeekRule FirstFourDayWeek;


[23332] [C++] public: const CalendarWeekule FirstFourDayWeek;


[23333] [VB] Public Const FirstFourDayWeek As CalendarWeekRule


[23334] [JScript] public var FirstFourDayWeek: CalendarWeekRule;


[23335] Description


[23336] Indicates that the first week of the year is the first week with four or more days before the designated first day of the week. The value is 2.


[23337] ToString


[23338] [C#] public const CalendarWeekRule FirstFullWeek;


[23339] [C++] public: const CalendarWeekRule FirstFullWeek;


[23340] [VB] Public Const FirstFullWeek As CalendarWeekRule


[23341] [JScript] public var FirstFullWeek: CalendarWeekRule;


[23342] Description


[23343] Indicates that the first week of the year begins on the first occurrence of the designated first day of the week on or after the first day of the year. The value is 1.


[23344] CompareInfo class (System.Globalization)


[23345] ToString


[23346] Description


[23347] Implements a set of methods for culture-sensitive string comparisons.


[23348] The System.Globalization.CultureInfo class includes a System.Globalization.CultureInfo.CompareInfo property that is an instance of this class.


[23349] LCID


[23350] ToString


[23351] [C#] public int LCID {get;}


[23352] [C++] public: _property it get_LCID( );


[23353] [VB] Public ReadOnly Property LCID As Integer


[23354] [JScript] public function get LCID( ): int;


[23355] Description


[23356] Gets the properly formed culture identifier for the current System.Globalization.CompareInfo instance.


[23357] Compare


[23358] [C#] public virtual int Compare(string string1, string string2);


[23359] [C++] public: virtual int Compare(String* string1, String* string2);


[23360] [VB] Overridable Public Function Compare(ByVal string1 As String, ByVal string2 As String) As Integer


[23361] [JScript] public function Compare(string1: String, string2: String): int; Compares two strings.


[23362] Description


[23363] Compares two strings using the default System.Globalization.CompareOptions value.


[23364] Return Value: Value Condition zero The two strings are equal. The first string to compare. The second string to compare.


[23365] Compare


[23366] [C#] public virtual int Compare(string string1, string string2, CompareOptions options);


[23367] [C++] public: virtual int Compare(String* string1, String* string2, CompareOptions options);


[23368] [VB] Overridable Public Function Compare(ByVal string1 As String, ByVal string2 As String, ByVal options As CompareOptions) As Integer


[23369] [JScript] public function Compare(string1: String, string2: String, options: CompareOptions): int;


[23370] Description


[23371] Compares two strings using the specified System.Globalization.CompareOptions value.


[23372] Return Value: Value Condition zero The two strings are equal. The first string to compare. The second string to compare. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23373] Compare


[23374] [C#] public virtual int Compare(string string1, int offset1, string string2, int offset2);


[23375] [C++] public: virtual int Compare(String* string1 int offset1, String* string2, int offset2);


[23376] [VB] Overridable Public Function Compare(ByVal string1 As String, ByVal offset1 As Integer, ByVal string2 As String, ByVal offset2 As Integer) As Integer


[23377] [JScript] public function Compare(string1: String, offset1: int, string2: String, offset2: int): int;


[23378] Description


[23379] Compares the tail section of a string with the tail section of another string.


[23380] Return Value: Value Condition zero The two strings are equal. The first string to compare. The zero-based index of the character in string1 at which to start comparing. The second string to compare. The zero-based index of the character in string2 at which to start comparing.


[23381] Compare


[23382] [C#] public virtual int Compare(string string1 int offset1, string string2 int offset2, CompareOptions options);


[23383] [C++] public: virtual int Compare(String* string1, int offset1, String* string2, int offset2, CompareOptions options);


[23384] [VB] Overridable Public Function Compare(ByVal string1 As String, ByVal offset1 As Integer, ByVal string2 As String, ByVal offset2 As Integer, ByVal options As CompareOptions) As Integer


[23385] [JScript] public function Compare(string1: String, offset1: int, string2: String, offset2: int, options: CompareOptions): int;


[23386] Description


[23387] Compares the tail section of a string with the tail section of another string using the specified System.Globalization.CompareOptions value.


[23388] Return Value: Value Condition zero The two strings are equal. The first string to compare. The zero-based index of the character in string1 at which to start comparing. The second string to compare. The zero-based index of the character in string2 at which to start comparing. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23389] Compare


[23390] [C#] public virtual int Compare(string string1, int offset1, int length1, string string2, int offset2, int length2);


[23391] [C++] public: virtual int Compare(String* string1, int offset1, int length1, String* string2, int offset2, int length2);


[23392] [VB] Overridable Public Function Compare(ByVal string1 As String, ByVal offset1 As Integer, ByVal length1 As Integer, ByVal string2 As String, ByVal offset2 As Integer, ByVal length2 As Integer) As Integer


[23393] [JScript] public function Compare(string1: String, offset1: int, length1: int, string2: String, offset2: int, length2: int): int;


[23394] Description


[23395] Compares a section of one string with a section of another string.


[23396] Return Value: Value Condition zero The two strings are equal. The first string to compare. The zero-based index of the character in string1 at which to start comparing. The number of consecutive characters in string1 to compare. The second string to compare. The zero-based index of the character in string2 at which to start comparing. The number of consecutive characters in string2 to compare.


[23397] Compare


[23398] [C#] public virtual int Compare(string string1, int offset1, int length1, string string2, int offset2, int length2, CompareOptions options);


[23399] [C++] public: virtual int Compare(String* string1, int offset1, int length1, String* string2, int offset2, int length2, CompareOptions options);


[23400] [VB] Overridable Public Function Compare(ByVal string1 As String, ByVal offset1 As Integer, ByVal length1 As Integer, ByVal string2 As String, ByVal offset2 As Integer, ByVal length2 As Integer, ByVal options As CompareOptions) As Integer


[23401] [JScript] public function Compare(string1: String, offset1: int, length1 int, string2: String, offset2: int, length2: int, options: CompareOptions): int;


[23402] Description


[23403] Compares a section of one string with a section of another string using the specified System.Globalization.CompareOptions value.


[23404] Return Value: Value Condition zero The two strings are equal. The first string to compare. The zero-based index of the character in string1 at which to start comparing. The number of consecutive characters in string1 to compare. The second string to compare. The zero-based index of the character in string2 at which to start comparing. The number of consecutive characters in string2 to compare. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23405] Equals


[23406] [C#] public override bool Equals(object value);


[23407] [C++] public: bool Equals(Object* value);


[23408] [VB] Overrides Public Function Equals(ByVal value As Object) As Boolean


[23409] [JScript] public override function Equals(value: Object): Boolean;


[23410] Description


[23411] Determines whether the specified System.Object is the same instance as the current System.Globalization.CompareInfo.


[23412] Return Value: true if the specified System.Object is the same instance as the current System.Globalization.CompareInfo; otherwise, false.


[23413] This method overrides System.Object.Equals(System.Object). The System.Object to compare with the current System.Globalization.CompareInfo.


[23414] GetCompareInfo


[23415] [C#] public static CompareInfo GetCompareInfo(int culture);


[23416] [C++] public: static CompareInfo* GetCompareInfo(int culture);


[23417] [VB] Public Shared Function GetCompareInfo(ByVal culture As Integer) As CompareInfo


[23418] [JScript] public static function GetCompareInfo(culture: int): CompareInfo;


[23419] Description


[23420] Initializes a new instance of the System.Globalization.CompareInfo class that is associated with the culture having the specified identifier.


[23421] Return Value: A new instance of the System.Globalization.CompareInfo class that is associated with the culture having the specified identifier and uses string comparison methods in the current System.Reflection.Assembly. An integer representing the culture identifier.


[23422] GetCompareInfo


[23423] [C#] public static CompareInfo GetCompareInfo(string name);


[23424] [C++] public: static CompareInfo* GetCompareInfo(String* name);


[23425] [VB] Public Shared Function GetCompareInfo(ByVal name As String) As CompareInfo


[23426] [JScript] public static function GetCompareInfo(name: String): CompareInfo;


[23427] Description


[23428] Initializes a new instance of the System.Globalization.CompareInfo class that is associated with the culture having the specified name.


[23429] Return Value: A new instance of the System.Globalization.CompareInfo class that is associated with the culture having the specified name and uses string comparison methods in the current System.Reflection.Assembly. A System.String representing the culture name.


[23430] GetCompareInfo


[23431] [C#] public static CompareInfo GetCompareInfo(int culture, Assembly assembly);


[23432] [C++] public: static CompareInfo* GetCompareInfo(int culture, Assembly* assembly);


[23433] [VB] Public Shared Function GetCompareInfo(ByVal culture As Integer, ByVal assembly As Assembly) As CompareInfo


[23434] [JScript] public static function GetCompareInfo(culture: int, assembly: Assembly): CompareInfo; Initializes a new instance of the System.Globalization.CompareInfo class.


[23435] Description


[23436] Initializes a new instance of the System.Globalization.CompareInfo class that is associated with the culture having the specified identifier and uses string comparison methods in the specified System.Reflection.Assembly


[23437] Return Value: A new instance of the System.Globalization.CompareInfo class that is associated with the specified culture and uses string comparison methods in the specified System.Reflection.Assembly.


[23438] The assembly parameter must be of the same type as System.Reflection.Module.Assembly. An integer representing the culture identifier. An System.Reflection.Assembly that contains the string comparison methods to use.


[23439] GetCompareInfo


[23440] [C#] public static CompareInfo GetCompareInfo(string name, Assembly assembly);


[23441] [C++] public: static CompareInfo* GetCompareInfo(String* name, Assembly* assembly);


[23442] [VB] Public Shared Function GetCompareInfo(ByVal name As String, ByVal assembly As Assembly) As CompareInfo


[23443] [JScript] public static function GetCompareInfo(name: String, assembly: Assembly): CompareInfo;


[23444] Description


[23445] Initializes a new instance of the System.Globalization.CompareInfo class that is associated with the culture having the specified name and uses string comparison methods in the specified System.Reflection.Assembly.


[23446] Return Value: A new instance of the System.Globalization.CompareInfo class that is associated with the culture having the specified name and uses string comparison methods in the specified System.Reflection.Assembly.


[23447] The assembly parameter must be of the same type as System.Reflection.Module.Assembly. A System.String representing the culture name. An System.Reflection.Assembly that contains the string comparison methods to use.


[23448] GetHashCode


[23449] [C#] public override int GetHashCode( );


[23450] [C++] public: int GetHashCode( );


[23451] [VB] Overrides Public Function GetHashCode( ) As Integer


[23452] [JScript] public override function GetHashCode( ): int;


[23453] Description


[23454] Serves as a hash function for the current System.Globalization.CompareInfo instance, suitable for use in hashing algorithms and data structures, such as a hash table.


[23455] Return Value: A hash code for the current System.Globalization.CompareInfo instance.


[23456] This method overrides System.Object.GetHashCode.


[23457] GetSortKey


[23458] [C#] public virtual SortKey GetSortKey(string source);


[23459] [C++] public: virtual SortKey* GetSortKey(String* source);


[23460] [VB] Overridable Public Function GetSortKey(ByVal source As String) As SortKey


[23461] [JScript] public function GetSortKey(source: String): SortKey;


[23462] Description


[23463] Gets the System.Globalization.SortKey of the specified System.String.


[23464] Return Value: The System.Globalization.SortKey of the specified System.String


[23465] Each character in a string is given several categories of sort weights, including script, alphabetic, case, and diacritic weights. A sort key serves as the repository of these weights for a particular string. For example, a sort key might contain a string of alphabetic weights, followed by a string of case weights, and so on. The System.String for which to get the System.Globalization.SortKey.


[23466] GetSortKey


[23467] [C#] public virtual SortKey GetSortKey(string source, CompareOptions options);


[23468] [C++] public: virtual SortKey* GetSortKey(String* source, CompareOptions options);


[23469] [VB] Overridable Public Function GetSortKey(ByVal source As String, ByVal options As CompareOptions) As SortKey


[23470] [JScript] public function GetSortKey(source: String, options: CompareOptions): SortKey; Gets the System.Globalization.SortKey of a System.String.


[23471] Description


[23472] Gets the System.Globalization.SortKey of the specified System.String using the specified System.Globalization.CompareOptions value.


[23473] Return Value: The System.Globalization.SortKey of the specified System.String using the specified System.Globalization.CompareOptions value.


[23474] Each character in a string is given several categories of sort weights, including script, alphabetic, case, and diacritic weights. A sort key serves as the repository of these weights for a particular string. For example, a sort key might contain a string of alphabetic weights, followed by a string of case weights, and so on. The System.String whose System.Globalization.SortKey to get. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23475] IndexOf


[23476] [C#] public virtual int Indexof(string source, char value);


[23477] [C++] public: virtual int IndexOf(String* source, _wchar_t value);


[23478] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As Char) As Integer


[23479] [JScript] public function IndexOf(source: String, value: Char): int; Returns the zero-based index of the first occurrence of a value within a System.String or within a portion of it.


[23480] Description


[23481] Searches for the specified character and returns the zero-based index of the first occurrence within the entire source System.String.


[23482] Return Value: The zero-based index of the first occurrence of value within the entire source, if found; otherwise, −1.


[23483] The source System.String is searched forward starting at the beginning of the System.String and ending at the end of the System.String. The System.String to search. The character to locate within source.


[23484] IndexOf


[23485] [C#] public virtual int IndexOf(string source, string value);


[23486] [C++] public: virtual int Indexof(String* source, String* value);


[23487] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As String) As Integer


[23488] [JScript] public function IndexOf(source: String, value: String): int;


[23489] Description


[23490] Searches for the specified substring and returns the zero-based index of the first occurrence within the entire source System.String.


[23491] Return Value: The zero-based index of the first occurrence of value within the entire source, if found; otherwise, −1.


[23492] The source System.String is searched forward starting at the beginning of the System.String and ending at the end of the System.String. The System.String to search. The System.String to locate within source.


[23493] IndexOf


[23494] [C#] public virtual int IndexOf(string source, char value, CompareOptions options);


[23495] [C++] public: virtual int IndexOf(String* source, _wchar_t value, CompareOptions options);


[23496] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As Char, ByVal options As CompareOptions) As Integer


[23497] [JScript] public function IndexOf(source: String, value: Char, options: CompareOptions): int;


[23498] Description


[23499] Searches for the specified character and returns the zero-based index of the first occurrence within the entire source System.String using the specified System.Globalization.CompareOptions value.


[23500] Return Value: The zero-based index of the first occurrence of value within the entire source using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23501] The source System.String is searched forward starting at the beginning of the System.String and ending at the end of the System.String. The System.String to search. The character to locate within source. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23502] IndexOf


[23503] [C?] public virtual int IndexOf(string source, char value, int startIndex);


[23504] [C++] public: virtual int IndexOf(String* source, _wchar_t value, int startIndex);


[23505] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As Char, ByVal startIndex As Integer) As Integer


[23506] [JScript] public function IndexOf(source: String, value: Char, startIndex: int): Int;


[23507] Description


[23508] Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source System.String that extends from the specified index to the end of the System.String


[23509] Return Value: The zero-based index of the first occurrence of value within the section of source that extends from startindex to the end of the System.String, if found; otherwise, −1.


[23510] The source System.String is searched forward starting at startindex and ending at the end of the System.String. The System.String to search. The character to locate within source. The zero-based starting index of the search.


[23511] IndexOf


[23512] [C#] public virtual int IndexOf(string source, string value, CompareOptions options);


[23513] [C++] public: virtual int IndexOf(String* source, String* value, CompareOptions options);


[23514] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As String, ByVal options As CompareOptions) As Integer


[23515] [JScript] public function IndexOf(source: String, value: String, options: CompareOptions): int;


[23516] Description


[23517] Searches for the specified substring and returns the zero-based index of the first occurrence within the entire source System.String using the specified System.Globalization.CompareOptions value.


[23518] Return Value: The zero-based index of the first occurrence of value within the entire source using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23519] The source System.String is searched forward starting at the beginning of the System.String and ending at the end of the System.String. The System.String to search. The System.String to locate within source. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23520] IndexOf


[23521] [C+] public virtual int IndexOf(string source, string value, int startIndex);


[23522] [C++] public: virtual int IndexOf(String* source, String* value, int startIndex);


[23523] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As String, ByVal startIndex As Integer) As Integer


[23524] [JScript] public function IndexOf(source: String, value: String, startIndex: int): int;


[23525] Description


[23526] Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source System.String that extends from the specified index to the end of the System.String.


[23527] Return Value: The zero-based index of the first occurrence of value within the section of source that extends from startindex to the end of the System.String, if found; otherwise, −1.


[23528] The source System.String is searched forward starting at startIndex and ending at the end of the System.String. The System.String to search. The System.String to locate within source. The zero-based starting index of the search.


[23529] IndexOf


[23530] [C#] public virtual int IndexOf(string source, char value, int startIndex, CompareOptions options);


[23531] [C++] public: virtual int IndexOf(String* source, _wchar_t value, int startIndex, CompareOptions options);


[23532] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As Char, ByVal startIndex As Integer, ByVal options As CompareOptions) As Integer


[23533] [JScript] public function IndexOf(source: String, value: Char, startIndex: int, options: CompareOptions): it;


[23534] Description


[23535] Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source System.String that extends from the specified index to the end of the System.String using the specified System.Globalization.CompareOptions value.


[23536] Return Value: The zero-based index of the first occurrence of value within the section of source that extends from startIndex to the end of the System.String using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23537] The source System.String is searched forward starting at startIndex and ending at the end of the System.String. The System.String to search. The character to locate within source. The zero-based starting index of the search. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23538] IndexOf


[23539] [C+] public virtual int IndexOf(string source, char value, int startIndex, int count);


[23540] [C++] public: virtual int Indexof(String* source, _wchart value, int startIndex, int count);


[23541] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As Char, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[23542] [JScript] public function IndexOf(source: String, value: Char, startIndex: int, count: int): int;


[23543] Description


[23544] Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source System.String that starts at the specified index and contains the specified number of elements.


[23545] Return Value: The zero-based index of the first occurrence of value within the section of source that starts at startindex and contains count number of elements, if found; otherwise, −1.


[23546] The source System.String is searched forward starting at startIndex and i ending at startIndex+count−1. The System.String to search. The character to locate within source. The zero-based starting index of the search. The number of elements in the section to search.


[23547] IndexOf


[23548] [C#] public virtual int IndexOf(string source, string value, int startIndex, CompareOptions options);


[23549] [C++] public: virtual int IndexOf(String* source, String* value, int startIndex, CompareOptions options);


[23550] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As String, ByVal startIndex As Integer, ByVal options As CompareOptions) As Integer


[23551] [JScript] public function IndexOf(source: String, value: String, startIndex: int, options: CompareOptions): int;


[23552] Description


[23553] Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source System.String that extends from the specified index to the end of the System.String using the specified System.Globalization.CompareOptions value.


[23554] Return Value: The zero-based index of the first occurrence of value within the section of source that extends from startindex to the end of the System.String using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23555] The source System.String is searched forward starting at startindex and ending at the end of the System.String. The System.String to search. The System.String to locate within source. The zero-based starting index of the search. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23556] IndexOf


[23557] [C#] public virtual int IndexOf(string source, string value, int startIndex, int count);


[23558] [C++] public: virtual int IndexOf(String* source, String* value, int startIndex, int count);


[23559] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As String, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[23560] [JScript] public function IndexOf(source: String, value: String, startIndex: int, count: int): int;


[23561] Description


[23562] Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source System.String that starts at the specified index and contains the specified number of elements.


[23563] Return Value: The zero-based index of the first occurrence of value within the section of source that starts at startindex and contains count number of elements, if found; otherwise, −1.


[23564] The source System.String is searched forward starting at startindex and ending at startIndex+count−1. The System.String to search. The System.String to locate within source. The zero-based starting index of the search. The number of elements in the section to search.


[23565] IndexOf


[23566] [C#] public virtual int IndexOf(string source, char value, int startIndex, int count, CompareOptions options);


[23567] [C++] public: virtual int IndexOf(String* source, _wchar_t value, int startIndex, int count, CompareOptions options);


[23568] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As Char, ByVal startIndex As Integer, ByVal count As Integer, ByVal options As CompareOptions) As Integer


[23569] [JScript] public function IndexOf(source: String, value: Char, startIndex: int, count: int, options: CompareOptions): int;


[23570] Description


[23571] Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source System.String that starts at the specified index and contains the specified number of elements using the specified System.Globalization.CompareOptions value.


[23572] Return Value: The zero-based index of the first occurrence of value within the section of source that starts at startindex and contains count number of elements using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23573] The source System.String is searched forward starting at startindex and ending at startIndex+count−1. The System.String to search. The character to locate within source. The zero-based starting index of the search. The number of elements in the section to search. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23574] IndexOf


[23575] [C#] public virtual int IndexOf(string source, string value, int startIndex, int count, CompareOptions options);


[23576] [C++] public: virtual int IndexOf(String* source, String* value, int startIndex, int count, CompareOptions options);


[23577] [VB] Overridable Public Function IndexOf(ByVal source As String, ByVal value As String, ByVal startIndex As Integer, ByVal count As Integer, ByVal options As CompareOptions) As Integer


[23578] [JScript] public function IndexOf(source: String, value: String, startIndex: int, count: int, options: CompareOptions): int;


[23579] Description


[23580] Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source System.String that starts at the specified index and contains the specified number of elements using the specified System.Globalization.CompareOptions value.


[23581] Return Value: The zero-based index of the first occurrence of value within the section of source that starts at startIndex and contains count number of elements using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23582] The source System.String is searched forward starting at startindex and ending at startIndex+count−1. The System.String to search. The System.String to locate within source. The zero-based starting index of the search. The number of elements in the section to search. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23583] IsPrefix


[23584] [C+] public virtual bool IsPrefix(string source, string prefix);


[23585] [C++] public: virtual bool IsPrefix(String* source, String* prefix);


[23586] [VB] Overridable Public Function IsPrefix(ByVal source As String, ByVal prefix As String) As Boolean


[23587] [JScript] public function IsPrefix(source: String, prefix: String): Boolean;


[23588] Description


[23589] Determines whether the specified source System.String starts with the specified prefix.


[23590] Return Value: true if the length of prefix is less than or equal to the length of source and source starts with prefix; otherwise, false.


[23591] Every string starts and ends with an empty substring; therefore, if prefix is an empty string, this method returns true. The System.String to search in. The System.String to compare with the beginning of source.


[23592] IsPrefix


[23593] [C#] public virtual bool IsPrefix(string source, string prefix, CompareOptions options);


[23594] [C++] public: virtual bool IsPrefix(String* source, String* prefix, CompareOptions options);


[23595] [VB] Overridable Public Function IsPrefix(ByVal source As String, ByVal prefix As String, ByVal options As CompareOptions) As Boolean


[23596] [JScript] public function IsPrefix(source: String, prefix: String, options: CompareOptions): Boolean; Determines whether a string starts with a specific prefix.


[23597] Description


[23598] Determines whether the specified source System.String starts with the specified prefix using the specified System.Globalization.CompareOptions value.


[23599] Return Value: true if the length of prefix is less than or equal to the length of source and source starts with prefix; otherwise, false.


[23600] Every string starts and ends with an empty substring; therefore, if prefix is an empty string, this method returns true. The System.String to search in. The System.String to compare with the beginning of source. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23601] IsSuffix


[23602] [C#] public virtual bool IsSuffix(string source, string suffix);


[23603] [C++] public: virtual bool IsSuffix(String* source, String* suffix);


[23604] [VB] Overridable Public Function IsSuffix(ByVal source As String, ByVal suffix As String) As Boolean


[23605] [JScript] public function IsSuffix(source: String, suffix: String): Boolean;


[23606] Description


[23607] Determines whether the specified source System.String ends with the specified suffix.


[23608] Return Value: true if the length of suffix is less than or equal to the length of source and source ends with suffix; otherwise, false.


[23609] Every string starts and ends with an empty substring; therefore, if suffix is an empty string, this method returns true. The System.String to search in. The System.String to compare with the end of source.


[23610] IsSuffix


[23611] [C#] public virtual bool IsSuffix(string source, string suffix, CompareOptions options);


[23612] [C++] public: virtual bool IsSuffix(String* source, String* suffix, CompareOptions options);


[23613] [VB] Overridable Public Function IsSuffix(ByVal source As String, ByVal suffix As String, ByVal options As CompareOptions) As Boolean


[23614] [JScript] public function IsSuffix(source: String, suffix: String, options: CompareOptions): Boolean; Determines whether a string ends with a specific suffix.


[23615] Description


[23616] Determines whether the specified source System.String ends with the specified suffix using the specified System.Globalization.CompareOptions value.


[23617] Return Value: true if the length of suffix is less than or equal to the length of source and source ends with suffix; otherwise, false.


[23618] Every string starts and ends with an empty substring; therefore, if suffix is an empty string, this method returns true. The System.String to search in. The System.String to compare with the end of source. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23619] LastIndexOf


[23620] [C#] public virtual int LastIndexOf(string source, char value);


[23621] [C++] public: virtual int LastIndexOf(String* source, _wchar_t value);


[23622] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As Char) As Integer


[23623] [JScript] public function LastIndexOf(source: String, value: Char): int; Returns the zero-based index of the last occurrence of a value within a System.String or within a portion of it.


[23624] Description


[23625] Searches for the specified character and returns the zero-based index of the last occurrence within the entire source System.String.


[23626] Return Value: The zero-based index of the last occurrence of value within the entire source, if found; otherwise, −1.


[23627] The source System.String is searched backward starting at the end of the System.String and ending at the beginning of the System.String. The System.String to search. The character to locate within source.


[23628] LastIndexOf


[23629] [C#] public virtual int LastIndexOf(string source, string value);


[23630] [C++] public: virtual int LastIndexOf(String* source, String* value);


[23631] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As String) As Integer


[23632] [JScript] public function LastIndexOf(source: String, value: String): int;


[23633] Description


[23634] Searches for the specified substring and returns the zero-based index of the last occurrence within the entire source System.String.


[23635] Return Value: The zero-based index of the last occurrence of value within the entire source, if found; otherwise, −1.


[23636] The source System.String is searched backward starting at the end of the System.String and ending at the beginning of the System.String. The System.String to search. The System.String to locate within source.


[23637] LastIndexOf


[23638] [C#] public virtual int LastIndexOf(string source, char value, CompareOptions options);


[23639] [C++] public: virtual int LastIndexOf(String* source, _wchar_t value, CompareOptions options);


[23640] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As Char, ByVal options As CompareOptions) As Integer


[23641] [JScript] public function LastIndexOf(source: String, value: Char, options: CompareOptions): int;


[23642] Description


[23643] Searches for the specified character and returns the zero-based index of the last occurrence within the entire source System.String using the specified System.Globalization.CompareOptions value.


[23644] Return Value: The zero-based index of the last occurrence of value within the entire source using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23645] The source System.String is searched backward starting at the end of the System.String and ending at the beginning of the System.String. The System.String to search. The character to locate within source. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23646] LastIndexOf


[23647] [C#] public virtual int LastIndexOf(string source, char value, int startIndex);


[23648] [C++] public: virtual int LastIndexOf(String* source, _wchar_t value, int startIndex);


[23649] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As Char, ByVal startIndex As Integer) As Integer


[23650] [JScript] public function LastIndexOf(source: String, value: Char, startIndex: int): int;


[23651] Description


[23652] Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source System.String that extends from the beginning of the System.String to the specified index.


[23653] Return Value: The zero-based index of the last occurrence of value within the section of source that extends from the beginning of the System.String to startIndex, if found; otherwise, −1.


[23654] The source System.String is searched backward starting at startIndex and ending at the beginning of the System.String. The System.String to search. The character to locate within source. The zero-based starting index of the backward search.


[23655] LastIndexOf


[23656] [C#] public virtual int LastIndexOf(string source, string value, CompareOptions options);


[23657] [C++] public: virtual int LastIndexOf(String* source, String* value, CompareOptions options);


[23658] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As String, ByVal options As CompareOptions) As Integer


[23659] [JScript] public function LastIndexOf(source: String, value: String, options: CompareOptions): int;


[23660] Description


[23661] Searches for the specified substring and returns the zero-based index of the last occurrence within the entire source System.String using the specified System.Globalization.CompareOptions value.


[23662] Return Value: The zero-based index of the last occurrence of value within the entire source using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23663] The source System.String is searched backward starting at the end of the System.String and ending at the beginning of the System.String. The System.String to search. The System.String to locate within source. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23664] LastIndexOf


[23665] [C#] public virtual int LastIndexOf(string source, string value, int startIndex);


[23666] [C++] public: virtual int LastIndexOf(String* source, String* value, int startIndex);


[23667] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As String, ByVal startIndex As Integer) As Integer


[23668] [JScript] public function LastIndexOf(source: String, value: String, startIndex: int): int;


[23669] Description


[23670] Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source System.String that extends from the beginning of the System.String to the specified index.


[23671] Return Value: The zero-based index of the last occurrence of value within the section of source that extends from the beginning of the System.String to startIndex, if found; otherwise, −1.


[23672] The source System.String is searched backward starting at startIndex and ending at the beginning of the System.String. The System.String to search. The System.String to locate within source. The zero-based starting index of the backward search.


[23673] LastIndexOf


[23674] [C#] public virtual int LastIndexOf(string source, char value, int startIndex, CompareOptions options);


[23675] [C++] public: virtual int LastIndexOf(String* source, _wchar_t value, int startIndex, CompareOptions options);


[23676] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As Char, ByVal startIndex As Integer, ByVal options As CompareOptions) As Integer


[23677] [JScript] public function LastIndexOf(source: String, value: Char, startIndex: int, options: CompareOptions): int;


[23678] Description


[23679] Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source System.String that extends from the beginning of the System.String to the specified index using the specified System.Globalization.CompareOptions value.


[23680] Return Value: The zero-based index of the last occurrence of value within the section of source that extends from the beginning of the System.String to startIndex using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23681] The source System.String is searched backward starting at startIndex and ending at the beginning of the System.String. The System.String to search. The character to locate within source. The zero-based starting index of the backward search. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23682] LastIndexOf


[23683] [C#] public virtual int LastIndexOf(string source, char value, int startIndex, int count);


[23684] [C++] public: virtual int LastIndexOf(String* source, _wchar_t value, int startIndex, int count);


[23685] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As Char, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[23686] [JScript] public function LastIndexOf(source: String, value: Char, startIndex: int, count: int): int;


[23687] Description


[23688] Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source System.String that contains the specified number of elements and ends at the specified index.


[23689] Return Value: The zero-based index of the last occurrence of value within the section of source that contains count number of elements and ends at startIndex, if found; otherwise, −1.


[23690] The source System.String is searched backward starting at startIndex and ending at startIndex−count+1. The System.String to search. The character to locate within source. The zero-based starting index of the backward search. The number of elements in the section to search.


[23691] LastIndexOf


[23692] [C#] public virtual int LastIndexOf(string source, string value, int startIndex, CompareOptions options);


[23693] [C++] public: virtual int LastIndexOf(String* source, String* value, int startIndex, CompareOptions options);


[23694] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As String, ByVal startIndex As Integer, ByVal options As CompareOptions) As Integer


[23695] [JScript] public function LastIndexOf(source: String, value: String, startIndex: int, options: CompareOptions): int;


[23696] Description


[23697] Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source System.String that extends from the beginning of the System.String to the specified index using the specified System.Globalization.CompareOptions value.


[23698] Return Value: The zero-based index of the last occurrence of value within the section of source that extends from the beginning of the System.String to startIndex using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23699] The source System.String is searched backward starting at startIndex and ending at the beginning of the System.String. The System.String to search. The System.String to locate within source. The zero-based starting index of the backward search. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23700] LastIndexOf


[23701] [C#] public virtual int LastIndexOf(string source, string value, int startIndex, int count);


[23702] [C++] public: virtual int LastIndexOf(String* source, String* value, int startIndex, int count);


[23703] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As String, ByVal startIndex As Integer, ByVal count As Integer) As Integer


[23704] [JScript] public function LastIndexOf(source: String, value: String, startIndex: int, count: int): int;


[23705] Description


[23706] Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source System.String that contains the specified number of elements and ends at the specified index.


[23707] Return Value: The zero-based index of the last occurrence of value within the section of source that contains count number of elements and ends at startIndex, if found; otherwise, −1.


[23708] The source System.String is searched backward starting at startIndex and ending at startIndex−count+1. The System.String to search. The System.String to locate within source. The zero-based starting index of the backward search. The number of elements in the section to search.


[23709] LastIndexOf


[23710] [C#] public virtual int LastIndexOf(string source, char value, int startIndex, int count, CompareOptions options);


[23711] [C++] public: virtual int LastIndexOf(String* source, _wchar_t value, int startIndex, int count, CompareOptions options);


[23712] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As Char, ByVal startIndex As Integer, ByVal count As Integer, ByVal options As CompareOptions) As Integer


[23713] [JScript] public function LastIndexOf(source: String, value: Char, startIndex: int, count: int, options: CompareOptions): int;


[23714] Description


[23715] Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source System.String that contains the specified number of elements and ends at the specified index using the specified System.Globalization.CompareOptions value.


[23716] Return Value: The zero-based index of the last occurrence of value within the section of source that contains count number of elements and ends at startIndex using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23717] The source System.String is searched backward starting at startIndex and ending at startIndex−count+1. The System.String to search. The character to locate within source. The zero-based starting index of the backward search. The number of elements in the section to search. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23718] LastIndexOf


[23719] [C#] public virtual int LastIndexOf(string source, string value, int startIndex, int count, CompareOptions options);


[23720] [C++] public: virtual int LastIndexOf(String* source, String* value, int startIndex, int count, CompareOptions options);


[23721] [VB] Overridable Public Function LastIndexOf(ByVal source As String, ByVal value As String, ByVal startIndex As Integer, ByVal count As Integer, ByVal options As CompareOptions) As Integer


[23722] [JScript] public function LastIndexOf(source: String, value: String, startIndex: int, count: int, options: CompareOptions): int;


[23723] Description


[23724] Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source System.String that contains the specified number of elements and ends at the specified index using the specified System.Globalization.CompareOptions value.


[23725] Return Value: The zero-based index of the last occurrence of value within the section of source that contains count number of elements and ends at startIndex using the specified System.Globalization.CompareOptions value, if found; otherwise, −1.


[23726] The source System.String is searched backward starting at startIndex and ending at startIndex−count+1. The System.String to search. The System.String to locate within source. The zero-based starting index of the backward search. The number of elements in the section to search. The System.Globalization.CompareOptions value that defines how the strings should be compared.


[23727] IDeserializationCallback.OnDeserialization


[23728] [C#] void IDeserializationCallback.OnDeserialization(object sender);


[23729] [C++] void IDeserializationCallback::OnDeserialization(Object* sender);


[23730] [VB] Sub OnDeserialization(ByVal sender As Object) Implements IDeserializationCallback.OnDeserialization


[23731] [JScript] function IDeserializationCallback.OnDeserialization(sender: Object);


[23732] ToString


[23733] [C#] public override string ToString( );


[23734] [C++] public: String* ToString( );


[23735] [VB] Overrides Public Function ToString( ) As String


[23736] [JScript] public override function ToString( ): String;


[23737] Description


[23738] Returns a System.String that represents the current System.Globalization.CompareInfo instance.


[23739] Return Value: A System.String that represents the current System.Globalization.CompareInfo instance.


[23740] This method overrides System.Object.ToString.


[23741] CompareOptions enumeration (System.Globalization)


[23742] ToString


[23743] Description


[23744] Defines the string comparison options to use with System.Globalization.CompareInfo.


[23745] These options denote case-sensitivity or whether to ignore types of characters.


[23746] ToString


[23747] [C#] public const CompareOptions IgnoreCase;


[23748] [C++] public: const CompareOptions IgnoreCase;


[23749] [VB] Public Const IgnoreCase As CompareOptions


[23750] [JScript] public var IgnoreCase: CompareOptions;


[23751] Description


[23752] Indicates that the string comparison must ignore case.


[23753] ToString


[23754] [C+] public const CompareOptions IgnoreKanaType;


[23755] [C++] public: const CompareOptions IgnoreKanaType;


[23756] [VB] Public Const IgnoreKanaType As CompareOptions


[23757] [JScript] public var IgnoreKanaType: CompareOptions;


[23758] Description


[23759] Indicates that the string comparison must ignore the Kana type. Kana type refers to Japanese hiragana and katakana characters, which represent phonetic sounds in the Japanese language. Hiragana is used for native Japanese expressions and words, while katakana is used for words borrowed from other languages, such as “computer” or “internet”. A phonetic sound can be expressed in both hiragana and katakana. If this value is selected, the hiragana character for one sound is considered equal to the katakana character for the same sound.


[23760] ToString


[23761] [C#] public const CompareOptions IgnoreNonSpace;


[23762] [C++] public: const CompareOptions IgnoreNonSpace;


[23763] [VB] Public Const IgnoreNonSpace As CompareOptions


[23764] [JScript] public var IgnoreNonSpace: CompareOptions;


[23765] Description


[23766] Indicates that the string comparison must ignore nonspacing combining characters, such as diacritics. The Unicode Standard defines combining characters as characters that are combined with base characters to produce a new character. Non-spacing combining characters do not occupy a spacing position by themselves when rendered. For more information on non-spacing combining characters, see The Unicode Standard at http://www.unicode.org.


[23767] ToString


[23768] [C#] public const CompareOptions IgnoreSymbols;


[23769] [C++] public: const CompareOptions IgnoreSymbols;


[23770] [VB] Public Const IgnoreSymbols As CompareOptions


[23771] [JScript] public var IgnoreSymbols: CompareOptions;


[23772] Description


[23773] Indicates that the string comparison must ignore symbols, such as white-space characters, punctuation, currency symbols, the percent sign, mathematical symbols, the ampersand, and so on.


[23774] ToString


[23775] [C#] public const CompareOptions IgnoreWidth;


[23776] [C++] public: const CompareOptions IgnoreWidth;


[23777] [VB] Public Const IgnoreWidth As CompareOptions


[23778] [JScript] public var IgnoreWidth: CompareOptions;


[23779] Description


[23780] Indicates that the string comparison must ignore the character width. For example, Japanese katakana characters can be written as full-width or half-width and, if this value is selected, the katakana characters written as full-width are considered equal to the same characters written in half-width.


[23781] ToString


[23782] [C#] public const CompareOptions None;


[23783] [C++] public: const CompareOptions None;


[23784] [VB] Public Const None As CompareOptions


[23785] [JScript] public var None: CompareOptions;


[23786] Description


[23787] Indicates the default option settings for string comparisons.


[23788] ToString


[23789] [C#] public const CompareOptions Ordinal;


[23790] [C++] public: const CompareOptions Ordinal;


[23791] [VB] Public Const Ordinal As CompareOptions


[23792] [JScript] public var Ordinal: CompareOptions;


[23793] Description


[23794] Indicates that the string comparison must be done using the Unicode values of each character, which is a fast comparison but is culture-insensitive. A string starting with “U+xxxx” comes before a string starting with “U+yyyy”, if xxxx is less than yyyy.


[23795] ToString


[23796] [C#] public const CompareOptions StringSort;


[23797] [C++] public: const CompareOptions StringSort;


[23798] [VB] Public Const StringSort As CompareOptions


[23799] [JScript] public var StringSort: CompareOptions;


[23800] Description


[23801] Indicates that the string comparison must use the string sort method, where the hyphen and the apostrophe, as well as other non-alphanumeric characters, come before alphanumeric symbols.


[23802] CultureInfo class (System.Globalization)


[23803] ToString


[23804] Description


[23805] Represents information about a specific culture including the names of the culture, the writing system, and the calendar used, as well as methods for common operations, such as formatting dates and sorting strings.


[23806] The System.Globalization.CultureInfo class holds culture-specific information, such as the associated language, sublanguage, country/region, calendar, and cultural conventions. This class also provides the information required for culture-specific operations, such as casing, formatting dates and numbers, and comparing strings.


[23807] CultureInfo


[23808] Example Syntax:


[23809] ToString


[23810] [C#] public CultureInfo(int culture);


[23811] [C++] public: CultureInfo(int culture);


[23812] [VB] Public Sub New(ByVal culture As Integer)


[23813] [JScript] public function CultureInfo(culture: int);


[23814] Description


[23815] Initializes a new instance of the System.Globalization.CultureInfo class based on the culture specified by the culture identifier.


[23816] The culture parameter is mapped to the corresponding National Language Support (NLS) locale identifier. The value of the culture parameter becomes the value of the System.Globalization.CultureInfo.LCID property of the new instance. A predefined System.Globalization.CultureInfo identifier or the System.Globalization.CultureInfo.LCID of an existing System.Globalization.CuftureInfo instance.


[23817] CultureInfo


[23818] Example Syntax:


[23819] ToString


[23820] [C#] public CultureInfo(string name);


[23821] [C++] public: CultureInfo(String* name);


[23822] [VB] Public Sub New(ByVal name As String)


[23823] [JScript] public function CultureInfo(name: String); Initializes a new instance of the System.Globalization.CultureInfo class.


[23824] Description


[23825] Initializes a new instance of the System.Globalization.CultureInfo class based on the culture specified by name.


[23826] The System.Globalization.CultureInfo names follow the RFC 1766 standard in the format “-”, where is a lowercase two-letter code derived from ISO 639-1 and is an uppercase two-letter code derived from ISO 3166. For example, U.S. English is “en-US”. The predefined System.Globalization.CultureInfo names are listed in the System.Globalization.CultureInfo class topic. A predefined System.Globalization.CultureInfo name or the name of an existing System.Globalization.CultureInfo instance.


[23827] CultureInfo


[23828] Example Syntax:


[23829] ToString


[23830] [C#] public CultureInfo(int culture, bool useUserOverride);


[23831] [C++] public: CultureInfo(int culture, bool useUserOverride);


[23832] [VB] Public Sub New(ByVal culture As Integer, ByVal useUserOverride As Boolean)


[23833] [JScript] public function CultureInfo(culture: int, useUserOverride: Boolean);


[23834] Description


[23835] Initializes a new instance of the System.Globalization.CultureInfo class based on the culture specified by the culture identifier and on the Boolean that specifies whether to use the user-selected culture settings from the system.


[23836] The culture parameter is mapped to the corresponding National Language Support (NLS) locale identifier. The value of the culture parameter becomes the value of the System.Globalization.CultureInfo.LCID property of the new instance. A predefined System.Globalization.CultureInfo identifier or the System.Globalization.CultureInfo.LCID of an existing System.Globalization.CultureInfo instance. A Boolean that denotes whether to use the user-selected culture settings (true) or the default culture settings (false).


[23837] CultureInfo


[23838] Example Syntax:


[23839] ToString


[23840] [C#] public CultureInfo(string name, bool useUserOverride);


[23841] [C++] public: CultureInfo(String* name, bool useUserOverride);


[23842] [VB] Public Sub New(ByVal name As String, ByVal useUserOverride As Boolean)


[23843] [JScript] public function CultureInfo(name: String, useUserOverride: Boolean);


[23844] Description


[23845] Initializes a new instance of the System.Globalization.CultureInfo class based on the culture specified by name and on the Boolean that specifies whether to use the user-selected culture settings from the system.


[23846] The System.Globalization.CultureInfo names follow the RFC 1766 standard in the format “-”, where is a lowercase two-letter code derived from ISO 639-1 and is an uppercase two-letter code derived from ISO 3166.For example, U.S. English is “en-US”. The predefined System.Globalization.CultureInfo names are listed in the System.Globalization.CultureInfo class topic. A predefined System.Globalization.CultureInfo name or the name of an existing System.Globalization.CultureInfo instance. A Boolean that denotes whether to use the user-selected culture settings (true) or the default culture settings (false).


[23847] Calendar


[23848] ToString


[23849] [C#] public virtual Calendar Calendar {get;}


[23850] [C++] public: _property virtual Calendar* get_Calendar( );


[23851] [VB] Overridable Public ReadOnly Property Calendar As Calendar


[23852] [JScript] public function get Calender( ): Calendar;


[23853] Description


[23854] Gets the default calendar used by the culture.


[23855] The System.Globalization.CultureInfo.DateTimeFormat property is an instance of the System.Globalization.DateTimeFormatInfo class which includes properties that allow users to customize the date and time formatting associated with a specific System.Globalization.Calendar.


[23856] CompareInfo


[23857] ToString


[23858] [C#] public virtual CompareInfo CompareInfo {get;}


[23859] [C++] public: _property virtual CompareInfo* get_CompareInfo( );


[23860] [VB] Overridable Public ReadOnly Property CompareInfo As CompareInfo


[23861] [JScript] public function get CompareInfo( ): CompareInfo;


[23862] Description


[23863] Gets the System.Globalization.CompareInfo instance that defines how to compare strings for the culture.


[23864] CurrentCulture


[23865] ToString


[23866] [C#] public static CultureInfo CurrentCulture {get;}


[23867] [C++] public: _property static CultureInfo* get_CurrentCulture( );


[23868] [VB] Public Shared ReadOnly Property CurrentCulture As CultureInfo


[23869] [JScript] public static function get CurrentCulture( ): CultureInfo;


[23870] Description


[23871] Gets the System.Globalization.CultureInfo instance that represents the culture used by the current thread.


[23872] The culture is a property of the executing thread. This read-only property returns System.Threading.Thread.CurrentCulture. When a thread is started, its culture is initially determined by using GetUserDefaultLCID from the Windows API. To change the culture used by a thread, set System.Threading.Thread.CurrentCulture to the new culture.


[23873] CurrentUICulture


[23874] ToString


[23875] [C#] public static CultureInfo CurrentUICulture {get;}


[23876] [C++] public: _property static CultureInfo* get_CurrentUICulture( );


[23877] [VB] Public Shared ReadOnly Property CurrentUICulture As CultureInfo


[23878] [JScript] public static function get CurrentUICulture( ): CultureInfo;


[23879] Description


[23880] Gets the System.Globalization.CultureInfo instance that represents the current culture used by the ResourceManager to look up culture-specific resources at run time.


[23881] The culture is a property of the executing thread. This property returns System.Threading.Thread.CurrentUICulture. When a thread is started, its UI culture is initially determined by using GetUserDefaultUILanguage from the Windows API. To change the UI culture used by a thread, set System.Threading.Thread.CurrentUICulture to the new culture.


[23882] DateTimeFormat


[23883] ToString


[23884] [C#] public virtual DateTimeFormatInfo DateTimeFormat {get; set;}


[23885] [C++] public: _property virtual DateTimeFormatInfo* get_DateTimeFormat( );public: _property virtual void set_DateTimeFormat(DateTimeFormatInfo*);


[23886] [VB] Overridable Public Property DateTimeFormat As DateTimeFormatInfo


[23887] [JScript] public function get DateTimeFormat( ): DateTimeFormatInfo;public function set DateTimeFormat(DateTimeFormatInfo);


[23888] Description


[23889] Gets or sets a System.Globalization.DateTimeFormatInfo instance that defines the culturally appropriate format of displaying dates and times.


[23890] A System.Globalization.DateTimeFormatInfo instance can be created only for the invariant culture or for specific cultures, not for neutral cultures.


[23891] DisplayName


[23892] ToString


[23893] [C#] public virtual string DisplayName {get;}


[23894] [C++] public: _property virtual String* get_DisplayName( );


[23895] [VB] Overridable Public ReadOnly Property DisplayName As String


[23896] [JScript] public function get DisplayName( ): String;


[23897] Description


[23898] Gets the culture name in the format “( )” in the localized language of the .NET Framework.


[23899] For example, if the .NET Framework English version is installed, the System.Globalization.CultureInfo.DisplayName for the specific culture U.S. English is “English (United States)”. If the .NET Framework Spanish version is installed, regardless of the language that the system is set to display, the culture name is displayed in Spanish; therefore, the System.Globalization.CultureInfo.DisplayName for the specific culture U.S. English is “Ingles (Estados Unidos)”.


[23900] EnglishName


[23901] ToString


[23902] [C#] public virtual string EnglishName {get;}


[23903] [C++] public: _property virtual String* get_EnglishName( );


[23904] [VB] Overridable Public ReadOnly Property EnglishName As String


[23905] [JScript] public function get EnglishName( ): String;


[23906] Description


[23907] Gets the culture name in the format “( )” in English.


[23908] For example, the System.Globalization.CultureInfo.EnglishName for the specific culture U.S. English is “English (United States)”.


[23909] InstalledUICulture


[23910] ToString


[23911] [C#] public static CultureInfo InstalledUICulture {get;}


[23912] [C++] public: _property static CultureInfo* get_InstalledUICulture( );


[23913] [VB] Public Shared ReadOnly Property InstalledUICulture As CultureInfo


[23914] [JScript] public static function get InstalledUICulture( ): CultureInfo;


[23915] Description


[23916] Gets the System.Globalization.CultureInfo instance that represents the culture installed with the operating system.


[23917] In a localized operating system, such as Japanese Windows 2000 Professional, this property returns the culture of the operating system. This property is the equivalent of GetSystemDefaultUILanguage in the Windows API.


[23918] InvariantCulture


[23919] ToString


[23920] [C#] public static CultureInfo InvariantCulture {get;}


[23921] [C++] public: _property static CultureInfo* get_InvariantCulture( );


[23922] [VB] Public Shared ReadOnly Property InvariantCulture As CultureInfo


[23923] [JScript] public static function get InvariantCulture( ): CultureInfo;


[23924] Description


[23925] Gets the System.Globalization.CultureInfo instance that is culture-independent (invariant).


[23926] The invariant culture is culture-insensitive. You can specify the invariant culture by name using an empty string.


[23927] IsNeutralCulture


[23928] ToString


[23929] [C#] public virtual bool IsNeutralCulture {get;}


[23930] [C++] public: _property virtual bool get_IsNeutralCulture( );


[23931] [VB] Overridable Public ReadOnly Property IsNeutralCulture As Boolean


[23932] [JScript] public function get IsNeutralCulture( ): Boolean;


[23933] Description


[23934] Determines whether the current System.Globalization.CultureInfo instance is a neutral culture.


[23935] A neutral culture is a culture that is associated with a language but not with a country/region. A specific culture is a culture that is associated with a language and a country/region. For example, “fr” is a neutral culture and “fr-FR” is a specific culture. Note that “zh-CHS” (Simplified Chinese) and “zh-CHT” (Traditional Chinese) are neutral cultures.


[23936] IsReadOnly


[23937] ToString


[23938] [C#] public bool IsReadOnly {get;}


[23939] [C++] public: _property bool get_IsReadOnly( );


[23940] [VB] Public ReadOnly Property IsReadOnly As Boolean


[23941] [JScript] public function get IsReadOnly( ): Boolean;


[23942] Description


[23943] Gets a value indicating whether the current System.Globalization.CultureInfo instance is read-only.


[23944] LCID


[23945] ToString


[23946] [C#] public virtual int LCID {get;}


[23947] [C++] public: _property virtual int get_LCID( );


[23948] [VB] Overridable Public ReadOnly Property LCID As Integer


[23949] [JScript] public function get LCID( ): int;


[23950] Description


[23951] Gets the culture identifier for the current System.Globalization.CultureInfo instance.


[23952] The culture identifier is mapped to the corresponding National Language Support (NLS) locale identifier.


[23953] Name


[23954] ToString


[23955] [C#] public virtual string Name {get;}


[23956] [C++] public: _property virtual String* get_Name( );


[23957] [VB] Overridable Public ReadOnly Property Name As String


[23958] [JScript] public function get Name( ): String;


[23959] Description


[23960] Gets the culture name in the format “-”.


[23961] The System.Globalization.CultureInfo names follow the RFC 1766 standard in the format “-”, where is a lowercase two-letter code derived from ISO 639-1 and is an uppercase two-letter code derived from ISO 3166. For example, the System.Globalization.CultureInfo.Name for the specific culture U.S. English is “en-US”.


[23962] NativeName


[23963] ToString


[23964] [C#] public virtual string NativeName {get;}


[23965] [C++] public: _property virtual String* get_NativeName( );


[23966] [VB] Overridable Public ReadOnly Property NativeName As String


[23967] [JScript] public function get NativeName( ): String;


[23968] Description


[23969] Gets the culture name in the format“( )” in the language that the culture is set to display.


[23970] The culture's full name might not display properly if the system is not set to display the culture's language correctly. For example, if the System.Globalization.CultureInfo.Name is “ja-JP” for Japanese (Japan), System.Globalization.CultureInfo.NativeName will not display correctly on a system that is set to English only. However, multilingual operating systems, such as Windows 2000, display System.Globalization.CultureInfo.NativeName correctly.


[23971] NumberFormat


[23972] ToString


[23973] [C#] public virtual NumberFormatInfo NumberFormat {get; set;}


[23974] [C++] public: _property virtual NumberFormatInfo* get_NumberFormat( );public: _property virtual void set_NumberFormat(NumberFormatInfo*);


[23975] [VB] Overridable Public Property NumberFormat As NumberFormatInfo


[23976] [JScript] public function get NumberFormat( ): NumberFormatInfo;public function set NumberFormat(NumberFormatInfo);


[23977] Description


[23978] Gets or sets a System.Globalization.NumberFormatInfo instance that defines the culturally appropriate format of displaying numbers, currency, and percentage.


[23979] A System.Globalization.NumberFormatInfo instance can be created only for the invariant culture or for specific cultures, not for neutral cultures.


[23980] OptionalCalendars


[23981] ToString


[23982] [C#] public virtual Calendar[ ] OptionalCalendars {get;}


[23983] [C++] public: _property virtual Calendar* get_OptionalCalendars( );


[23984] [VB] Overridable Public ReadOnly Property OptionalCalendars As Calendar( )


[23985] [JScript] public function get OptionalCalendars( ): Calendar[ ];


[23986] Description


[23987] Gets the list of optional calendars that can be used by the culture.


[23988] Optional calendars are other calendars that can be used with the culture represented by the current System.Globalization.CultureInfo instance.


[23989] Parent


[23990] ToString


[23991] [C#] public virtual CultureInfo Parent {get;}


[23992] [C++] public: _property virtual CultureInfo* get_Parent( );


[23993] [VB] Overridable Public ReadOnly Property Parent As CultureInfo


[23994] [JScript] public function get Parent( ): CultureInfo;


[23995] Description


[23996] Gets the System.Globalization.CultureInfo instance that represents the parent culture of the current System.Globalization.CultureInfo instance.


[23997] A parent culture is a higher level culture that encompasses a more limited set of information that is common among its children. For example, the parent culture of “en-US” is “en”; the parent culture of “en” is the invariant culture.


[23998] TextInfo


[23999] ToString


[24000] [C#] public virtual TextInfo TextInfo {get;}


[24001] [C++] public: _property virtual TextInfo* get_TextInfo( );


[24002] [VB] Overridable Public ReadOnly Property TextInfo As TextInfo


[24003] [JScript] public function get TextInfo( ): TextInfo;


[24004] Description


[24005] Gets the System.Globalization.TextInfo instance that defines the writing system associated with the culture.


[24006] The System.Globalization.CultureInfo.TextInfo property provides culture-specific casing information for strings.


[24007] ThreeLetterISOLanguageName


[24008] ToString


[24009] [C#] public virtual string ThreeLetterISOLanguageName {get;}


[24010] [C++] public: _property virtual String* get_ThreeLetterISOLanguageName( );


[24011] [VB] Overridable Public ReadOnly Property ThreeLetterISOLanguageName As String


[24012] [JScript] public function get ThreeLetterISOLanguageName( ): String;


[24013] Description


[24014] Gets the ISO 639-2 three-letter code for the language of the current System.Globalization.CultureInfo instance.


[24015] For example, the three-letter abbreviation for English is “eng”.


[24016] ThreeLetterWindowsLanguageName


[24017] ToString


[24018] [C#] public virtual string ThreeLetterWindowsLanguageName {get;}


[24019] [C++] public: _property virtual String* get_ThreeLetterWindowsLanguageName( );


[24020] [VB] Overridable Public ReadOnly Property ThreeLetterWindowsLanguageName As String


[24021] [JScript] public function get ThreeLetterWindowsLanguageName( ): String;


[24022] Description


[24023] Gets the three-letter code for the language as defined in the Windows API.


[24024] For example, the three-letter code for English (U.S.) as defined in the Windows API is “enu”.


[24025] TwoLetterISOLanguageName


[24026] ToString


[24027] [C#] public virtual string TwoLetterISOLanguageName {get;}


[24028] [C++] public: _property virtual String* get_TwoLetterISOLanguageName( );


[24029] [VB] Overridable Public ReadOnly Property TwoLetterISOLanguageName As String


[24030] [JScript] public function get TwoLetterISOLanguageName( ): String;


[24031] Description


[24032] Gets the ISO 639-1 two-letter code for the language of the current System.Globalization.CultureInfo instance.


[24033] For example, the two-letter abbreviation for English is “en”.


[24034] UseUserOverride


[24035] ToString


[24036] [C#] public bool UseUserOverride {get;}


[24037] [C++] public: _property bool get_UseUserOverride( );


[24038] [VB] Public ReadOnly Property UseUserOverride As Boolean


[24039] [JScript] public function get UseUserOverride( ): Boolean;


[24040] Description


[24041] Gets a value indicating whether the current System.Globalization.CultureInfo instance uses the user-selected culture settings.


[24042] The user might choose to override some of the values associated with the default culture of the system through the Regional and Language Options (or Regional Options or Regional Settings) applet in Windows Control Panel. For example, the user might choose to display the date in a different format. This property denotes whether the current System.Globalization.CultureInfo instance uses those overrides ( true ) or whether it uses the default values ( false ) of the culture settings.


[24043] ClearCachedData


[24044] [C#] public void ClearCachedData( );


[24045] [C++] public: void ClearCachedData( );


[24046] [VB] Public Sub ClearCachedData( )


[24047] [JScript] public function ClearCachedData( );


[24048] Description


[24049] Refreshes cached culture-related information.


[24050] Information, such as the default culture and format patterns, is cached the first time it is requested. However, that information can change during the life of the System.AppDomain, for example, when the user modifies the Regional and Language Options (or Regional Options or Regional Settings) applet in Windows Control Panel. The System.Globalization.CultureInfo class does not detect changes in the system settings automatically. Use the System.Globalization.CultureInfo.ClearCachedData method to refresh that information in the System.Globalization.CultureInfo class, based on the current system settings.


[24051] Clone


[24052] [C#] public virtual object Clone( );


[24053] [C++] public: virtual Object* Clone( );


[24054] [VB] Overridable Public Function Clone( ) As Object


[24055] [JScript] public function Clone( ): Object;


[24056] Description


[24057] Creates a copy of the current System.Globalization.CultureInfo instance.


[24058] Return Value: A copy of the current System.Globalization.CultureInfo instance.


[24059] The clone is writable even if the original instance is read-only; therefore, the properties of the clone can be modified.


[24060] CreateSpecificCulture


[24061] [C#] public static CultureInfo CreateSpecificCulture(string name);


[24062] [C++] public: static CultureInfo* CreateSpecificCulture(String* name);


[24063] [VB] Public Shared Function CreateSpecificCulture(ByVal name As String) As CultureInfo


[24064] [JScript] public static function CreateSpecificCulture(name: String): CultureInfo;


[24065] Description


[24066] Creates a System.Globalization.CultureInfo instance that represents the specific culture that is associated with the specified name.


[24067] Return Value: A System.Globalization.CultureInfo instance that represents the invariant culture, if name is “ ”(invariant culture).


[24068] The invariant culture is culture-insensitive. You can specify the invariant culture by name using an empty string. A predefined System.Globalization.CultureInfo name or the name of an existing System.Globalization.CultureInfo instance.


[24069] Equals


[24070] [C+] public override bool Equals(object value);


[24071] [C++] public: bool Equals(Object* value);


[24072] [VB] Overrides Public Function Equals(ByVal value As Object) As Boolean


[24073] [JScript] public override function Equals(value: Object): Boolean;


[24074] Description


[24075] Determines whether the specified System.Object is the same culture as the current System.Globalization.CultureInfo instance.


[24076] Return Value: true if the specified System.Object is the same culture as the current System.Globalization.CultureInfo instance; otherwise, false.


[24077] This method overrides System.Object.Equals(System.Object). The System.Object to compare with the current System.Globalization.CultureInfo instance.


[24078] GetCultures


[24079] [C#] public static CultureInfo[ ] GetCultures(CultureTypes types);


[24080] [C++] public: static CultureInfo* GetCultures(CultureTypes types) [ ];


[24081] [VB] Public Shared Function GetCultures(ByVal types As CultureTypes) As CultureInfo( )


[24082] [JScript] public static function GetCultures(types: CultureTypes): CultureInfo[ ];


[24083] Description


[24084] Gets the list of supported cultures filtered by the specified System.Globalization.CultureTypes.


[24085] Return Value: An array of System.Globalization.CultureInfo objects that represent the supported cultures filtered by the specified System.Globalization.CultureTypes. A combination of System.Globalization.CultureTypes values that filter the cultures to retrieve.


[24086] GetFormat


[24087] [C#] public virtual object GetFormat(Type formatType);


[24088] [C++] public: virtual Object* GetFormat(Type* formatType);


[24089] [VB] Overridable Public Function GetFormat(ByVal formatType As Type) As Object


[24090] [JScript] public function GetFormat(formatType: Type): Object;


[24091] Description


[24092] Gets an object that defines how to format the specified type.


[24093] Return Value: A System.Globalization.NumberFormatInfo object containing the default number format information for the current System.Globalization.CultureInfo instance, if formatType is the System.Type object for the System.Globalization.NumberFormatInfo class.


[24094] System.Globalization.CultureInfo.GetFormat(System.Type) implements System.IFormatProvider.GetFormat(System.Type). The System.Type for which to get a formatting object. This method only supports the System.Globalization.NumberFormatInfo and System.Globalization.DateTimeFormatInfo types.


[24095] GetHashCode


[24096] [C#] public override int GetHashCode( );


[24097] [C++] public: int GetHashCode( );


[24098] [VB] Overrides Public Function GetHashCode( ) As Integer


[24099] [JScript] public override function GetHashCode( ): int;


[24100] Description


[24101] Serves as a hash function for the current System.Globalization.CultureInfo instance, suitable for use in hashing algorithms and data structures, such as a hash table.


[24102] Return Value: A hash code for the current System.Globalization.CultureInfo instance.


[24103] This method overrides System.Object.GetHashCode.


[24104] ReadOnly


[24105] [C#] public static CultureInfo ReadOnly(CultureInfo ci);


[24106] [C++] public: static CultureInfo* ReadOnly(CultureInfo* ci);


[24107] [VB] Public Shared Function ReadOnly(ByVal ci As CultureInfo) As CultureInfo


[24108] [JScript] public static function ReadOnly(ci: CultureInfo): CultureInfo;


[24109] Description


[24110] Returns a read-only wrapper around the specified System.Globalization.CultureInfo instance.


[24111] Return Value: A read-only System.Globalization.CultureInfo wrapper around ci


[24112] This wrapper prevents any modifications to ci, to the ci. The System.Globalization.CultureInfo instance to wrap.


[24113] ToString


[24114] [C#] public override string ToString( );


[24115] [C++] public: String* ToString( );


[24116] [VB] Overrides Public Function ToString( ) As String


[24117] [JScript] public override function ToString( ): String;


[24118] Description


[24119] Returns a System.String containing the name of the current System.Globalization.CultureInfo instance in the format “-”.


[24120] Return Value: A System.String containing the name of the current System.Globalization.CultureInfo instance in the format “-”, where is a lowercase two-letter code derived from ISO 639-1 and is an uppercase two-letter code derived from ISO 3166.


[24121] This method overrides System.Object.ToString.


[24122] CultureTypes enumeration (System.Globalization)


[24123] ToString


[24124] Description


[24125] Defines the types of culture lists that can be retrieved using Sytem.Globalization.CultureInfo.GetCultures(System.Globalization.Culture Types).


[24126] These culture types serve as a filter that limits which cultures are returned by System.Globalization.CultureInfo.GetCultures(System.Globalization.Culture Types).


[24127] ToString


[24128] [C#] public const CultureTypes AllCultures;


[24129] [C++] public: const CultureTypes AllCultures;


[24130] [VB] Public Const AllCultures As CultureTypes


[24131] [JScript] public var AllCultures: CultureTypes;


[24132] Description


[24133] Refers to all cultures.


[24134] ToString


[24135] [C#] public const CultureTypes InstalledWin32Cultures;


[24136] [C++] public: const CultureTypes InstalledWin32Cultures;


[24137] [VB] Public Const InstalledWin32Cultures As CultureTypes


[24138] [JScript] public var InstalledWin32Cultures: CultureTypes;


[24139] Description


[24140] Refers to all cultures that are installed in the system.


[24141] ToString


[24142] [C#] public const CultureTypes NeutralCultures;


[24143] [C++] public: const CultureTypes NeutralCultures;


[24144] [VB] Public Const NeutralCultures As CultureTypes


[24145] [JScript] public var NeutralCultures: CultureTypes;


[24146] Description


[24147] Refers to cultures that are associated with a language but are not specific to a country/region. The names of these cultures consist of the lowercase two-letter code derived from ISO 639-1. For example: “en”.


[24148] ToString


[24149] [C#] public const CultureTypes SpecificCultures;


[24150] [C++] public: const CultureTypes SpecificCultures;


[24151] [VB] Public Const SpecificCultures As CultureTypes


[24152] [JScript] public var SpecificCultures: CultureTypes;


[24153] Description


[24154] Refers to cultures that are specific to a country/region. The names of these cultures follow the RFC 1766 standard in the format “-”, where is a lowercase two-letter code derived from ISO 639-1 and is an uppercase two-letter code derived from ISO 3166. For example, “en-US”.


[24155] DateTimeFormatInfo class (System.Globalization)


[24156] ToString


[24157] Description


[24158] Defines how System.DateTime values are formatted and displayed, depending on the culture.


[24159] This class contains information, such as date patterns, time patterns, and AM/PM designators.


[24160] DateTimeFormatInfo


[24161] Example Syntax:


[24162] ToString


[24163] [C#] public DateTimeFormatInfo( );


[24164] [C++] public: DateTimeFormatInfo( );


[24165] [VB] Public Sub New( )


[24166] [JScript] public function DateTimeFormatInfo( );


[24167] Description


[24168] Initializes a new writable instance of the System.Globalization.DateTimeFormatInfo class that is culture-independent (invariant).


[24169] The properties of this instance can be modified with user-defined patterns.


[24170] AbbreviatedDayNames


[24171] ToString


[24172] [C#] public string[ ] AbbreviatedDayNames {get; set;}


[24173] [C++] public: _property String* get_AbbreviatedDayNames( );public: _property void set_AbbreviatedDayNames(String* _gc[ ]);


[24174] [VB] Public Property AbbreviatedDayNames As String( )


[24175] [JScript] public function get AbbreviatedDayNames( ): String[ ];public function set AbbreviatedDayNames(String[ ]);


[24176] Description


[24177] Gets or sets a one-dimensional array of type System.String containing the abbreviated names of the days of the week.


[24178] If setting this property, the array must be one-dimensional and must have exactly seven elements.


[24179] AbbreviatedMonthNames


[24180] ToString


[24181] [C#] public string[ ] AbbreviatedMonthNames {get; set;}


[24182] [C++] public: _property String* get_AbbreviatedMonthNames( );public: property void set_AbbreviatedMonthNames(String* _gc[ ]);


[24183] [VB] Public Property AbbreviatedMonthNames As String( )


[24184] [JScript] public function get AbbreviatedMonthNames( ): String[ ];public function set AbbreviatedMonthNames(String[ ]);


[24185] Description


[24186] Gets or sets a one-dimensional array of type System.String containing the abbreviated names of the months.


[24187] If setting this property, the array must be one-dimensional and must have exactly 13 elements.


[24188] AMDesignator


[24189] ToString


[24190] [C#] public string AMDesignator {get; set;}


[24191] [C++] public: _property String* get_AMDesignator( );public: _property void set_AMDesignator(String*);


[24192] [VB] Public Property AMDesignator As String


[24193] [JScript] public function get AMDesignator( ): String;public function set AMDesignator(String);


[24194] Description


[24195] Indicates the System.String designator for hours that are “ante meridiem” (before noon).


[24196] If the custom pattern includes the format pattern “tt” and the time is before noon, System.DateTime.ToString displays the value of System.Globalization.DateTimeFormatInfo.AMDesignator in place of the “tt” in the format pattern. If the custom pattern includes the format pattern “t”, only the first character of System.Globalization.DateTimeFormatInfo.AMDesignator is displayed.


[24197] Calendar


[24198] ToString


[24199] [C#] public Calendar Calendar {get; set;}


[24200] [C++] public: _property Calendar* get_Calender( );public: _property void set_Calendar(Calendar*);


[24201] [VB] Public Property Calendar As Calendar


[24202] [JScript] public function get Calender( ): Calendar;public function set Calendar(Calendar);


[24203] Description


[24204] Gets or sets the calendar to use for the current culture.


[24205] The System.Globalization.DateTimeFormatInfo.Calendar property only accepts calendars that are valid for the current culture of the current thread. The System.Globalization.CultureInfo.Calendar property specifies the default calendar for the culture and the System.Globalization.CultureInfo.OptionalCalendars property specifies other calendars supported by the culture.


[24206] CalendarWeekRule


[24207] ToString


[24208] [C#] public CalendarWeekRule CalendarWeekRule {get; set;}


[24209] [C++] public: _property CalendarWeekRule get_CalendarWeekRule( );public: _property void set CalendarWeekRule(CalendarWeekRule);


[24210] [VB] Public Property CalendarWeekRule As CalendarWeekRule


[24211] [JScript] public function get CalendarWeekRule( ): CalendarWeekRule;public function set CalendarWeekRule(CalendarWeekRule);


[24212] Description


[24213] Gets or sets a value that specifies which rule is used to determine the first calendar week of the year.


[24214] This property is affected if the value of the System.Globalization.DateTimeFormatInfo.Calendar property changes.


[24215] CurrentInfo


[24216] ToString


[24217] [C#] public static DateTimeFormatInfo CurrentInfo {get;}


[24218] [C++] public: _property static DateTimeFormatInfo* get_CurrentInfo( );


[24219] [VB] Public Shared ReadOnly Property CurrentInfo As DateTimeFormatInfo


[24220] [JScript] public static function get CurrentInfo( ): DateTimeFormatInfo;


[24221] Description


[24222] Gets a read-only System.Globalization.DateTimeFormatInfo instance that formats values based on the current culture.


[24223] DateSeparator


[24224] ToString


[24225] [C#] public string DateSeparator {get; set;}


[24226] [C++] public: _property String* get_DateSeparator( );public: _property void set_DateSeparator(String*);


[24227] [VB] Public Property DateSeparator As String


[24228] [JScript] public function get DateSeparator( ): String;public function set DateSeparator(String);


[24229] Description


[24230] Indicates the System.String that separates the components of a date; that is, the year, month, and day.


[24231] If the custom pattern includes the format pattern “/”, System.DateTime.ToString displays the value of System.Globalization.DateTimeFormatInfo.DateSeparator in place of the “/” in the format pattern.


[24232] DayNames


[24233] ToString


[24234] [C#] public string[ ] DayNames {get; set;}


[24235] [C++] public: _property String* get_DayNames( );public: _property void set_DayNames(String* _gc[ ]);


[24236] [VB] Public Property DayNames As String( )


[24237] [JScript] public function get DayNames( ): String[ ];public function set DayNames(String[ ]);


[24238] Description


[24239] Gets or sets a one-dimensional array of type System.String containing the full names of the days of the week.


[24240] If setting this property, the array must be one-dimensional and must have exactly seven elements.


[24241] FirstDayOfWeek


[24242] ToString


[24243] [C#] public DayOfWeek FirstDayOfWeek {get; set;}


[24244] [C++] public: _property DayOfWeek get_FirstDayOfWeek( );public: _property void set_FirstDayOfWeek(DayOfWeek);


[24245] [VB] Public Property FirstDayOfWeek As DayOfWeek


[24246] [JScript] public function get FirstDayOfWeek( ): DayOfWeek;public function set FirstDayOfWeek(DayOfWeek);


[24247] Description


[24248] Indicates the first day of the week.


[24249] This property is affected if the value of the System.Globalization.DateTimeFormatInfo.Calendar property changes.


[24250] FullDateTimePattern


[24251] ToString


[24252] [C#] public string FullDateTimePattern {get; set;}


[24253] [C++] public: _property String* get_FullDateTimePattern( );public: _property void set_FullDateTimePattern(String*);


[24254] [VB] Public Property FullDateTimePattern As String


[24255] [JScript] public function get FullDateTimePattern( ): String;public function set FullDateTimePattern(String);


[24256] Description


[24257] Indicates the format pattern for a long date and long time value, which is associated with the ‘F’ format character.


[24258] See System.Globalization.DateTimeFormatInfo for patterns that can be combined to construct custom patterns; for example, “dddd, dd MMMM yyyy HH:mm:ss”.


[24259] InvariantInfo


[24260] ToString


[24261] [C#] public static DateTimeFormatInfo InvariantInfo {get;}


[24262] [C++] public: _Property static DateTimeFormatInfo* get_InvariantInfo( );


[24263] [VB] Public Shared ReadOnly Property InvariantInfo As DateTimeFormatInfo


[24264] [JScript] public static function get InvariantInfo( ): DateTimeFormatInfo;


[24265] Description


[24266] Gets the default read-only System.Globalization.DateTimeFormatInfo instance that is culture-independent (invariant).


[24267] This property does not change regardless of the current culture.


[24268] IsReadOnly


[24269] ToString


[24270] [C#] public bool IsReadOnly {get;}


[24271] [C++] public: _property bool get IsReadOnly( );


[24272] [VB] Public ReadOnly Property IsReadOnly As Boolean


[24273] [JScript] public function get IsReadOnly( ): Boolean;


[24274] Description


[24275] Gets a value indicating whether the System.Globalization.DateTimeFormatInfo is read-only.


[24276] LongDatePattern


[24277] ToString


[24278] [C#] public string LongDatePattern {get; set;}


[24279] [C++] public: _Property String* get_LongDatePattern( );public: _property void set_LongDatePattern(String*);


[24280] [VB] Public Property LongDatePattern As String


[24281] [JScript] public function get LongDatePattern( ): String;public function set LongDatePattern(String);


[24282] Description


[24283] Indicates the format pattern for a long date value, which is associated with the ‘D’ format character.


[24284] See System.Globalization.DateTimeFormatInfo for patterns that can be combined to construct custom patterns; for example, “dddd, dd MMMM yyyy”.


[24285] LongTimePattern


[24286] ToString


[24287] [C#] public string LongTimePattern {get; set;}


[24288] [C++] public: _property String* get_LongTimePattern( );public: _property void set_LongTimePattern(String*);


[24289] [VB] Public Property LongTimePattern As String


[24290] [JScript] public function get LongTimePattern( ): String;public function set LongTimePattern(String);


[24291] Description


[24292] Indicates the format pattern for a long time value, which is associated with the ‘T’format character.


[24293] See System.Globalization.DateTimeFormatInfo for patterns that can be combined to construct custom patterns; for example, “HH:mm:ss”.


[24294] MonthDayPattern


[24295] ToString


[24296] [C#] public string MonthDayPattern {get; set;}


[24297] [C++] public: _property String* getMonthDayPattern( );public: _property void set_MonthDayPattern(String*);


[24298] [VB] Public Property MonthDayPattern As String


[24299] [JScript] public function get MonthDayPattern( ): String;public function set MonthDayPattern(String);


[24300] Description


[24301] Indicates the format pattern for a month and day value, which is associated with the ‘m’ and ‘M’ format characters.


[24302] See System.Globalization.DateTimeFormatInfo for patterns that can be combined to construct custom patterns; for example, “MMMM dd”.


[24303] MonthNames


[24304] ToString


[24305] [C#] public string[ ] MonthNames {get; set;}


[24306] [C++] public: _property String* get_MonthNames( );public: _property void set_MonthNames(String* _gc[ ]);


[24307] [VB] Public Property MonthNames As String( )


[24308] [JScript] public function get MonthNames( ): String[ ];public function set MonthNames(String[ ]);


[24309] Description


[24310] Gets or sets a one-dimensional array of type System.String containing the full names of the months.


[24311] If setting this property, the array must be one-dimensional and must have exactly 13 elements.


[24312] PMDesignator


[24313] ToString


[24314] [C#] public string PMDesignator {get; set;}


[24315] [C++] public: _property String* get_PMDesignator( );public: _property void set_PMDesignator(String*);


[24316] [VB] Public Property PMDesignator As String


[24317] [JScript] public function get PMDesignator( ): String;public function set PMDesignator(String);


[24318] Description


[24319] Indicates the System.String designator for hours that are “post meridiem” (after noon).


[24320] If the custom pattern includes the format pattern “tt” and the time is after noon, System.DateTime.ToString displays the value of System.Globalization.DateTimeFormatInfo.PMDesignator in place of the “tt” in the format pattern. If the custom pattern includes the format pattern “t”, only the first character of System.Globalization.DateTimeFormatInfo.PMDesignator is displayed.


[24321] RFC 123Pattern


[24322] ToString


[24323] [C#] public string RFC1123Pattern {get;}


[24324] [C++] public: _property String* get_RFC1123Pattern( );


[24325] [VB] Public ReadOnly Property RFC1123Pattern As String


[24326] [JScript] public function get RFC1123Pattern( ): String;


[24327] Description


[24328] Gets the format pattern for a time value, which is based on the Internet Engineering Task Force (IETF) Request for Comments (RFC) 1123 specification and is associated with the ‘r’ and ‘R’ format characters.


[24329] ShortDatePattern


[24330] ToString


[24331] [C#] public string ShortDatePattern {get; set;}


[24332] [C++] public: _property String* get_ShortDatePattern( );public: _property void set_ShortDatePattern(String*);


[24333] [VB] Public Property ShortDatePattern As String


[24334] [JScript] public function get ShortDatePattern( ): String;public function set ShortDatePattern(String);


[24335] Description


[24336] Indicates the format pattern for a short date value, which is associated with the ‘d’ format character.


[24337] See System.Globalization.DateTimeFormatInfo for patterns that can be combined to construct custom patterns; for example, “MM/dd/yyyy”.


[24338] ShortTimePattern


[24339] ToString


[24340] [C#] public string ShortTimePattern {get; set; }


[24341] [C++] public: _property String* get_ShortTimePattern( );public: _property void set_ShortTimePattern(String*);


[24342] [VB] Public Property ShortTimePattern As String


[24343] [JScript] public function get ShortTimePattern( ): String;public function set ShortTimePattern(String);


[24344] Description


[24345] Indicates the format pattern for a short time value, which is associated with the ‘t’ format character.


[24346] See System.Globalization.DateTimeFormatInfo for patterns that can be combined to construct custom patterns; for example, “HH:mm”.


[24347] SortableDateTimePattern


[24348] ToString


[24349] [C#] public string SortableDateTimePattern {get;}


[24350] [C++] public: _property String* get_SortableDateTimePattern( );


[24351] [VB] Public ReadOnly Property SortableDateTimePattern As String


[24352] [JScript] public function get SortableDateTimePattern( ): String;


[24353] Description


[24354] Gets the format pattern for a sortable date and time value, which is associated with the ‘s’ format character.


[24355] TimeSeparator


[24356] ToString


[24357] [C#] public string TimeSeparator {get; set;}[C++] public: _property String* get_TimeSeparator( );public: _property void set_TimeSeparator(String*);


[24358] [VB] Public Property TimeSeparator As String


[24359] [JScript] public function get TimeSeparator( ): String;public function set TimeSeparator(String);


[24360] Description


[24361] Indicates the System.String that separates the components of time; that is, the hour, minutes, and seconds.


[24362] If the custom pattern includes the format pattern “:”, System.DateTime.ToString displays the value of System.Globalization.DateTimeFormatInfo.TimeSeparator in place of the “:” in the format pattern.


[24363] UniversalSortableDateTimePattern


[24364] ToString


[24365] [C#] public string UniversalSortableDateTimePattern {get;}


[24366] [C++] public: _property String* get_UniversalSortableDateTimePattern( );


[24367] [VB] Public ReadOnly Property UniversalSortableDateTimePattern As String


[24368] [JScript] public function get UniversalSortableDateTimePattern( ): String;


[24369] Description


[24370] Gets the format pattern for a universal sortable date and time value, which is associated with the ‘u’ and ‘U’ format characters.


[24371] YearMonthPattern


[24372] ToString


[24373] [C#] public string YearMonthPattern {get; set;}


[24374] [C++] public: _property String* get_YearMonthPattern( );public: _property void set_YearMonthPattern(String*);


[24375] [VB] Public Property YearMonthPattern As String


[24376] [JScript] public function get YearMonthPattern( ): String;public function set YearMonthPattern(String);


[24377] Description


[24378] Indicates the format pattern for a year and month value, which is associated with the ‘y’ and ‘Y’ format characters.


[24379] See System.Globalization.DateTimeFormatInfo for patterns that can be combined to construct custom patterns; for example, “yyyy MMMM”.


[24380] Clone


[24381] [C#] public object Clone( );


[24382] [C++] public: _sealed Object* Clone( );


[24383] [VB] NotOverridable Public Function Clone( ) As Object


[24384] [JScript] public function Clone( ): Object;


[24385] Description


[24386] Creates a shallow copy of the System.Globalization.DateTimeFormatInfo instance.


[24387] Return Value: A new System.Globalization.DateTimeFormatInfo instance copied from the original System.Globalization.DateTimeFormatInfo instance.


[24388] The clone is writable even if the original instance is read-only; therefore, the properties of the clone can be modified with user-defined patterns.


[24389] GetAbbreviatedDayName


[24390] [C#] public string GetAbbreviatedDayName(DayOfWeek dayofweek);


[24391] [C++] public: String* GetAbbreviatedDayName(DayOfWeek dayofweek);


[24392] [VB] Public Function GetAbbreviatedDayName(ByVal dayofweek As DayOfWeek) As String


[24393] [JScript] public function GetAbbreviatedDayName(dayofweek: DayOfWeek): String; Gets the abbreviated name of the specified day of the week.


[24394] Description


[24395] Gets the abbreviated name of the specified day of the week based on the System.Globalization.CultureInfo of the current thread.


[24396] Return Value: The abbreviated name of the day of the week represented by dayofweek.


[24397] For the default invariant System.Globalization.DateTimeFormatInfo instance, this method returns a string from the System.Globalization.GregorianCalendar: dayofweek Return Value Sunday “Sun” Monday “Mon” Tuesday “Tue” Wednesday “Wed” Thursday “Thu” Friday “Fri” Saturday “Sat” A System.DayOfWeek value.


[24398] GetAbbreviatedEraName


[24399] [C#] public string GetAbbreviatedEraName(int era);


[24400] [C++] public: String* GetAbbreviatedEraName(int era);


[24401] [VB] Public Function GetAbbreviatedEraName(ByVal era As Integer) As String


[24402] [JScript] public function GetAbbreviatedEraName(era: int): String;


[24403] Description


[24404] Gets the System.String containing the abbreviated name of the specified era, if an abbreviation exists.


[24405] Return Value: A System.String containing the abbreviated name of the specified era, if an abbreviation exists.


[24406] The valid values for era are listed in the System.Globalization.Calendar.Eras property of the appropriate class derived from System.Globalization.Calendar. For example: System.Globalization.JapaneseCalendar.Eras displays a list of eras that are supported by this implementation. The integer representing the era.


[24407] GetAbbreviatedMonthName


[24408] [C#] public string GetAbbreviatedMonthName(int month);


[24409] [C++] public: String* GetAbbreviatedMonthName(int month);


[24410] [VB] Public Function GetAbbreviatedMonthName(ByVal month As Integer) As String


[24411] [JScript] public function GetAbbreviatedMonthName(month: int): String; Gets the abbreviated name of the specified month.


[24412] Description


[24413] Gets the abbreviated name of the specified month based on the System.Globalization.CultureInfo of the current thread.


[24414] Return Value: The abbreviated name of the month represented by month.


[24415] For the default invariant System.Globalization.DateTimeFormatInfo instance, this method returns a string from the System.Globalization.GregorianCalendar: month Return Value 1 “Jan” 2 “Feb” 3 “Mar” 4 “Apr” 5 “May” 6 “Jun” 7 “Jul” 8 “Aug” 9 “Sep” 10 “Oct” 11 “Nov” 12 “Dec” 13″″ System.Globalization.Calendar objects can accommodate calendars with 13 months. For 12-month calendars, the empty string is always returned as the name of the 13th month. An integer from 1 through 13 representing the name of the month to retrieve.


[24416] GetAllDateTimePatterns


[24417] [C#] public string[ ] GetAllDateTimePatterns( );


[24418] [C++] public: String* GetAllDateTimePatterns( ) _gc[ ];


[24419] [VB] Public Function GetAllDateTimePatterns( ) As String( )


[24420] [JScript] public function GetAllDateTimePatterns( ): String[ ]; Gets the standard patterns in which System.DateTime values can be formatted.


[24421] Description


[24422] Gets all the standard patterns in which System.DateTime values can be formatted.


[24423] Return Value: An array containing the standard patterns in which System.DateTime values can be formatted.


[24424] See the summary page of the System.Globalization.DateTimeFormatInfo class for a list of the standard format characters and their associated patterns.


[24425] GetAlIDateTimePatterns


[24426] [C#] public string[ ] GetAllDateTimePatterns(char format);


[24427] [C++] public: String* GetAllDateTimePatterns(_wchar_t format) _gc[ ];


[24428] [VB] Public Function GetAllDateTimePatterns(ByVal format As Char) As String( )


[24429] [JScript] public function GetAllDateTimePatterns(format: Char): String[ ];


[24430] Description


[24431] Gets all the standard patterns in which System.DateTime values can be formatted using the specified format character.


[24432] Return Value: An array containing the standard patterns in which System.DateTime values can be formatted using the specified format character.


[24433] See the summary page of the System.Globalization.DateTimeFormatInfo class for a list of the standard format characters and their associated patterns. A standard format character.


[24434] GetDayName


[24435] [C#] public string GetDayName(DayOfWeek dayofweek);


[24436] [C++] public: String* GetDayName(DayOfWeek dayofweek);


[24437] [VB] Public Function GetDayName(ByVal dayofweek As DayOfWeek) As String


[24438] [JScript] public function GetDayName(dayofweek: DayOfWeek): String; Gets the full name of the specified day of the week.


[24439] Description


[24440] Gets the full name of the specified day of the week based on the System.Globalization.CultureInfo of the current thread.


[24441] Return Value: The full name of the day of the week represented by dayofweek.


[24442] For the default invariant System.Globalization.DateTimeFormatInfo instance, this method returns a string from the System.Globalization.GregorianCalendar: dayofweek Return Value Sunday “Sunday” Monday “Monday” Tuesday “Tuesday” Wednesday “Wednesday” Thursday “Thursday” Friday “Friday” Saturday “Saturday” A System.DayOfWeek value.


[24443] GetEra


[24444] [C#] public int GetEra(string eraName);


[24445] [C++] public: int GetEra(String* eraName);


[24446] [VB] Public Function GetEra(ByVal eraName As String) As Integer


[24447] [JScript] public function GetEra(eraName: String): int;


[24448] Description


[24449] Gets the integer representing the specified era.


[24450] Return Value: The integer representing the era, if eraName is valid; otherwise, −1.


[24451] The comparison with eraName is case-insensitive; for example, “A.D.” is equivalent to “a.d.”. The System.String containing the name of the era.


[24452] GetEraName


[24453] [C#] public string GetEraName(int era);


[24454] [C++] public: String* GetEraName(int era);


[24455] [VB] Public Function GetEraName(ByVal era As Integer) As String


[24456] [JScript] public function GetEraName(era: int): String;


[24457] Description


[24458] Gets the System.String containing the name of the specified era.


[24459] Return Value: A System.String containing the name of the era.


[24460] The valid values for era are listed in the System.Globalization.Calendar.Eras property of the appropriate class derived from System.Globalization.Calendar. For example: System.Globalization.JapaneseCalendar.Eras displays a list of eras that are supported by this implementation. The integer representing the era.


[24461] GetFormat


[24462] [C#] public object GetFormat(Type formatType);


[24463] [C++] public: _sealed Object* GetFormat(Type* formatType);


[24464] [VB] NotOverridable Public Function GetFormat(ByVal formatType As Type) As Object


[24465] [JScript] public function GetFormat(formatType: Type): Object;


[24466] Description


[24467] Gets an object of the specified type that provides a System.DateTime formatting service.


[24468] Return Value: The current instance of the System.Globalization.DateTimeFormatInfo class, if formatType is the same as the type of the current instance; otherwise, null.


[24469] The Format(String, IFormatProvider) method supported by the base data types invoke this method when the current instance is passed as the System.IFormatProvider parameter. This method implements System.IFormatProvider.GetFormat(System.Type). The System.Type of the required formatting service.


[24470] GetInstance


[24471] [C#] public static DateTimeFormatInfo GetInstance(IFormatProvider provider);


[24472] [C++] public: static DateTimeFormatInfo* GetInstance(IFormatProvider* provider);


[24473] [VB] Public Shared Function GetInstance(ByVal provider As IFormatProvider) As DateTimeFormatInfo


[24474] [JScript] public static function GetInstance(provider: IFormatProvider): DateTimeFormatInfo;


[24475] Description


[24476] Gets the System.Globalization.DateTimeFormatInfo instance associated with the specified System.IFormatProvider.


[24477] Return Value: A System.Globalization.DateTimeFormatInfo instance associated with the specified System.IFormatProvider.


[24478] This method uses the System.IFormatProvider.GetFormat(System.Type) method of formatProvider using System.Globalization.DateTimeFormatInfo as the Type parameter. If formatProvider is null or if System.IFormatProvider.GetFormat(System.Type) returns null, this method returns System.Globalization.DateTimeFormatInfo.CurrentInfo. The System.IFormatProvider that gets the System.Globalization.DateTimeFormatInfo instance.


[24479] GetMonthName


[24480] [C#] public string GetMonthName(int month);


[24481] [C++] public: String* GetMonthName(int month);


[24482] [VB] Public Function GetMonthName(ByVal month As Integer) As String


[24483] [JScript] public function GetMonthName(month: int): String; Gets the full name of the specified month.


[24484] Description


[24485] Gets the full name of the specified month based on the System.Globalization.CultureInfo of the current thread.


[24486] Return Value: The full name of the month represented by month.


[24487] For the default invariant System.Globalization.DateTimeFormatInfo instance, this method returns a string from the System.Globalization.GregorianCalendar: month Return Value 1 “January” 2 “February” 3 “March” 4 “April” 5 “May” 6 “June” 7 “July” 8 “August” 9 “September” 10 “October” 11 “November” 12 “December” 13 ″″System.Globalization.Calendar objects can accommodate calendars with 13 months. For 12-month calendars, the empty string is always returned as the name of the 13th month. An integer from 1 through 13 representing the name of the month to retrieve.


[24488] ReadOnly


[24489] [C#] public static DateTimeFormatInfo ReadOnly(DateTimeFormatInfo dtfi);


[24490] [C++] public: static DateTimeFormatInfo* ReadOnly(DateTimeFormatInfo* dtfi);


[24491] [VB] Public Shared Function ReadOnly(ByVal dtfi As DateTimeFormatInfo) As DateTimeFormatInfo


[24492] [JScript] public static function ReadOnly(dtfi: DateTimeFormatInfo): DateTimeFormatInfo;


[24493] Description


[24494] Returns a read-only System.Globalization.DateTimeFormatInfo wrapper.


[24495] Return Value: A read-only System.Globalization.DateTimeFormatInfo wrapper around dtfi.


[24496] This wrapper prevents any modifications to dtfi. The System.Globalization.DateTimeFormatInfo to wrap.


[24497] DateTime Styles enumeration (System.Globalization)


[24498] ToString


[24499] Description


[24500] Defines the formatting options that customize how the System.DateTime.Parse(System.String) and System.DateTime.ParseExact(System.String,System.String,System.IFormatP rovider) methods parse a string.


[24501] The System.Globalization.DateTimeStyles.NoCurrentDateDefault value is the only value that is useful with the System.DateTime.Parse(System.String) method, because System.DateTime.Parse(System.String) always ignores leading, trailing, and inner white-space characters.


[24502] ToString


[24503] [C#] public const DateTimeStyles AdjustToUniversal;


[24504] [C++] public: const DateTimeStyles AdjustToUniversal;


[24505] [VB] Public Const AdjustToUniversal As DateTimeStyles


[24506] [JScript] public var AdjustToUniversal: DateTimeStyles;


[24507] Description


[24508] Indicates that the date and time must be converted to Universal Time or Greenwich mean time (GMT).


[24509] ToString


[24510] [C#] public const DateTimeStyles AllowInnerWhite;


[24511] [C++] public: const DateTimeStyles AllowInnerWhite;


[24512] [VB] Public Const AllowInnerWhite As DateTimeStyles


[24513] [JScript] public var AllowInnerWhite: DateTimeStyles;


[24514] Description


[24515] Indicates that extra white-space characters in the middle of the string must be ignored.


[24516] ToString


[24517] [C#] public const DateTimeStyles AllowLeadingWhite;


[24518] [C++] public: const DateTimeStyles AllowLeadingWhite;


[24519] [VB] Public Const AllowLeadingWhite As DateTimeStyles


[24520] [JScript] public var AllowLeadingWhite: DateTimeStyles;


[24521] Description


[24522] Indicates that leading white-space characters must be ignored.


[24523] ToString


[24524] [C#] public const DateTimeStyles AllowTrailingWhite;


[24525] [C++] public: const DateTimeStyles AllowTrailingWhite;


[24526] [VB] Public Const AllowTrailingWhite As DateTimeStyles


[24527] [JScript] public var AllowTrailingWhite: DateTimeStyles;


[24528] Description


[24529] Indicates that trailing white-space characters must be ignored.


[24530] ToString


[24531] [C#] public const DateTimeStyles AllowWhiteSpaces;


[24532] [C++] public: const DateTimeStyles AllowWhiteSpaces;


[24533] [VB] Public Const AllowWhiteSpaces As DateTimeStyles


[24534] [JScript] public var AllowWhiteSpaces: DateTimeStyles;


[24535] Description


[24536] Indicates that extra white-space characters anywhere in the string must be ignored. This value is a combination of the System.Globalization.DateTimeStyles.AllowLeadingWhite, System.Globalization.DateTimeStyles.AllowTrailingwhite, and System.Globalization.DateTimeStyles.AllowInnerWhite values.


[24537] ToString


[24538] [C#] public const DateTimeStyles NoCurrentDateDefault;


[24539] [C++] public: const DateTimeStyles NoCurrentDateDefault;


[24540] [VB] Public Const NoCurrentDateDefault As DateTimeStyles


[24541] [JScript] public var NoCurrentDateDefault: DateTimeStyles;


[24542] Description


[24543] Indicates that, if the string does not include a date, the year, month, and day will each be set to “1” instead of the current year, month, and day.


[24544] ToString


[24545] [C#] public const DateTimeStyles None;


[24546] [C++] public: const DateTimeStyles None;


[24547] [VB] Public Const None As DateTimeStyles


[24548] [JScript] public var None: DateTimeStyles;


[24549] Description


[24550] Indicates that the default formatting options must be used. This is the default style for System.DateTime.Parse(System.String) and System.DateTime.ParseExact(System.String,System.String,System.IFormatP rovider).


[24551] DaylightTime class (System.Globalization)


[24552] ToString


[24553] Description


[24554] Defines the period of daylight saving time.


[24555] Daylight saving time is a period during the year when the time is advanced, usually by an hour, to take advantage of the extended daylight hours. At the end of the period, the time is set back to the standard time.


[24556] DaylightTime


[24557] Example Syntax:


[24558] ToString


[24559] [C#] public DaylightTime(DateTime start, DateTime end, TimeSpan delta);


[24560] [C++] public: DaylightTime(DateTime start, DateTime end, TimeSpan delta);


[24561] [VB] Public Sub New(ByVal start As DateTime, ByVal end As DateTime, ByVal delta As TimeSpan)


[24562] [JScript] public function DaylightTime(start: DateTime, end: DateTime, delta: TimeSpan);


[24563] Description


[24564] Initializes a new instance of the System.Globalization.DaylightTime class.


[24565] The start parameter becomes the value of the System.Globalization.DaylightTime.Start property of the new instance. The end parameter becomes the value of the System.Globalization.DaylightTime.End property of the new instance. The delta parameter becomes the value of the System.Globalization.DaylightTime.Delta property of the new instance. The System.DateTime instance that represents the date and time when the daylight saving period begins. The value must be in local time. The System.DateTime instance that represents the date and time when the daylight saving period ends. The value must be in local time. The System.TimeSpan instance that represents the difference between the standard time and the daylight saving time in ticks.


[24566] Delta


[24567] ToString


[24568] [C#] public TimeSpan Delta {get;}


[24569] [C++] public: _property TimeSpan get_Delta( );


[24570] [VB] Public ReadOnly Property Delta As TimeSpan


[24571] [JScript] public function get Delta( ): TimeSpan;


[24572] Description


[24573] Gets the System.TimeSpan instance that represents the difference between the standard time and the daylight saving time.


[24574] At the start of daylight saving time, the clock time is advanced by the length of time specified in this property. At the end of daylight saving time, the clock time is set back by the length of time specified in this property.


[24575] End


[24576] ToString


[24577] [C#] public DateTime End {get;}


[24578] [C++] public: _property DateTime get_End( );


[24579] [VB] Public ReadOnly Property End As DateTime


[24580] [JScript] public function get End( ): DateTime;


[24581] Description


[24582] Gets the System.DateTime instance that represents the date and time when the daylight saving period ends.


[24583] When the daylight saving period ends, the clock time is set back to the standard time.


[24584] Start


[24585] ToString


[24586] [C#] public DateTime Start {get;}


[24587] [C++] public: _property DateTime get_Start( );


[24588] [VB] Public ReadOnly Property Start As DateTime


[24589] [JScript] public function get Start( ): DateTime;


[24590] Description


[24591] Gets the System.DateTime instance that represents the date and time when the daylight saving period begins.


[24592] When the daylight saving period begins, the clock time is advanced by the number of ticks defined in System.Globalization.DaylightTime.Delta to take advantage of the extended daylight hours.


[24593] GregorianCalendar class (System.Globalization)


[24594] ToString


[24595] Description


[24596] Represents the Gregorian calendar.


[24597] The Gregorian calendar recognizes two eras: B.C. (before Christ) or B.C.E. (before common era), and A.D. (Latin “Anno Domini”, which means “in the year of the Lord”) or C.E. (common era). This implementation of the System.Globalization.GregorianCalendar class recognizes only the current era (A.D. or C.E.).


[24598] ToString


[24599] [C#] public const int ADEra;


[24600] [C++] public: const int ADEra;


[24601] [VB] Public Const ADEra As Integer


[24602] [JScript] public var ADEra: int;


[24603] Description


[24604] Represents the current era.


[24605] The Gregorian calendar recognizes two eras: B.C. (before Christ) or B.C.E. (before common era), and A.D. (Latin “Anno Domini”, which means “in the year of the Lord”) or C.E. (common era). This implementation of the System.Globalization.GregorianCalendar class recognizes only the current era (A.D. or C.E.). This field always returns 1.


[24606] GregorianCalendar


[24607] Example Syntax:


[24608] ToString


[24609] [C#] public GregorianCalendar( );


[24610] [C++] public: GregorianCalendar( );


[24611] [VB] Public Sub New( )


[24612] [JScript] public function GregorianCalendar( ); Initializes a new instance of the System.Globalization.GregorianCalendar class.


[24613] Description


[24614] Initializes a new instance of the System.Globalization.GregorianCalendar class using the default System.Globalization.GregorianCalendarTypes value.


[24615] The default System.Globalization.GregorianCalendarTypes value is System.Globalization.GregorianCalendarTypes.Localized.


[24616] GregorianCalendar


[24617] Example Syntax:


[24618] ToString


[24619] [C#] public GregorianCalendar(GregorianCalendarTypes type);


[24620] [C++] public: GregorianCalendar(GregorianCalendarTypes type);


[24621] [VB] Public Sub New(ByVal type As GregorianCalendarTypes)


[24622] [JScript] public function GregorianCalendar(type: GregorianCalendarTypes);


[24623] Description


[24624] Initializes a new instance of the System.Globalization.GregorianCalendar class using the specified System.Globalization.GregorianCalendarTypes value. The System.Globalization.GregorianCalendarTypes value that denotes which version of the calendar to create.


[24625] CalendarType


[24626] ToString


[24627] [C#] public virtual GregorianCalendarTypes CalendarType {get; set;}


[24628] [C++] public: _property virtual GregorianCalendarTypes get CalendarType( );public: _property virtual void set_CalendarType(GregorianCalendarTypes);


[24629] [VB] Overridable Public Property CalendarType As GregorianCalendarTypes


[24630] [JScript] public function get CalendarType( ): GregorianCalendarTypes;public function set CalendarType(GregorianCalendarTypes);


[24631] Description


[24632] Gets or sets the System.Globalization.GregorianCalendarTypes value that denotes the version of the current System.Globalization.GregorianCalendar instance.


[24633] Eras


[24634] ToString


[24635] [C#] public override int[ ] Eras {get;}


[24636] [C++] public: _property virtual int get_Eras( );


[24637] [VB] Overrides Public ReadOnly Property Eras As Integer( )


[24638] [JScript] public function get Eras( ): int[ ];


[24639] Description


[24640] Gets the list of eras in the System.Globalization.GregorianCalendar.


[24641] The Gregorian calendar recognizes two eras: B.C. (before Christ) or B.C.E. (before common era), and A.D. (Latin “Anno Domini”, which means “in the year of the Lord”) or C.E. (common era). This implementation of the System.Globalization.GregorianCalendar class recognizes only the current era (A.D. or C.E.). This property always returns an array with only one element.


[24642] TwoDigitYearMax


[24643] ToString


[24644] [C#] public override int TwoDigitYearMax {get; set;}


[24645] [C++] public: _property virtual int get_TwoDigitYearMax( );public: _property virtual void set_TwoDigitYearMax(int);


[24646] [VB] Overrides Public Property TwoDigitYearMax As Integer


[24647] [JScript] public function get TwoDigitYearMax( ): int;public function set TwoDigitYearMax(int);


[24648] Description


[24649] Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.


[24650] This property allows a 2-digit year to be properly translated to a 4-digit year. For example, if this property is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029.


[24651] AddMonths


[24652] [C#] public override DateTime AddMonths(DateTime time, int months);


[24653] [C++] public: DateTime AddMonths(DateTime time, int months);


[24654] [VB] Overrides Public Function AddMonths(ByVal time As DateTime, ByVal months As Integer) As DateTime


[24655] [JScript] public override function AddMonths(time: DateTime, months: int): DateTime;


[24656] Description


[24657] Returns a System.DateTime that is the specified number of months away from the specified System.DateTime


[24658] Return Value: The System.DateTime that results from adding the specified number of months to the specified System.DateTime.


[24659] The year part of the resulting System.DateTime is affected if the resulting month is beyond the last month of the current year. The day part of the resulting System.DateTime is also affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of months to add.


[24660] AddWeeks


[24661] [C#] public override DateTime AddWeeks(DateTime time, int weeks);


[24662] [C++] public: DateTime AddWeeks(DateTime time, int weeks);


[24663] [VB] Overrides Public Function AddWeeks(ByVal time As DateTime, ByVal weeks As Integer) As DateTime


[24664] [JScript] public override function AddWeeks(time: DateTime, weeks: int) DateTime;


[24665] Description


[24666] Returns a System.DateTime that is the specified number of weeks away from the specified System.DateTime.


[24667] Return Value: The System.DateTime that results from adding the specified number of weeks to the specified System.DateTime.


[24668] If weeks is negative, the resulting System.DateTime would be earlier than the specified System.DateTime. The System.DateTime instance to add. The number of weeks to add.


[24669] AddYears


[24670] [C#] public override DateTime AddYears(DateTime time, int years);


[24671] [C++] public: DateTime AddYears(DateTime time, int years);


[24672] [VB] Overrides Public Function AddYears(ByVal time As DateTime, ByVal years As Integer) As DateTime


[24673] [JScript] public override function AddYears(time: DateTime, years: int): DateTime;


[24674] Description


[24675] Returns a System.DateTime that is the specified number of years away from the specified System.DateTime.


[24676] Return Value: The System.DateTime that results from adding the specified number of years to the specified System.DateTime.


[24677] The day part of the resulting System.DateTime is affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of years to add.


[24678] GetDayOfMonth


[24679] [C#] public override int GetDayOfMonth(DateTime time);


[24680] [C++] public: int GetDayOfMonth(DateTime time);


[24681] [VB] Overrides Public Function GetDayOfMonth(ByVal time As DateTime) As Integer


[24682] [JScript] public override function GetDayOfMonth(time: DateTime): int;


[24683] Description


[24684] Gets the day of the month in the specified System.DateTime.


[24685] Return Value: An integer from 1 to 31 that represents the day of the month in time . The System.DateTime instance to read.


[24686] GetDayOfWeek


[24687] [C#] public override DayOfWeek GetDayOfWeek(DateTime time);


[24688] [C++] public: DayOfWeek GetDayOfWeek(DateTime time);


[24689] [VB] Overrides Public Function GetDayOfWeek(ByVal time As DateTime) As DayOfWeek


[24690] [JScript] public override function GetDayOfWeek(time: DateTime): DayOfWeek;


[24691] Description


[24692] Gets the day of the week in the specified System.DateTime.


[24693] Return Value: A System.DayOfWeek value that represents the day of the week in time.


[24694] The System.DayOfWeek values are Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday. The System.DateTime instance to read.


[24695] GetDayOfYear


[24696] [C#] public override int GetDayOfYear(DateTime time);


[24697] [C++] public: int GetDayOfYear(DateTime time);


[24698] [VB] Overrides Public Function GetDayOfYear(ByVal time As DateTime) As Integer


[24699] [JScript] public override function GetDayOfYear(time: DateTime): int;


[24700] Description


[24701] Gets the day of the year in the specified System.DateTime.


[24702] Return Value: An integer from 1 to 366 that represents the day of the year in time. The System.DateTime instance to read.


[24703] GetDaysInMonth


[24704] [C#] public override int GetDaysInMonth(int year, int month, int era);


[24705] [C++] public: int GetDaysInMonth(int year, int month, int era);


[24706] [VB] Overrides Public Function GetDaysInMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Integer


[24707] [JScript] public override function GetDaysInMonth(year: int, month: int, era: int): int; Gets the number of days in the specified month.


[24708] Description


[24709] Gets the number of days in the month specified by the year, month, and era parameters.


[24710] Return Value: The number of days in the specified month in the specified year in the specified era.


[24711] For example, this method might return 28 or 29 for February (month=2), depending on whether year is a leap year. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[24712] GetDaysInYear


[24713] [C#] public override int GetDaysInYear(int year, int era);


[24714] [C++] public: int GetDaysInYear(int year, int era);


[24715] [VB] Overrides Public Function GetDaysInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[24716] [JScript] public override function GetDaysInYear(year: int, era: int): int; Gets the number of days in the specified year.


[24717] Description


[24718] Gets the number of days in the year specified by the year and era parameters.


[24719] Return Value: The number of days in the specified year in the specified era.


[24720] For example, this method might return 365 or 366, depending on whether year is a leap year. An integer that represents the year. An integer that represents the era.


[24721] GetEra


[24722] [C#] public override int GetEra(DateTime time);


[24723] [C++] public: int GetEra(DateTime time);


[24724] [VB] Overrides Public Function GetEra(ByVal time As DateTime) As Integer


[24725] [JScript] public override function GetEra(time: DateTime): int;


[24726] Description


[24727] Gets the era in the specified System.DateTime.


[24728] Return Value: An integer that represents the era in time.


[24729] The Gregorian calendar recognizes two eras: B.C. (before Christ) or B.C.E. (before common era), and A.D. (Latin “Anno Domini”, which means “in the year of the Lord”) or C.E. (common era). This implementation of the System.Globalization.GregorianCalendar class recognizes only the current era (A.D. or C.E.). The System.DateTime instance to read.


[24730] GetMonth


[24731] [C#] public override int GetMonth(DateTime time);


[24732] [C++] public: int GetMonth(DateTime time);


[24733] [VB] Overrides Public Function GetMonth(ByVal time As DateTime) As Integer


[24734] [JScript] public override function GetMonth(time: DateTime): int;


[24735] Description


[24736] Gets the month in the specified System.DateTime.


[24737] Return Value: An integer between 1 and 12 that represents the month in time. The System.DateTime instance to read.


[24738] GetMonthsInYear


[24739] [C#] public override int GetMonthsInYear(int year, int era);


[24740] [C++] public: int GetMonthsInYear(int year, int era);


[24741] [VB] Overrides Public Function GetMonthsInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[24742] [J Script] public override function GetMonthsInYear(year: int, era: int): int; Gets the number of months in the specified year.


[24743] Description


[24744] Gets the number of months in the year specified by the year and era parameters.


[24745] Return Value: The number of months in the specified year in the specified era. An integer that represents the year. An integer that represents the era.


[24746] GetYear


[24747] [C#] public override int GetYear(DateTime time);


[24748] [C++] public: int GetYear(DateTime time);


[24749] [VB] Overrides Public Function GetYear(ByVal time As DateTime) As Integer


[24750] [JScript] public override function GetYear(time: DateTime): int;


[24751] Description


[24752] Gets the year in the specified System.DateTime.


[24753] Return Value: An integer between 1 and 9999 that represents the year in time. The System.DateTime instance to read.


[24754] IsLeapDay


[24755] [C+] public override bool IsLeapDay(int year, int month, int day, int era);


[24756] [C++] public: bool IsLeapDay(int year, int month, int day, int era);


[24757] [VB] Overrides Public Function IsLeapDay(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal era As Integer) As Boolean


[24758] [JScript] public override function IsLeapDay(year: int, month: int, day: int, era: int): Boolean; Determines whether the specified day is a leap day.


[24759] Description


[24760] Determines whether the date specified by the year, month, day, and era parameters is a leap day.


[24761] Return Value: true if the specified day is a leap day; otherwise, false.


[24762] A leap year in the Gregorian calendar is defined as a year that is evenly divisible by four, except if it is divisible by 100; however, years that are divisible by 400 are leap years. For example, the year 1900 was not a leap year, but the year 2000 was. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the era.


[24763] IsLeapMonth


[24764] [C#] public override bool IsLeapMonth(int year, int month, int era);


[24765] [C++] public: bool IsLeapMonth(int year, int month, int era);


[24766] [VB] Overrides Public Function IsLeapMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Boolean


[24767] [JScript] public override function IsLeapMonth(year: int, month: int, era: int): Boolean; Determines whether the specified month is a leap month.


[24768] Description


[24769] Determines whether the month specified by the year, month, and era parameters is a leap month.


[24770] Return Value: This method always returns false, unless overridden by a derived class.


[24771] A leap year in the Gregorian calendar is defined as a year that is evenly divisible by four, except if it is divisible by 100; however, years that are divisible by 400 are leap years. For example, the year 1900 was not a leap year, but the year 2000 was. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[24772] IsLeapYear


[24773] [C#] public override bool IsLeapYear(int year, int era);


[24774] [C++] public: bool IsLeapYear(int year, int era);


[24775] [VB] Overrides Public Function IsLeapYear(ByVal year As Integer, ByVal era As Integer) As Boolean


[24776] [JScript] public override function IsLeapYear(year: int, era: int): Boolean; Determines whether the specified year is a leap year.


[24777] Description


[24778] Determines whether the year specified by the year and era parameters is a leap year.


[24779] Return Value: true if the specified year is a leap year; otherwise, false.


[24780] A leap year in the Gregorian calendar is defined as a year that is evenly divisible by four, except if it is divisible by 100; however, years that are divisible by 400 are leap years. For example, the year 1900 was not a leap year, but the year 2000 was. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the era.


[24781] ToDateTime


[24782] [C#] public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[24783] [C++] public: DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[24784] [VB] Overrides Public Function ToDateTime(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal era As Integer) As DateTime


[24785] [JScript] public override function ToDateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, era: int): DateTime; Returns a System.DateTime that is set to the specified date.


[24786] Description


[24787] Returns a System.DateTime that is set to the specified date and time in the specified era.


[24788] Return Value: The System.DateTime instance set to the specified date and time in the current era. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the hour. An integer that represents the minute. An integer that represents the second. An integer that represents the millisecond. An integer that represents the era.


[24789] ToFourDigitYear


[24790] [C+] public override int ToFourDigitYear(int year);


[24791] [C++] public: int ToFourDigitYear(int year);


[24792] [VB] Overrides Public Function ToFourDigitYear(ByVal year As Integer) As Integer


[24793] [JScript] public override function ToFourDigitYear(year: int): int;


[24794] Description


[24795] Converts the specified two-digit year to a four-digit year by using the System.Globalization.GregorianCalendar.TwoDigitYearMax property to determine the appropriate century.


[24796] Return Value: An integer that contains the four-digit representation of year.


[24797] System.Globalization.GregorianCalendar.TwoDigitYearMax is the last year in the 1 00-year range that can be represented by a two-digit year. The century is determined by finding the sole occurrence of the two-digit year within that 100-year range. For example, if System.Globalization.GregorianCalendar.TwoDigitYearMax is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029. A two-digit integer that represents the year to convert.


[24798] GregorianCalendarTypes enumeration (System.Globalization)


[24799] ToString


[24800] Description


[24801] Defines the different language versions of the Gregorian calendar.


[24802] Each version differs by language.


[24803] ToString


[24804] [C#] public const GregorianCalendarTypes Arabic;


[24805] [C++] public: const GregorianCalendarTypes Arabic;


[24806] [VB] Public Const Arabic As GregorianCalendarTypes


[24807] [JScript] public var Arabic: GregorianCalendarTypes;


[24808] Description


[24809] Refers to the Arabic version of the Gregorian calendar.


[24810] ToString


[24811] [Ca] public const GregorianCalendarTypes Localized;


[24812] [C++] public: const GregorianCalendarTypes Localized;


[24813] [VB] Public Const Localized As GregorianCalendarTypes


[24814] [JScript] public var Localized: GregorianCalendarTypes;


[24815] Description


[24816] Refers to the localized version of the Gregorian calendar, based on the language of the System.Globalization.CultureInfo that uses the System.Globalization.DateTimeFormatInfo instance.


[24817] ToString


[24818] [C#] public const GregorianCalendarTypes MiddleEastFrench;


[24819] [C++] public: const GregorianCalendarTypes MiddleEastFrench;


[24820] [VB] Public Const MiddleEastFrench As GregorianCalendarTypes


[24821] [JScript] public var MiddleEastFrench: GregorianCalendarTypes;


[24822] Description


[24823] Refers to the Middle East French version of the Gregorian calendar.


[24824] ToString


[24825] [C#] public const GregorianCalendarTypes TransliteratedEnglish;


[24826] [C++] public: const GregorianCalendarTypes TransliteratedEnglish;


[24827] [VB] Public Const TransliteratedEnglish As GregorianCalendarTypes


[24828] [JScript] public var TransliteratedEnglish: GregorianCalendarTypes;


[24829] Description


[24830] Refers to the transliterated English version of the Gregorian calendar.


[24831] ToString


[24832] [C#] public const GregorianCalendarTypes TransliteratedFrench;


[24833] [C++] public: const GregorianCalendarTypes TransliteratedFrench;


[24834] [VB] Public Const TransliterateFrench As GregorianCalendarTypes


[24835] [JScript] public var TransliteratedFrench: GregorianCalendarTypes;


[24836] Description


[24837] Refers to the transliterated French version of the Gregorian calendar.


[24838] ToString


[24839] [C#] public const GregorianCalendarTypes USEnglish;


[24840] [C++] public: const GregorianCalendarTypes USEnglish;


[24841] [VB] Public Const USEnglish As GregorianCalendarTypes


[24842] [JScript] public var USEnglish: GregorianCalendarTypes;


[24843] Description


[24844] Refers to the US English version of the Gregorian calendar.


[24845] HebrewCalendar class (System.Globalization)


[24846] ToString


[24847] Description


[24848] Represents the Hebrew calendar.


[24849] The Hebrew calendar recognizes two eras: B.C.E. (before the common era) and A.M. (Latin “Anno Mundi”, which means “the year of the world”). This implementation of the System.Globalization.HebrewCalendar class recognizes only the current era (A.M.) and only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar).


[24850] ToString


[24851] [C#] public static readonly int HebrewEra;


[24852] [C++] public: static int HebrewEra;


[24853] [VB] Public Shared ReadOnly HebrewEra As Integer


[24854] [JScript] public static var HebrewEra: int;


[24855] Description


[24856] Represents the current era.


[24857] The Hebrew calendar recognizes two eras: B.C.E. (before the common era) and A.M. (Latin “Anno Mundi”, which means “the year of the world”). This implementation of the System.Globalization.HebrewCalendar class recognizes only the current era (A.M.). This field always returns 1.


[24858] HebrewCalendar


[24859] Example Syntax:


[24860] ToString


[24861] [C#] public HebrewCalendar( );


[24862] [C++] public: HebrewCalendar( );


[24863] [VB] Public Sub New( )


[24864] [JScript] public function HebrewCalendar( );


[24865] Description


[24866] Initializes a new instance of the System.Globalization.HebrewCalendar class.


[24867] Eras


[24868] ToString


[24869] [C#] public override int[ ] Eras {get;}


[24870] [C++] public: _property virtual int get_Eras( );


[24871] [VB] Overrides Public ReadOnly Property Eras As Integer( )


[24872] [JScript] public function get Eras( ): int[ ];


[24873] Description


[24874] Gets the list of eras in the System.Globalization.HebrewCalendar. The Hebrew calendar recognizes two eras: B.C.E. (before the common era) and A.M. (Latin “Anno Mundi”, which means “the year of the world”). This implementation of the System.Globalization.HebrewCalendar class recognizes only the current era (A.M.). This property always returns an array with only one element.


[24875] TwoDigitYearMax


[24876] ToString


[24877] [C#] public override int TwoDigitYearMax {get; set;}


[24878] [C++] public: _property virtual int get_TwoDigitYearMax( );public: _property virtual void set_TwoDigitYearMax(int);


[24879] [VB] Overrides Public Property TwoDigitYearMax As Integer


[24880] [JScript] public function get TwoDigitYearMax( ): int;public function set TwoDigitYearMax(int);


[24881] Description


[24882] Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.


[24883] This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar).


[24884] AddMonths


[24885] [C#] public override DateTime AddMonths(DateTime time, int months);


[24886] [C++] public: DateTime AddMonths(DateTime time, int months);


[24887] [VB] Overrides Public Function AddMonths(ByVal time As DateTime, ByVal months As Integer) As DateTime


[24888] [JScript] public override function AddMonths(time: DateTime, months: int): DateTime;


[24889] Description


[24890] Returns a System.DateTime that is the specified number of months away from the specified System.DateTime.


[24891] Return Value: The System.DateTime that results from adding the specified number of months to the specified System.DateTime.


[24892] This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar). The System.DateTime instance to add. The number of months to add.


[24893] AddYears


[24894] [C#] public override DateTime AddYears(DateTime time, int years);


[24895] [C++] public: DateTime AddYears(DateTime time, int years);


[24896] [VB] Overrides Public Function AddYears(ByVal time As DateTime, ByVal years As Integer) As DateTime


[24897] [JScript] public override function AddYears(time: DateTime, years: int) DateTime;


[24898] Description


[24899] Returns a System.DateTime that is the specified number of years away from the specified System.DateTime.


[24900] Return Value: The System.DateTime that results from adding the specified number of years to the specified System.DateTime.


[24901] This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar). The System.DateTime instance to add. The number of years to add.


[24902] GetDayOfMonth


[24903] [C#] public override int GetDayOfMonth(DateTime time);


[24904] [C++] public: int GetDayOfMonth(DateTime time);


[24905] [VB] Overrides Public Function GetDayOfMonth(ByVal time As DateTime) As Integer


[24906] [JScript] public override function GetDayOfMonth(time: DateTime): int;


[24907] Description


[24908] Gets the day of the month in the specified System.DateTime.


[24909] Return Value: An integer from 1 to 30 that represents the day of the month in time The System.DateTime instance to read.


[24910] GetDayOfWeek


[24911] [C#] public override DayOfWeek GetDayOfWeek(DateTime time);


[24912] [C++] public: DayOfWeek GetDayOfWeek(DateTime time);


[24913] [VB] Overrides Public Function GetDayOfWeek(ByVal time As DateTime) As DayOfWeek


[24914] [JScript] public override function GetDayOfWeek(time: DateTime): DayOfWeek;


[24915] Description


[24916] Gets the day of the week in the specified System.DateTime.


[24917] Return Value: A System.DayOfWeek value that represents the day of the week in time.


[24918] The System.DayOfWeek values are Sunday which indicates Yom Rishon, Monday which indicates Yom Sheni, Tuesday which indicates Yom Shlishi, Wednesday which indicates Yom Reviee, Thursday which indicates Yom Chamishi, Friday which indicates Yom Shishi, and Saturday which indicates Shabat. The System.DateTime instance to read.


[24919] GetDayOfYear


[24920] [C#] public override int GetDayOfYear(DateTime time);


[24921] [C++] public: int GetDayOfYear(DateTime time);


[24922] [VB] Overrides Public Function GetDayOfYear(ByVal time As DateTime) As Integer


[24923] [JScript] public override function GetDayOfYear(time: DateTime): int;


[24924] Description


[24925] Gets the day of the year in the specified System.DateTime.


[24926] Return Value: An integer from 1 to 385 that represents the day of the year in time


[24927] This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar). The System.DateTime instance to read.


[24928] GetDaysInMonth


[24929] [C#] public override int GetDaysInMonth(int year, int month, int era);


[24930] [C++] public: int GetDaysInMonth(int year, int month, int era);


[24931] [VB] Overrides Public Function GetDaysInMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Integer


[24932] [JScript] public override function GetDaysInMonth(year: int, month: int, era: int): int; Gets the number of days in the specified month.


[24933] Description


[24934] Gets the number of days in the month specified by the year, month, and era parameters.


[24935] Return Value: The number of days in the specified month in the specified year in the specified era.


[24936] For example, this method might return 29 or 30 for Cheshvan, depending on the placement of Jewish holidays. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[24937] GetDaysInYear


[24938] [C#] public override int GetDaysInYear(int year, int era);


[24939] [C++] public: int GetDaysInYear(int year, int era);


[24940] [VB] Overrides Public Function GetDaysInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[24941] [JScript] public override function GetDaysInYear(year: int, era: int): int; Gets the number of days in the specified year.


[24942] Description


[24943] Gets the number of days in the year specified by the year and era parameters.


[24944] Return Value: The number of days in the specified year in the specified era. For example, this method might return an integer from 353 to 355 or from 383 to 385, depending on the placement of Jewish holidays and depending on whether year is a leap year. An integer that represents the year. An integer that represents the era.


[24945] GetEra


[24946] [C#] public override int GetEra(DateTime time);


[24947] [C++] public: int GetEra(DateTime time);


[24948] [VB] Overrides Public Function GetEra(ByVal time As DateTime) As Integer


[24949] [JScript] public override function GetEra(time: DateTime): int;


[24950] Description


[24951] Gets the era in the specified System.DateTime.


[24952] Return Value: An integer that represents the era in time.


[24953] The Hebrew calendar recognizes two eras: B.C.E. (before the common era) a and A.M. (Latin “Anno Mundi”, which means “the year of the world”). This implementation of the System.Globalization.HebrewCalendar class recognizes only the current era (A.M.) and only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar). The System.DateTime instance to read.


[24954] GetMonth


[24955] [C#] public override int GetMonth(DateTime time);


[24956] [C++] public: int GetMonth(DateTime time);


[24957] [VB] Overrides Public Function GetMonth(ByVal time As DateTime) As Integer


[24958] [JScript] public override function GetMonth(time: DateTime): int;


[24959] Description


[24960] Gets the month in the specified System.DateTime.


[24961] Return Value: An integer between 1 and 13 that represents the month in time. The System.DateTime instance to read.


[24962] GetMonthsInYear


[24963] [C#] public override int GetMonthsInYear(int year, int era);


[24964] [C++] public: int GetMonthsInYear(int year, int era);


[24965] [VB] Overrides Public Function GetMonthsInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[24966] [JScript] public override function GetMonthsInYear(year: int, era: int): int; Gets the number of months in the specified year.


[24967] Description


[24968] Gets the number of months in the year specified by the year and era parameters.


[24969] Return Value: The number of months in the specified year in the specified era.


[24970] For example, this method might return 12 or 13, depending on whether year is a leap year. An integer that represents the year. An integer that represents the era.


[24971] GetYear


[24972] [C#] public override int GetYear(DateTime time);


[24973] [C++] public: int GetYear(DateTime time);


[24974] [VB] Overrides Public Function GetYear(ByVal time As DateTime) As Integer


[24975] [JScript] public override function GetYear(time: DateTime): int;


[24976] Description


[24977] Gets the year in the specified System.DateTime.


[24978] Return Value: An integer between 1 and 9999 that represents the year in time.


[24979] This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar). The System.DateTime instance to read.


[24980] IsLeapDay


[24981] [C#] public override bool IsLeapDay(int year, int month, int day, int era);


[24982] [C++] public: bool IsLeapDay(int year, int month, int day, int era);


[24983] [VB] Overrides Public Function IsLeapDay(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal era As Integer) As Boolean


[24984] [JScript] public override function IsLeapDay(year: int, month: int, day: int, era: int): Boolean; Determines whether the specified day is a leap day.


[24985] Description


[24986] Determines whether the date specified by the year, month, day, and era parameters is a leap day.


[24987] Return Value: true if the specified day is a leap day; otherwise, false.


[24988] This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar). An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the era.


[24989] IsLeapMonth


[24990] [C#] public override bool IsLeapMonth(int year, int month, int era);


[24991] [C++] public: bool IsLeapMonth(int year, int month, int era);


[24992] [VB] Overrides Public Function IsLeapMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Boolean


[24993] [JScript] public override function IsLeapMonth(year: int, month: int, era: int): Boolean; Determines whether the specified month is a leap month.


[24994] Description


[24995] Determines whether the month specified by the year, month, and era parameters is a leap month.


[24996] Return Value: true if the specified month is a leap month; otherwise, false.


[24997] This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar). An integer that represents the year. An integer that represents the month. An integer that represents the era.


[24998] IsLeapYear


[24999] [C#] public override bool IsLeapYear(int year, int era);


[25000] [C++] public: bool IsLeapYear(int year, int era);


[25001] [VB] Overrides Public Function IsLeapYear(ByVal year As Integer, ByVal era As Integer) As Boolean


[25002] [JScript] public override function IsLeapYear(year: int, era: int): Boolean; Determines whether the specified year is a leap year.


[25003] Description


[25004] Determines whether the year specified by the year and era parameters is a leap year.


[25005] Return Value: true if the specified year is a leap year; otherwise, false.


[25006] This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar). An integer that represents the year. An integer that represents the era.


[25007] ToDateTime


[25008] [C#] public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[25009] [C++] public: DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[25010] [VB] Overrides Public Function ToDateTime(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal era As Integer) As DateTime


[25011] [JScript] public override function ToDateTime(year: int, month: int, day: int, int, hour: int, minute: int, second: int, millisecond: int, era: int): DateTime; Returns a System.DateTime that is set to the specified date.


[25012] Description


[25013] Returns a System.DateTime that is set to the specified date and time in the specified era.


[25014] Return Value: The System.DateTime instance set to the specified date and time in the current era.


[25015] This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar). An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the hour. An integer that represents the minute. An integer that represents the second. An integer that represents the millisecond. An integer that represents the era.


[25016] ToFourDigitYear


[25017] [C#] public override int ToFourDigitYear(int year);


[25018] [C++] public: int ToFourDigitYear(int year);


[25019] [VB] Overrides Public Function ToFourDigitYear(ByVal year As Integer) As Integer


[25020] [JScript] public override function ToFourDigitYear(year: int): int;


[25021] Description


[25022] Converts the specified two-digit year to a four-digit year by using the System.Globalization.HebrewCalendar.TwoDigitYearMax property to determine the appropriate century.


[25023] Return Value: An integer that contains the four-digit representation of year.


[25024] This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 6000 (1582 to 2240 in the Gregorian calendar). A two-digit integer that represents the year to convert.


[25025] HijriCalendar class (System.Globalization)


[25026] ToString


[25027] Description


[25028] Represents the Hijri calendar.


[25029] The Hijri calendar recognizes one era: A.H. (Latin “Anno Hegirae”, which means “the year of the migration” in reference to the migration of Muhammad from Mecca).


[25030] ToString


[25031] [C#] public static readonly int HijriEra;


[25032] [C++] public: static int HijriEra;


[25033] [VB] Public Shared ReadOnly HijriEra As Integer


[25034] [JScript] public static var HijriEra: int;


[25035] Description


[25036] Represents the current era.


[25037] The Hijri calendar recognizes one era: A.H. (Latin “Anno Hegirae”, which means “the year of the migration” referring to the migration of Muhammad from Mecca).


[25038] HijriCalendar


[25039] Example Syntax:


[25040] ToString


[25041] [C#] public HijriCalendar( );


[25042] [C++] public: HijriCalendar( );


[25043] [VB] Public Sub New( )


[25044] [JScript] public function HijriCalendar( );


[25045] Description


[25046] Initializes a new instance of the System.Globalization.HijriCalendar class.


[25047] Eras


[25048] ToString


[25049] [C#] public override int[ ] Eras {get;}


[25050] [C++] public: _property virtual int get_Eras( );


[25051] [VB] Overrides Public ReadOnly Property Eras As Integer ( )


[25052] [JScript] public function get Eras( ): int[ ];


[25053] Description


[25054] Gets the list of eras in the System.Globalization.HijriCalendar.


[25055] The Hijri calendar recognizes one era: A.H. (Latin “Anno Hegirae”, which means “the year of the migration” referring to the migration of Muhammad from Mecca).


[25056] TwoDigitYearMax


[25057] ToString


[25058] [C#] public override int TwoDigitYearMax {get; set;}


[25059] [C++] public: _property virtual int get_TwoDigitYearMax( );public: _property virtual void set_TwoDigitYearMax(int);


[25060] [VB] Overrides Public Property TwoDigitYearMax As Integer


[25061] [JScript] public function get TwoDigitYearMax( ): int;public function set TwoDigitYearMax(int);


[25062] Description


[25063] Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.


[25064] This property allows a 2-digit year to be properly translated to a 4-digit year. For example, if this property is set to 1429, the 100-year range is from 1330 to 1429; therefore, a 2-digit value of 30 is interpreted as 1330, while a 2-digit value of 29 is interpreted as 1429.


[25065] AddMonths


[25066] [C#] public override DateTime AddMonths(DateTime time, int months);


[25067] [C++] public: DateTime AddMonths(DateTime time, int months);


[25068] [VB] Overrides Public Function AddMonths(ByVal time As DateTime, ByVal Months As Integer) As DateTime


[25069] [JScript] public override function AddMonths(time: DateTime, months: int): DateTime;


[25070] Description


[25071] Returns a System.DateTime that is the specified number of months away from the specified System.DateTime.


[25072] Return Value: The System.DateTime that results from adding the specified number of months to the specified System.DateTime.


[25073] The year part of the resulting System.DateTime is affected if the resulting month is beyond the last month of the current year. The day part of the resulting System.DateTime is also affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of months to add.


[25074] AddYears


[25075] [C#] public override DateTime AddYears(DateTime time, int years);


[25076] [C++] public: DateTime AddYears(DateTime time, int years);


[25077] [VB] Overrides Public Function AddYears(ByVal time As DateTime, ByVal years As Integer) As DateTime


[25078] [JScript] public override function AddYears(time: DateTime, years: int): DateTime;


[25079] Description


[25080] Returns a System.DateTime that is the specified number of years away from the specified System.DateTime.


[25081] Return Value: The System.DateTime that results from adding the specified number of years to the specified System.DateTime.


[25082] The day part of the resulting System.DateTime is affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of years to add.


[25083] GetDayOfMonth


[25084] [C#] public override int GetDayOfMonth(DateTime time);


[25085] [C++] public: int GetDayOfMonth(DateTime time);


[25086] [VB] Overrides Public Function GetDayOfMonth(ByVal time As DateTime) As Integer


[25087] [JScript] public override function GetDayOfMonth(time: DateTime): int;


[25088] Description


[25089] Gets the day of the month in the specified System.DateTime.


[25090] Return Value: An integer from 1 to 30 that represents the day of the month in time. The System.DateTime instance to read.


[25091] GetDayOfWeek


[25092] [C#] public override DayOfWeek GetDayOfWeek(DateTime time);


[25093] [C++] public: DayOfWeek GetDayOfWeek(DateTime time);


[25094] [VB] Overrides Public Function GetDayOfWeek(ByVal time As DateTime) As DayOfWeek


[25095] [JScript] public override function GetDayOfWeek(time: DateTime): DayOfWeek;


[25096] Description


[25097] Gets the day of the week in the specified System.DateTime.


[25098] Return Value: A System.DayOfWeek value that represents the day of the week in time.


[25099] The System.DayOfWeek values are Sunday which indicates Al-Ahad, Monday which indicates Al-Ithnayn, Tuesday which indicates At-Thulaathaa', Wednesday which indicates Al-Arbi'aa', Thursday which indicates Al-Khamiis, Friday which indicates Al-Jumu'ah, and Saturday which indicates As-Sabt. The System.DateTime instance to read.


[25100] GetDayOfYear


[25101] [C#] public override int GetDayOfYear(DateTime time);


[25102] [C++] public: int GetDayOfYear(DateTime time);


[25103] [VB] Overrides Public Function GetDayOfYear(ByVal time As DateTime) As Integer


[25104] [JScript] public override function GetDayOfYear(time: DateTime): int;


[25105] Description


[25106] Gets the day of the year in the specified System.DateTime.


[25107] Return Value: An integer from 1 to 355 that represents the day of the year in time. The System.DateTime instance to read.


[25108] GetDaysInMonth


[25109] [C#] public override int GetDaysInMonth(int year, int month, int era);


[25110] [C++] public: int GetDaysInMonth(int year, int month, int era);


[25111] [VB] Overrides Public Function GetDaysInMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Integer


[25112] [JScript] public override function GetDaysInMonth(year: int, month: int, era: int): int; Gets the number of days in the specified month.


[25113] Description


[25114] Gets the number of days in the month specified by the year, month, and era parameters.


[25115] Return Value: The number of days in the specified month in the specified year in the specified era.


[25116] For example, this method might return 29 or 30 for Zulhijjah ( month=12), depending on whether year is a leap year. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[25117] GetDaysInYear


[25118] [C#] public override int GetDaysInYear(int year, int era);


[25119] [C++] public: int GetDaysInYear(int year, int era);


[25120] [VB] Overrides Public Function GetDaysInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[25121] [JScript] public override function GetDaysInYear(year: int, era: int): int; Gets the number of days in the specified year.


[25122] Description


[25123] Gets the number of days in the year specified by the year and era parameters.


[25124] Return Value: The number of days in the specified year in the specified era.


[25125] For example, this method might return 354 or 355, depending on whether year is a leap year. An integer that represents the year. An integer that represents the era.


[25126] GetEra


[25127] [C#] public override int GetEra(DateTime time);


[25128] [C++] public: int GetEra(DateTime time);


[25129] [VB] Overrides Public Function GetEra(ByVal time As DateTime) As Integer


[25130] [JScript] public override function GetEra(time: DateTime): int;


[25131] Description


[25132] Gets the era in the specified System.DateTime.


[25133] Return Value: An integer that represents the era in time.


[25134] The Hijri calendar recognizes one era: A.H. (Latin “Anno Hegirae”, which means “the year of the migration” referring to the migration of Muhammad from Mecca). The System.DateTime instance to read.


[25135] GetMonth


[25136] [C#] public override int GetMonth(DateTime time);


[25137] [C++] public: int GetMonth(DateTime time);


[25138] [VB] Overrides Public Function GetMonth(ByVal time As DateTime) As Integer


[25139] [JScript] public override function GetMonth(time: DateTime): int;


[25140] Description


[25141] Gets the month in the specified System.DateTime.


[25142] Return Value: An integer between 1 and 12 that represents the month in time. The System.DateTime instance to read.


[25143] GetMonthsInYear


[25144] [C#] public override int GetMonthsInYear(int year, int era);


[25145] [C++] public: int GetMonthsInYear(int year, int era);


[25146] [VB] Overrides Public Function GetMonthsInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[25147] [JScript] public override function GetMonthsInYear(year: int, era: int): int; Gets the number of months in the specified year.


[25148] Description


[25149] Gets the number of months in the year specified by the year and era parameters.


[25150] Return Value: The number of months in the specified year in the specified era. An integer that represents the year. An integer that represents the era.


[25151] GetYear


[25152] [C#] public override int GetYear(DateTime time);


[25153] [C++] public: int GetYear(DateTime time);


[25154] [VB] Overrides Public Function GetYear(ByVal time As DateTime) As Integer


[25155] [JScript] public override function GetYear(time: DateTime): int;


[25156] Description


[25157] Gets the year in the specified System.DateTime.


[25158] Return Value: An integer between 1 and 9999 that represents the year in time. The System.DateTime instance to read.


[25159] IsLeapDay


[25160] [C#] public override bool IsLeapDay(int year, int month, int day, int era);


[25161] [C++] public: bool IsLeapDay(int year, int month, int day, int era);


[25162] [VB] Overrides Public Function IsLeapDay(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal era As Integer) As Boolean


[25163] [JScript] public override function IsLeapDay(year: int, month: int, day: int, era: int): Boolean; Determines whether the specified day is a leap day.


[25164] Description


[25165] Determines whether the date specified by the year, month, day, and era parameters is a leap day.


[25166] Return Value: true if the specified day is a leap day; otherwise, false.


[25167] In every 30-year cycle that ends with a year that is evenly divisible by 30, the 2nd, 5th, 7th, 10th, 13th, 16th, 18th, 21st, 24th, 26th, and 29th years are leap years. A common year has 354 days and a leap year has 355 days. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the era.


[25168] IsLeapMonth


[25169] [C#] public override bool IsLeapMonth(int year, int month, int era);


[25170] [C++] public: bool IsLeapMonth(int year, int month, int era);


[25171] [VB] Overrides Public Function IsLeapMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Boolean


[25172] [JScript] public override function IsLeapMonth(year: int, month: int, era: int): Boolean; Determines whether the specified month is a leap month.


[25173] Description


[25174] Determines whether the month specified by the year, month, and era parameters is a leap month.


[25175] Return Value: This method always returns false, unless overridden by a derived class.


[25176] In every 30-year cycle that ends with a year that is evenly divisible by 30, the 2nd, 5th, 7th, 10th, 13th, 16th, 18th, 21st, 24th, 26th, and 29th years are leap years. A common year has 354 days and a leap year has 355 days. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[25177] IsLeapYear


[25178] [C#] public override bool IsLeapYear(int year, int era);


[25179] [C++] public: bool IsLeapYear(int year, int era);


[25180] [VB] Overrides Public Function IsLeapYear(ByVal year As Integer, ByVal era As Integer) As Boolean


[25181] [JScript] public override function IsLeapYear(year: int, era: int): Boolean; Determines whether the specified year is a leap year.


[25182] Description


[25183] Determines whether the year specified by the year and era parameters is a leap year.


[25184] Return Value: true if the specified year is a leap year; otherwise, false.


[25185] In every 30-year cycle that ends with a year that is evenly divisible by 30, the 2nd, 5th, 7th, 10th, 13th, 16th, 18th, 21st, 24th, 26th, and 29th years are leap years. A common year has 354 days and a leap year has 355 days. An integer that represents the year. An integer that represents the era.


[25186] ToDateTime


[25187] [C#] public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[25188] [C++] public: DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[25189] [VB] Overrides Public Function ToDateTime(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal era As Integer) As DateTime


[25190] [JScript] public override function ToDateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, era: int): DateTime; Returns a System.DateTime that is set to the specified date.


[25191] Description


[25192] Returns a System.DateTime that is set to the specified date and time in the specified era.


[25193] Return Value: The System.DateTime instance set to the specified date and time in the current era. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the hour. An integer that represents the minute. An integer that represents the second. An integer that represents the millisecond. An integer that represents the era.


[25194] ToFourDigitYear


[25195] [C#] public override it ToFourDigitYear(int year);


[25196] [C++] public: int ToFourDigitYear(int year);


[25197] [VB] Overrides Public Function ToFourDigitYear(ByVal year As Integer) As Integer


[25198] [JScript] public override function ToFourDigitYear(year: int): int;


[25199] Description


[25200] Converts the specified two-digit year to a four-digit year by using the System.Globalization.HijriCalendar.TwoDigitYearMax property to determine the appropriate century.


[25201] Return Value: An integer that contains the four-digit representation of year.


[25202] System.Globalization.HijriCalendar.TwoDigitYearMax is the last year in the 100-year range that can be represented by a two-digit year. The century is determined by finding the sole occurrence of the two-digit year within that 100-year range. For example, if System.Globalization.HijriCalendar.TwoDigitYearMax is set to 1429, the 100-year range is from 1330 to 1429; therefore, a 2-digit value of 30 is interpreted as 1330, while a 2-digit value of 29 is interpreted as 1429. A two-digit integer that represents the year to convert.


[25203] JapaneseCalendar class (System.Globalization)


[25204] ToString


[25205] Description


[25206] Represents the Japanese calendar.


[25207] The Japanese calendar, which is also known as the Wareki calendar, works exactly like the Gregorian calendar, except that the year and era are different.


[25208] JapaneseCalendar


[25209] Example Syntax:


[25210] ToString


[25211] [C#] public JapaneseCalendar( );


[25212] [C++] public: JapaneseCalendar( );


[25213] [VB] Public Sub New( )


[25214] [JScript] public function JapaneseCalendar( );


[25215] Description


[25216] Initializes a new instance of the System.Globalization.JapaneseCalendar class.


[25217] Eras


[25218] ToString


[25219] [C#] public override int [ ] Eras {get;}


[25220] [C++] public: _property virtual int get_Eras( );


[25221] [VB] Overrides Public ReadOnly Property Eras As Integer ( )


[25222] [JScript] public function get Eras( ): int[ ];


[25223] Description


[25224] Gets the list of eras in the System.Globalization.JapaneseCalendar.


[25225] The Japanese calendar recognizes one era for every emperor's reign. The current era is the Heisei era, which began in the Gregorian calendar year 1989. The era name is typically displayed before the year. For example, the Gregorian calendar year 2001 is the Wareki calendar year Heisei 13. Note that the first year of an era is called “Gannen”; therefore, the Gregorian calendar year 1989 was the Wareki calendar year Heisei Gannen.


[25226] TwoDigitYearMax


[25227] ToString


[25228] [C#] public override int TwoDigitYearMax {get; set;}


[25229] [C++] public: _property virtual int get_TwoDigitYearMax( );public: _property virtual void set_TwoDigitYearMax(int);


[25230] [VB] Overrides Public Property TwoDigitYearMax As Integer


[25231] [JScript] public function get TwoDigitYearMax( ): int; public function set TwoDigitYearMax(int);


[25232] Description


[25233] Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.


[25234] This property implements System.Globalization.Calendar.TwoDigitYearMax.


[25235] AddMonths


[25236] [C#] public override DateTime AddMonths(DateTime time, int months);


[25237] [C++] public: DateTime AddMonths(DateTime time, int months);


[25238] [VB] Overrides Public Function AddMonths(ByVal time As DateTime, ByVal months As Integer) As DateTime


[25239] [JScript] public override function AddMonths(time: DateTime, months: int): DateTime;


[25240] Description


[25241] Returns a System.DateTime that is the specified number of months away from the specified System.DateTime.


[25242] Return Value: The System.DateTime that results from adding the specified number of months to the specified System.DateTime.


[25243] The year part of the resulting System.DateTime is affected if the resulting month is beyond the last month of the current year. The day part of the resulting System.DateTime is also affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of months to add.


[25244] AddYears


[25245] [C#] public override DateTime AddYears(DateTime time, int years);


[25246] [C++] public: DateTime AddYears(DateTime time, int years);


[25247] [VB] Overrides Public Function AddYears(ByVal time As DateTime, ByVal years As Integer) As DateTime


[25248] [JScript] public override function AddYears(time: DateTime, years: int): DateTime;


[25249] Description


[25250] Returns a System.DateTime that is the specified number of years away from the specified System.DateTime.


[25251] Return Value: The System.DateTime that results from adding the specified number of years to the specified System.DateTime.


[25252] The day part of the resulting System.DateTime is affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of years to add.


[25253] GetDayOfMonth


[25254] [C#] public override int GetDayOfMonth(DateTime time);


[25255] [C++] public: int GetDayOfMonth(DateTime time);


[25256] [VB] Overrides Public Function GetDayOfMonth(ByVal time As DateTime) As Integer


[25257] [JScript] public override function GetDayOfMonth(time: DateTime): int;


[25258] Description


[25259] Gets the day of the month in the specified System.DateTime.


[25260] Return Value: An integer from 1 to 31 that represents the day of the month in time. The System.DateTime instance to read.


[25261] GetDayOfWeek


[25262] [C#] public override DayOfWeek GetDayOfWeek(DateTime time);


[25263] [C++] public: DayOfWeek GetDayOfWeek(DateTime time);


[25264] [VB] Overrides Public Function GetDayOfWeek(ByVal time As DateTime) As DayOfWeek


[25265] [JScript] public override function GetDayOfWeek(time: DateTime): DayOfWeek;


[25266] Description


[25267] Gets the day of the week in the specified System.DateTime.


[25268] Return Value: A System.DayOfWeek value that represents the day of the week in time.


[25269] The System.DayOfWeek values are Sunday which indicates NichiYoubi, Monday which indicates GetsuYoubi, Tuesday which indicates KaYoubi, Wednesday which indicates SuiYoubi, Thursday which indicates MokuYoubi, Friday which indicates KinYoubi, and Saturday which indicates DouYoubi. The System.DateTime instance to read.


[25270] GetDayOfYear


[25271] [C#] public override int GetDayOfYear(DateTime time);


[25272] [C++] public: int GetDayOfYear(DateTime time);


[25273] [VB] Overrides Public Function GetDayOfYear(ByVal time As DateTime) As Integer


[25274] [JScript] public override function GetDayOfYear(time: DateTime): int;


[25275] Description


[25276] Gets the day of the year in the specified System.DateTime.


[25277] Return Value: An integer from 1 to 366 that represents the day of the year in time. The System.DateTime instance to read.


[25278] GetDaysInMonth


[25279] [C#] public override int GetDaysInMonth(int year, int month, int era);


[25280] [C++] public: int GetDaysInMonth(int year, int month, int era);


[25281] [VB] Overrides Public Function GetDaysInMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Integer


[25282] [JScript] public override function GetDaysInMonth(year: int, month: int, era: int): int; Gets the number of days in the specified month.


[25283] Description


[25284] Gets the number of days in the month specified by the year, month, and era parameters.


[25285] Return Value: The number of days in the specified month in the specified year in the specified era.


[25286] For example, this method might return 28 or 29 for NiGatsu (February, month=2), depending on whether year is a leap year. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[25287] GetDaysInYear


[25288] [C#] public override it GetDaysInYear(int year, int era);


[25289] [C++] public: int GetDaysInYear(int year, int era);


[25290] [VB] Overrides Public Function GetDaysInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[25291] [JScript] public override function GetDaysInYear(year: int, era: int): int; Gets the number of days in the specified year.


[25292] Description


[25293] Gets the number of days in the year specified by the year and era parameters.


[25294] Return Value: The number of days in the specified year in the specified era.


[25295] For example, this method might return 365 or 366, depending on whether year is a leap year. An integer that represents the year. An integer that represents the era.


[25296] GetEra


[25297] [C#] public override int GetEra(DateTime time);


[25298] [C++] public: int GetEra(DateTime time);


[25299] [VB] Overrides Public Function GetEra(ByVal time As DateTime) As Integer


[25300] [JScript] public override function GetEra(time: DateTime): int;


[25301] Description


[25302] Gets the era in the specified System.DateTime.


[25303] Return Value: An integer that represents the era in time.


[25304] The Japanese calendar recognizes one era for every emperor's reign. The current era is the Heisei era, which began in the Gregorian calendar year 1989. The era name is typically displayed before the year. For example, the Gregorian calendar year 2001 is the Wareki calendar year Heisei 13. Note that the first year of an era is called “Gannen”; therefore, the Gregorian calendar year 1989 was the Wareki calendar year Heisei Gannen. The System.DateTime instance to read.


[25305] GetMonth


[25306] [C#] public override int GetMonth(DateTime time);


[25307] [C++] public: int GetMonth(DateTime time);


[25308] [VB] Overrides Public Function GetMonth(ByVal time As DateTime) As Integer


[25309] [JScript] public override function GetMonth(time: DateTime): int;


[25310] Description


[25311] Gets the month in the specified System.DateTime.


[25312] Return Value: An integer between 1 and 12 that represents the month in time. The System.DateTime instance to read.


[25313] GetMonthsInYear


[25314] [C#] public override int GetMonthsInYear(int year, int era);


[25315] [C++] public: int GetMonthsInYear(int year, int era);


[25316] [VB] Overrides Public Function GetMonthsInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[25317] [JScript] public override function GetMonthsInYear(year: int, era: int): int; Gets the number of months in the specified year.


[25318] Description


[25319] Gets the number of months in the year specified by the year and era parameters.


[25320] Return Value: The number of months in the specified year in the specified era. An integer that represents the year. An integer that represents the era.


[25321] GetYear


[25322] [C#] public override int GetYear(DateTime time);


[25323] [C++] public: int GetYear(DateTime time);


[25324] [VB] Overrides Public Function GetYear(ByVal time As DateTime) As Integer


[25325] [JScript] public override function GetYear(time: DateTime): int;


[25326] Description


[25327] Gets the year in the specified System.DateTime.


[25328] Return Value: An integer between 1 and 9999 that represents the year in time. The System.DateTime instance to read.


[25329] IsLeapDay


[25330] [C#] public override bool IsLeapDay(int year, int month, int day, int era);


[25331] [C++] public: bool IsLeapDay(int year, int month, int day, int era);


[25332] [VB] Overrides Public Function IsLeapDay(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal era As Integer) As Boolean


[25333] [JScript] public override function IsLeapDay(year: int, month: int, day: int, era: int): Boolean; Determines whether the specified day is a leap day.


[25334] Description


[25335] Determines whether the date specified by the year, month, day, and era parameters is a leap day.


[25336] Return Value: true, if the specified day is a leap day; otherwise, false.


[25337] Leap years in the Japanese calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the era.


[25338] IsLeapMonth


[25339] [C#] public override bool IsLeapMonth(int year, int month, int era);


[25340] [C++] public: bool IsLeapMonth(int year, int month, int era);


[25341] [VB] Overrides Public Function IsLeapMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Boolean


[25342] [JScript] public override function IsLeapMonth(year: int, month: int, era: int): Boolean; Determines whether the specified month is a leap month.


[25343] Description


[25344] Determines whether the month specified by the year, month, and era parameters is a leap month.


[25345] Return Value: This method always returns false, unless overridden by a derived class.


[25346] Leap years in the Japanese calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[25347] IsLeapYear


[25348] [C#] public override bool IsLeapYear(int year, int era);


[25349] [C++] public: bool IsLeapYear(int year, int era);


[25350] [VB] Overrides Public Function IsLeapYear(ByVal year As Integer, ByVal era As Integer) As Boolean


[25351] [JScript] public override function IsLeapYear(year: int, era: int): Boolean; Determines whether the specified year is a leap year.


[25352] Description


[25353] Determines whether the year specified by the year and era parameters is a leap year.


[25354] Return Value: true, if the specified year is a leap year; otherwise, false.


[25355] Leap years in the Japanese calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the era.


[25356] ToDateTime


[25357] [C#] public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[25358] [C++] public: DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[25359] [VB] Overrides Public Function ToDateTime(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal era As Integer) As DateTime


[25360] [JScript] public override function ToDateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, era: int): DateTime; Returns a System.DateTime that is set to the specified date.


[25361] Description


[25362] Returns a System.DateTime that is set to the specified date and time in the specified era.


[25363] Return Value: The System.DateTime instance set to the specified date and time in the current era. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the hour. An integer that represents the minute. Am integer that represents the second. An integer that represents the millisecond. An integer that represents the era.


[25364] ToFourDigitYear


[25365] [C#] public override int ToFourDigitYear(int year);


[25366] [C++] public: int ToFourDigitYear(int year);


[25367] [VB] Overrides Public Function ToFourDigitYear(ByVal year As Integer) As Integer


[25368] [JScript] public override function ToFourDigitYear(year: int): int;


[25369] Description


[25370] Converts the specified two-digit year to a four-digit year by using the System.Globalization.JapaneseCalendar.TwoDigitYearMax property to determine the appropriate century.


[25371] Return Value: An integer that contains the four-digit representation of year.


[25372] This method implements System.Globalization.Calendar.ToFourDigitYear(System.Int32). A two-digit integer that represents the year to convert.


[25373] JulianCalendar class (System.Globalization)


[25374] ToString


[25375] Description


[25376] Represents the Julian calendar.


[25377] In 45 B.C., Julius Caesar ordered a calendar reform, which resulted in the calendar called the Julian calendar. The Julian calendar is the predecessor of the Gregorian calendar.


[25378] ToString


[25379] [C#] public static readonly int JulianEra;


[25380] [C++] public: static int JulianEra;


[25381] [VB] Public Shared ReadOnly JulianEra As Integer


[25382] [JScript] public static var JulianEra: int;


[25383] Description


[25384] Represents the current era.


[25385] The System.Globalization.JulianCalendar class recognizes only the current era. This field always returns 1.


[25386] JulianCalendar


[25387] Example Syntax:


[25388] ToString


[25389] [C#] public JulianCalendar( );


[25390] [C++] public: JulianCalendar( );


[25391] [VB] Public Sub New( )


[25392] [JScript] public function JulianCalendar( );


[25393] Description


[25394] Initializes a new instance of the System.Globalization.JulianCalendar class.


[25395] Eras


[25396] ToString


[25397] [C#] public override int[ ] Eras {get;}


[25398] [C++] public: _property virtual int get_Eras( );


[25399] [VB] Overrides Public ReadOnly Property Eras As Integer ( )


[25400] [JScript] public function get Eras( ): int[ ];


[25401] Description


[25402] Gets the list of eras in the System.Globalization.JulianCalendar.


[25403] The System.Globalization.JulianCalendar class recognizes only the current era. This property always returns an array with only one element.


[25404] TwoDigitYearMax


[25405] ToString


[25406] [C#] public override int TwoDigitYearMax {get; set;}


[25407] [C++] public: _property virtual int get_TwoDigitYearMax( );public: _property virtual void set_TwoDigitYearMax(int);


[25408] [VB] Overrides Public Property TwoDigitYearMax As Integer


[25409] [JScript] public function get TwoDigitYearMax( ): int;public function set TwoDigitYearMax(int);


[25410] Description


[25411] Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.


[25412] This property allows a 2-digit year to be properly translated to a 4-digit year. For example, if this property is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029.


[25413] AddMonths


[25414] [C#] public override DateTime AddMonths(DateTime time, int months);


[25415] [C++] public: DateTime AddMonths(DateTime time, int months);


[25416] [VB] Overrides Public Function AddMonths(ByVal time As DateTime, ByVal months As Integer) As DateTime


[25417] [JScript] public override function AddMonths(time: DateTime, months: int): DateTime;


[25418] Description


[25419] Returns a System.DateTime that is the specified number of months away from the specified System.DateTime.


[25420] Return Value: The System.DateTime that results from adding the specified number of months to the specified System.DateTime.


[25421] The year part of the resulting System.DateTime is affected if the resulting month is beyond the last month of the current year. The day part of the resulting System.DateTime is also affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of months to add.


[25422] AddYears


[25423] [C#] public override DateTime AddYears(DateTime time, int years);


[25424] [C++] public: DateTime AddYears(DateTime time, int years);


[25425] [VB] Overrides Public Function AddYears(ByVal time As DateTime, ByVal years As Integer) As DateTime


[25426] [JScript] public override function AddYears(time: DateTime, years: int): DateTime;


[25427] Description


[25428] Returns a System.DateTime that is the specified number of years away from the specified System.DateTime.


[25429] Return Value: The System.DateTime that results from adding the specified number of years to the specified System.DateTime.


[25430] The day part of the resulting System.DateTime is affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of years to add.


[25431] GetDayOfMonth


[25432] [C#] public override int GetDayOfMonth(DateTime time);


[25433] [C++] public: int GetDayOfMonth(DateTime time);


[25434] [VB] Overrides Public Function GetDayOfMonth(ByVal time As DateTime) As Integer


[25435] [JScript] public override function GetDayOfMonth(time: DateTime): int;


[25436] Description


[25437] Gets the day of the month in the specified System.DateTime.


[25438] Return Value: An integer from 1 to 31 that represents the day of the month in time. The System.DateTime instance to read.


[25439] GetDayOfWeek


[25440] [C#] public override DayOfWeek GetDayOfWeek(DateTime time);


[25441] [C++] public: DayOfWeek GetDayOfWeek(DateTime time);


[25442] [VB] Overrides Public Function GetDayOfWeek(ByVal time As DateTime) As DayOfWeek


[25443] [JScript] public override function GetDayOfWeek(time: DateTime): DayOfWeek;


[25444] Description


[25445] Gets the day of the week in the specified System.DateTime.


[25446] Return Value: A System.DayOfWeek value that represents the day of the week in time.


[25447] The System.DayOfWeek values are Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday. The System.DateTime instance to read.


[25448] GetDayOfYear


[25449] [C#] public override int GetDayOfYear(DateTime time);


[25450] [C++] public: int GetDayOfYear(DateTime time);


[25451] [VB] Overrides Public Function GetDayOfYear(ByVal time As DateTime) As Integer


[25452] [JScript] public override function GetDayOfYear(time: DateTime): int;


[25453] Description


[25454] Gets the day of the year in the specified System.DateTime.


[25455] Return Value: An integer from 1 to 366 that represents the day of the year in time. The System.DateTime instance to read.


[25456] GetDaysInMonth


[25457] [C#] public override int GetDaysInMonth(int year, int month, int era);


[25458] [C++] public: int GetDaysInMonth(int year, int month, int era);


[25459] [VB] Overrides Public Function GetDaysInMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Integer


[25460] [JScript] public override function GetDaysInMonth(year: int, month: int, era: int): int; Gets the number of days in the specified month.


[25461] Description


[25462] Gets the number of days in the month specified by the year, month, and era parameters.


[25463] Return Value: The number of days in the specified month in the specified year in the specified era.


[25464] For example, this method might return 28 or 29 for February ( month=2), depending on whether year is a leap year. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[25465] GetDaysInYear


[25466] [C#] public override int GetDaysInYear (int year, int era);


[25467] [C++] public: int GetDaysInYear(int year, int era);


[25468] [VB] Overrides Public Function GetDaysInYear(ByVal year As Integer, ByVal era As Integer) As Integer p0 [JScript] public override function GetDaysInYear(year: int, era: int): int; Gets the number of days in the specified year.


[25469] Description


[25470] Gets the number of days in the year specified by the year and era parameters.


[25471] Return Value: The number of days in the specified year in the specified era.


[25472] For example, this method might return 365 or 366, depending on whether year is a leap year. An integer that represents the year. An integer that represents the era.


[25473] GetEra


[25474] [C#] public override int GetEra(DateTime time);


[25475] [C++] public: int GetEra(DateTime time);


[25476] [VB] Overrides Public Function GetEra(ByVal time As DateTime) As Integer


[25477] [JScript] public override function GetEra(time: DateTime): int;


[25478] Description


[25479] Gets the era in the specified System.DateTime.


[25480] Return Value: An integer that represents the era in time.


[25481] The System.Globalization.JulianCalendar class recognizes only the current era. The System.DateTime instance to read.


[25482] GetMonth


[25483] [C+] public override int GetMonth(DateTime time);


[25484] [C++] public: int GetMonth(DateTime time);


[25485] [VB] Overrides Public Function GetMonth(ByVal time As DateTime) As Integer


[25486] [JScript] public override function GetMonth(time: DateTime): int;


[25487] Description


[25488] Gets the month in the specified System.DateTime.


[25489] Return Value: An integer between 1 and 12 that represents the month in time. The System.DateTime instance to read.


[25490] GetMonthsInYear


[25491] [C#] public override int GetMonthsInYear(int year, int era);


[25492] [C++] public: int GetMonthsInYear(int year, int era);


[25493] [VB] Overrides Public Function GetMonthsInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[25494] [JScript] public override function GetMonthsInYear(year: int, era: int): int; Gets the number of months in the specified year.


[25495] Description


[25496] Gets the number of months in the year specified by the year and era parameters.


[25497] Return Value: The number of months in the specified year in the specified era. An integer that represents the year. An integer that represents the era.


[25498] GetYear


[25499] [C#] public override int GetYear(DateTime time);


[25500] [C++] public: int GetYear(DateTime time);


[25501] [VB] Overrides Public Function GetYear(ByVal time As DateTime) As Integer


[25502] [JScript] public override function GetYear(time: DateTime): int;


[25503] Description


[25504] Gets the year in the specified System.DateTime.


[25505] Return Value: An integer between 1 and 9999 that represents the year in time. The System.DateTime instance to read.


[25506] IsLeapDay


[25507] [C#] public override bool IsLeapDay(int year, int month, int day, int era);


[25508] [C++] public: bool IsLeapDay(int year, int month, int day, int era);


[25509] [VB] Overrides Public Function IsLeapDay(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal era As Integer) As Boolean


[25510] [JScript] public override function IsLeapDay(year: int, month: int, day: int, era: int): Boolean; Determines whether the specified day is a leap day.


[25511] Description


[25512] Determines whether the date specified by the year, month, day, and era parameters is a leap day.


[25513] Return Value: true if the specified day is a leap day; otherwise, false.


[25514] Unlike the Gregorian calendar, the Julian calendar defines a leap year as a year that is evenly divisible by four with no exceptions; therefore, the calendar is inaccurate by one day every 128 years. For example, the year 1999 was not a leap year, but the year 2000 was. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the era.


[25515] IsLeapMonth


[25516] [C#] public override bool IsLeapMonth(int year, int month, int era);


[25517] [C++] public: bool IsLeapMonth(int year, int month, int era);


[25518] [VB] Overrides Public Function IsLeapMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Boolean


[25519] [JScript] public override function IsLeapMonth(year: int, month: int, era: int): Boolean; Determines whether the specified month is a leap month.


[25520] Description


[25521] Determines whether the month specified by the year, month, and era parameters is a leap month.


[25522] Return Value: This method always returns false, unless overridden by a derived class.


[25523] Unlike the Gregorian calendar, the Julian calendar defines a leap year as a year that is evenly divisible by four with no exceptions; therefore, the calendar is inaccurate by one day every 128 years. For example, the year 1999 was not a leap year, but the year 2000 was. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[25524] IsLeapYear


[25525] [C#] public override bool IsLeapYear(int year, int era);


[25526] [C++] public: bool IsLeapYear(int year, int era);


[25527] [VB] Overrides Public Function IsLeapYear(ByVal year As Integer, ByVal era As Integer) As Boolean


[25528] [JScript] public override function IsLeapYear(year: int, era: int): Boolean; Determines whether the specified year is a leap year.


[25529] Description


[25530] Determines whether the year specified by the year and era parameters is a leap year.


[25531] Return Value: true if the specified year is a leap year; otherwise, false.


[25532] Unlike the Gregorian calendar, the Julian calendar defines a leap year as a year that is evenly divisible by four with no exceptions; therefore, the calendar is inaccurate by one day every 128 years. For example, the year 1999 was not a leap year, but the year 2000 was. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the era.


[25533] ToDateTime


[25534] [C#] public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[25535] [C++] public: DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[25536] [VB] Overrides Public Function ToDateTime(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal era As Integer) As DateTime


[25537] [JScript] public override function ToDateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, era: int): DateTime; Returns a System.DateTime that is set to the specified date.


[25538] Description


[25539] Returns a System.DateTime that is set to the specified date and time in the specified era.


[25540] Return Value: The System.DateTime instance set to the specified date and time in the current era. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the hour. An integer that represents the minute. An integer that represents the second. An integer that represents the millisecond. An integer that represents the era.


[25541] ToFourDigitYear


[25542] [C#] public override int ToFourDigitYear(int year);


[25543] [C++] public: int ToFourDigitYear(int year);


[25544] [VB] Overrides Public Function ToFourDigitYear(ByVal year As Integer) As Integer


[25545] [JScript] public override function ToFourDigitYear(year: int): int;


[25546] Description


[25547] Converts the specified two-digit year to a four-digit year by using the System.Globalization.JulianCalendar.TwoDigitYearMax property to determine the appropriate century.


[25548] Return Value: An integer that contains the four-digit representation of year.


[25549] System.Globalization.JulianCalendar.TwoDigitYearMax is the last year in the 100-year range that can be represented by a two-digit year. The century is determined by finding the sole occurrence of the two-digit year within that 100-year range. For example, if System.Globalization.JulianCalendar.TwoDigitYearMax is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029. A two-digit integer that represents the year to convert.


[25550] KoreanCalendar class (System.Globalization)


[25551] ToString


[25552] Description


[25553] Represents the Korean calendar.


[25554] The Korean calendar works exactly like the Gregorian calendar, except that the year and era are different.


[25555] ToString


[25556] [C#] public const int KoreanEra;


[25557] [C++] public: const int KoreanEra;


[25558] [VB] Public Const KoreanEra As Integer


[25559] [JScript] public var KoreanEra: int;


[25560] Description


[25561] Represents the current era.


[25562] The System.Globalization.KoreanCalendar class recognizes only the current era. This field always returns 1.


[25563] KoreanCalendar


[25564] Example Syntax:


[25565] ToString


[25566] [C#] public KoreanCalendar( );


[25567] [C++] public: KoreanCalendar( );


[25568] [VB] Public Sub New( )


[25569] [JScript] public function KoreanCalendar( );


[25570] Description


[25571] Initializes a new instance of the System.Globalization.KoreanCalendar class.


[25572] Eras


[25573] ToString


[25574] [C#] public override int[ ] Eras {get;}


[25575] [C++] public: _property virtual int get_Eras( );


[25576] [VB] Overrides Public ReadOnly Property Eras As Integer ( )


[25577] [JScript] public function get Eras( ): int[ ];


[25578] Description


[25579] Gets the list of eras in the System.Globalization.KoreanCalendar.


[25580] The System.Globalization.KoreanCalendar class recognizes only the current era. This property always returns an array with only one element.


[25581] TwoDigitYearMax


[25582] ToString


[25583] [C#] public override int TwoDigitYearMax {get; set;}


[25584] [C++] public: _property virtual int get_TwoDigitYearMax( );public: _property virtual void set_TwoDigitYearMax(int);


[25585] [VB] Overrides Public Property TwoDigitYearMax As Integer


[25586] [JScript] public function get TwoDigitYearMax( ): int;public function set TwoDigitYearMax(int);


[25587] Description


[25588] Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.


[25589] This property allows a 2-digit year to be properly translated to a 4-digit year. For example, in the Gregorian calendar, if this property is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029.


[25590] AddMonths


[25591] [C#] public override DateTime AddMonths(DateTime time, int months);


[25592] [C++] public: DateTime AddMonths(DateTime time, int months);


[25593] [VB] Overrides Public Function AddMonths(ByVal time As DateTime, ByVal months As Integer) As DateTime


[25594] [JScript] public override function AddMonths(time: DateTime, months: int): DateTime;


[25595] Description


[25596] Returns a System.DateTime that is the specified number of months away from the specified System.DateTime.


[25597] Return Value: The System.DateTime that results from adding the specified number of months to the specified System.DateTime


[25598] The year part of the resulting System.DateTime is affected if the resulting month is beyond the last month of the current year. The day part of the resulting System.DateTime is also affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of months to add.


[25599] AddYears


[25600] [C#] public override DateTime AddYears(DateTime time, int years);


[25601] [C++] public: DateTime AddYears(DateTime time, int years);


[25602] [VB] Overrides Public Function AddYears(ByVal time As DateTime, ByVal years As Integer) As DateTime


[25603] [JScript] public override function AddYears(time: DateTime, years: int): DateTime;


[25604] Description


[25605] Returns a System.DateTime that is the specified number of years away from the specified System.DateTime.


[25606] Return Value: The System.DateTime that results from adding the specified number of years to the specified System.DateTime.


[25607] The day part of the resulting System.DateTime is affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of years to add.


[25608] GetDayOfMonth


[25609] [C#] public override int GetDayOfMonth(DateTime time);


[25610] [C++] public: int GetDayOfMonth(DateTime time);


[25611] [VB] Overrides Public Function GetDayOfMonth(ByVal time As DateTime) As Integer


[25612] [JScript] public override function GetDayOfMonth(time: DateTime): int;


[25613] Description


[25614] Gets the day of the month in the specified System.DateTime.


[25615] Return Value: An integer from 1 to 31 that represents the day of the month in time. The System.DateTime instance to read.


[25616] GetDayOfWeek


[25617] [C#] public override DayOfWeek GetDayOfWeek(DateTime time);


[25618] [C++] public: DayOfWeek GetDayOfWeek(DateTime time);


[25619] [VB] Overrides Public Function GetDayOfWeek(ByVal time As DateTime) As DayOfWeek


[25620] [JScript] public override function GetDayOfWeek(time: DateTime): DayOfWeek;


[25621] Description


[25622] Gets the day of the week in the specified System.DateTime.


[25623] Return Value: A System.DayOfWeek value that represents the day of the week in time.


[25624] The System.DayOfWeek values are Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday. The System.DateTime instance to read.


[25625] GetDayOfYear


[25626] [C#] public override int GetDayOfYear(DateTime time);


[25627] [C++] public: int GetDayOfYear(DateTime time);


[25628] [VB] Overrides Public Function GetDayOfYear(ByVal time As DateTime) As Integer


[25629] [JScript] public override function GetDayOfYear(time: DateTime): int;


[25630] Description


[25631] Gets the day of the year in the specified System.DateTime.


[25632] Return Value: An integer from 1 to 366 that represents the day of the year in time. The System.DateTime instance to read.


[25633] GetDaysInMonth


[25634] [C+] public override int GetDaysInMonth (int year, int month, int era);


[25635] [C++] public: int GetDaysInMonth(int year, int month, int era);


[25636] [VB] Overrides Public Function GetDaysInMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Integer


[25637] [JScript] public override function GetDaysInMonth(year: int, month: int, era: int): int; Gets the number of days in the specified month.


[25638] Description


[25639] Gets the number of days in the month specified by the year, month, and era parameters.


[25640] Return Value: The number of days in the specified month in the specified year in the specified era.


[25641] For example, this method might return 28 or 29 for February, month=2), depending on whether year is a leap year. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[25642] GetDaysInYear


[25643] [C#] public override int GetDaysInYear(int year, int era);


[25644] [C++] public: int GetDaysInYear(int year, int era);


[25645] [VB] Overrides Public Function GetDaysInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[25646] [JScript] public override function GetDaysInYear(year: int, era: int): int; Gets the number of days in the specified year.


[25647] Description


[25648] Gets the number of days in the year specified by the year and era parameters.


[25649] Return Value: The number of days in the specified year in the specified era. For example, this method might return 365 or 366, depending on whether year is a leap year. An integer that represents the year. An integer that represents the era.


[25650] GetEra


[25651] [C#] public override int GetEra(DateTime time);


[25652] [C++] public: int GetEra(DateTime time);


[25653] [VB] Overrides Public Function GetEra(ByVal time As DateTime) As Integer


[25654] [JScript] public override function GetEra(time: DateTime): int;


[25655] Description


[25656] Gets the era in the specified System.DateTime.


[25657] Return Value: An integer that represents the era in time.


[25658] The System.Globalization.KoreanCalendar class recognizes only the current era. The System.DateTime instance to read.


[25659] GetMonth


[25660] [C#] public override int GetMonth(DateTime time);


[25661] [C++] public: int GetMonth(DateTime time);


[25662] [VB] Overrides Public Function GetMonth(ByVal time As DateTime) As Integer


[25663] [JScript] public override function GetMonth(time: DateTime): int;


[25664] Description


[25665] Gets the month in the specified System.DateTime.


[25666] Return Value: An integer between 1 and 12 that represents the month in time. The System.DateTime instance to read.


[25667] GetMonthsInYear


[25668] [C#] public override int GetMonthsInYear(int year, int era);


[25669] [C++] public: int GetMonthsInYear(int year, int era);


[25670] [VB] Overrides Public Function GetMonthsInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[25671] [JScript] public override function GetMonthsInYear(year: int, era: int): int; Gets the number of months in the specified year.


[25672] Description


[25673] Gets the number of months in the year specified by the year and era parameters.


[25674] Return Value: The number of months in the specified year in the specified era. An integer that represents the year. An integer that represents the era.


[25675] GetYear


[25676] [C#] public override int GetYear(DateTime time);


[25677] [C++] public: int GetYear(DateTime time);


[25678] [VB] Overrides Public Function GetYear(ByVal time As DateTime) As Integer


[25679] [JScript] public override function GetYear(time: DateTime): int;


[25680] Description


[25681] Gets the year in the specified System.DateTime.


[25682] Return Value: An integer between 1 and 9999 that represents the year in time. The System.DateTime instance to read.


[25683] IsLeapDay


[25684] [C#] public override bool IsLeapDay(int year, int month, int day, int era);


[25685] [C++] public: bool IsLeapDay(int year, int month, int day, int era);


[25686] [VB] Overrides Public Function IsLeapDay(ByVal year As Integer, ByVal month


[25687] As Integer, ByVal day As Integer, ByVal era As Integer) As Boolean


[25688] [JScript] public override function IsLeapDay(year: int, month: int, day: int, era: int): Boolean; Determines whether the specified day is a leap day.


[25689] Description


[25690] Determines whether the date specified by the year, month, day, and era parameters is a leap day.


[25691] Return Value: true if the specified day is a leap day; otherwise, false.


[25692] Leap years in the Korean calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the era.


[25693] IsLeapMonth


[25694] [C#] public override bool IsLeapMonth(int year, int month, int era);


[25695] [C++] public: bool IsLeapMonth(int year, int month, int era);


[25696] [VB] Overrides Public Function IsLeapMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Boolean


[25697] [JScript] public override function IsLeapMonth(year: int, month: int, era: int): Boolean; Determines whether the specified month is a leap month.


[25698] Description


[25699] Determines whether the month specified by the year, month, and era parameters is a leap month.


[25700] Return Value: This method always returns false, unless overridden by a derived class.


[25701] Leap years in the Korean calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[25702] IsLeapYear


[25703] [C#] public override bool IsLeapYear(int year, int era);


[25704] [C++] public: bool IsLeapYear(int year, int era);


[25705] [VB] Overrides Public Function IsLeapYear(ByVal year As Integer, ByVal era As Integer) As Boolean


[25706] [JScript] public override function IsLeapYear(year: int, era: int): Boolean; Determines whether the specified year is a leap year.


[25707] Description


[25708] Determines whether the year specified by the year and era parameters is a leap year.


[25709] Return Value: true if the specified year is a leap year; otherwise, false.


[25710] Leap years in the Korean calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the era.


[25711] ToDateTime


[25712] [C#] public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[25713] [C++] public: DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[25714] [VB] Overrides Public Function ToDateTime(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal era As Integer) As DateTime


[25715] [JScript] public override function ToDateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, era: int): DateTime; Returns a System.DateTime that is set to the specified date.


[25716] Description


[25717] Returns a System.DateTime that is set to the specified date and time in the specified era.


[25718] Return Value: The System.DateTime instance set to the specified date and time in the current era. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the hour. An integer that represents the minute. An integer that represents the second. An integer that represents the millisecond. An integer that represents the era.


[25719] ToFourDigitYear


[25720] [C#] public override int ToFourDigitYear(int year);


[25721] [C++] public: int ToFourDigitYear(int year);


[25722] [VB] Overrides Public Function ToFourDigitYear(ByVal year As Integer) As Integer


[25723] [JScript] public override function ToFourDigitYear(year: int): int;


[25724] Description


[25725] Converts the specified two-digit year to a four-digit year by using the System.Globalization.KoreanCalendar.TwoDigitYearMax property to determine the appropriate century.


[25726] Return Value: An integer that contains the four-digit representation of year.


[25727] System.Globalization.KoreanCalendar.TwoDigitYearMax is the last year in the 100-year range that can be represented by a two-digit year. The century is determined by finding the sole occurrence of the two-digit year within that 100-year range. For example, if System.Globalization.KoreanCalendar.TwoDigitYearMax is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029. A two-digit integer that represents the year to convert.


[25728] NumberFormatInfo class (System.Globalization)


[25729] ToString


[25730] Description


[25731] Defines how numeric values are formatted and displayed, depending on the culture.


[25732] This class contains information, such as currency, decimal separators, and other numeric symbols. Numeric values are formatted using standard or custom patterns stored in the properties of a System.Globalization.NumberFormatInfo instance. To modify how a value is displayed, the System.Globalization.NumberFormatInfo instance must be writable so custom patterns can be saved in its properties.


[25733] NumberFormatInfo


[25734] Example Syntax:


[25735] ToString


[25736] [C#] public NumberFormatInfo( );


[25737] [C++] public: NumberFormatInfo( );


[25738] [VB] Public Sub New( )


[25739] [JScript] public function NumberFormatInfo( );


[25740] Description


[25741] Initializes a new writable instance of the System.Globalization.NumberFormatInfo class that is culture-independent (invariant).


[25742] The properties of the new instance can be modified if you want user-defined formatting.


[25743] CurrencyDecimalDigits


[25744] ToString


[25745] [C#] public int CurrencyDecimalDigits {get; set;}


[25746] [C++] public: _property int get_CurrencyDecimalDigits( ); public: _property void set_CurrencyDecimalDigits(int);


[25747] [VB] Public Property CurrencyDecimalDigits As Integer


[25748] [JScript] public function get CurrencyDecimalDigits( ): int; public function set CurrencyDecimalDigits(int);


[25749] Description


[25750] Indicates the number of decimal places to use in currency values.


[25751] CurrencyDecimalSeparator


[25752] ToString


[25753] [C#] public string CurrencyDecimalSeparator {get; set;}


[25754] [C++] public: _property String* get_CurrencyDecimalSeparator( ); public: _property void set_CurrencyDecimalSeparator(String*);


[25755] [VB] Public Property CurrencyDecimalSeparator As String


[25756] [JScript] public function get CurrencyDecimalSeparator( ): String; public function set CurrencyDecimalSeparator(String);


[25757] Description


[25758] Indicates the System.String to use as the decimal separator in currency values.


[25759] CurrencyGroupSeparator


[25760] ToString


[25761] [C#] public string CurrencyGroupSeparator {get; set;}


[25762] [C++] public: _property String* get_CurrencyGroupSeparator( ); public: _property void set_CurrencyGroupSeparator(String*);


[25763] [VB] Public Property CurrencyGroupSeparator As String


[25764] [JScript] public function get CurrencyGroupSeparator( ): String; public function set CurrencyGroupSeparator(String);


[25765] Description


[25766] Indicates the System.String that separates groups of digits to the left of the decimal in currency values.


[25767] CurrencyGroupSizes


[25768] ToString


[25769] [C#] public int[ ] CurrencyGroupSizes {get; set;}


[25770] [C++] public: _property int get_CurrencyGroupSizes( ); public: _property void set_CurrencyGroupSizes(int_gc[ ]);


[25771] [VB] Public Property CurrencyGroupSizes As Integer ( )


[25772] [JScript] public function get CurrencyGroupSizes( ): int[ ]; public function set CurrencyGroupSizes(int[ ]);


[25773] Description


[25774] Indicates the number of digits in each group to the left of the decimal in currency values.


[25775] Every element in the one-dimensional array must be an integer from 1 through 9. The last element can be 0.


[25776] CurrencyNegativePattern


[25777] ToString


[25778] [C#] public int CurrencyNegativePattern {get; set;}


[25779] [C++] public: _property int get_CurrencyNegativePattern( ); public: _property void set_CurrencyNegativePattern(int);


[25780] [VB] Public Property CurrencyNegativePattern As Integer


[25781] [JScript] public function get CurrencyNegativePattern( ): int; public function set CurrencyNegativePattern(int);


[25782] Description


[25783] Indicates the format pattern for negative currency values.


[25784] This property can have one of the values in the following table. The symbol “$” is the System.Globalization.NumberFormatInfo.CurrencySymbol, the symbol “−” is the System.Globalization.NumberFormatInfo.NegativeSign, and n is a number.


[25785] CurrencyPositivePattern


[25786] ToString


[25787] [C#] public int CurrencyPositivePattern {get; set;}


[25788] [C++] public: _property int get_CurrencyPositivePattern( ); public: _property void set_CurrencyPositivePattern(int);


[25789] [VB] Public Property CurrencyPositivePattern As Integer


[25790] [JScript] public function get CurrencyPositivePattern( ): int; public function set CurrencyPositivePattern(int);


[25791] Description


[25792] Indicates the format pattern for positive currency values.


[25793] This property can have one of the values in the following table. The symbol “$” is the System.Globalization.NumberFormatInfo.CurrencySymbol and n is a number.


[25794] CurrencySymbol


[25795] ToString


[25796] [C#] public string CurrencySymbol {get; set;}


[25797] [C++] public: _property String* get_CurrencySymbol( ); public: _property void set_CurrencySymbol(String*);


[25798] [VB] Public Property CurrencySymbol As String


[25799] [JScript] public function get CurrencySymbol( ): String; public function set CurrencySymbol(String);


[25800] Description


[25801] Indicates the System.String to use as the currency symbol.


[25802] CurrentInfo


[25803] ToString


[25804] [C#] public static NumberFormatInfo CurrentInfo {get;}


[25805] [C++] public: _property static NumberFormatInfo* get_CurrentInfo( );


[25806] [VB] Public Shared ReadOnly Property CurrentInfo As NumberFormatInfo


[25807] [JScript] public static function get CurrentInfo( ): NumberFormatInfo;


[25808] Description


[25809] Gets a read-only System.Globalization.NumberFormatInfo instance that formats values based on the current culture.


[25810] InvariantInfo


[25811] ToString


[25812] [C#] public static NumberFormatInfo InvariantInfo {get;}


[25813] [C++] public: _property static NumberFormatInfo* get_InvariantInfo( );


[25814] [VB] Public Shared ReadOnly Property InvariantInfo As NumberFormatInfo


[25815] [JScript] public static function get InvariantInfo( ): NumberFormatInfo;


[25816] Description


[25817] Gets the default read-only System.Globalization.NumberFormatInfo instance that is culture-independent (invariant).


[25818] This property does not change, regardless of the current culture.


[25819] IsReadOnly


[25820] ToString


[25821] [C#] public bool IsReadOnly {get;}


[25822] [C++] public: _property bool get_IsReadOnly( );


[25823] [VB] Public ReadOnly Property IsReadOnly As Boolean


[25824] [JScript] public function get IsReadOnly( ): Boolean;


[25825] Description


[25826] Gets a value indicating whether the System.Globalization.NumberFormatInfo is read-only.


[25827] NaNSymbol


[25828] ToString


[25829] [C#] public string NaNSymbol {get; set;}


[25830] [C++] public: _property String* get_NaNSymbol( ); public: _property void set_NaNSymbol(String*);


[25831] [VB] Public Property NaNSymbol As String


[25832] [JScript] public function get NaNSymbol( ): String; public function set NaNSymbol(String);


[25833] Description


[25834] Indicates the System.String that represents the IEEE NaN (not a number) value.


[25835] NegativeInfinitySymbol


[25836] ToString


[25837] [C#] public string NegativeInfinitySymbol {get; set;}


[25838] [C++] public: _property String* get_NegativeInfinitySymbol( ); public: _property void set_NegativeInfinitySymbol(String*);


[25839] [VB] Public Property NegativeInfinitySymbol As String


[25840] [JScript] public function get NegativeInfinitySymbol( ): String; public function set NegativeInfinitySymbol(String);


[25841] Description


[25842] Indicates the System.String that represents negative infinity.


[25843] NegativeSign


[25844] ToString


[25845] [C#] public string NegativeSign {get; set;}


[25846] [C++] public: _property String* get_NegativeSign( ); public: _property void set_NegativeSign(String*);


[25847] [VB] Public Property NegativeSign As String


[25848] [JScript] public function get NegativeSign( ): String; public function set NegativeSign(String);


[25849] Description


[25850] Indicates the System.String that denotes that the associated number is negative.


[25851] NumberDecimalDigits


[25852] ToString


[25853] [C#] public int NumberDecimalDigits {get; set; }


[25854] [C++] public: _property int get_NumberDecimalDigits( ); public: _property void set_NumberDecimalDigits(int);


[25855] [VB] Public Property NumberDecimalDigits As Integer


[25856] [JScript] public function get NumberDecimalDigits( ): int; public function set NumberDecimalDigits(int);


[25857] Description


[25858] Indicates the number of decimal places to use in numeric values.


[25859] NumberDecimalSeparator


[25860] ToString


[25861] [C#] public string NumberDecimalSeparator {get; set;}


[25862] [C++] public: _property String* get_NumberDecimalSeparator( ); public: _property void set_NumberDecimalSeparator(String*);


[25863] [VB] Public Property NumberDecimalSeparator As String


[25864] [JScript] public function get NumberDecimalSeparator( ): String; public function set NumberDecimalSeparator(String);


[25865] Description


[25866] Indicates the System.String to use as the decimal separator in numeric values.


[25867] NumberGroupSeparator


[25868] ToString


[25869] [C#] public string NumberGroupSeparator {get; set;}


[25870] [C++] public: _property String* get_NumberGroupSeparator( ); public: _property void set_NumberGroupSeparator(String*);


[25871] [VB] Public Property NumberGroupSeparator As String


[25872] [JScript] public function get NumberGroupSeparator( ): String; public function set NumberGroupSeparator(String);


[25873] Description


[25874] Indicates the System.String that separates groups of digits to the left of the decimal in numeric values.


[25875] NumberGroupSizes


[25876] ToString


[25877] [C#] public int[ ] NumberGroupSizes {get; set;}


[25878] [C++] public: _property int get_NumberGroupSizes( ); public: property void set_NumberGroupSizes(int_gc[ ]);


[25879] [VB] Public Property NumberGroupSizes As Integer ( )


[25880] [JScript] public function get NumberGroupSizes( ): int[ ]; public function set NumberGroupSizes(int[ ]);


[25881] Description


[25882] Indicates the number of digits in each group to the left of the decimal in numeric values.


[25883] Every element in the one-dimensional array must be an integer from 1 through 9. The last element can be 0.


[25884] NumberNegativePattern


[25885] ToString


[25886] [C#] public int NumberNegativePattern {get; set;}


[25887] [C++] public: _property int get_NumberNegativePattern( ); public: property void set_NumberNegativePattern(int);


[25888] [VB] Public Property NumberNegativePattern As Integer


[25889] [JScript] public function get NumberNegativePattern( ): int; public function set NumberNegativePattern(int);


[25890] Description


[25891] Indicates the format pattern for negative numeric values.


[25892] This property can have one of the values in the following table. The symbol “−” is the System.Globalization.NumberFormatInfo.NegativeSign and n is a number.


[25893] PercentDecimalDigits


[25894] ToString


[25895] [C#] public int PercentDecimalDigits {get; set;}


[25896] [C++] public: _property int get_PercentDecimalDigits( ); public: _property void set_PercentDecimalDigits(int);


[25897] [VB] Public Property PercentDecimalDigits As Integer


[25898] [JScript] public function get PercentDecimalDigits( ): int; public function set PercentDecimalDigits(int);


[25899] Description


[25900] Indicates the number of decimal places to use in percent values.


[25901] PercentDecimalSeparator


[25902] ToString


[25903] [C#] public string PercentDecimalSeparator {get; set;}


[25904] [C++] public: _property String* get_PercentDecimalSeparator( ); public: _property void set_PercentDecimalSeparator(String*);


[25905] [VB] Public Property PercentDecimalSeparator As String


[25906] [JScript] public function get PercentDecimalSeparator( ): String; public function set PercentDecimalSeparator(String);


[25907] Description


[25908] Indicates the System.String to use as the decimal separator in percent values.


[25909] PercentGroupSeparator


[25910] ToString


[25911] [C#] public string PercentGroupSeparator {get; set;}


[25912] [C++] public: _property String* get_PercentGroupSeparator( ); public: _property void set_PercentGroupSeparator(String*);


[25913] [VB] Public Property PercentGroupSeparator As String


[25914] [JScript] public function get PercentGroupSeparator( ): String; public function set PercentGroupSeparator(String);


[25915] Description


[25916] Indicates the System.String that separates groups of digits to the left of the decimal in percent values.


[25917] PercentGroupSizes


[25918] ToString


[25919] [C#] public int[ ] PercentGroupSizes {get; set;}


[25920] [C++] public: _property int get_PercentGroupSizes( ); public: _property void set_PercentGroupSizes(int_gc[ ]);


[25921] [VB] Public Property PercentGroupSizes As Integer ( )


[25922] [JScript] public function get PercentGroupSizes( ): int[ ]; public function set PercentGroupSizes(int[ ]);


[25923] Description


[25924] Indicates the number of digits in each group to the left of the decimal in percent values.


[25925] Every element in the one-dimensional array must be an integer from 1 through 9. The last element can be 0.


[25926] PercentNegativePattern


[25927] ToString


[25928] [C#] public int PercentNegativePattern {get; set; }


[25929] [C++] public: _property int get_PercentNegativePattern( ); public: _property void set_PercentNegativePattern(int);


[25930] [VB] Public Property PercentNegativePattern As Integer


[25931] [JScript] public function get PercentNegativePattern( ): int; public function set PercentNegativePattern(int);


[25932] Description


[25933] Indicates the format pattern for negative percent values.


[25934] This property can have one of the values in the following table. The symbol “%” is the System.Globalization.NumberFormatInfo.PercentSymbol, the symbol “−” is the System.Globalization.NumberFormatInfo.NegativeSign, and n is a number.


[25935] PercentPositivePattern


[25936] ToString


[25937] [C#] public int PercentPositivePattern {get; set;}


[25938] [C++] public: _property int get_PercentPositivePattern( ); public: _property void set_PercentPositivePattern(int);


[25939] [VB] Public Property PercentPositivePattern As Integer


[25940] [JScript] public function get PercentPositivePattern( ): int; public function set PercentPositivePattern(int);


[25941] Description


[25942] Indicates the format pattern for positive percent values.


[25943] This property can have one of the values in the following table. The symbol “%” is the System.Globalization.NumberFormatInfo.PercentSymbol and n is a number.


[25944] PercentSymbol


[25945] ToString


[25946] [C#] public string PercentSymbol {get; set;}


[25947] [C++] public: _property String* get_PercentSymbol( ); public: _property void set_PercentSymbol(String*);


[25948] [VB] Public Property PercentSymbol As String


[25949] [JScript] public function get_PercentSymbol( ): String; public function set PercentSymbol(String);


[25950] Description


[25951] Indicates the System.String to use as the percent symbol.


[25952] PerMilleSymbol


[25953] ToString


[25954] [C#] public string PerMilleSymbol {get; set;}


[25955] [C++] public: _property String* get_PerMilleSymbol( ); public: _property void set_PerMilleSymbol(String*);


[25956] [VB] Public Property PerMilleSymbol As String


[25957] [JScript] public function get PerMilleSymbol( ): String; public function set PerMilleSymbol(String);


[25958] Description


[25959] Indicates the System.String to use as the per mille symbol.


[25960] PositiveInfinitySymbol


[25961] ToString


[25962] [C#] public string PositiveInfinitySymbol {get; set;}


[25963] [C++] public: _property String* get_PositiveInfinitySymbol( ); public: _property void set_PositiveInfinitySymbol(String*);


[25964] [VB] Public Property PositiveInfinitySymbol As String


[25965] [JScript] public function get PositiveInfinitySymbol( ): String; public function set PositiveInfinitySymbol(String);


[25966] Description


[25967] Indicates the System.String that represents positive infinity.


[25968] PositiveSign


[25969] ToString


[25970] [C#] public string PositiveSign {get; set;}


[25971] [C++] public: _property String* get_PositiveSign( ); public: _property void set_PositiveSign(String*);


[25972] [VB] Public Property PositiveSign As String


[25973] [JScript] public function get PositiveSign( ): String; public function set PositiveSign(String);


[25974] Description


[25975] Indicates the System.String that denotes that the associated number is positive.


[25976] This property is used only for parsing numeric strings, not for formatting.


[25977] Clone


[25978] [C#] public object Clone( );


[25979] [C++] public: _sealed Object* Clone( );


[25980] [VB] NotOverridable Public Function Clone( ) As Object


[25981] [JScript] public function Clone( ): Object;


[25982] Description


[25983] Creates a shallow copy of the System.Globalization.NumberFormatInfo instance.


[25984] Return Value: A new System.Globalization.NumberFormatInfo instance copied from the original System.Globalization.NumberFormatInfo instance.


[25985] The clone is writable even if the original instance is read-only; therefore, the properties of the clone can be modified with user-defined patterns.


[25986] GetFormat


[25987] [C#] public object GetFormat(Type formatType);


[25988] [C++] public: _sealed Object* GetFormat(Type* formatType);


[25989] [VB] NotOverridable Public Function GetFormat(ByVal formatType As Type) As Object


[25990] [JScript] public function GetFormat(formatType: Type): Object;


[25991] Description


[25992] Gets an object of the specified type that provides a number formatting service.


[25993] Return Value: The current instance of the System.Globalization.NumberFormatInfo class, if formatType is the same as the type of the current instance; otherwise, null.


[25994] The Format(String, IFormatProvider) methods supported by the base data types invoke this method when the current instance is passed as the System.IFormatProvider parameter. This method implements System.IFormatProvider.GetFormat(System.Type). The System.Type of the required formatting service.


[25995] GetInstance


[25996] [C#] public static NumberFormatInfo GetInstance(IFormatProvider formatProvider);


[25997] [C++] public: static NumberFormatInfo* GetInstance(IFormatProvider* formatProvider);


[25998] [VB] Public Shared Function GetInstance(ByVal formatProvider As IFormatProvider) As NumberFormatInfo


[25999] [JScript] public static function GetInstance(formatProvider: IFormatProvider): NumberFormatInfo;


[26000] Description


[26001] Gets the System.Globalization.NumberFormatInfo instance associated with the specified System.IFormatProvider.


[26002] Return Value: The System.Globalization.NumberFormatInfo instance associated with the specified System.IFormatProvider.


[26003] This method uses the System.IFormatProvider.GetFormat(System.Type) method of formatProvider using System.Globalization.NumberFormatInfo as the Type parameter. If formatProvider is null or if System.IFormatProvider.GetFormat(System.Type) returns null, this method returns System.Globalization.NumberFormatInfo.CurrentInfo. The System.IFormatProvider used to get the System.Globalization.NumberFormatInfo instance.


[26004] ReadOnly


[26005] [C#] public static NumberFormatInfo ReadOnly(NumberFormatInfo nfi);


[26006] [C++] public: static NumberFormatInfo* ReadOnly(NumberFormatInfo* nfi);


[26007] [VB] Public Shared Function ReadOnly(ByVal nfi As NumberFormatInfo) As NumberFormatInfo


[26008] [JScript] public static function ReadOnly(nfi: NumberFormatInfo): NumberFormatInfo;


[26009] Description


[26010] Returns a read-only System.Globalization.NumberFormatInfo wrapper.


[26011] Return Value: A read-only System.Globalization.NumberFormatInfo wrapper around nfi.


[26012] This wrapper prevents any modifications to nfi. The System.Globalization.NumberFormatInfo to wrap.


[26013] NumberStyles enumeration (System.Globalization)


[26014] ToString


[26015] Description


[26016] Determines the styles permitted in numerical string arguments that are passed to the Parse methods of the numeric base type classes.


[26017] The symbols to use for currency symbol, thousands separator, decimal point indicator, and leading sign are specified by System.Globalization.NumberFormatInfo.


[26018] ToString


[26019] [C#] public const NumberStyles AllowCurrencySymbol;


[26020] [C++] public: const NumberStyles AllowCurrencySymbol;


[26021] [VB] Public Const AllowCurrencySymbol As NumberStyles


[26022] [JScript] public var AllowCurrencySymbol: NumberStyles;


[26023] Description


[26024] Indicates that a currency symbol is allowed. Valid currency symbols are determined by the System.Globalization.NumberFormatInfo.CurrencySymbol property of System.Globalization.NumberFormatInfo.


[26025] ToString


[26026] [C#] public const NumberStyles AllowDecimalPoint;


[26027] [C++] public: const NumberStyles AllowDecimalPoint;


[26028] [VB] Public Const AllowDecimalPoint As NumberStyles


[26029] [JScript] public var AllowDecimalPoint: NumberStyles;


[26030] Description


[26031] Indicates that a decimal point is allowed. Valid decimal point characters are determined by the System.Globalization.NumberFormatInfo.NumberDecimalSeparator and System.Globalization.NumberFormatInfo.CurrencyDecimalSeparator properties of System.Globalization.NumberFormatInfo.


[26032] ToString


[26033] [C#] public const NumberStyles AllowExponent;


[26034] [C++] public: const NumberStyles AllowExponent;


[26035] [VB] Public Const AllowExponent As NumberStyles


[26036] [JScript] public var AllowExponent: NumberStyles;


[26037] Description


[26038] Indicates that an exponent is allowed. The format of the number should be {e|E} [{+|−}] n, where n is a number.


[26039] ToString


[26040] [C#] public const NumberStyles AllowHexSpecifier;


[26041] [C++] public: const NumberStyles AllowHexSpecifier;


[26042] [VB] Public Const AllowHexSpecifier As NumberStyles


[26043] [JScript] public var AllowHexSpecifier: NumberStyles;


[26044] Description


[26045] Indicates that hexadecimal numbers are allowed.


[26046] ToString


[26047] [C#] public const NumberStyles AllowLeadingSign;


[26048] [C++] public: const NumberStyles AllowLeadingSign;


[26049] [VB] Public Const AllowLeadingSign As NumberStyles


[26050] [JScript] public var AllowLeadingSign: NumberStyles;


[26051] Description


[26052] Indicates that a leading sign is allowed. Valid leading sign characters are determined by the System.Globalization.NumberFormatInfo.PositiveSign and System.Globalization.NumberFormatInfo.NegativeSign properties of System.Globalization.NumberFormatInfo.


[26053] ToString


[26054] [C#] public const NumberStyles AllowLeadingWhite;


[26055] [C++] public: const NumberStyles AllowLeadingWhite;


[26056] [VB] Public Const AllowLeadingWhite As NumberStyles


[26057] [JScript] public var AllowLeadingWhite: NumberStyles;


[26058] Description


[26059] Indicates that a leading white-space character is allowed. Valid white-space characters have the Unicode values U+0009, U+000A, U+000B, U+000C, U+000D, and U+0020.


[26060] ToString


[26061] [C#] public const NumberStyles AllowParentheses;


[26062] [C++] public: const NumberStyles AllowParentheses;


[26063] [VB] Public Const AllowParentheses As NumberStyles


[26064] [JScript] public var AllowParentheses: NumberStyles;


[26065] Description


[26066] Indicates that parentheses are allowed.


[26067] ToString


[26068] [C#] public const NumberStyles AllowThousands;


[26069] [C++] public: const NumberStyles AllowThousands;


[26070] [VB] Public Const AllowThousands As NumberStyles


[26071] [JScript] public var AllowThousands: NumberStyles;


[26072] Description


[26073] Indicates that group separators are allowed; for instance, separating the hundreds from the thousands. Valid group separator characters are determined by the System.Globalization.NumberFormatInfo.NumberGroupSeparator and System.Globalization.NumberFormatInfo.CurrencyGroupSeparator properties of System.Globalization.NumberFormatInfo and the number of digits in each group is determined by the System.Globalization.NumberFormatInfo.NumberGroupSizes and System.Globalization.NumberFormatInfo.CurrencyGroupSizes properties of System.Globalization.NumberFormatInfo.


[26074] ToString


[26075] [C#] public const NumberStyles AllowTrailingSign;


[26076] [C++] public: const NumberStyles AllowTrailingSign;


[26077] [VB] Public Const AllowTrailingSign As NumberStyles


[26078] [JScript] public var AllowTrailingSign: NumberStyles;


[26079] Description


[26080] Indicates that a trailing sign is allowed. Valid trailing sign characters are determined by the System.Globalization.NumberFormatInfo.PositiveSign and System.Globalization.NumberFormatInfo.NegativeSign properties of System.Globalization.NumberFormatInfo.


[26081] ToString


[26082] [C#] public const NumberStyles AllowTrailingWhite;


[26083] [C++] public: const NumberStyles AllowTrailingWhite;


[26084] [VB] Public Const AllowTrailingWhite As NumberStyles


[26085] [JScript] public var AllowTrailingWhite: NumberStyles;


[26086] Description


[26087] Indicates that trailing white-space character is allowed. Valid white-space characters have the Unicode values U+0009, U+000A, U+000B, U+000C, U+000D, and U+0020.


[26088] ToString


[26089] [C#] public const NumberStyles Any;


[26090] [C++] public: const NumberStyles Any;


[26091] [VB] Public Const Any As NumberStyles


[26092] [JScript] public var Any: NumberStyles;


[26093] Description


[26094] Indicates that all the AllowXXX bit styles are used. This is a composite number style.


[26095] ToString


[26096] [C#] public const NumberStyles Currency;


[26097] [C++] public: const NumberStyles Currency;


[26098] [VB] Public Const Currency As NumberStyles


[26099] [JScript] public var Currency: NumberStyles;


[26100] Description


[26101] Indicates that all styles except AllowExponent are used. This is a composite number style.


[26102] ToString


[26103] [C#] public const NumberStyles Float;


[26104] [C++] public: const NumberStyles Float;


[26105] [VB] Public Const Float As NumberStyles


[26106] [JScript] public var Float: NumberStyles;


[26107] Description


[26108] Indicates that the AllowLeadingWhite, AllowTrailingWhite, AllowLeadingSign, AllowDecimalPoint, and AllowExponent styles are used. This is a composite number style.


[26109] ToString


[26110] [C#] public const NumberStyles HexNumber;


[26111] [C++] public: const NumberStyles HexNumber;


[26112] [VB] Public Const HexNumber As NumberStyles


[26113] [JScript] public var HexNumber: NumberStyles;


[26114] Description


[26115] Indicates that the AllowLeadingWhite, AllowTrailingWhite, and AllowHexSpecifier styles are used. This is a composite number style.


[26116] ToString


[26117] [C#] public const NumberStyles Integer;


[26118] [C++] public: const NumberStyles Integer;


[26119] [VB] Public Const Integer As NumberStyles


[26120] [JScript] public var Integer: NumberStyles;


[26121] Description


[26122] Indicates that the AllowLeadingWhite, AllowTrailingWhite, and AllowLeadingSign styles are used. This is a composite number style.


[26123] ToString


[26124] [C#] public const NumberStyles None;


[26125] [C++] public: const NumberStyles None;


[26126] [VB] Public Const None As NumberStyles


[26127] [JScript] public var None: NumberStyles;


[26128] Description


[26129] Indicates that none of the bit styles are allowed.


[26130] ToString


[26131] [C#] public const NumberStyles Number;


[26132] [C++] public: const NumberStyles Number;


[26133] [VB] Public Const Number As NumberStyles


[26134] [JScript] public var Number: NumberStyles;


[26135] Description


[26136] Indicates that the AllowLeadingWhite, AllowTrailingWhite, AllowLeadingSign, AllowTrailingSign, AllowDecimalPoint, and AllowThousands styles are used. This is a composite number style.


[26137] RegionInfo class (System.Globalization)


[26138] ToString


[26139] Description


[26140] Contains information about the country/region.


[26141] In contrast to System.Globalization.CultureInfo, System.Globalization.RegionInfo does not represent preferences of the user and does not depend on the user's language or culture.


[26142] RegionInfo


[26143] Example Syntax:


[26144] ToString


[26145] [C#] public RegionInfo(int culture);


[26146] [C++] public: RegionInfo(int culture);


[26147] [VB] Public Sub New(ByVal culture As Integer)


[26148] [JScript] public function RegionInfo(culture: int);


[26149] Description


[26150] Initializes a new instance of the System.Globalization.RegionInfo class based on the country/region associated with the specified culture identifier.


[26151] The culture identifier is mapped to the corresponding National Language Support (NLS) locale identifier. A list of culture identifiers is provided in the System.Globalization.CultureInfo class topic. A culture identifier.


[26152] RegionInfo


[26153] Example Syntax:


[26154] ToString


[26155] [C#] public RegionInfo(string name);


[26156] [C++] public: RegionInfo(String* name);


[26157] [VB] Public Sub New(ByVal name As String)


[26158] [JScript] public function RegionInfo(name: String); Initializes a new instance of the System.Globalization.RegionInfo class.


[26159] Description


[26160] Initializes a new instance of the System.Globalization.RegionInfo class based on the country/region specified by name.


[26161] The System.Globalization.RegionInfo name is one of the two-letter codes defined in ISO 3166 for country/region. A System.String containing one of the two-letter codes defined in ISO 3166 for country/region.


[26162] CurrencySymbol


[26163] ToString


[26164] [C#] public virtual string CurrencySymbol {get;}


[26165] [C++] public: _property virtual String* get_CurrencySymbol( );


[26166] [VB] Overridable Public ReadOnly Property CurrencySymbol As String


[26167] [JScript] public function get CurrencySymbol( ): String;


[26168] Description


[26169] Gets the currency symbol associated with the country/region.


[26170] For example, the currency symbol for the United States is “$”.


[26171] CurrentRegion


[26172] ToString


[26173] [C#] public static RegionInfo CurrentRegion {get;}


[26174] [C++] public: _property static RegionInfo* get_CurrentRegion( );


[26175] [VB] Public Shared ReadOnly Property CurrentRegion As RegionInfo


[26176] [JScript] public static function get CurrentRegion( ): RegionInfo;


[26177] Description


[26178] Gets the System.Globalization.RegionInfo instance that represents the country/region used by the current thread.


[26179] The value of this property is based on the locale selected through the Regional and Language Options (or Regional Options or Regional Settings) applet in Windows Control Panel. However, that information can change during the life of the System.AppDomain. The System.Globalization.RegionInfo class does not detect changes in the system settings automatically.


[26180] DisplayName


[26181] ToString


[26182] [C#] public virtual string DisplayName {get;}


[26183] [C++] public: _property virtual String* get_DisplayName( );


[26184] [VB] Overridable Public ReadOnly Property DisplayName As String


[26185] [JScript] public function get DisplayName( ): String;


[26186] Description


[26187] Gets the full name of the country/region in the localized language of the .NET Framework.


[26188] For example, if the .NET Framework English version is installed, the United States is “United States”. If the NET Framework Spanish version is installed, regardless of the language that the system is set to display, the country/region name is displayed in Spanish; therefore, the United States is “Estados Unidos”.


[26189] EnglishName


[26190] ToString


[26191] [C#] public virtual string EnglishName {get;}


[26192] [C++] public: _property virtual String* get_EnglishName( );


[26193] [VB] Overridable Public ReadOnly Property EnglishName As String


[26194] [JScript] public function get EnglishName( ): String;


[26195] Description


[26196] Gets the full name of the country/region in English.


[26197] For example, the United States is “United States”.


[26198] IsMetric


[26199] ToString


[26200] [C#] public virtual bool IsMetric {get;}


[26201] [C++] public: _property virtual bool get_IsMetric( );


[26202] [VB] Overridable Public ReadOnly Property IsMetric As Boolean


[26203] [JScript] public function get IsMetric( ): Boolean;


[26204] Description


[26205] Gets a value indicating whether the country/region uses the metric system for measurements.


[26206] ISOCurrencySymbol


[26207] ToString


[26208] [C#] public virtual string ISOCurrencySymbol {get;}


[26209] [C++] public: _property virtual String* get_ISOCurrencySymbol( );


[26210] [VB] Overridable Public ReadOnly Property ISOCurrencySymbol As String


[26211] [JScript] public function get ISOCurrencySymbol( ): String;


[26212] Description


[26213] Gets the three-character ISO 4217 currency symbol associated with the country/region.


[26214] A list of the three-character ISO 4217 currency symbols is provided in the System.Globalization.RegionInfo class topic. For example, the ISO 4217 currency symbol for the United States dollar is “USD”.


[26215] Name


[26216] ToString


[26217] [C#] public virtual string Name {get;}


[26218] [C++] public: _property virtual String* get_Name( );


[26219] [VB] Overridable Public ReadOnly Property Name As String


[26220] [JScript] public function get Name( ): String;


[26221] Description


[26222] Gets the two-letter code defined in ISO 3166 for the country/region.


[26223] The System.Globalization.RegionInfo name is one of the two-letter codes defined in ISO 3166 for country/region. For example, the two-letter code for United States is “US”.


[26224] ThreeLetterISORegionName


[26225] ToString


[26226] [C#] public virtual string ThreeLetterISORegionName {get;}


[26227] [C++] public: _property virtual String* get_ThreeLetterISORegionName( );


[26228] [VB] Overridable Public ReadOnly Property ThreeLetterISORegionName As String


[26229] [JScript] public function get ThreeLetterISORegionName( ): String;


[26230] Description


[26231] Gets the three-letter code defined in ISO 3166 for the country/region.


[26232] The System.Globalization.RegionInfo.ThreeLetterISORegionName property contains one of the three-letter codes defined in ISO 3166 for country/region. For example, the three-letter code for United States is “USA”.


[26233] ThreeLetterWindowsRegionName


[26234] ToString


[26235] [C#] public virtual string ThreeLetterWindowsRegionName {get;}


[26236] [C++] public: _property virtual String* get_ThreeLetterWindowsRegionName( );


[26237] [VB] Overridable Public ReadOnly Property ThreeLetterWindowsRegionName As String


[26238] [JScript] public function get ThreeLetterWindowsRegionName( ): String;


[26239] Description


[26240] Gets the Windows version of the three-letter code for the country/region of this System.Globalization.RegionInfo.


[26241] For example, the three-letter code for United States is “USA”.


[26242] TwoLetterISORegionName


[26243] ToString


[26244] [C#] public virtual string TwoLetterISORegionName {get;}


[26245] [C++] public: _property virtual String* get_TwoLetterISORegionName( );


[26246] [VB] Overridable Public ReadOnly Property TwoLetterISORegionName As String


[26247] [JScript] public function get TwoLetterISORegionName( ): String;


[26248] Description


[26249] Gets the two-letter code defined in ISO 3166 for the country/region.


[26250] The System.Globalization.RegionInfo name is one of the two-letter codes defined in ISO 3166 for country/region. For example, the two-letter code for United States is “US”.


[26251] Equals


[26252] [C#] public override bool Equals(object value);


[26253] [C++] public: bool Equals(Object* value);


[26254] [VB] Overrides Public Function Equals(ByVal value As Object) As Boolean


[26255] [JScript] public override function Equals(value: Object): Boolean;


[26256] Description


[26257] Determines whether the specified System.Object is the same instance as the current System.Globalization.RegionInfo instance.


[26258] Return Value: true if the specified System.Object is the same instance as the current System.Globalization.RegionInfo instance; otherwise, false.


[26259] This method overrides System.Object.Equals(System.Object). The System.Object to compare with the current System.Globalization.RegionInfo instance.


[26260] GetHashCode


[26261] [C#] public override int GetHashCode( );


[26262] [C++] public: int GetHashCode( );


[26263] [VB] Overrides Public Function GetHashCode( ) As Integer


[26264] [JScript] public override function GetHashCode( ): int;


[26265] Description


[26266] Serves as a hash function for the current System.Globalization.RegionInfo instance, suitable for use in hashing algorithms and data structures, such as a hash table.


[26267] Return Value: A hash code for the current System.Globalization.RegionInfo instance.


[26268] This method overrides System.Object.GetHashCode.


[26269] ToString


[26270] [C#] public override string ToString( );


[26271] [C++] public: String* ToString( );


[26272] [VB] Overrides Public Function ToString( ) As String


[26273] [JScript] public override function ToString( ): String;


[26274] Description


[26275] Returns a System.String containing the name of the current System.Globalization.RegionInfo instance, which is one of the three-letter country/region codes defined in ISO 3166.


[26276] Return Value: A System.String containing the name of the current System.Globalization.RegionInfo, which is one of the three-letter country/region codes defined in ISO 3166.


[26277] This method overrides System.Object.ToString.


[26278] SortKey class (System.Globalization)


[26279] ToString


[26280] Description


[26281] Maps strings to their sort keys.


[26282] Each character in a string is given several categories of sort weights, including script, alphabetic, case, and diacritic weights. A sort key serves as the repository of these weights for a particular string. For example, a sort key might contain a string of alphabetic weights, followed by a string of case weights, and so on.


[26283] KeyData


[26284] ToString


[26285] [C#] public virtual byte[ ] KeyData {get;}


[26286] [C++] public: _property virtual unsigned char get_KeyData( );


[26287] [VB] Overridable Public ReadOnly Property KeyData As Byte ( )


[26288] [JScript] public function get KeyData( ): Byte[ ];


[26289] Description


[26290] Gets the byte array representing the current System.Globalization.SortKey instance.


[26291] OriginalString


[26292] ToString


[26293] [C#] public virtual string OriginalString {get;}


[26294] [C++] public: _property virtual String* get_OriginalString( );


[26295] [VB] Overridable Public ReadOnly Property OriginalString As String


[26296] [JScript] public function get OriginalString( ): String;


[26297] Description


[26298] Gets the original string used to create the current System.Globalization.SortKey instance.


[26299] Compare


[26300] [C#] public static int Compare(SortKey sortkey1, SortKey sortkey2);


[26301] [C++] public: static int Compare(SortKey* sortkey1, SortKey* sortkey2);


[26302] [VB] Public Shared Function Compare(ByVal sortkey1 As SortKey, ByVal sortkey2 As SortKey) As Integer


[26303] [JScript] public static function Compare(sortkey1: SortKey, sortkey2: SortKey): int;


[26304] Description


[26305] Compares two sort keys.


[26306] Return Value: Value Condition Zero The two sort keys are equal. The first sort key to compare. The second sort key to compare.


[26307] Equals


[26308] [C#] public override bool Equals(object value);


[26309] [C++] public: bool Equals(Object* value);


[26310] [VB] Overrides Public Function Equals(ByVal value As Object) As Boolean


[26311] [JScript] public override function Equals(value: Object): Boolean;


[26312] Description


[26313] Determines whether the specified System.Object is the same instance as the current System.Globalization.SortKey.


[26314] Return Value: true if the specified System.Object is the same instance as the current System.Globalization.SortKey; otherwise, false.


[26315] This method overrides System.Object.Equals(System.Object). The System.Object to compare with the current System.Globalization.SortKey.


[26316] GetHashCode


[26317] [C#] public override int GetHashCode( );


[26318] [C++] public: int GetHashCode( );


[26319] [VB] Overrides Public Function GetHashCode( ) As Integer


[26320] [JScript] public override function GetHashCode( ): int;


[26321] Description


[26322] Serves as a hash function for the current System.Globalization.SortKey instance, suitable for use in hashing algorithms and data structures, such as a hash table.


[26323] Return Value: A hash code for the current System.Globalization.SortKey instance.


[26324] This method overrides System.Object.GetHashCode.


[26325] ToString


[26326] [C#] public override string ToString( );


[26327] [C++] public: String* ToString( );


[26328] [VB] Overrides Public Function ToString( ) As String


[26329] [JScript] public override function ToString( ): String;


[26330] Description


[26331] Returns a System.String that represents the current System.Globalization.SortKey instance.


[26332] Return Value: A System.String that represents the current System.Globalization.SortKey instance.


[26333] This method overrides System.Object.ToString.


[26334] StringInfo class (System.Globalization)


[26335] ToString


[26336] Description


[26337] Provides functionality to split a string into text elements and to iterate through those text elements.


[26338] The .NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org.


[26339] StringInfo


[26340] Example Syntax:


[26341] ToString


[26342] [C#] public StringInfo( );


[26343] [C++] public: StringInfo( );


[26344] [VB] Public Sub New( )


[26345] [JScript] public function StringInfo( );


[26346] GetNextTextElement


[26347] [C#] public static string GetNextTextElement(string str);


[26348] [C++] public: static String* GetNextTextElement(String* str);


[26349] [VB] Public Shared Function GetNextTextElement(ByVal str As String) As String


[26350] [JScript] public static function GetNextTextElement(str: String): String; Gets the first text element in a specified string.


[26351] Description


[26352] Gets the first text element in a specified string.


[26353] Return Value: A System.String containing the first text element in str.


[26354] The .NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org. The System.String to get the text element from.


[26355] GetNextTextElement


[26356] [C#] public static string GetNextTextElement(string str, int index);


[26357] [C++] public: static String* GetNextTextElement(String* str, int index);


[26358] [VB] Public Shared Function GetNextTextElement(ByVal str As String, ByVal index As Integer) As String


[26359] [JScript] public static function GetNextTextElement(str: String, index: int): String;


[26360] Description


[26361] Gets the text element at the specified index of the specified string.


[26362] Return Value: A System.String containing the text element at index of str.


[26363] The .NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org. The System.String to get the text element from. The index at which the text element starts.


[26364] GetTextElementEnumerator


[26365] [C#] public static TextElementEnumerator GetTextElementEnumerator(string str);


[26366] [C++] public: static TextElementEnumerator* GetTextElementEnumerator(String* str);


[26367] [VB] Public Shared Function GetTextElementEnumerator(ByVal str As String) As TextElementEnumerator


[26368] [JScript] public static function GetTextElementEnumerator(str: String): TextElementEnumerator; Returns an enumerator that can iterate through the text elements of a System.String.


[26369] Description


[26370] Returns an enumerator that can iterate through the text elements of the entire System.String.


[26371] Return Value: A System.Globalization.TextElementEnumerator for the entire System.String.


[26372] The .NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org. The System.String to iterate through.


[26373] GetTextElementEnumerator


[26374] [C#] public static TextElementEnumerator GetTextElementEnumerator(string str, int index);


[26375] [C++] public: static TextElementEnumerator* GetTextElementEnumerator(String* str, int index);


[26376] [VB] Public Shared Function GetTextElementEnumerator(ByVal str As String, ByVal index As Integer) As TextElementEnumerator


[26377] [JScript] public static function GetTextElementEnumerator(str: String, index: int): TextElementEnumerator;


[26378] Description


[26379] Returns an enumerator that can iterate through the text elements of the System.String starting at the specified index.


[26380] Return Value: A System.Globalization.TextElementEnumerator for the System.String starting at the specified index.


[26381] The .NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org. The System.String to iterate through. The index at which to start iterating.


[26382] ParseCombiningCharacters


[26383] [C#] public static int[ ] ParseCombiningCharacters(string str);


[26384] [C++] public: static int ParseCombiningCharacters(String* str) _gc[ ];


[26385] [VB] Public Shared Function ParseCombiningCharacters(ByVal str As String) As Integer( )


[26386] [JScript] public static function ParseCombiningCharacters(str: String): int[ ];


[26387] Description


[26388] Returns the indexes of each base character, high-surrogate, or control character within the specified string.


[26389] Return Value: An array of integers that contains the indexes of each base character, high-surrogate, or control character within the specified string.


[26390] The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. A high-surrogate is a Unicode code point in the range U+D800 through U+DBFF and a low-surrogate is a Unicode code point in the range U+DC00 through U+DFFF. The System.String to search.


[26391] TaiwanCalendar class (System.Globalization)


[26392] ToString


[26393] Description


[26394] Represents the Taiwanese calendar.


[26395] The Taiwanese calendar works exactly like the Gregorian calendar, except that the year and era are different.


[26396] TaiwanCalendar


[26397] Example Syntax:


[26398] ToString


[26399] [C#] public TaiwanCalendar( );


[26400] [C++] public: TaiwanCalendar( );


[26401] [VB] Public Sub New( )


[26402] [JScript] public function TaiwanCalendar( );


[26403] Description


[26404] Initializes a new instance of the System.Globalization.TaiwanCalendar class.


[26405] Eras


[26406] ToString


[26407] [C#] public override int[ ] Eras {get;}


[26408] [C++] public: 13 property virtual int get_Eras( );


[26409] [VB] Overrides Public ReadOnly Property Eras As Integer ( )


[26410] [JScript] public function get Eras( ) int[ ];


[26411] Description


[26412] Gets the list of eras in the System.Globalization.TaiwanCalendar.


[26413] The System.Globalization.TaiwanCalendar class recognizes only the current era. This property always returns an array with only one element.


[26414] TwoDigitYearMax


[26415] ToString


[26416] [C#] public override int TwoDigitYearMax {get; set;}


[26417] [C++] public: _property virtual int get_TwoDigitYearMax( );public: _property virtual void set_TwoDigitYearMax(int);


[26418] [VB] Overrides Public Property TwoDigitYearMax As Integer


[26419] [JScript] public function get TwoDigitYearMax( ): int;public function set TwoDigitYearMax(int);


[26420] Description


[26421] Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.


[26422] This property allows a 2-digit year to be properly translated to a 4-digit year. For example, in the Gregorian calendar, if this property is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029.


[26423] AddMonths


[26424] [C#] public override DateTime AddMonths(DateTime time, int months);


[26425] [C++] public: DateTime AddMonths(DateTime time, int months);


[26426] [VB] Overrides Public Function AddMonths(ByVal time As DateTime, ByVal months As Integer) As DateTime


[26427] [JScript] public override function AddMonths(time: DateTime, months: int): DateTime;


[26428] Description


[26429] Returns a System.DateTime that is the specified number of months away from the specified System.DateTime .


[26430] Return Value: The System.DateTime that results from adding the specified number of months to the specified System.DateTime .


[26431] The year part of the resulting System.DateTime is affected if the resulting month is beyond the last month of the current year. The day part of the resulting System.DateTime is also affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of months to add.


[26432] AddYears


[26433] [C#] public override DateTime AddYears(DateTime time, int years);


[26434] [C++] public: DateTime AddYears(DateTime time, int years);


[26435] [VB] Overrides Public Function AddYears(ByVal time As DateTime, ByVal years As Integer) As DateTime


[26436] [JScript] public override function AddYears(time: DateTime, years: int): DateTime;


[26437] Description


[26438] Returns a System.DateTime that is the specified number of years away from the specified System.DateTime.


[26439] Return Value: The System.DateTime that results from adding the specified number of years to the specified System.DateTime.


[26440] The day part of the resulting System.DateTime is affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of years to add.


[26441] GetDayOfMonth


[26442] [C#] public override int GetDayOfMonth (DateTime time);


[26443] [C++] public: int GetDayOfMonth(DateTime time);


[26444] [VB] Overrides Public Function GetDayOfMonth(ByVal time As DateTime) As Integer


[26445] [JScript] public override function GetDayOfMonth(time: DateTime): int;


[26446] Description


[26447] Gets the day of the month in the specified System.DateTime.


[26448] Return Value: An integer from 1 to 31 that represents the day of the month in time . The System.DateTime instance to read.


[26449] GetDayOfWeek


[26450] [C#] public override DayOfWeek GetDayOfWeek(DateTime time);


[26451] [C++] public: DayOfWeek GetDayOfWeek(DateTime time);


[26452] [VB] Overrides Public Function GetDayOfWeek(ByVal time As DateTime) As DayOfWeek


[26453] [JScript] public override function GetDayOfWeek(time: DateTime): DayOfWeek;


[26454] Description


[26455] Gets the day of the week in the specified System.DateTime.


[26456] Return Value: A System.DayOfWeek value that represents the day of the week in time.


[26457] The System.DayOfWeek values are Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday. The System.DateTime instance to read.


[26458] GetDayOfYear


[26459] [C#] public override int GetDayOfYear(DateTime time);


[26460] [C++] public: int GetDayOfYear(DateTime time);


[26461] [VB] Overrides Public Function GetDayOfYear(ByVal time As DateTime) As Integer


[26462] [JScript] public override function GetDayOfYear(time: DateTime): int;


[26463] Description


[26464] Gets the day of the year in the specified System.DateTime.


[26465] Return Value: An integer from 1 to 366 that represents the day of the year in time The System.DateTime instance to read.


[26466] GetDaysInMonth


[26467] [C#] public override int GetDaysInMonth(int year, int month, int era);


[26468] [C++] public: int GetDaysInMonth(int year, int month, int era);


[26469] [VB] Overrides Public Function GetDaysInMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Integer


[26470] [JScript] public override function GetDaysInMonth(year: int, month: int, era: int): int; Gets the number of days in the specified month.


[26471] Description


[26472] Gets the number of days in the month specified by the year, month, and era parameters.


[26473] Return Value: The number of days in the specified month in the specified year in the specified era.


[26474] For example, this method might return 28 or 29 for February ( month=2), depending on whether year is a leap year. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[26475] GetDaysInYear


[26476] [C#] public override int GetDaysInYear(int year, int era);


[26477] [C++] public: int GetDaysInYear(int year, int era);


[26478] [VB] Overrides Public Function GetDaysInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[26479] [JScript] public override function GetDaysInYear(year: int, era: int): int; Gets the number of days in the specified year.


[26480] Description


[26481] Gets the number of days in the year specified by the year and era parameters.


[26482] Return Value: The number of days in the specified year in the specified era.


[26483] For example, this method might return 365 or 366, depending on whether year is a leap year. An integer that represents the year. An integer that represents the era.


[26484] GetEra


[26485] [C#] public override it GetEra(DateTime time);


[26486] [C++] public: int GetEra(DateTime time);


[26487] [VB] Overrides Public Function GetEra(ByVal time As DateTime) As Integer


[26488] [JScript] public override function GetEra(time: DateTime): int;


[26489] Description


[26490] Gets the era in the specified System.DateTime.


[26491] Return Value: An integer that represents the era in time.


[26492] The System.Globalization.TaiwanCalendar class recognizes only the current era. The System.DateTime instance to read.


[26493] GetMonth


[26494] [C#] public override int GetMonth(DateTime time);


[26495] [C++] public: int GetMonth(DateTime time);


[26496] [VB] Overrides Public Function GetMonth(ByVal time As DateTime) As Integer


[26497] [JScript] public override function GetMonth(time: DateTime): int;


[26498] Description


[26499] Gets the month in the specified System.DateTime .


[26500] Return Value: An integer between 1 and 12 that represents the month in time. The System.DateTime instance to read.


[26501] GetMonthsInYear


[26502] [C#] public override int GetMonthsInYear(int year, int era);


[26503] [C++] public: int GetMonthsInYear(int year, int era);


[26504] [VB] Overrides Public Function GetMonthsInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[26505] [JScript] public override function GetMonthsInYear(year: int, era: int): int; Gets the number of months in the specified year.


[26506] Description


[26507] Gets the number of months in the year specified by the year and era parameters.


[26508] Return Value: The number of months in the specified year in the specified era. An integer that represents the year. An integer that represents the era.


[26509] GetYear


[26510] [C#] public override int GetYear(DateTime time);


[26511] [C++] public: int GetYear(DateTime time);


[26512] [VB] Overrides Public Function GetYear(ByVal time As DateTime) As Integer


[26513] [JScript] public override function GetYear(time: DateTime): int;


[26514] Description


[26515] Gets the year in the specified System.DateTime.


[26516] Return Value: An integer between 1 and 9999 that represents the year in time. The System.DateTime instance to read.


[26517] IsLeapDay


[26518] [C#] public override bool IsLeapDay(int year, int month, int day, int era);


[26519] [C++] public: bool IsLeapDay(int year, int month, int day, int era);


[26520] [VB] Overrides Public Function IsLeapDay(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal era As Integer) As Boolean


[26521] [JScript] public override function IsLeapDay(year: int, month: int, day: int, era: int): Boolean; Determines whether the specified day is a leap day.


[26522] Description


[26523] Determines whether the date specified by the year, month , day, and era parameters is a leap day.


[26524] Return Value: true if the specified day is a leap day; otherwise, false.


[26525] Leap years in the Taiwanese calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the era.


[26526] IsLeapMonth


[26527] [C#] public override bool IsLeapMonth(int year, int month, int era);


[26528] [C++] public: bool IsLeapMonth(int year, int month, int era);


[26529] [VB] Overrides Public Function IsLeapMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Boolean


[26530] [JScript] public override function IsLeapMonth(year: int, month: int, era: int): Boolean; Determines whether the specified month is a leap month.


[26531] Description


[26532] Determines whether the month specified by the year, month, and era parameters is a leap month.


[26533] Return Value: This method always returns false, unless overridden by a derived class.


[26534] Leap years in the Taiwanese calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[26535] IsLeapYear


[26536] [C#] public override bool IsLeapYear(int year, int era);


[26537] [C++] public: bool IsLeapYear(int year, int era);


[26538] [VB] Overrides Public Function IsLeapYear(ByVal year As Integer, ByVal era As Integer) As Boolean


[26539] [JScript] public override function IsLeapYear(year: int, era: int): Boolean; Determines whether the specified year is a leap year.


[26540] Description


[26541] Determines whether the year specified by the year and era parameters is a leap year.


[26542] Return Value: true if the specified year is a leap year; otherwise, false.


[26543] Leap years in the Taiwanese calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the era.


[26544] ToDateTime


[26545] [C#] public override DateTime ToDateTime(int year, int month, int day, int hour, lo int minute, int second, int millisecond, int era);


[26546] [C++] public: DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[26547] [VB] Overrides Public Function ToDateTime(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal era As Integer) As DateTime


[26548] [JScript] public override function ToDateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, era: int); DateTime; Returns a System.DateTime that is set to the specified date.


[26549] Description


[26550] Returns a System.DateTime that is set to the specified date and time in the specified era.


[26551] Return Value: The System.DateTime instance set to the specified date and time in the current era. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the hour. An integer that represents the minute. An integer that represents the second. An integer that represents the millisecond. An integer that represents the era.


[26552] ToFourDigitYear


[26553] [C#] public override int ToFourDigitYear(int year);


[26554] [C++] public: int ToFourDigitYear(int year);


[26555] [VB] Overrides Public Function ToFourDigitYear(ByVal year As Integer) As Integer


[26556] [JScript] public override function ToFourDigitYear(year: int): int;


[26557] Description


[26558] Converts the specified two-digit year to a four-digit year by using the System.Globalization.TaiwanCalendar.TwoDigitYearMax property to determine the appropriate century.


[26559] Return Value: An integer that contains the four-digit representation of year.


[26560] This method implements System.Globalization.Calendar.ToFourDigitYear(System.Int32). A two-digit integer that represents the year to convert.


[26561] TextElementEnumerator class (System. Globalization)


[26562] ToString


[26563] Description


[26564] Enumerates the text elements of a System.String.


[26565] The NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org.


[26566] Current


[26567] ToString


[26568] [C#] public object Current {get;}


[26569] [C++] public: _Property Object* get_Current( );


[26570] [VB] Public ReadOnly Property Current As Object


[26571] [JScript] public function get Current( ): Object;


[26572] Description


[26573] Gets the current text element in the System.String.


[26574] The NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org.


[26575] ElementIndex


[26576] ToString


[26577] [C#] public int ElementIndex {get;}


[26578] [C++] public: _property int get_ElementIndex( );


[26579] [VB] Public ReadOnly Property ElementIndex As Integer


[26580] [JScript] public function get ElementIndex( ): int;


[26581] Description


[26582] Gets the index of the text element that the enumerator is currently positioned over.


[26583] The NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org.


[26584] GetTextElement


[26585] [C#] public string GetTextElement( );


[26586] [C++] public: String* GetTextElement( );


[26587] [VB] Public Function GetTextElement( ) As String


[26588] [JScript] public function GetTextElement( ): String;


[26589] Description


[26590] Gets the current text element in the System.String.


[26591] Return Value: A System.String instance containing the current text element in the System.String.


[26592] The NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org.


[26593] MoveNext


[26594] [C#] public bool MoveNext( );


[26595] [C++] public: _sealed bool MoveNext( );


[26596] [VB] NotOverridable Public Function MoveNext( ) As Boolean


[26597] [JScript] public function MoveNext( ): Boolean;


[26598] Description


[26599] Advances the enumerator to the next text element of the System.String.


[26600] Return Value. true if the enumerator was successfully advanced to the next text element; false if the enumerator has passed the end of the System.String.


[26601] The .NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org.


[26602] Reset


[26603] [C#] public void Reset( );


[26604] [C++] public: _sealed void Reset( );


[26605] [VB] NotOverridable Public Sub Reset( )


[26606] [JScript] public function Reset( );


[26607] Description


[26608] Sets the enumerator to its initial position, which is before the first text element in the System.String.


[26609] The .NET Framework defines a text element as a unit of text that is displayed as a single character; that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character. For more information on surrogate pairs and combining character sequences, see The Unicode Standard at http://www.unicode.org.


[26610] TextInfo class (System.Globalization)


[26611] ToString


[26612] Description


[26613] Defines properties and behaviors, such as casing, that are specific to a writing system.


[26614] A writing system is the collection of scripts and orthographic rules required to represent a language as text.


[26615] ANSICodePage ToString


[26616] [C#] public virtual int ANSICodePage {get;}


[26617] [C++] public: _property virtual int get_ANSICodePage( );


[26618] [VB] Overridable Public ReadOnly Property ANSICodePage As Integer


[26619] [JScript] public function get ANSICodePageo: int;


[26620] Description


[26621] Gets the American National Standards Institute (ANSI) code page used by the writing system represented by the System.Globalization.TextInfo instance.


[26622] EBCDICCodePage


[26623] ToString


[26624] [C#] public virtual int EBCDICCodePage {get; }


[26625] [C++] public: _property virtual int get_EBCDICCodePage( );


[26626] [VB] Overridable Public ReadOnly Property EBCDICCodePage As Integer


[26627] [JScript] public function get EBCDICCodePage( ): int;


[26628] Description


[26629] Gets the Extended Binary Coded Decimal Interchange Code (EBCDIC) code page used by the writing system represented by the System.Globalization.TextInfo instance.


[26630] ListSeparator


[26631] ToString


[26632] [C#] public virtual string ListSeparator {get;}


[26633] [C++] public: _property virtual String* get_ListSeparator( );


[26634] [VB] Overridable Public ReadOnly Property ListSeparator As String


[26635] [JScript] public function get ListSeparator( ): String;


[26636] Description


[26637] Gets the System.String that separates items in a list.


[26638] The default for the invariant culture is “,”.


[26639] MacCodePage


[26640] ToString


[26641] [C#] public virtual int MacCodePage {get;}


[26642] [C++] public: _property virtual int get_MacCodePage( );


[26643] [VB] Overridable Public ReadOnly Property MacCodePage As Integer


[26644] [JScript] public function get MacCodePage( ): int;


[26645] Description


[26646] Gets the Macintosh code page used by the writing system represented by the System.Globalization.TextInfo instance.


[26647] OEMCodePage


[26648] ToString


[26649] [C#] public virtual int OEMCodePage {get;}


[26650] [C++] public: _property virtual int get_OEMCodePage( );


[26651] [VB] Overridable Public ReadOnly Property OEMCodePage As Integer


[26652] [JScript] public function get OEMCodePageo: int;


[26653] Description


[26654] Gets the original equipment manufacturer (OEM) code page used by the writing system represented by the System.Globalization.TextInfo instance.


[26655] Equals


[26656] [C#] public override bool Equals(object obj);


[26657] [C++] public: bool Equals(Object* obj);


[26658] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[26659] [JScript] public override function Equals(obj: Object): Boolean;


[26660] Description


[26661] Determines whether the specified System.Object represents the same writing system as the current System.Globalization.TextInfo.


[26662] Return Value: true if the specified System.Object represents the same writing system as the current System.Globalization.TextInfo; otherwise, false.


[26663] This method overrides System.Object.Equals(System.Object). The System.Object to compare with the current System.Globalization.TextInfo.


[26664] GetHashCode


[26665] [C#] public override int GetHashCode( );


[26666] [C++] public: int GetHashCode( );


[26667] [VB] Overrides Public Function GetHashCode( ) As Integer


[26668] [JScript] public override function GetHashCode( ): int;


[26669] Description


[26670] Serves as a hash function for the current System.Globalization.TextInfo instance, suitable for use in hashing algorithms and data structures, such as a hash table.


[26671] Return Value: A hash code for the current System.Globalization.TextInfo instance.


[26672] This method overrides System.Object.GetHashCode.


[26673] IDeserializationCallback.OnDeserialization


[26674] [C#] void IDeserializationCallback.OnDeserialization(object sender);


[26675] [C++] void IDeserializationCallback::OnDeserialization(Object* sender);


[26676] [VB] Sub OnDeserialization(ByVal sender As Object) Implements IDeserializationCallback.OnDeserialization


[26677] [JScript] function IDeserializationCallback.OnDeserialization(sender: Object);


[26678] ToLower


[26679] [C#] public virtual char ToLower(char c);


[26680] [C++] public: virtual_wchar_t ToLower(_wchar_t c);


[26681] [VB] Overridable Public Function ToLower(ByVal c As Char) As Char


[26682] [JScript] public function ToLower(c: Char): Char; Converts the specified character or string to lowercase.


[26683] Description


[26684] Converts the specified character to lowercase.


[26685] Return Value: The specified character converted to lowercase.


[26686] Casing semantics depend on the culture in use. If using the invariant culture, the casing semantics are not culture-sensitive. If using a specific culture, the casing semantics are sensitive to that culture. The character to convert to lowercase.


[26687] ToLower


[26688] [C#] public virtual string ToLower(string str);


[26689] [C++] public: virtual String* ToLower(String* str);


[26690] [VB] Overridable Public Function ToLower(ByVal str As String) As String


[26691] [JScript] public function ToLower(str: String): String;


[26692] Description


[26693] Converts the specified string to lowercase.


[26694] Return Value: The specified string converted to lowercase.


[26695] The returned string might differ in length from the input string. For more information on casing, refer to the Unicode Technical Report #21 “Case Mappings,” published by the Unicode Consortium (http://www.unicode.org). The current implementation preserves the length of the string; however, this behavior is not guaranteed and could change in future implementations. The string to convert to lowercase.


[26696] ToString


[26697] [C#] public override string ToString( );


[26698] [C++] public: String* ToString( );


[26699] [VB] Overrides Public Function ToString( ) As String


[26700] [JScript] public override function ToString( ): String;


[26701] Description


[26702] Returns a System.String that represents the current System.Globalization.TextInfo instance.


[26703] Return Value: A System.String that represents the current System.Globalization.TextInfo instance.


[26704] This method overrides System.Object.ToString.


[26705] ToTitleCase


[26706] [C#] public string ToTitleCase( string str);


[26707] [C++] public: String* ToTitleCase(String* str);


[26708] [VB] Public Function ToTitleCase(ByVal str As String) As String


[26709] [JScript] public function ToTitleCase(str: String): String;


[26710] Description


[26711] Converts the specified string to titlecase.


[26712] Return Value: The specified string converted to titlecase.


[26713] Generally, title casing converts the first character of a word to uppercase and converts the rest of the letters to lowercase. Words that are selected for title casing is dependent on the language. The string to convert to titlecase.


[26714] ToUpper


[26715] [C#] public virtual char ToUpper(char c);


[26716] [C++] public: virtual _wchar_t ToUpper(_wchart c);


[26717] [VB] Overridable Public Function ToUpper(ByVal c As Char) As Char


[26718] [JScript] public function ToUpper(c: Char): Char; Converts the specified character or string to uppercase.


[26719] Description


[26720] Converts the specified character to uppercase.


[26721] Return Value: The specified character converted to uppercase.


[26722] Casing semantics depend on the culture in use. If using the invariant culture, the casing semantics are not culture-sensitive. If using a specific culture, the casing semantics are sensitive to that culture. The character to convert to uppercase.


[26723] ToUpper


[26724] [C#] public virtual string ToUpper(string str);


[26725] [C++] public: virtual String* ToUpper(String* str);


[26726] [VB] Overridable Public Function ToUpper(ByVal str As String) As String


[26727] [JScript] public function ToUpper(str: String): String;


[26728] Description


[26729] Converts the specified string to uppercase.


[26730] Return Value. The specified string converted to uppercase.


[26731] The returned string might differ in length from the input string. For more information on casing, refer to the Unicode Technical Report #21 “Case Mappings,” published by the Unicode Consortium (http://www.unicode.org). The current implementation preserves the length of the string; however this behavior might change in future versions of the .NET Framework. The string to convert to uppercase.


[26732] ThaiBuddhistCalendar class (System.Globalization)


[26733] ToUpper


[26734] Description


[26735] Represents the Thai Buddhist calendar.


[26736] The Thai Buddhist calendar works exactly like the Gregorian calendar, except that the year and era are different.


[26737] ToUpper


[26738] [C#] public const int ThaiBuddhistEra;


[26739] [C++] public: const int ThaiBuddhistEra;


[26740] [VB] Public Const ThaiBuddhistEra As Integer


[26741] [JScript] public var ThaiBuddhistEra: int;


[26742] Description


[26743] Represents the current era.


[26744] The System.Globalization.ThaiBuddhistCalendar class recognizes only the current era. This field always returns 1.


[26745] ThaiBuddhistCalendar


[26746] Example Syntax:


[26747] ToUpper


[26748] [C#] public ThaiBuddhistCalendar( );


[26749] [C++] public: ThaiBuddhistCalendar( );


[26750] [VB] Public Sub New( )


[26751] [JScript] public function ThaiBuddhistCalendar( );


[26752] Description


[26753] Initializes a new instance of the System.Globalization.ThaiBuddhistCalendar class.


[26754] Eras


[26755] ToUpper


[26756] [C#] public override int[ ] Eras {get;}


[26757] [C++] public: _property virtual int get_Eras( );


[26758] [VB] Overrides Public ReadOnly Property Eras As Integer ( )


[26759] [JScript] public function get Eras( ): int[ ];


[26760] Description


[26761] Gets the list of eras in the System.Globalization.ThaiBuddhistCalendar.


[26762] The System.Globalization.ThaiBuddhistCalendar class recognizes only the current era. This property always returns an array with only one element.


[26763] TwoDigitYearMax


[26764] ToUpper


[26765] [C#] public override int TwoDigitYearMax {get; set;}


[26766] [C++] public: _property virtual int get_TwoDigitYearMax( );public: _property virtual void set_TwoDigitYearMax(int);


[26767] [VB] Overrides Public Property TwoDigitYearMax As Integer


[26768] [JScript] public function get TwoDigitYearMax( ): int;public function set TwoDigitYearMax(int);


[26769] Description Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.


[26770] This property allows a 2-digit year to be properly translated to a 4-digit year. For example, in the Gregorian calendar, if this property is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029.


[26771] AddMonths


[26772] [C#] public override DateTime AddMonths(DateTime time, int months);


[26773] [C++] public: DateTime AddMonths(DateTime time, int months);


[26774] [VB] Overrides Public Function AddMonths(ByVal time As DateTime, ByVal months As Integer) As DateTime


[26775] [JScript] public override function AddMonths(time: DateTime, months: int): DateTime;


[26776] Description


[26777] Returns a System.DateTime that is the specified number of months away from the specified System.DateTime.


[26778] Return Value: The System.DateTime that results from adding the specified number of months to the specified System.DateTime.


[26779] The year part of the resulting System.DateTime is affected if the resulting month is beyond the last month of the current year. The day part of the resulting System.DateTime is also affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of months to add.


[26780] AddYears


[26781] [C#] public override DateTime AddYears(DateTime time, int years);


[26782] [C++] public: DateTime AddYears(DateTime time, int years);


[26783] [VB] Overrides Public Function AddYears(ByVal time As DateTime, ByVal years As Integer) As DateTime


[26784] [JScript] public override function AddYears(time: DateTime, years: int) DateTime;


[26785] Description


[26786] Returns a System.DateTime that is the specified number of years away from the specified System.DateTime.


[26787] Return Value: The System.DateTime that results from adding the specified number of years to the specified System.DateTime.


[26788] The day part of the resulting System.DateTime is affected if the resulting day is not a valid day in the resulting month of the resulting year; it is changed to the last valid day in the resulting month of the resulting year. The time-of-day part of the resulting System.DateTime remains the same as the specified System.DateTime. The System.DateTime instance to add. The number of years to add.


[26789] GetDayOfMonth


[26790] [C#] public override int GetDayOfMonth(DateTime time);


[26791] [C++] public: int GetDayOfMonth(DateTime time);


[26792] [VB] Overrides Public Function GetDayOfMonth(ByVal time As DateTime) As Integer


[26793] [JScript] public override function GetDayOfMonth(time: DateTime): int;


[26794] Description


[26795] Gets the day of the month in the specified System.DateTime.


[26796] Return Value: An integer from 1 to 31 that represents the day of the month in time The System.DateTime instance to read.


[26797] GetDayOfWeek


[26798] [C#] public override DayOfWeek GetDayOfWeek(DateTime time);


[26799] [C++] public: DayOfWeek GetDayOfWeek(DateTime time);


[26800] [VB] Overrides Public Function GetDayOfWeek(ByVal time As DateTime) As DayOfWeek


[26801] [JScript] public override function GetDayOfWeek(time: DateTime): DayOfWeek;


[26802] Description


[26803] Gets the day of the week in the specified System.DateTime


[26804] Return Value: A System.DayOfWeek value that represents the day of the week in time.


[26805] The System.DayOfWeek values are Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday. The System.DateTime instance to read.


[26806] GetDayOfYear


[26807] [C#] public override int GetDayOfYear(DateTime time);


[26808] [C++] public: int GetDayOfYear(DateTime time);


[26809] [VB] Overrides Public Function GetDayOfYear(ByVal time As DateTime) As Integer


[26810] [JScript] public override function GetDayOfYear(time: DateTime): it;


[26811] Description


[26812] Gets the day of the year in the specified System.DateTime.


[26813] Return Value: An integer from 1 to 366 that represents the day of the year in time. The System.DateTime instance to read.


[26814] GetDaysInMonth


[26815] [C#] public override int GetDaysInMonth (int year, int month, int era);


[26816] [C++] public: int GetDaysInMonth(int year, int month, int era);


[26817] [VB] Overrides Public Function GetDaysInMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Integer


[26818] [JScript] public override function GetDaysInMonth(year: int, month: int, era: int):int; Gets the number of days in the specified month.


[26819] Description


[26820] Gets the number of days in the month specified by the year, month, and era parameters.


[26821] Return Value: The number of days in the specified month in the specified year in the specified era.


[26822] For example, this method might return 28 or 29 for February ( month=2), depending on whether year is a leap year. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[26823] GetDaysInYear


[26824] [C#] public override int GetDaysInYear(int year, int era);


[26825] [C++] public: int GetDaysInYear(int year, int era);


[26826] [VB] Overrides Public Function GetDaysInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[26827] [JScript] public override function GetDaysInYear(year: int, era: int): int; Gets the number of days in the specified year.


[26828] Description


[26829] Gets the number of days in the year specified by the year and era parameters.


[26830] Return Value: The number of days in the specified year in the specified era.


[26831] For example, this method might return 365 or 366, depending on whether year is a leap year. An integer that represents the year. An integer that represents the era.


[26832] GetEra


[26833] [C#] public override int GetEra(DateTime time);


[26834] [C++] public: int GetEra(DateTime time);


[26835] [VB] Overrides Public Function GetEra(ByVal time As DateTime) As Integer


[26836] [JScript] public override function GetEra(time: DateTime): int;


[26837] Description


[26838] Gets the era in the specified System.DateTime


[26839] Return Value: An integer that represents the era in time.


[26840] The System.Globalization.ThaiBuddhistCalendar class recognizes only the current era. The System.DateTime instance to read.


[26841] GetMonth


[26842] [C#] public override int GetMonth(DateTime time);


[26843] [C++] public: int GetMonth(DateTime time);


[26844] [VB] Overrides Public Function GetMonth(ByVal time As DateTime) As Integer


[26845] [JScript] public override function GetMonth(time: DateTime): int;


[26846] Description


[26847] Gets the month in the specified System.DateTime.


[26848] Return Value: An integer between 1 and 12 that represents the month in time. The System.DateTime instance to read.


[26849] GetMonthsInYear


[26850] [C#] public override int GetMonthsInYear(int year, int era);


[26851] [C++] public: int GetMonthsInYear(int year, int era);


[26852] [VB] Overrides Public Function GetMonthsInYear(ByVal year As Integer, ByVal era As Integer) As Integer


[26853] [JScript] public override function GetMonthsInYear(year: int, era: int): int; Gets the number of months in the specified year.


[26854] Description


[26855] Gets the number of months in the year specified by the year and era parameters.


[26856] Return Value: The number of months in the specified year in the specified era. An integer that represents the year. An integer that represents the era.


[26857] GetYear


[26858] [C#] public override int GetYear(DateTime time);


[26859] [C++] public: int GetYear(DateTime time);


[26860] [VB] Overrides Public Function GetYear(ByVal time As DateTime) As Integer


[26861] [JScript] public override function GetYear(time: DateTime): int;


[26862] Description


[26863] Gets the year in the specified System.DateTime.


[26864] Return Value: An integer between 1 and 9999 that represents the year in time. The System.DateTime instance to read.


[26865] IsLeapDay


[26866] [C#] public override bool IsLeapDay(int year, int month, int day, int era);


[26867] [C++] public: bool IsLeapDay(int year, int month, int day, int era);


[26868] [VB] Overrides Public Function IsLeapDay(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal era As Integer) As Boolean


[26869] [JScript] public override function IsLeapDay(year: int, month: int, day: int, era: int): Boolean; Determines whether the specified day is a leap day.


[26870] Description


[26871] Determines whether the date specified by the year, month, day, and era parameters is a leap day.


[26872] Return Value: true if the specified day is a leap day; otherwise, false .


[26873] Leap years in the Thai Buddhist calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the era.


[26874] IsLeapMonth


[26875] [C#] public override bool IsLeapMonth(int year, int month, int era);


[26876] [C++] public: bool IsLeapMonth(int year, int month, int era);


[26877] [VB] Overrides Public Function IsLeapMonth(ByVal year As Integer, ByVal month As Integer, ByVal era As Integer) As Boolean


[26878] [JScript] public override function IsLeapMonth(year: int, month: int, era: int): Boolean; Determines whether the specified month is a leap month.


[26879] Description


[26880] Determines whether the month specified by the year, month, and era parameters is a leap month.


[26881] Return Value: This method always returns false, unless overridden by a derived class.


[26882] Leap years in the Thai Buddhist calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the month. An integer that represents the era.


[26883] IsLeapYear


[26884] [C#] public override bool IsLeapYear(int year, int era);


[26885] [C++] public: bool IsLeapYear(int year, int era);


[26886] [VB] Overrides Public Function IsLeapYear(ByVal year As Integer, ByVal era As Integer) As Boolean


[26887] [JScript] public override function IsLeapYear(year: int, era: int): Boolean; Determines whether the specified year is a leap year.


[26888] Description


[26889] Determines whether the year specified by the year and era parameters is a leap year.


[26890] Return Value: true if the specified year is a leap year; otherwise, false.


[26891] Leap years in the Thai Buddhist calendar correspond to the same leap years in the Gregorian calendar. A common year has 365 days and a leap year has 366 days. An integer that represents the year. An integer that represents the era.


[26892] ToDateTime


[26893] [C#] public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[26894] [C++] public: DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);


[26895] [VB] Overrides Public Function ToDateTime(ByVal year As Integer, ByVal month As Integer, ByVal day As Integer, ByVal hour As Integer, ByVal minute As Integer, ByVal second As Integer, ByVal millisecond As Integer, ByVal era As Integer) As DateTime


[26896] [JScript] public override function ToDateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, era: int): DateTime; Returns a System.DateTime that is set to the specified date.


[26897] Description


[26898] Returns a System.DateTime that is set to the specified date and time in the specified era.


[26899] Return Value: The System.DateTime instance set to the specified date and time in the current era. An integer that represents the year. An integer that represents the month. An integer that represents the day. An integer that represents the hour. An integer that represents the minute. An integer that represents the second. An integer that represents the millisecond. An integer that represents the era.


[26900] ToFourDigitYear


[26901] [C#] public override int ToFourDigitYear(int year);


[26902] [C++] public: int ToFourDigitYear(int year);


[26903] [VB] Overrides Public Function ToFourDigitYear(ByVal year As Integer) As Integer


[26904] [JScript] public override function ToFourDigitYear(year: int): int;


[26905] Description


[26906] Converts the specified two-digit year to a four-digit year by using the System.Globalization.ThaiBuddhistCalendar.TwoDigitYearMax property to determine the appropriate century.


[26907] Return Value: An integer that contains the four-digit representation of year.


[26908] System.Globalization.ThaiBuddhistCalendar.TwoDigitYearMax is the last year in the 100-year range that can be represented by a two-digit year. The century is determined by finding the sole occurrence of the two-digit year within that 100-year range. For example, if System.Globalization.ThaiBuddhistCalendar.TwoDigitYearMax is set to 2029, the 100-year range is from 1930 to 2029; therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029. A two-digit integer that represents the year to convert.


[26909] UnicodeCategory enumeration (System.Globalization)


[26910] ToString


[26911] Description


[26912] Defines the Unicode category of a character.


[26913] The Unicode Standard defines the following: A surrogate pair is a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high-surrogate and the second is a low-surrogate. A high-surrogate is a Unicode code point in the range U+D800 through U+DBFF and a low-surrogate is a Unicode code point in the range U+DCOO through U+DFFF.


[26914] ToString


[26915] [C#] public const UnicodeCategory ClosePunctuation;


[26916] [C++] public: const UnicodeCategory ClosePunctuation;


[26917] [VB] Public Const ClosePunctuation As UnicodeCategory


[26918] [JScript] public var ClosePunctuation: UnicodeCategory;


[26919] Description


[26920] Indicates that the character is the closing character of one of the paired punctuation marks, such as parentheses, square brackets, and braces. The value is 21.


[26921] ToString


[26922] [C#] public const UnicodeCategory ConnectorPunctuation;


[26923] [C++] public: const UnicodeCategory ConnectorPunctuation;


[26924] [VB] Public Const ConnectorPunctuation As UnicodeCategory


[26925] [JScript] public var ConnectorPunctuation: UnicodeCategory;


[26926] Description


[26927] Indicates that the character is a connector punctuation, which connects two characters. The value is 18.


[26928] ToString


[26929] [C#] public const UnicodeCategory Control;


[26930] [C++] public: const UnicodeCategory Control;


[26931] [VB] Public Const Control As UnicodeCategory


[26932] [JScript] public var Control: UnicodeCategory;


[26933] Description


[26934] Indicates that the character is a control code, whose Unicode value is U+007F or in the range U+0000 through U+001F or U+0080 through U+009F.


[26935] The value is 14.


[26936] ToString


[26937] [C#] public const UnicodeCategory CurrencySymbol;


[26938] [C++] public: const UnicodeCategory CurrencySymbol;


[26939] [VB] Public Const CurrencySymbol As UnicodeCategory


[26940] [JScript] public var CurrencySymbol: UnicodeCategory;


[26941] Description


[26942] Indicates that the character is a currency symbol. The value is 26.


[26943] ToString


[26944] [C#] public const UnicodeCategory DashPunctuation;


[26945] [C++] public: const UnicodeCategory DashPunctuation;


[26946] [VB] Public Const DashPunctuation As UnicodeCategory


[26947] [JScript] public var DashPunctuation: UnicodeCategory;


[26948] Description


[26949] Indicates that the character is a dash or a hyphen. The value is 19.


[26950] ToString


[26951] [C#] public const UnicodeCategory DecimalDigitNumber;


[26952] [C++] public: const UnicodeCategory DecimalDigitNumber;


[26953] [VB] Public Const DecimalDigitNumber As UnicodeCategory


[26954] [JScript] public var DecimalDigitNumber: UnicodeCategory;


[26955] Description


[26956] Indicates that the character is a decimal digit; that is, in the range 0 through 9. The value is 8.


[26957] ToString


[26958] [C#] public const UnicodeCategory EnclosingMark;


[26959] [C++] public: const UnicodeCategory EnclosingMark;


[26960] [VB] Public Const EnclosingMark As UnicodeCategory


[26961] [JScript] public var EnclosingMark: UnicodeCategory;


[26962] Description


[26963] Indicates that the character is an enclosing mark, which is a nonspacing combining character that surrounds all previous characters up to and including a base character. The value is 7.


[26964] ToString


[26965] [C#] public const UnicodeCategory FinalQuotePunctuation;


[26966] [C++] public: const UnicodeCategory FinalQuotePunctuation;


[26967] [VB] Public Const FinalQuotePunctuation As UnicodeCategory


[26968] [JScript] public var FinalQuotePunctuation: UnicodeCategory;


[26969] Description


[26970] Indicates that the character is a closing or final quotation mark. The value is 23.


[26971] ToString


[26972] [C#] public const UnicodeCategory Format;


[26973] [C++] public: const UnicodeCategory Format;


[26974] [VB] Public Const Format As UnicodeCategory


[26975] [JScript] public var Format: UnicodeCategory;


[26976] Description


[26977] Indicates that the character is a format character, which is not normally rendered but affects the layout of text or the operation of text processes. The value is 15.


[26978] ToString


[26979] [C#] public const UnicodeCategory IntialQuotePunctuation;


[26980] [C++] public: const UnicodeCategory InitialQuotePunctuation;


[26981] [VB] Public Const InitialQuotePunctuation As UnicodeCategory


[26982] [JScript] public var InitialQuotePunctuation: UnicodeCategory;


[26983] Description


[26984] Indicates that the character is an opening or initial quotation mark. The value is 22.


[26985] ToString


[26986] [C#] public const UnicodeCategory LetterNumber;


[26987] [C++] public: const UnicodeCategory LetterNumber;


[26988] [VB] Public Const LetterNumber As UnicodeCategory


[26989] [JScript] public var LetterNumber: UnicodeCategory;


[26990] Description


[26991] Indicates that the character is a number represented by a letter, instead of a decimal digit; for example, the Roman numeral for five, which is ‘V’. The value is 9.


[26992] ToString


[26993] [C#] public const UnicodeCategory LineSeparator;


[26994] [C++] public: const UnicodeCategory LineSeparator;


[26995] [VB] Public Const LineSeparator As UnicodeCategory


[26996] [JScript] public var LineSeparator: UnicodeCategory;


[26997] Description


[26998] Indicates that the character is used to separate lines of text. The value is 12.


[26999] ToString


[27000] [C#] public const UnicodeCategory LowercaseLetter;


[27001] [C++] public: const UnicodeCategory LowercaseLetter;


[27002] [VB] Public Const LowercaseLetter As UnicodeCategory


[27003] [JScript] public var LowercaseLetter: UnicodeCategory;


[27004] Description


[27005] Indicates that the character is a lowercase letter. The value is 1.


[27006] ToString


[27007] [C#] public const UnicodeCategory MathSymbol;


[27008] [C++] public: const UnicodeCategory MathSymbol;


[27009] [VB] Public Const MathSymbol As UnicodeCategory


[27010] [JScript] public var MathSymbol: UnicodeCategory;


[27011] Description


[27012] Indicates that the character is a mathematical symbol, such as ‘+’ or ‘=’. The value is 25.


[27013] ToString


[27014] [C#] public const UnicodeCategory ModifierLetter;


[27015] [C++] public: const UnicodeCategory ModifierLetter;


[27016] [VB] Public Const ModifierLetter As UnicodeCategory


[27017] [JScript] public var ModifierLetter: UnicodeCategory;


[27018] Description


[27019] Indicates that the character is a modifier letter, which is free-standing spacing character that indicates modifications of a preceding letter. The value is 3.


[27020] ToString


[27021] [C#] public const UnicodeCategory ModifierSymbol;


[27022] [C++] public: const UnicodeCategory ModifierSymbol;


[27023] [VB] Public Const ModifierSymbol As UnicodeCategory


[27024] [JScript] public var ModifierSymbol: UnicodeCategory;


[27025] Description


[27026] Indicates that the character is a modifier symbol, which indicates modifications of surrounding characters; for example, the fraction slash indicates that the number to the left is the numerator and the number to the right is the denominator. The value is 27.


[27027] ToString


[27028] [C#] public const UnicodeCategory NonSpacingMark;


[27029] [C++] public: const UnicodeCategory NonSpacingMark;


[27030] [VB] Public Const NonSpacingMark As UnicodeCategory


[27031] [JScript] public var NonSpacingMark: UnicodeCategory;


[27032] Description


[27033] Indicates that the character is a nonspacing character, which indicates modifications of a base character. The value is 5.


[27034] ToString


[27035] [C#] public const UnicodeCategory OpenPunctuation;


[27036] [C++] public: const UnicodeCategory OpenPunctuation;


[27037] [VB] Public Const OpenPunctuation As UnicodeCategory


[27038] [JScript] public var OpenPunctuation: UnicodeCategory;


[27039] Description


[27040] Indicates that the character is the opening character of one of the paired punctuation marks, such as parentheses, square brackets, and braces. The value is 20.


[27041] ToString


[27042] [C#] public const UnicodeCategory OtherLetter;


[27043] [C++] public: const UnicodeCategory OtherLetter;


[27044] [VB] Public Const OtherLetter As UnicodeCategory


[27045] [JScript] public var OtherLetter: UnicodeCategory;


[27046] Description


[27047] Indicates that the character is a letter that is not an uppercase letter, a lowercase letter, a titlecase letter, or a modifier letter. The value is 4.


[27048] ToString


[27049] [C#] public const UnicodeCategory OtherNotAssigned;


[27050] [C++] public: const UnicodeCategory OtherNotAssigned;


[27051] [VB] Public Const OtherNotAssigned As UnicodeCategory


[27052] [JScript] public var OtherNotAssigned: UnicodeCategory;


[27053] Description


[27054] Indicates that the character is not assigned to any Unicode category. The value is 29.


[27055] ToString


[27056] [C#] public const UnicodeCategory OtherNumber;


[27057] [C++] public: const UnicodeCategory OtherNumber;


[27058] [VB] Public Const OtherNumber As UnicodeCategory


[27059] [JScript] public var OtherNumber: UnicodeCategory;


[27060] Description


[27061] Indicates that the character is a number that is neither a decimal digit nor a letter number; for example, the fraction ½. The value is 10.


[27062] ToString


[27063] [C#] public const UnicodeCategory OtherPunctuation;


[27064] [C++] public: const UnicodeCategory OtherPunctuation;


[27065] [VB] Public Const OtherPunctuation As UnicodeCategory


[27066] [JScript] public var OtherPunctuation: UnicodeCategory;


[27067] Description


[27068] Indicates that the character is a punctuation that is not a connector punctuation, a dash punctuation, an open punctuation, a close punctuation, an initial quote punctuation, or a final quote punctuation. The value is 24.


[27069] ToString


[27070] [C#] public const UnicodeCategory OtherSymbol;


[27071] [C++] public: const UnicodeCategory OtherSymbol;


[27072] [VB] Public Const OtherSymbol As UnicodeCategory


[27073] [JScript] public var OtherSymbol: UnicodeCategory;


[27074] Description


[27075] Indicates that the character is a symbol that is not a mathematical symbol, a currency symbol or a modifier symbol. The value is 28.


[27076] ToString


[27077] [C#] public const UnicodeCategory ParagraphSeparator;


[27078] [C++] public: const UnicodeCategory ParagraphSeparator;


[27079] [VB] Public Const ParagraphSeparator As UnicodeCategory


[27080] [JScript] public var ParagraphSeparator: UnicodeCategory;


[27081] Description


[27082] Indicates that the character is used to separate paragraphs. The value is 13.


[27083] ToString


[27084] [C#] public const UnicodeCategory PrivateUse;


[27085] [C++] public: const UnicodeCategory PrivateUse;


[27086] [VB] Public Const PrivateUse As UnicodeCategory


[27087] [JScript] public var PrivateUse: UnicodeCategory;


[27088] Description


[27089] Indicates that the character is a private-use character, whose Unicode value is in the range U+E000 through U+F8FF. The value is 17.


[27090] ToString


[27091] [C#] public const Unicodecategory SpaceSeparator;


[27092] [C++] public: const UnicodeCategory SpaceSeparator;


[27093] [VB] Public Const SpaceSeparator As UnicodeCategory


[27094] [JScript] public var SpaceSeparator: UnicodeCategory;


[27095] Description


[27096] Indicates that the character is a space character, which has no glyph but is not a control or format character. The value is 11.


[27097] ToString


[27098] [C#] public const UnicodeCategory SpacingCombiningMark;


[27099] [C++] public: const UnicodeCategory SpacingCombiningMark;


[27100] [VB] Public Const SpacingCombiningMark As UnicodeCategory


[27101] [JScript] public var SpacingCombiningMark: UnicodeCategory;


[27102] Description


[27103] Indicates that the character is a spacing character, which indicates modifications of a base character and affects the width of the glyph for that base character. The value is 6.


[27104] ToString


[27105] [C#] public const UnicodeCategory Surrogate;


[27106] [C++] public: const UnicodeCategory Surrogate;


[27107] [VB] Public Const Surrogate As UnicodeCategory


[27108] [JScript] public var Surrogate: UnicodeCategory;


[27109] Description


[27110] Indicates that the character is a high-surrogate or a low-surrogate. Surrogate code values are in the range U+D800 through U+DFFF. The value is 16.


[27111] ToString


[27112] [C#] public const UnicodeCategory TitlecaseLetter;


[27113] [C++] public: const UnicodeCategory TitlecaseLeiter;


[27114] [VB] Public Const TitlecaseLetter As UnicodeCategory


[27115] [JScript] public var TitlecaseLetter: UnicodeCategory;


[27116] Description


[27117] Indicates that the character is a titlecase letter. The value is 2.


[27118] ToString


[27119] [C#] public const UnicodeCategory UppercaseLetter;


[27120] [C++] public: const UnicodeCategory UppercaseLetter;


[27121] [VB] Publ


[27122] System.Resources Namespace


[27123] Creating resources can help developers develop robust, culture-aware programs without having to recompile an application because the resources have changed. Resources are an application-building feature that allows developers to place culture-specific data inside satellite data files (called resource files), rather than directly in a main application. The main assembly does not strong bind to these satellite data files that give developers the flexibility to deploy them in different phases. When building an application, the developer can identify aspects that are culture-specific such as user visible strings, graphics etc., and put these in a different resources file for each culture where the application may be used. At run time, the appropriate set of resources will be loaded, based on the user's culture settings. The specific setting used is the CurrentUICulture for the main thread of execution, which the user can set programmatically.


[27124] The ResourceManager class provides the user with the ability to access and control resources stored in the main assembly or in resource satellite assemblies. Use the ResourceManager.GetObject and ResourceManager.GetString methods to retrieve culture-specific objects and strings, as illustrated in the following example.
3class Class1{//Creates a resource manger bound to the localizable//resource file associated with this assembly.static ResourceManager rm = new ResourceManager(“strings”,Assembly.GetExecutingAssembly ( ));static void Main(string[ ] args){//Pulls the string with the key “Hello” out of the//resource file that is the best match for the current//culture.Console.WriteLine (rm.GetString (“Hello”));}}


[27125] System.Net Namespace


[27126] The System.Net namespace provides a simple programming interface to many of the protocols found on the network today. The WebRequest and WebResponse classes form the basis of “pluggable protocols,” an implementation of network services that enables developers to develop applications that use Internet resources without worrying about the specific details of the protocol used.


[27127] The System.Net.Sockets namespace provides a managed implementation of the Windows Sockets interface for developers that need to tightly control access to the network. Developers familiar with the Winsock API can readily develop applications using the Socket class.


[27128] The TCPClient, TCPListener, and UDPClient classes encapsulate the details of creating TCP and UDP connections to the Internet.


[27129] The following is a more detailed description of the System.Net namespace, identifying various classes, interfaces, enumerations, and so forth contained in the System.Net and System.Net.Sockets namespaces.


[27130] System.Net


[27131] The namespace provides a simple programming interface to many of the protocols found on the network today. The and classes form the basis of “pluggable protocols,” an implementation of network services that enables you to develop applications that use Internet resources without worrying about the specific details of the protocol used.


[27132] Description


[27133] The System.Net namespace provides a simple programming interface to many of the protocols found on the network today. The System.Net.WebRequest and System.Net.WebResponse classes form the basis of “pluggable protocols,” an implementation of network services that enables you to develop applications that use Internet resources without worrying about the specific details of the protocol used.


[27134] AuthenticationManager class (System.Net)


[27135] Description


[27136] Manages the authentication modules called during the client authentication process.


[27137] System.Net.AuthenticationManager is a static class that manages the authentication modules that an application uses. When a request is made to protected resources, the System.Net.AuthenticationManager calls the System.Net.AuthenticationManager.Authenticate(System.String,System.Net. WebRequest,System.Net.ICredentials) method to get an System.Net.Authorization instance to use in subsequent requests.


[27138] Properties:


[27139] RegisteredModules


[27140] [C#] public static IEnumerator RegisteredModules {get;}


[27141] [C++] public: _property static IEnumerator* get_RegisteredModules( );


[27142] [VB] Public Shared ReadOnly Property RegisteredModules As IEnumerator


[27143] [JScript] public static function get RegisteredModules( ): IEnumerator;


[27144] Description


[27145] Gets a list of authentication modules that are registered with the authentication manager.


[27146] The System.Net.AuthenticationManager.RegisteredModules property provides an System.Collections.IEnumerator instance that enables the list of registered authentication modules to be read. The System.Net.AuthenticationManager.Register(System.Net.IAuthenticationMo dule) method adds modules to the list, and the System.Net.AuthenticationManager.Unregister(System.Net.IAuthentication Module) method removes modules from it.


[27147] Methods:


[27148] Authenticate


[27149] [C#] public static Authorization Authenticate(string challenge, WebRequest request, ICredentials credentials);


[27150] [C++] public: static Authorization* Authenticate(String* challenge, WebRequest* request, ICredentials* credentials);


[27151] [VB] Public Shared Function Authenticate(ByVal challenge As String, ByVal request As WebRequest, ByVal credentials As ICredentials) As Authorization


[27152] [JScript] public static function Authenticate(challenge: String, request: WebRequest, credentials: ICredentials): Authorization;


[27153] Description


[27154] Calls each registered authentication module to find the first module that can respond to the authentication request.


[27155] Return Value: An instance of the System.Net.Authorization class containing the result of the authorization attempt. If there is no authentication module to respond to the challenge, this method returns null.


[27156] The System.Net.AuthenticationManager.Authenticate(System.String,System.Net. WebRequest,System.Net.ICredentials) method calls the System.Net.IAuthenticationmodule.Authenticate(System.String,System.Net. WebRequest,System.Net.ICredentials) method on each registered authentication module until one of the module responds with an System.Net.Authorization instance. The challenge returned by the Internet resource. The System.Net.WebRequest that initiated the authentication challenge. The System.Net.ICredentials associated with this request.


[27157] PreAuthenticate


[27158] [C#] public static Authorization PreAuthenticate(WebRequest request, ICredentials credentials);


[27159] [C++] public: static Authorization* PreAuthenticate(WebRequest* request, ICredentials* credentials);


[27160] [VB] Public Shared Function PreAuthenticate(ByVal request As WebRequest, ByVal credentials As ICredentials) As Authorization


[27161] [JScript] public static function PreAuthenticate(request: WebRequest, credentials : ICredentials): Authorization;


[27162] Description


[27163] Preauthenticates a request.


[27164] Return Value: An instance of the System.Net.Authorization class if the request can be preauthenticated; otherwise, null. If credentials is null, this method returns null.


[27165] If the authentication module can preauthenticate the request, the PreAuthenticate method returns an Authentication instance and sends the authorization information to the server preemptively instead of waiting for the resource to issue a challenge. This behavior is outlined in section 3.3 of RFC 2617 (HTTP Authentication: Basic and Digest Access Authentication). Authentication modules that support preauthentication allow clients to improve server efficiency by avoiding extra round trips caused by authentication challenges. A System.Net.WebRequest to an Internet resource. The System.Net.ICredentials associated with the request.


[27166] Register


[27167] [C#] public static void Register(IAuthenticationModule authenticationModule);


[27168] [C++] public: static void Register(IAuthenticationModule* authenticationModule);


[27169] [VB] Public Shared Sub Register(ByVal authenticationModule As IAuthenticationmodule)


[27170] [JScript] public static function Register(authenticationModule: IAuthenticationmodule);


[27171] Description


[27172] Registers an authentication module with the authentication manager.


[27173] The System.Net.AuthenticationManager.Register(System.Net.IAuthenticationMo dule) method adds authentication modules to the end of the list of modules called by the System.Net.AuthenticationManager.Authenticate(System.String,System.Net. WebRequest,System.Net.ICredentials) method. Authentication modules are called in the order in which they were added to the list. The System.Net.IAuthenticationmodule to register with the authentication manager.


[27174] Unregister


[27175] [C#] public static void Unregister(IAuthenticationModule authenticationModule);


[27176] [C++] public: static void Unregister(IAuthenticationmodule* authenticationModule);


[27177] [VB] Public Shared Sub Unregister(ByVal authenticationModule As IAuthenticationmodule)


[27178] [JScript] public static function Unregister(authenticationModule: IAuthenticationmodule); Removes authentication modules from the list of registered modules.


[27179] Description


[27180] Removes the specified authentication module from the list of registered modules.


[27181] The System.Net.AuthenticationManager.Unregister(System.Net.IAuthentication Module) method removes the specified authentication module from the list of authentication modules called by the System.Net.AuthenticationManager.Authenticate(System.String,System.Net. WebRequest,System.Net.ICredentials) method. The module must have been added to the list using the System.Net.AuthenticationManager.Register(System.Net.IAuthenticationMo dule) method before it can be removed from the list. The IAuthentication module to remove.


[27182] Unregister


[27183] [C#] public static void Unregister(string authenticationScheme);


[27184] [C++] public: static void Unregister(String* authenticationScheme);


[27185] [VB] Public Shared Sub Unregister(ByVal authenticationScheme As String)


[27186] [JScript] public static function Unregister(authenticationScheme: String);


[27187] Description


[27188] Removes authentication modules with the specified authentication scheme from the list of registered modules.


[27189] The System.Net.AuthenticationManager.Unregister(System.Net.IAuthentication Module) method removes the authentication module with the specified authentication scheme from the list of authentication modules called by the System.Net.AuthenticationManager.Authenticate(System.String,System.Net. WebRequest,System.Net.ICredentials) method. The module must have been added to the list using the System.Net.AuthenticationManager.Register(System.Net.IAuthenticationMo dule) method before it can be removed from the list. The authentication scheme of the module to remove.


[27190] Authorization class (System.Net)


[27191] Unregister


[27192] Description


[27193] Contains an authentication message for an Internet server.


[27194] The System.Net.AuthenticationManager returns an instance of the System.Net.Authorization class containing the authentication message that is sent to the Internet server to indicate that the client (such as System.Net.WebRequest or one of its descendants) is authorized to access the server.


[27195] Constructors:


[27196] Authorization


[27197] Example Syntax:


[27198] Unregister


[27199] [C#] public Authorization(string token);


[27200] [C++] public: Authorization(String* token);


[27201] [VB] Public Sub New(ByVal token As String)


[27202] [JScript] public function Authorization(token: String); Creates a new instance of the System.Net.Authorization class.


[27203] Description


[27204] Creates a new instance of the System.Net.Authorization class with the specified authorization message.


[27205] The System.Net.Authorization instance is created with the System.Net.Authorization.Message property set to token and the System.Net.Authorization.Complete property set to true. The encrypted authorization message expected by the server.


[27206] Authorization


[27207] Example Syntax:


[27208] Unregister


[27209] [C#] public Authorization(string token, bool finished);


[27210] [C++] public: Authorization(String* token, bool finished);


[27211] [VB] Public Sub New(ByVal token As String, ByVal finished As Boolean)


[27212] [JScript] public function Authorization(token: String, finished: Boolean);


[27213] Description


[27214] Creates a new instance of the System.Net.Authorization class with the specified authorization message and completion status.


[27215] The System.Net.Authorization instance is created with the System.Net.Authorization.Message property set to token and the System.Net.Authorization.Complete property set to finished. The encrypted authorization message expected by the server. The completion status of the authorization attempt.


[27216] Authorization


[27217] Example Syntax:


[27218] Unregister


[27219] [C#] public Authorization(string token, bool finished, string connectionGroupId);


[27220] [C++] public: Authorization(String* token, bool finished, String* connectionGroupId);


[27221] [VB] Public Sub New(ByVal token As String, ByVal finished As Boolean, ByVal connectionGroupId As String)


[27222] [JScript] public function Authorization(token: String, finished: Boolean, connectionGroupId: String);


[27223] Description


[27224] Creates a new instance of the System.Net.Authorization class with the specified authorization message, completion status, and connection group identifier. The encrypted authorization message expected by the server. The completion status of the authorization attempt. A unique identifier that can be used to create private Client-Server connections, that would only be bound to this authentication scheme.


[27225] Complete


[27226] Unregister


[27227] [C#] public bool Complete {get;}


[27228] [C++] public: _property bool get_Complete( );


[27229] [VB] Public ReadOnly Property Complete As Boolean


[27230] [JScript] public function get Complete( ): Boolean;


[27231] Description


[27232] Gets the completion status of the authorization.


[27233] The System.Net.Authorization.Complete property is set to true when the authentication process between the client and the server is finished. Some authentication modules, such as the Kerberos module, use multiple round trips between the client and server to complete the authentication process. To keep the System.Net.WebRequest or descendant that initiated the authentication process from interrupting while authorization is taking place, the authentication module sets the System.Net.Authorization.Complete property to false.


[27234] ConnectionGroupId


[27235] Unregister


[27236] [C#] public string ConnectionGroupId {get;}


[27237] [C++] public: _property String* get_ConnectionGroupId( );


[27238] [VB] Public ReadOnly Property ConnectionGroupId As String


[27239] [JScript] public function get ConnectionGroupId( ): String;


[27240] Description


[27241] Gets a unique identifier for user-specific connections.


[27242] The System.Net.Authorization.ConnectionGroupId property is a unique string that associates a connection with a specific authenticating entity. For example, the NTLM authorization module ties the authentication credential information to a specific connection to prevent invalid reuse of the connection.


[27243] Message


[27244] Unregister


[27245] [C#] public string Message {get;}


[27246] [C++] public: _property String* get_Message( );


[27247] [VB] Public ReadOnly Property Message As String


[27248] [JScript] public function get Message( ): String;


[27249] Description


[27250] Gets the message returned to the server in response to an authentication challenge.


[27251] The System.Net.Authorization.Message property contains the authorization string that the client will return to the server when accessing protected resources. The actual contents of the message is defined by the authentication type the client and server are using. Basic HTTP authentication, for example, uses a different message than Kerberos authentication.


[27252] ProtectionRealm


[27253] Unregister


[27254] [C#] public string[ ]ProtectionRealm {get; set;}


[27255] [C++] public: _property String* get_ProtectionRealm( );public: _property void set_ProtectionRealm(String*_gc[ ]);


[27256] [VB] Public Property ProtectionRealm As String ( )


[27257] [JScript] public function get ProtectionRealm( ): String[ ]; public function set ProtectionRealm(String [ ]);


[27258] Description


[27259] Gets or sets the prefix for uniform resource identifiers (URIs) that can be authenticated with the System.Net.Authorization.Message property.


[27260] The System.Net.Authorization.ProtectionRealm property contains a list of URI prefixes that the System.Net.Authorization.Message property can be used to authenticate.


[27261] Cookie class (System.Net)


[27262] ToString


[27263] Description


[27264] Provides a set of properties and methods used to manage cookies. This class cannot be inherited.


[27265] For a list of initial property values for an instance of System.Net.Cookie, see the System.Net.Cookie.#ctor constructors.


[27266] Cookie


[27267] Example Syntax:


[27268] ToString


[27269] [C#] public Cookie( );


[27270] [C++] public: Cookie( );


[27271] [VB] Public Sub New( )


[27272] [JScript] public function Cookie( ); Initializes a new instance of the System.Net.Cookie class.


[27273] Description


[27274] Initializes a new instance of the System.Net.Cookie class using the empty string for default parameters: name, value, path, domain.


[27275] Cookie


[27276] Example Syntax:


[27277] ToString


[27278] [C#] public Cookie(string name, string value);


[27279] [C++] public: Cookie(String* name, String* value);


[27280] [VB] Public Sub New(ByVal name As String, ByVal value As String)


[27281] [JScript] public function Cookie(name: String, value: String);


[27282] Description


[27283] Initializes a new instance of the System.Net.Cookie class with specified name and value, using the empty string for default parameters: path, domain. string string


[27284] Cookie


[27285] Example Syntax:


[27286] ToString


[27287] [C#] public Cookie(string name, string value, string path);


[27288] [C++] public: Cookie(String* name, String* value, String* path);


[27289] [VB] Public Sub New(ByVal name As String, ByVal value As String, ByVal path As String)


[27290] [JScript] public function Cookie(name: String, value: String, path: String);


[27291] Description


[27292] Initializes a new instance of the System.Net.Cookie class with specified name, value, and path, using the empty string for default parameter domain. string string string


[27293] Cookie


[27294] Example Syntax:


[27295] ToString


[27296] [C#] public Cookie(string name, string value, string path, s tring domain);


[27297] [C++] public: Cookie(String* name, String* value, String* path, String* domain);


[27298] [VB] Public Sub New(ByVal name As String, ByVal value As String, ByVal path As String, ByVal domain As String)


[27299] [JScript] public function Cookie(name: String, value: String, path: String, domain: String);


[27300] Description


[27301] Initializes a new instance of the System.Net.Cookie class with specified name, value, path, and domain. string string string string


[27302] Comment


[27303] ToString


[27304] [C#] public string Comment {get; set;}


[27305] [C++] public: _property String* get_Comment( );public: _property void set_Comment(String*);


[27306] [VB] Public Property Comment As String


[27307] [JScript] public function get Comment( ): String; public function set Comment(String);


[27308] Description


[27309] Gets a comment that the server can add to the cookie.


[27310] The client can inspect this optional comment for information added by the server about issues such as the privacy policy and so on.


[27311] CommentUri


[27312] ToString


[27313] [C#] public Uri CommentUri {get; set;}


[27314] [C++] public: _property Uri* get_CommentUri( );public: _property void set_CommentUri(Uri*);


[27315] [VB] Public Property CommentUri As Uri


[27316] [JScript] public function get CommentUri( ): Uri;public function set CommentUri(Uri);


[27317] Description


[27318] Gets a URI that the server can provide with a cookie.


[27319] The URI can provide optional information such as how the server uses the cookie.


[27320] Discard


[27321] ToString


[27322] [C#] public bool Discard {get; set;}


[27323] [C++] public: _property bool get_Discard( );public: _property void set_Discard(bool);


[27324] [VB] Public Property Discard As Boolean


[27325] [JScript] public function get Discard( ): Boolean;public function set Discard(Boolean);


[27326] Description


[27327] Gets the discard flag set by the server.


[27328] When true, this property instructs the Web browser not to save the cookie on the user's hard drive when a session ends.


[27329] Domain


[27330] ToString


[27331] [C#] public string Domain {get;set;}


[27332] [C++] public: _property String* get_Domain( ); public: _property void set_Domain(String*);


[27333] [VB] Public Property Domain As String


[27334] [JScript] public function get Domain( ): String;public function set Domain(String);


[27335] Description


[27336] Gets the URI for which the cookie is valid.


[27337] A server cannot indicate a domain other than its own. However it can indicate more than one server.


[27338] Expired


[27339] ToString


[27340] [C#] public bool Expired {get; set;}


[27341] [C++] public: _property bool get_Expired( );public: _property void set_Expired(bool);


[27342] [VB] Public Property Expired As Boolean


[27343] [JScript] public function get Expired( ): Boolean;public function set Expired(Boolean);


[27344] Description


[27345] Gets the current state of the cookie.


[27346] Expires


[27347] ToString


[27348] [C#] public DateTime Expires {get; set;}


[27349] [C++] public: _property DateTime get_Expires( );public: _property void set_Expires(DateTime);


[27350] [VB] Public Property Expires As DateTime


[27351] [JScript] public function get Expires( ): DateTime;public function set Expires(DateTime);


[27352] Description


[27353] Gets the expiration DateTime for the cookie.


[27354] Name


[27355] ToString


[27356] [C#] public string Name {get; set;}


[27357] [C++] public: _property String* get_Name( );public: _property void set_Name(String*);


[27358] [VB] Public Property Name As String


[27359] [JScript] public function get Name( ): String;public function set Name(String);


[27360] Description


[27361] Gets the name for the cookie.


[27362] Path


[27363] ToString


[27364] [C#] public string Path {get; set;}


[27365] [C++] public: _property String* get_Path( );public: _property void set_Path(String*);


[27366] [VB] Public Property Path As String


[27367] [JScript] public function get Path ( ): String;public function set Path(String);


[27368] Description


[27369] Gets the URLs to which the cookie applies on the server.


[27370] Port


[27371] ToString


[27372] [C#] public string Port {get; set;}


[27373] [C++] public: _property String* get_Port( );public: _property void set_Port(String*);


[27374] [VB] Public Property Port As String


[27375] [JScript] public function get Port ( ): String;public function set Port(String);


[27376] Description


[27377] Gets a list of TCP ports to which the cookie applies.


[27378] Secure


[27379] ToString


[27380] [C#] public bool Secure {get; set;}


[27381] [C++] public: _property bool get_Secure( );public: _property void set_Secure(bool);


[27382] [VB] Public Property Secure As Boolean


[27383] [JScript] public function get Secure( ): Boolean;public function set Secure(Boolean);


[27384] Description


[27385] Gets the security level set by the server.


[27386] TimeStamp


[27387] ToString


[27388] [C#] public DateTime TimeStamp {get;}


[27389] [C++] public: _property DateTime get_TimeStamp( );


[27390] [VB] Public ReadOnly Property TimeStamp As DateTime


[27391] [JScript] public function get TimeStamp( ): DateTime;


[27392] Description


[27393] Gets the DateTime when the cookie was issued.


[27394] Value


[27395] ToString


[27396] [C#] public string Value {get; set;}


[27397] [C++] public: _property String* get_Value( );public: _property void set_Value(String*);


[27398] [VB] Public Property Value As String


[27399] [JScript] public function get Value( ): String;public function set Value(String);


[27400] Description


[27401] Gets the server-supplied value for the cookie.


[27402] Version


[27403] ToString


[27404] [C#] public int Version {get; set;}


[27405] [C++] public: _property int get_Version( );public: _property void set_Version(int);


[27406] [VB] Public Property Version As Integer


[27407] [JScript] public function get Version( ): int;public function set Version(int);


[27408] Description


[27409] Gets the version of HTTP state maintenance to which the cookie conforms.


[27410] Equals


[27411] [C#] public override bool Equals(object comparand);


[27412] [C++] public: bool Equals(Object* comparand);


[27413] [VB] Overrides Public Function Equals(ByVal comparand As Object) As Boolean


[27414] [JScript] public override function Equals(comparand: Object): Boolean;


[27415] Description


[27416] An override of the Object.Equals method. A reference to a Cookie object.


[27417] GetHashCode


[27418] [C#] public override int GetHashCode( );


[27419] [C++] public: int GetHashCode( );


[27420] [VB] Overrides Public Function GetHashCode( ) As Integer


[27421] [JScript] public override function GetHashCode( ): int;


[27422] Description


[27423] An override of Object.GetHashCode


[27424] ToString


[27425] [C#] public override string ToString( );


[27426] [C++] public: String* ToString( );


[27427] [VB] Overrides Public Function ToString( ) As String


[27428] [JScript] public override function ToString( ): String;


[27429] Description


[27430] An override of Object.ToString.


[27431] CookieCollection class (System.Net)


[27432] ToString


[27433] Description


[27434] Provides a collection container for Cookie or CookieCollection instances.


[27435] The CookieCollection class implements an ICollection interface to provide a general mechanism for handling collections of cookies. For example, this is useful in the case where an application wants to act on behalf of multiple users and store cookies for each user.


[27436] CookieCollection


[27437] Example Syntax:


[27438] ToString


[27439] [C#] public CookieCollection( );


[27440] [C++] public: CookieCollection( );


[27441] [VB] Public Sub New( )


[27442] [JScript] public function CookieCollection( );


[27443] Description


[27444] Initializes a new instance of the System.Net.CookieCollection class.


[27445] Count


[27446] ToString


[27447] [C#] public int Count {get;}


[27448] [C++] public: _property int get_Count( );


[27449] [VB] Public ReadOnly Property Count As Integer


[27450] [JScript] public function get Count( ): int;


[27451] Description


[27452] Gets the number of elements contained in the CookieCollection.


[27453] IsReadOnly


[27454] ToString


[27455] [C#] public bool IsReadOnly {get;}


[27456] [C++] public: _property bool get_IsReadOnly( );


[27457] [VB] Public ReadOnly Property IsReadOnly As Boolean


[27458] [JScript] public function get IsReadOnly( ): Boolean;


[27459] Description


[27460] Gets or sets a value indicating whether the CookieCollection instance is read-only.


[27461] IsSynchronized


[27462] ToString


[27463] [C#] public bool IsSynchronized {get;}


[27464] [C++] public: _property bool get_IsSynchronized( );


[27465] [VB] Public ReadOnly Property IsSynchronized As Boolean


[27466] [JScript] public function get IsSynchronized( ): Boolean;


[27467] Description


[27468] Gets a value that indicates whether access to a CookieCollection is thread-safe


[27469] SyncRoot returns an object that can be used to synchronize access to the CookieCollection


[27470] Item


[27471] ToString


[27472] [C#] public Cookie this[int index] {get;}


[27473] [C++] public: _property Cookie* get_Item(int index);


[27474] [VB] Public Default ReadOnly Property Item(ByVal index As Integer) As Cookie


[27475] [JScript] returnValue=CookieCollectionObject.Item(index); Gets a specific CookieCollection element.


[27476] Description


[27477] Gets the CookieCollection element with a specific index. The zero-based index of the Cookie.


[27478] Item


[27479] ToString


[27480] [C#] public Cookie this[string name] {get;}


[27481] [C++] public: _property Cookie* get_Item(String* name);


[27482] [VB] Public Default ReadOnly Property Item(ByVal name As String) As Cookie


[27483] [JScript] returnValue=CookieCollectionObject.Item(name);


[27484] Description


[27485] Gets the CookieCollection element with a specific name. The name of the Cookie.


[27486] SyncRoot


[27487] ToString


[27488] [C#] public object SyncRoot {get;}


[27489] [C++] public: _property Object* get_SyncRoot( );


[27490] [VB] Public ReadOnly Property SyncRoot As Object


[27491] [JScript] public function get SyncRoot( ): Object;


[27492] Description


[27493] Gets an object that you can use to synchronize access to the CookieCollection.


[27494] Add


[27495] [C+] public void Add(Cookie cookie);


[27496] [C++] public: void Add(Cookie* cookie);


[27497] [VB] Public Sub Add(ByVal cookie As Cookie)


[27498] [JScript] public function Add(cookie: Cookie); Adds an item to the CookieCollection.


[27499] Description


[27500] Adds a Cookie to the CookieCollection. The Cookie to be added to the collection


[27501] Add


[27502] [C#] public void Add(CookieCollection cookies);


[27503] [C++] public: void Add(CookieCollection* cookies);


[27504] [VB] Public Sub Add(ByVal cookies As CookieCollection)


[27505] [JScript] public function Add(cookies: CookieCollection);


[27506] Description


[27507] Adds a CookieCollection to the CookieCollection. The CookieCollection to be added to the collection


[27508] CopyTo


[27509] [C#] public void CopyTo(Array array, int index);


[27510] [C++] public: _sealed void CopyTo(Array* array, int index);


[27511] [VB] NotOverridable Public Sub CopyTo(ByVal array As Array, ByVal index As Integer)


[27512] [JScript] public function CopyTo(array: Array, index: int);


[27513] Description


[27514] Copies the elements of the collection to an Array, starting at a particular index.


[27515] The Arrayarray must be a one-dimensional array with zero-based indexing. The target Array. The zero-based index in array at which copying begins.


[27516] GetEnumerator


[27517] [C#] public IEnumerator GetEnumerator( );


[27518] [C++] public: _sealed IEnumerator* GetEnumerator( );


[27519] [VB] NotOverridable Public Function GetEnumerator( ) As IEnumerator


[27520] [JScript] public function GetEnumerator( ): IEnumerator;


[27521] Description


[27522] Gets an enumerator that you can use to iterate through a CookieCollection


[27523] Return Value: An IEnumerator that you can use to iterate through a CookieCollection.


[27524] You should only use Enumerators to read data in the collection. Enumerators cannot be used to modify the underlying collection. The enumerator does not have exclusive access to the collection.


[27525] CookieContainer class (System.Net)


[27526] ToString


[27527] Description


[27528] Contains CookieCollection objects.


[27529] ToString


[27530] [C#] public const int DefaultCookieLengthLimit;


[27531] [C++] public: const int DefaultCookieLengthLimit;


[27532] [VB] Public Const DefaultCookieLengthLimit As Integer


[27533] [JScript] public var DefaultCookieLengthLimit: int;


[27534] Description


[27535] Gets the maximum size, in bytes, of elements the CookieContainer can hold. This field is constant.


[27536] ToString


[27537] [C#] public const int DefaultCookieLimit;


[27538] [C++] public: const int DefaultCookieLimit;


[27539] [VB] Public Const DefaultCookieLimit As Integer


[27540] [JScript] public var DefaultCookieLimit: int;


[27541] Description


[27542] Gets the maximum number of elements the CookieContainer can hold. This field is constant.


[27543] ToString


[27544] [C#] public const int DefaultPerDomainCookieLimit;


[27545] [C++] public: const int DefaultPerDomainCookieLimit;


[27546] [VB] Public Const DefaultPerDomainCookieLimit As Integer


[27547] [JScript] public var DefaultPerDomainCookieLimit: int;


[27548] Description


[27549] Gets the maximum number of elements the CookieContainer can reference per domain. This field is constant.


[27550] CookieContainer


[27551] Example Syntax:


[27552] ToString


[27553] [C#] public CookieContainer( );


[27554] [C++] public: CookieContainer( );


[27555] [VB] Public Sub New( )


[27556] [JScript] public function CookieContainer( ); Initializes a new instance of the System.Net.CookieContainer class.


[27557] Description


[27558] Initializes a new instance of the System.Net.CookieContainer class with default values for DefaultCookieLimit, DefaultPerDomainCookieLimit, and DefaultCookieLengthLimit.


[27559] CookieContainer


[27560] Example Syntax:


[27561] ToString


[27562] [C#] public CookieContainer(int capacity);


[27563] [C++] public: CookieContainer(int capacity);


[27564] [VB] Public Sub New(ByVal capacity As Integer)


[27565] [JScript] public function CookieContainer(capacity: int);


[27566] Description


[27567] Initializes a new instance of the System.Net.CookieContainer class with a specified value for the number of elements the container can hold and default values for DefaultPerDomainCookieLimit, and DefaultCookieLengthLimit. The number of cookies the CookieContainer can hold.


[27568] CookieContainer


[27569] Example Syntax:


[27570] ToString


[27571] [C#] public CookieContainer(int capacity, int perDomainCapacity, int maxCookieSize);


[27572] [C++] public: CookieContainer(int capacity, int perDomainCapacity, int maxCookieSize);


[27573] [VB] Public Sub New(ByVal capacity As Integer, ByVal perDomainCapacity As Integer, ByVal maxCookieSize As Integer)


[27574] [JScript] public function CookieContainer(capacity: int, perDomainCapacity: int, maxCookieSize: int);


[27575] Description


[27576] Initializes a new instance of the System.Net.CookieContainer class with a specified value for the number of elements the container can hold, the number of cookies per domain, and the maximum element length. The number of elements the CookieContainer can hold. The number of elements per domain. The maximum size of the elements CookieContainer can hold.


[27577] Capacity


[27578] ToString


[27579] [C#] public int Capacity {get; set;}


[27580] [C++] public: _property int get_Capacity( );public: _property void set_Capacity(int);


[27581] [VB] Public Property Capacity As Integer


[27582] [JScript] public function get Capacity( ): int;public function set Capacity(int);


[27583] Description


[27584] Gets the number of elements the CookieContainer can hold.


[27585] Count


[27586] ToString


[27587] [C#] public int Count {get;}


[27588] [C++] public: _property int get_Count( );


[27589] [VB] Public ReadOnly Property Count As Integer


[27590] [JScript] public function get Count( ): int;


[27591] Description


[27592] Gets the number of elements the CookieContainer currently holds.


[27593] MaxCookieSize


[27594] ToString


[27595] [C#] public int MaxCookieSize {get; set;}


[27596] [C++] public: _property int get_MaxCookieSize( );public: _property void set_MaxCookieSize(int);


[27597] [VB] Public Property MaxCookieSize As Integer


[27598] [JScript] public function get MaxCookieSize( ): int;public function set MaxCookieSize(int);


[27599] Description


[27600] Gets the maximum size of the elements held by the CookieContainer.


[27601] PerDomainCapacity


[27602] ToString


[27603] [C#] public int PerDomainCapacity {get; set;}


[27604] [C++] public: _property int get_PerDomainCapacity( );public: _property void set_PerDomainCapacity(int);


[27605] [VB] Public Property PerDomainCapacity As Integer


[27606] [JScript] public function get PerDomainCapacity( ): int;public function set PerDomainCapacity(int);


[27607] Description


[27608] Gets the number of elements allowed per domain.


[27609] Add


[27610] [C#] public void Add(Cookie cookie);


[27611] [C++] public: void Add(Cookie* cookie);


[27612] [VB] Public Sub Add(ByVal cookie As Cookie)


[27613] [JScript] public function Add(cookie: Cookie); Adds elements to the CookieContainer.


[27614] Description


[27615] Adds a Cookie to the CookieContainer. The Cookie to be added to the CookieContainer.


[27616] Add


[27617] [C#] public void Add(CookieCollecion cookies);


[27618] [C++] public: void Add(CookieCollection* cookies);


[27619] [VB] Public Sub Add(ByVal cookies As CookieCollection)


[27620] [JScript] public function Add(cookies: CookieCollection);


[27621] Description


[27622] Adds a CookieCollection to the CookieContainer. The CookieCollection to be added to the CookieContainer.


[27623] Add


[27624] [C+] public void Add(Uri uri, Cookie cookie);


[27625] [C++] public: void Add(Uri* uri, Cookie* cookie);


[27626] [VB] Public Sub Add(ByVal uri As Uri, ByVal cookie As Cookie)


[27627] [JScript] public function Add(uri: Uri, cookie: Cookie);


[27628] Description


[27629] Adds a Cookie to the CookieContainer. The URI of the Cookie to be added to the CookieContainer. The Cookie to be added to the CookieContainer


[27630] Add


[27631] [C#] public void Add(Uri uri, CookieCollection cookies);


[27632] [C++] public: void Add(Uri* uri, CookieCollection* cookies);


[27633] [VB] Public Sub Add(ByVal uri As Uri, ByVal cookies As CookieCollection)


[27634] [JScript] public function Add(uri: Uri, cookies: CookieCollection);


[27635] Description


[27636] Adds a CookieCollection to the CookieContainer. The URI of the CookieCollection to be added to the CookieContainer. The CookieCollection to be added to the CookieContainer.


[27637] GetCookieHeader


[27638] [C#] public string GetCookieHeader(Uri uri);


[27639] [C++] public: String* GetCookieHeader(Uri* uri);


[27640] [VB] Public Function GetCookieHeader(ByVal uri As Uri) As String


[27641] [JScript] public function GetCookieHeader(uri: Uri): String;


[27642] Description


[27643] Gets the HTTP header of the element associated with a specific URI. The URI desired.


[27644] GetCookies


[27645] [C#] public CookieCollection GetCookies(Uri uri);


[27646] [C++] public: CookieCollection* GetCookies(Uri* uri);


[27647] [VB] Public Function GetCookies(ByVal uri As Uri) As CookieCollection


[27648] [JScript] public function GetCookies(uri: Uri): CookieCollection;


[27649] Description


[27650] Gets the elements associated with a specific URI.


[27651] Return Value: A CookieCollection containing the elements associated with a specific URI. The URI of the elements desired.


[27652] SetCookies


[27653] [C#] public void SetCookies(Uri uri, string cookieHeader);


[27654] [C++] public: void SetCookies(Uri* uri, String* cookieHeader);


[27655] [VB] Public Sub SetCookies(ByVal uri As Uri, ByVal cookieHeader As String)


[27656] [JScript] public function SetCookies(uri: Uri, cookieHeader: String);


[27657] Description


[27658] Associates a cookie header with a specific URI. The URI of the header.


[27659] CookieException class (System.Net)


[27660] ToString


[27661] Description


[27662] The exception that is thrown when XXX.


[27663] CookieException


[27664] Example Syntax:


[27665] ToString


[27666] [C#] public CookieException( );


[27667] [C++] public: CookieException( );


[27668] [VB] Public Sub New( )


[27669] [JScript] public function CookieException( ); Initializes a new instance of the System.Net.CookieException class.


[27670] Description


[27671] Initializes a new instance of the System.Net.CookieException class using default parameters.


[27672] CookieException


[27673] Example Syntax:


[27674] ToString


[27675] [C#] protected CookieException(SerializationInfo serializationInfo, StreamingContext streamingContext);


[27676] [C++] protected: CookieException(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[27677] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext)


[27678] [JScript] protected function CookieException(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[27679] Description


[27680] Initializes a new instance of the System.Net.CookieException class with specified values of serializationInfo and streamingContext. The SerializationInfo to be used. The StreamingContext to be used.


[27681] HelpLink


[27682] HResult


[27683] InnerException


[27684] Message


[27685] Source


[27686] StackTrace


[27687] TargetSite


[27688] ISerializable.GetObjectData


[27689] [C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext);


[27690] [C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[27691] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext) Implements ISerializable.GetObjectData


[27692] [JScript] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[27693] CredentialCache class (System.Net)


[27694] ToString


[27695] Description


[27696] Provides storage for multiple credentials.


[27697] The System.Net.CredentialCache class stores credentials for multiple Internet resources. Applications that need to access multiple resources can store the credentials for those resources in a System.Net.CredentialCache instance that then provides the proper set of credentials to the Internet resource when required. When the System.Net.CredentialCache.GetCredential(System.Uri,System.String) method is called, it compares the URI and authentication type provided with those stored in the cache and returns the first set of credentials that match.


[27698] CredentialCache


[27699] Example Syntax:


[27700] ToString


[27701] [C#] public CredentialCache( );


[27702] [C++] public: CredentialCache( );


[27703] [VB] Public Sub New( )


[27704] [JScript] public function CredentialCache( );


[27705] Description


[27706] Creates a new instance of the System.Net.CredentialCache class.


[27707] The constructor creates a System.Net.CredentialCache instance with its System.Net.CredentialCache.DefaultCredentials property initialized to the system credentials of the current security context. For client applications, these represent the user name, password, and domain of the user who is currently logged in. For ASP.NET applications, the credential is the process token of the IIS server or the process token being impersonated by the IIS server.


[27708] DefaultCredentials


[27709] ToString


[27710] [C#] public static ICredentials DefaultCredentials {get;}


[27711] [C++] public: _property static ICredentials* get_DefaultCredentials( );


[27712] [VB] Public Shared ReadOnly Property DefaultCredentials As ICredentials


[27713] [JScript] public static function get DefaultCredentials( ): ICredentials;


[27714] Description


[27715] Gets the system credentials of the application.


[27716] The System.Net.CredentialCache.DefaultCredentials property applies only to NTLM, negotiate, and Kerberos-based authentication.


[27717] Add


[27718] [C#] public void Add(Uri uriprefix, string authType, NetworkCredential cred);


[27719] [C++] public: void Add(Uri* uriPrefix, String* authType, NetworkCredential* cred);


[27720] [VB] Public Sub Add(ByVal uriPrefix As Uri, ByVal authType As String, ByVal cred As NetworkCredential)


[27721] [JScript] public function Add(uriPrefix: Uri, authType: String, cred: NetworkCredential);


[27722] Description


[27723] Adds a System.Net.NetworkCredential instance to the credential cache.


[27724] The System.Net.CredentialCache.Add(System.Uri,System.String,System.Net.Netw orkCredential) method places a System.Net.NetworkCredential instance into the System.Net.CredentialCache. The cache stores credentials in the order in which they are added to it. When the System.Net.CredentialCache.GetCredential(System.Uri,System.String) method is called, it returns the proper matching System.Net.NetworkCredential instance. A System.Uri that specifies the URI prefix of the resources that the credential grants access to. The authentication scheme used by the resource named in uriPrefix. The System.Net.NetworkCredential to add to the credential cache.


[27725] GetCredential


[27726] [C#] public NetworkCredential GetCredential( Uri uriPrefix, string authType);


[27727] [C++] public: _sealed NetworkCredential* GetCredential(Uri* uriprefix, String* authType);


[27728] [VB] NotOverridable Public Function GetCredential(ByVal uriPrefix As Uri, ByVal authType As String) As NetworkCredential


[27729] [JScript] public function GetCredential(uriPrefix: Uri, authType: String): NetworkCredential;


[27730] Description


[27731] Returns the System.Net.NetworkCredential instance associated with the specified URI and authentication type.


[27732] Return Value: A System.Net.NetworkCredential or, if there is no matching credential in the cache, null.


[27733] The System.Net.CredentialCache.GetCredential(System.Uri,System.String) method searches the System.Net.CredentialCache and returns the System.Net.NetworkCredential instance for the specified URI and authorization type. If the System.Net.CredentialCache contains no matching System.Net.NetworkCredential instance, null is returned. A System.Uri that specifies the URI prefix of the resources that the credential grants access to. The authentication scheme used by the resource named in uriPrefix.


[27734] GetEnumerator


[27735] [C#] public IEnumerator GetEnumerator( );


[27736] [C++] public: _sealed IEnumerator * GetEnumerator( );


[27737] [VB] NotOverridable Public Function GetEnumerator( ) As IEnumerator


[27738] [JScript] public function GetEnumerator( ): IEnumerator;


[27739] Description


[27740] Returns an enumerator that can iterate through the System.Net.CredentialCache instance.


[27741] Return Value: An System.Collections.IEnumerator for the System.Net.CredentialCache


[27742] Remove


[27743] [C#] public void Remove(Uri uriPrefix, string authType);


[27744] [C++] public: void Remove(Uri* uriPrefix, String* authtype);


[27745] [VB] Public Sub Remove(ByVal uriPrefix As Uri, ByVal authType As String)


[27746] [JScript] public function Remove(uriPrefix: Uri, authType: String);


[27747] Description


[27748] Deletes a System.Net.NetworkCredential instance from the cache.


[27749] The System.Net.CredentialCache.Remove(System.Uri,System.String) method removes the specified System.Net.NetworkCredential instance from the System.Net.CredentialCache. Multiple calls to the System.Net.CredentialCache.Remove(System.Uri,System.String) method for the same System.Net.NetworkCredential have no effect. A System.Uri that specifies the URI prefix of the resources that the credential is used for. The authentication scheme used by the host named in uriPrefix.


[27750] Dns class (System.Net)


[27751] ToString


[27752] Description


[27753] Provides simple domain name resolution functionality.


[27754] The System.Net.Dns class is a static class that retrieves information about a specific host from the Internet Domain Name System (DNS).


[27755] BeginGetHostByName


[27756] [C#] public static IAsyncResult BeginGetHostByName(string hostName, AsyncCallback requestCallback, object stateObject);


[27757] [C++] public: static IAsyncResult* BeginGetHostByName(String* hostName, AsyncCallback* requestCallback, Object* stateObject);


[27758] [VB] Public Shared Function BeginGetHostByName(ByVal hostName As String, ByVal requestcallback As AsyncCallback, ByVal stateObject As Object) As IAsyncResult


[27759] [JScript] public static function BeginGetHostByName(hostName: String, requestCallback: AsyncCallback, stateObject: Object): IAsyncResult;


[27760] Description


[27761] Begins an asynchronous request for System.Net.IPHostEntry information about the specified DNS host name.


[27762] Return Value: An System.IAsyncResult instance that references the asynchronous request.


[27763] The System.Net.Dns.BeginGetHostByName(System.String,System.AsyncCallback, System.Object) method starts an asynchronous request for DNS host information. The asynchronous callback method uses the System.Net.Dns.EndGetHostByName(System.IAsyncResult) method to return the actual host information. A string containing the DNS name of the host. The System.AsyncCallback. The State object.


[27764] BeginResolve


[27765] [C#] public static IAsyncResult BeginResolve(string hostName, AsyncCallback requestcallback, object stateObject);


[27766] [C++] public: static IAsyncResult* BeginResolve(String* hostName, AsyncCallback* requestCallback, Object* stateObject);


[27767] [VB] Public Shared Function BeginResolve(ByVal hostName As String, ByVal requestCallback As AsyncCallback, ByVal stateObject As Object) As IAsyncResult


[27768] [JScript] public static function BeginResolve(hostName: String, requestCallback: AsyncCallback, stateObject: Object): IAsyncResult;


[27769] Description


[27770] Begins an asynchronous request to resolve a DNS host name or IP address in dotted-quad notation to an System.Net.IPAddress instance.


[27771] Return Value: An System.IAsyncResult instance that references the asynchronous request.


[27772] The System.Net.Dns.BeginResolve(System.String,System.AsyneCallback,System. Object) method starts an asynchronous request for DNS host information. The asynchronous callback method uses the System.Net.Dns.EndResolve(System.IAsyncResult) method to return the actual host information. A string containing the DNS name of the host. The System.AsyncCallback. The State object.


[27773] EndGetHostByName


[27774] [C+] public static IPHostEntry EndGetHostByName(IAsyncResult asyncResult);


[27775] [C++] public: static IPHostEntry* EndGetHostByName(IAsyncResult* asyncResult);


[27776] [VB] Public Shared Function EndGetHostByName(ByVal asyncResult As IAsyncResult) As IPHostEntry


[27777] [JScript] public static function EndGetHostByName(asyncResult: IAsyncResult) IPHostEntry;


[27778] Description


[27779] Ends an asynchronous request for DNS information.


[27780] Return Value: An System.Net.IPHostEntry object containing DNS information about a host.


[27781] The System.Net.Dns.EndGetHostByName(System.IAsyncResult) method completes an asynchronous request for DNS information that was started with a call to System.Net.Dns.BeginGetHostByName(System.String,System.AsyncCallback, System.Object). The pending request for DNS information.


[27782] EndResolve


[27783] [C#] public static IPHostEntry EndResolve(IAsyncResult asyncResult);


[27784] [C++] public: static IPHostEntry* EndResolve(IAsyncResult* asyncResult);


[27785] [VB] Public Shared Function EndResolve(ByVal asyncResult As IAsyncResult) As IPHostEntry


[27786] [JScript] public static function EndResolve(asyncResult: IAsyncResult): IPHostEntry;


[27787] Description


[27788] Ends an asynchronous request for DNS information.


[27789] Return Value: An System.Net.IPHostEntry object containing DNS information about a host.


[27790] The System.Net.Dns.EndResolve(System.IAsyncResult) method completes an asynchronous request for DNS information that was started with a call to System.Net.Dns.BeginResolve(System.String,System.AsyncCallback,System. Object). The pending request for DNS information.


[27791] GetHostByAddress


[27792] [C#] public static IPHostEntry GetHostByAddress(IPAddress address);


[27793] [C++] public: static IPHostEntry* GetHostByAddress(IPAddress* address);


[27794] [VB] Public Shared Function GetHostByAddress(ByVal address As IPAddress) As IPHostEntry


[27795] [JScript] public static function GetHostByAddress(address: IPAddress): IPHostEntry;


[27796] Description


[27797] Creates an System.Net.IPHostEntry instance from a specified System.Net.IPAddress instance.


[27798] Return Value: An System.Net.IPHostEntry instance. An System.Net.IPAddress instance.


[27799] GetHostByAddress


[27800] [C#] public static IPHostEntry GetHostByAddress(string address);


[27801] [C++] public: static IPHostEntry* GetHostByAddress(String* address);


[27802] [VB] Public Shared Function GetHostByAddress(ByVal address As String) As IPHostEntry


[27803] [JScript] public static function GetHostByAddress(address: String): IPHostEntry; Gets DNS host information for an IP address.


[27804] Description


[27805] Creates an System.Net.IPHostEntry instance from an address in dotted-quad notation (“198.162.1.2”).


[27806] Return Value: An System.Net.IPHostEntry instance. A string that represents an IP address in dotted-quad notation (for example, “192.168.1.2”).


[27807] GetHostByName


[27808] [C#] public static IPHostEntry GetHostByName(string hostName);


[27809] [C++] public: static IPHostEntry* GetHostByName(String* hostName);


[27810] [VB] Public Shared Function GetHostByName(ByVal hostName As String) As IPHostEntry


[27811] [JScript] public static function GetHostByName(hostName: String) IPHostEntry;


[27812] Description


[27813] Gets the DNS information for the specified DNS host name.


[27814] Return Value: An System.Net.IPHostEntry object containing host information for the address specified in hostName.


[27815] The System.Net.Dns.GetHostByName(System.String) method queries the Internet DNS server for host information. A string containing the DNS name of the host.


[27816] GetHostName


[27817] [C#] public static string GetHostName( );


[27818] [C++] public: static String* GetHostName( );


[27819] [VB] Public Shared Function GetHostName( ) As String


[27820] [JScript] public static function GetHostName( ): String;


[27821] Description


[27822] Gets the host name of the local machine.


[27823] Return Value: A string containing the DNS host name of the local machine.


[27824] ToString


[27825] [C#] public static string IpToString(int address);


[27826] [C++] public: static String* IpToString(int address);


[27827] [VB] Public Shared Function IpToString(ByVal address As Integer) As String


[27828] [JScript] public static function IpToString(address: int): String;


[27829] Description


[27830] Converts an IP address to a dotted-quad string.


[27831] Return Value: The string representation of the IP address. The System.Net.Dns.IpToString(System.Int32) method converts an IP address expressed as an integer (for example, 33663168) to an IP address expressed in dotted-quad notation (for example, “192.168.1.2”). The IP address to convert.


[27832] Resolve


[27833] [C#] public static IPHostEntry Resolve(string hostname);


[27834] [C++] public: static IPHostEntry* Resolve(String* hostName);


[27835] [VB] Public Shared Function Resolve(ByVal hostName As String) As IPHostEntry


[27836] [JScript] public static function Resolve(hostName: String): IPHostEntry;


[27837] Description


[27838] Resolves a DNS host name or IP address in dotted-quad notation to an System.Net.IPHostEntry instance.


[27839] Return Value: An System.Net.IPHostEntry instance containing address information about the host specified in hostName.


[27840] The System.Net.Dns.Resolve(System.String) method queries a DNS server for the IP address associated with a host name or IP address in dotted-quad notation. A DNS-style host name or IP address in dotted-quad notation. (for example, “www.contoso.com ” or “192.168.1.2”).


[27841] DnsPermission class (System.Net)


[27842] ToString


[27843] Description


[27844] Controls rights to access Domain Name System (DNS) servers on the network.


[27845] The default allows all local and Intranet zone applications to access DNS services, and no DNS permission for Internet zone applications.


[27846] DnsPermission


[27847] Example Syntax:


[27848] ToString


[27849] [C#] public DnsPermission(PermissionState state);


[27850] [C++] public: DnsPermission(PermissionState state);


[27851] [VB] Public Sub New(ByVal state As PermissionState)


[27852] [JScript] public function DnsPermission(state: PermissionState); Creates a new instance of the System.Net.DnsPermission class.


[27853] Description


[27854] Creates a new instance of the System.Net.DnsPermission class that either passes all demands or fails all demands.


[27855] If state is System.Security.Permissions.PermissionState.Unrestricted the System.Net.DnsPermission instance passes all demands. If state contains any other value, the System.Net.DnsPermission instance fails all demands. One of the System.Security.Permissions.PermissionState values.


[27856] Copy


[27857] [C#] public override IPermission Copy( );


[27858] [C++] public: IPermission* Copy( );


[27859] [VB] Overrides Public Function Copy( ) As IPermission


[27860] [JScript] public override function Copy( ): IPermission;


[27861] Description


[27862] Creates an identical copy of the current permission instance.


[27863] Return Value: A new instance of the System.Net.DnsPermission class that is an identical copy of the current instance.


[27864] A copy of a System.Net.DnsPermission instance provides the same access to DNS servers as the original permission instance.


[27865] FromXml


[27866] [Ci] public override void FromXml(SecurityElement securityElement);


[27867] [C++] public: void FromXml(SecurityElement* securityElement);


[27868] [VB] Overrides Public Sub FromXml(ByVal securityElement As SecurityElement)


[27869] [JScript] public override function FromXml(securityElement: SecurityElement);


[27870] Description


[27871] Reconstructs a System.Net.DnsPermission instance from an XML encoding.


[27872] The System.Net.DnsPermission.FromXml(System.Security.SecurityElement) method reconstructs a System.Net.DnsPermission instance from an XML encoding defined by System.Security.SecurityElement class. The XML encoding to use to reconstruct the System.Net.DnsPermission instance.


[27873] Intersect


[27874] [C#] public override IPermission Intersect(IPermission target);


[27875] [C++] public: IPermission* Intersect(IPermission* target);


[27876] [VB] Overrides Public Function Intersect(ByVal target As IPermission) As IPermission


[27877] [JScript] public override function Intersect(target: IPermission): IPermission;


[27878] Description


[27879] Creates a permission instance that is the intersection of the current permission instance and the specified permission instance.


[27880] Return Value: A System.Net.DnsPermission instance that represents the intersection of the current System.Net.DnsPermission instance with the specified System.Net.DnsPermission instance, or null if the intersection is empty.


[27881] The System.Net.DnsPermission.Intersect(System.Security.IPermission) method returns a System.Net.DnsPermission instance that allows the access defined by both the current System.Net.DnsPermission instance and the specified System.Net.DnsPermission instance. Any demand must pass both permissions to pass their intersection. The System.Net.DnsPermission instance to combine with the current instance.


[27882] IsSubsetOf


[27883] [C#] public override bool IsSubsetOf(IPermission target);


[27884] [C++] public: bool IsSubsetOf(IPermission* target);


[27885] [VB] Overrides Public Function IsSubsetOf(ByVal target As IPermission) As Boolean


[27886] [JScript] public override function IsSubsetOf(target: IPermission): Boolean;


[27887] Description


[27888] Determines whether the current permission instance is a subset of the specified permission instance.


[27889] Return Value: true if the current permission instance is a subset of target; otherwise, false.


[27890] The current System.Net.DnsPermission instance is a subset of the specified System.Net.DnsPermission instance if the current System.Net.DnsPermission instance specifies a set of operations that is wholly contained by the specified System.Net.DnsPermission instance. The second System.Net.DnsPermission instance to be tested for the subset relationship.


[27891] IsUnrestricted


[27892] [C#] public bool IsUnrestricted( );


[27893] [C++] public: _sealed bool IsUnrestricted( );


[27894] [VB] NotOverridable Public Function IsUnrestricted( ) As Boolean


[27895] [JScript] public function IsUnrestricted( ): Boolean;


[27896] Description


[27897] Checks the overall permission state of the object.


[27898] Return Value: true if the System.Net.DnsPermission instance was created with System.Security.Permissions.PermissionState.Unrestricted; otherwise, false.


[27899] ToXml


[27900] [C#] public override SecurityElement ToXml( );


[27901] [C++] public: SecurityElement* ToXml( );


[27902] [VB] Overrides Public Function ToXml( ) As SecurityElement


[27903] [JScript] public override function ToXml( ): SecurityElement;


[27904] Description


[27905] Creates an XML encoding of a System.Net.DnsPermission instance and its current state.


[27906] Return Value: A System.Security.SecurityElement instance containing an XML-encoded representation of the security object, including state information.


[27907] The System.Net.DnsPermission.ToXml method creates a System.Security.SecurityElement instance to XML-encode a representation of the System.Net.DnsPermission instance, including state information.


[27908] Union


[27909] [C#] public override Ipermission Union(IPermission target);


[27910] [C++] public: Iperrission* Union(IPermission* target);


[27911] [VB] Overrides Public Function Union(ByVal target As IPermission) As IPermission


[27912] [JScript] public override function Union(target: IPermission): IPermission;


[27913] Description


[27914] Creates a permission instance that is the union of the current permission instance and the specified permission instance.


[27915] Return Value: A System.Net.DnsPermission instance that represents the union of the current System.Net.DnsPermission instance with the specified System.Net.DnsPermission instance.


[27916] The System.Net.DnsPermission.Union(System.Security.IPermission) method returns a System.Net.DnsPermission instance that allows the access defined by either the current System.Net.DnsPermission instance and the specified System.Net.DnsPermission instance. Any demand that passes either permission passes their union. The System.Net.DnsPermission instance to combine with the current instance.


[27917] DnsPermissionAttribute class (System.Net)


[27918] Union


[27919] Description


[27920] Enables security actions for System.Net.DnsPermission to be applied to code using declarative security. This class cannot be inherited.


[27921] DnsPermissionAttribute


[27922] Example Syntax:


[27923] Union


[27924] [C#] public DnsPerrnissionAttribute(SecurityAction action);


[27925] [C++] public: DnsPennissionAttribute(SecurityAction action);


[27926] [VB] Public Sub New(ByVal action As SecurityAction)


[27927] [JScript] public function DnsPermissionAttribute(action: SecurityAction);


[27928] Description


[27929] Initializes a new instance of the System.Net.DnsPermissionAttribute class with the specified System.Security.Permissions.SecurityAction value. One of the System.Security.Permissions.SecurityAction values.


[27930] Action Typeld


[27931] Unrestricted


[27932] CreatePermission


[27933] [C#] public override IPermission CreatePermission( );


[27934] [C++] public: IPermission* CreatePermission( );


[27935] [VB] Overrides Public Function CreatePermission( ) As IPermission


[27936] [JScript] public override function CreatePermission( ): IPermission;


[27937] Description


[27938] Creates and returns a new instance of the System.Net.DnsPermission class.


[27939] Return Value: An instance of the System.Net.DnsPermission class corresponding to the security declaration.


[27940] The System.Net.DnsPermissionAttribute.CreatePermission method is called by the security system, not by application code.


[27941] EndPoint class (System.Net)


[27942] ToString


[27943] Description


[27944] Identifies a network address. This is an abstract class.


[27945] The System.Net.EndPoint class provides an abstract base class that represents a network resource or service. Descendant classes combine network connection information to form a connection point to a service.


[27946] EndPoint


[27947] Example Syntax:


[27948] ToString


[27949] [C#] protected EndPoint( );


[27950] [C++] protected: EndPoint( );


[27951] [VB] Protected Sub New( )


[27952] [JScript] protected function EndPoint( );


[27953] AddressFamily


[27954] ToString


[27955] [C#] public virtual AddressFamily AddressFamily {get;}


[27956] [C++] public: _property virtual AddressFamily get_AddressFamily( );


[27957] [VB] Overridable Public ReadOnly Property AddressFamily As AddressFamily


[27958] [JScript] public function get AddressFamily( ): AddressFamily;


[27959] Description


[27960] Gets the address family to which the endpoint belongs.


[27961] The System.Net.EndPoint.AddressFamily property specifies the addressing scheme used by the end point's underlying network protocol.


[27962] Create


[27963] [C#] public virtual EndPoint Create(SocketAddress socketaddress);


[27964] [C++] public: virtual EndPoint* Create(SocketAddress* socketAddress);


[27965] [VB] Overridable Public Function Create(ByVal socketAddress As SocketAddress) As EndPoint


[27966] [JScript] public function Create(socketAddress: SocketAddress): EndPoint;


[27967] Description


[27968] Creates an System.Net.EndPoint instance from a System.Net.SocketAddress instance.


[27969] Return Value: A new System.Net.EndPoint instance initialized from the specified System.Net.SocketAddress instance. The socket address that serves as the endpoint for a connection.


[27970] Serialize


[27971] [C#] public virtual SocketAddress Serialize( );


[27972] [C++] public: virtual SocketAddress* Serialize( );


[27973] [VB] Overridable Public Function Serialize( ) As SocketAddress


[27974] [JScript] public function Serialize( ): SocketAddress;


[27975] Description


[27976] Serializes endpoint information into a System.Net.SocketAddress instance.


[27977] Return Value: A System.Net.SocketAddress instance containing the endpoint information.


[27978] EndpointPermission class (System.Net)


[27979] ToString


[27980] Description


[27981] Defines an endpoint that is authorized by a System.Net.SocketPermission instance.


[27982] The System.Net.EndpointPermission class defines a network endpoint, including host name, network port number, and transport type used to make the connection.


[27983] Hostname


[27984] ToString


[27985] [C#] public string Hostname {get;}


[27986] [C++] public: _property String* get_Hostname( );


[27987] [VB] Public ReadOnly Property Hostname As String


[27988] [JScript] public function get Hostname( ): String;


[27989] Description


[27990] Gets the DNS host name or IP address of the server associated with this endpoint.


[27991] Port


[27992] ToString


[27993] [C#] public int Port {get;}


[27994] [C++] public: _property int get_Port( );


[27995] [VB] Public ReadOnly Property Port As Integer


[27996] [JScript] public function get Port( ): int;


[27997] Description


[27998] Gets the network port number associated with this endpoint.


[27999] Transport


[28000] ToString


[28001] [C#] public TransportType Transport {get;}


[28002] [C++] public: _property TransportType get_Transport( );


[28003] [VB] Public ReadOnly Property Transport As TransportType


[28004] [JScript] public function get Transport( ): TransportType;


[28005] Description


[28006] Gets the transport type associated with this endpoint.


[28007] Equals


[28008] [C#] public override bool Equals(object obj);


[28009] [C++] public: bool Equals(Object* obj);


[28010] [VB] Overrides Public Function Equals(ByVal obj As Object) As Boolean


[28011] [JScript] public override function Equals(obj: Object): Boolean;


[28012] Description


[28013] GetHashCode


[28014] [C#] public override int GetHashCode( );


[28015] [C++] public: int GetHashCode( );


[28016] [VB] Overrides Public Function GetHashCode As Integer


[28017] [JScript] public override function GetHashCode( ): int;


[28018] Description


[28019] ToString


[28020] [C#] public override string ToString( );


[28021] [C++] public: String* ToString( );


[28022] [VB] Overrides Public Function ToString( ) As String


[28023] [JScript] public override function ToString( ): String;


[28024] Description


[28025] Returns a string that represents the current System.Net.EndpointPermission instance.


[28026] Return Value: A string that represents the current System.Net.EndpointPermission instance.


[28027] The System.Net.EndpointPermission.ToString method returns a string representing the contents for the System.Net.EndpointPermission instance. The string is in the form System.Net.EndpointPermission.Hostname # System.Net.EndpointPermission.Port # System.Net.EndpointPermission.Transport.


[28028] FileWebRequest class (System.Net)


[28029] ToString


[28030] Description


[28031] Provides a file system implementation of the System.Net.WebRequest class.


[28032] The System.Net.FileWebRequest class implements the System.Net.WebRequestabstract base class for URIs that use the file:// scheme to request local files.


[28033] FileWebRequest


[28034] Example Syntax:


[28035] ToString


[28036] [C#] protected FileWebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext);


[28037] [C++] protected: FileWebRequest(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[28038] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext)


[28039] [JScript] protected function FileWebRequest(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[28040] Description


[28041] Initializes a new instance of the System.Net.FileWebRequest class from the specified instances of the System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext classes.


[28042] This constructor implements the System.Runtime.Serialization.ISerializable interface for the System.Net.FileWebRequest class. A System.Runtime.Serialization.SerializationInfo instance that contains the information required to serialize the new System.Net.FileWebRequest instance. An instance of the System.Runtime.Serialization.StreamingContext class that contains the source of the serialized stream associated with the new System.Net.FileWebRequest instance.


[28043] ConnectionGroupName


[28044] ToString


[28045] [C#] public override string ConnectionGroupName {get; set;}


[28046] [C++] public: _property virtual String* get_ConnectionGroupName( );public: _property virtual void set_ConnectionGroupName(String*);


[28047] [VB] Overrides Public Property ConnectionGroupName As String


[28048] [JScript] public function get ConnectionGroupName( ): String;public function set ConnectionGroupName(String);


[28049] Description


[28050] Gets or sets the name of the connection group for the request. This property is reserved for future use.


[28051] The System.Net.FileWebRequest.ConnectionGroupName property is currently not used by the System.Net.FileWebRequest class.


[28052] ContentLength


[28053] ToString


[28054] [C#] public override long ContentLength {get; set;}


[28055] [C++] public: _property virtual _int64 get_ContentLength( );public: _property


[28056] virtual void set_ContentLength(_int64);


[28057] [VB] Overrides Public Property ContentLength As Long


[28058] [JScript] public function get ContentLength( ): long;public function set ContentLength(long);


[28059] Description


[28060] Gets or sets the content length of the data being sent.


[28061] ContentType


[28062] ToString


[28063] [C#] public override string ContentType {get; set;}


[28064] [C++] public: _Property virtual String* get_ContentType( );public: _property virtual void set_ContentType(String*);


[28065] [VB] Overrides Public Property ContentType As String


[28066] [JScript] public function get ContentType( ): String;public function set ContentType(String);


[28067] Description


[28068] Gets or sets the content type of the data being sent. This property is reserved for future use.


[28069] The System.Net.FileWebRequest.ContentType property contains the media type of the data being sent. This is typically the MIME encoding of the content. The System.Net.FileWebRequest.ContentType property is currently not used by the System.Net.FileWebRequest class.


[28070] Credentials


[28071] ToString


[28072] [C#] public override ICredentials Credentials {get; set;}


[28073] [C++] public: _property virtual ICredentials* get_Credentials( );public: _Iproperty virtual void set_Credentials(ICredentials*);


[28074] [VB] Overrides Public Property Credentials As ICredentials


[28075] [JScript] public function get Credentials( ): ICredentials;public function set Credentials(ICredentials);


[28076] Description


[28077] Gets or sets the credentials associated with this request. This property is reserved for future use.


[28078] Because the System.Net.FileWebRequest class does not authenticate requests for files from the local file system, it ignores the contents, if any, of the System.Net.FileWebRequest.Credentials property. Authentication for System.Net.FileWebRequest is handled by the access control lists for the file resource in the underlying file system.


[28079] Headers


[28080] ToString


[28081] [C#] public override WebHeaderCollection Headers {get;}


[28082] [C++] public: _property virtual WebHeaderCollection* get_Headers( );


[28083] [VB] Overrides Public ReadOnly Property Headers As WebHeaderCollection


[28084] [JScript] public function get Headers( ): WebHeaderCollection;


[28085] Description


[28086] Gets a collection of the name/value pairs associated with the request. This property is reserved for future use.


[28087] The System.Net.FileWebRequest.Headers property is currently not used by the System.Net.FileWebRequest class.


[28088] Method


[28089] ToString


[28090] [C#] public override string Method {get; set;}


[28091] [C++] public: _property virtual String* get_Method( );public: _property virtual void set_Method(String*);


[28092] [VB] Overrides Public Property Method As String


[28093] [JScript] public function get Method( ): String;public function set Method(String);


[28094] Description


[28095] Gets or sets the protocol method used for the request. This property is reserved for future use.


[28096] The System.Net.FileWebRequest.Method property is currently not used by the System.Net.FileWebRequest class.


[28097] PreAuthenticate


[28098] ToString


[28099] [C#] public override bool PreAuthenticate {get; set;}


[28100] [C++] public: _virtual bool getPreAuthenticate( );public: _property virtual void set_PreAuthenticate(bool);


[28101] [VB] Overrides Public Property PreAuthenticate As Boolean


[28102] [JScript] public function get PreAuthenticate( ): Boolean;public function set PreAuthenticate(Boolean);


[28103] Description


[28104] Gets or sets a value indicating whether to preauthenticate a request. This property is reserved for future use.


[28105] The System.Net.FileWebRequest.PreAuthenticate property is currently not used by the System.Net.FileWebRequest class.


[28106] Proxy


[28107] ToString


[28108] [C#] public override IWebProxy Proxy {get; set;}


[28109] [C++] public: _virtual IWebProxy* get_Proxy( );public: _virtual void set_Proxy(IWebProxy*);


[28110] [VB] Overrides Public Property Proxy As IWebProxy


[28111] [JScript] public function get Proxy( ): IWebProxy;public function set Proxy(IWebProxy);


[28112] Description


[28113] Gets or sets the network proxy to use for this request. This property is reserved for future use.


[28114] The System.Net.FileWebRequest.Proxy property is currently not used by the System.Net.FileWebRequest class.


[28115] RequestUri


[28116] ToString


[28117] [C#] public override Uri RequestUri {get;}


[28118] [C++] public: _virtual Uri* get_RequestUri( );


[28119] [VB] Overrides Public ReadOnly Property RequestUri As Uri


[28120] [JScript] public function get RequestUri( ): Uri;


[28121] Description


[28122] Gets the URI of the request.


[28123] Timeout


[28124] ToString


[28125] [C#] public override int Timeout {get; set;}


[28126] [C++] public: _virtual int get_Timeout( );public: _virtual void set_Timeout(int);


[28127] [VB] Overrides Public Property Timeout As Integer


[28128] [JScript] public function get Timeout( ): int;public function set Timeout(int);


[28129] Description


[28130] Gets or sets the length of time until the request times out.


[28131] BeginGetRequestStream


[28132] [C#] public override IAsyncResult BeginGetRequestStream(AsyncCallback callback, object state);


[28133] [C++] public: IAsyncResult* BeginGetRequestStream(AsyncCallback* callback, Object* state);


[28134] [VB] Overrides Public Function BeginGetRequestStream(ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[28135] [JScript] public override function BeginGetRequestStream(callback: AsyncCallback, state: Object): IAsyncResult;


[28136] Description


[28137] Begins an asynchronous request for a System.IO.Stream instance to use to write data.


[28138] Return Value: An System.IAsyncResult that references the asynchronous request.


[28139] The System.Net.FileWebRequest.BeginGetRequestStream(System.AsyncCallback ,System.Object) method starts an asynchronous request for a stream used to send data to a file system resource. The callback method that implements the System.AsyncCallback delegate uses the System.Net.FileWebRequest.EndGetRequestStream(System.IAsyncResult) method to return the request stream. The System.AsyncCallback delegate. An object containing state information for this request.


[28140] BeginGetResponse


[28141] [C#] public override IAsyncResult BeginGetResponse(AsyncCallback callback, object* state);


[28142] [C++] public: IAsyncResult* BeginGetResponse(AsyncCallback* callback, Object* state);


[28143] [VB] Overrides Public Function BeginGetResponse(ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[28144] [JScript] public override function BeginGetResponse(callback: AsyncCallback, state: Object): lAsyncResult;


[28145] Description


[28146] Begins an asynchronous request for a file system resource.


[28147] Return Value: An System.IAsyncResult that references the asynchronous request.


[28148] The System.Net.FileWebRequest.BeginGetResponse(System.AsyncCallback,Syste m.Object) method starts an asynchronous request for a file system resource. The asynchronous callback method that implements the System.AsyncCallback delegate uses the System.Net.FileWebRequest.EndGetResponse(System.IAsyncResult) method to return the actual System.Net.FileWebResponse . The System.AsyncCallback delegate. An object containing state information for this request.


[28149] EndGetRequestStream


[28150] [C#] public override Stream EndGetRequestStream(IAsyncResult asyncResult);


[28151] [C++] public: Stream* EndGetRequestStream(IAsyncResult* asyncResult);


[28152] [VB] Overrides Public Function EndGetRequestStream(ByVal asyncResult As lAsyncResult) As Stream


[28153] [JScript] public override function EndGetRequestStream(asyncResult: lAsyncResult): Stream;


[28154] Description


[28155] Ends an asynchronous request for a System.IO.Stream instance that the application uses to write data.


[28156] Return Value: A System.IO.Stream instance that the application uses to write data.


[28157] The System.Net.FileWebRequest.EndGetRequestStream(System.IAsyncResult) method completes an asynchronous stream request that was started by the System.Net.FileWebRequest.BeginGetRequestStream(System.AsyncCallback ,System.Object) method. An System.IAsyncResult referencing the pending request for a stream.


[28158] EndGetResponse


[28159] [C#] public override WebResponse EndGetResponse(IAsyncResult asyncResult);


[28160] [C++] public: WebResponse* EndGetResponse(IAsyncResult* asyncResult);


[28161] [VB] Overrides Public Function EndGetResponse(ByVal asyncResult As IAsyncResult) As WebResponse


[28162] [JScript] public override function EndGetResponse(asyncResult: lAsyncResult): WebResponse;


[28163] Description


[28164] Ends an asynchronous request for a file system resource.


[28165] Return Value: A System.Net.WebResponse that contains the response from the file system resource.


[28166] The System.Net.FileWebRequest.EndGetResponse(System.IAsyncResult) method completes an asynchronous request for a file system resource that was started with the System.Net.FileWebRequest.BeginGetResponse(System.AsyncCallback,Syste m.Object) method. An System.IAsyncResult referencing the pending request for a response.


[28167] GetRequestStream


[28168] [C#] public override Stream GetRequestStream( );


[28169] [C++] public: Stream* GetRequestStream( );


[28170] [VB] Overrides Public Function GetRequestStream( ) As Stream


[28171] [JScript] public override function GetRequestStream( ): Stream;


[28172] Description


[28173] Returns a System.IO.Stream instance for writing data to the file system resource.


[28174] Return Value: A System.IO.Stream for writing data to the file system resource.


[28175] The System.Net.FileWebRequest.GetRequestStream method returns a System.IO.Stream instance for writing data to the file system resource.


[28176] GetResponse


[28177] [C#] public override WebResponse GetResponse( );


[28178] [C++] public: WebResponse* GetResponse( );


[28179] [VB] Overrides Public Function GetResponse( ) As WebResponse


[28180] [JScript] public override function GetResponse( ): WebResponse;


[28181] Description


[28182] Returns a response to a file system request.


[28183] Return Value: A System.Net.WebResponse that contains the response from the file system resource.


[28184] The System.Net.FileWebRequest.GetResponse method returns a System.Net.WebResponse instance containing the response from the file system resource.


[28185] ISerializable.GetObjectData


[28186] [C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext);


[28187] [C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[28188] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext) Implements ISerializable.GetObjectData


[28189] [J Script] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streamingcontext: StreamingContext);


[28190] FileWebResponse class (System.Net)


[28191] ToString


[28192] Description


[28193] Provides a file system implementation of the System.Net.WebResponse class.


[28194] The System.Net.FileWebResponse class implements the System.Net.WebResponseabstract base class to return file system resources for the System.Net.FileWebRequest class.


[28195] FileWebResponse


[28196] Example Syntax:


[28197] ToString


[28198] [C#] protected FileWebResponse(SerializationInfo serializationInfo, StreamingContext streamingcontext);


[28199] [C++] protected: FileWebResponse(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[28200] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingcontext As StreamingContext)


[28201] [JScript] protected function FileWebResponse(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[28202] Description


[28203] Initializes a new instance of the System.Net.FileWebResponse class from the specified instances of the System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext classes.


[28204] This constructor implements the System.Runtime.Serialization.ISerializable interface for the System.Net.FileWebResponse class. A System.Runtime.Serialization.SerializationInfo instance that contains the information required to serialize the new System.Net.FileWebResponse instance. An instance of the System.Runtime.Serialization.StreamingContext class that contains the source of the serialized stream associated with the new System.Net.FileWebResponse instance.


[28205] ContentLength


[28206] ToString


[28207] [C#] public override long ContentLength {get;}


[28208] [C++] public: _virtual _int64 get_ContentLength( );


[28209] [VB] Overrides Public ReadOnly Property ContentLength As Long


[28210] [JScript] public function get ContentLength( ): long;


[28211] Description


[28212] Gets the length of the content in the file system resource.


[28213] The System.Net.FileWebResponse.ContentLength property contains the length, in bytes, of the file system resource.


[28214] ContentType


[28215] ToString


[28216] [C#] public override string ContentType {get;}


[28217] [C++] public: _property virtual String* get_ContentType( );


[28218] [VB] Overrides Public ReadOnly Property ContentType As String


[28219] [JScript] public function get ContentType( ): String;


[28220] Description


[28221] Gets the content type of the file system resource.


[28222] The System.Net.FileWebResponse.ContentType property contains the content type of the file system resource. The value of System.Net.FileWebResponse.ContentType is always “binary/octet-stream”.


[28223] Headers


[28224] ToString


[28225] [CY] public override WebHeaderCollection Headers {get;}


[28226] [C++] public: _property virtual WebHeaderCollection* get_Headers( );


[28227] [VB] Overrides Public ReadOnly Property Headers As WebHeaderCollection


[28228] [JScript] public function get Headers( ): WebHeaderCollection;


[28229] Description


[28230] Gets a collection of header name/value pairs associated with the response.


[28231] The System.Net.FileWebResponse.Headers property contains two name/value pairs, one for content length and one for content type, both of which are also exposed as properties, System.Net.FileWebResponse.ContentLength and System.Net.FileWebResponse.ContentType.


[28232] ResponseUri


[28233] ToString


[28234] [C#] public override Uri ResponseUri {get;}


[28235] [C++] public: _property virtual Uri* get_ResponseUri( );


[28236] [VB] Overrides Public ReadOnly Property ResponseUri As Uri


[28237] [JScript] public function get ResponseUri( ): Uri;


[28238] Description


[28239] Gets the URI of the file system resource that provided the response.


[28240] The System.Net.FileWebResponse.ResponseUri property contains the URI of the file system resource that provided the response. This is always the file system resource that was requested.


[28241] Close


[28242] [C#] public override void Close( );


[28243] [C++] public: void Close( );


[28244] [VBJ] Overrides Public Sub Close( )


[28245] [JScript] public override function Close( );


[28246] Description


[28247] Closes the response stream.


[28248] The System.Net.FileWebResponse.Close method cleans up the resources used by a System.Net.FileWebResponse and closes the response stream by calling the System.IO.Stream.Close method.


[28249] Dispose


[28250] [C#] protected virtual void Dispose(bool disposing);


[28251] [C++] protected: virtual void Dispose(bool disposing);


[28252] [VB] Overridable Protected Sub Dispose(ByVal disposing As Boolean)


[28253] [JScript] protected function Dispose(disposing: Boolean);


[28254] GetResponseStream


[28255] [C#] public override Stream GetResponseStream( );


[28256] [C++] public: Stream* GetResponseStream( );


[28257] [VB] Overrides Public Function GetResponseStream( ) As Stream


[28258] [JScript] public override function GetResponseStream( ): Stream;


[28259] Description


[28260] Returns the data stream from the file system resource.


[28261] Return Value: A System.IO.Stream for reading data from the file system resource.


[28262] The System.Net.FileWebResponse.GetResponseStream method returns the data stream from the file system resource.


[28263] IDisposable.Dispose


[28264] [C#] void IDisposable.Dispose( );


[28265] [C++] void IDisposable::Dispose( );


[28266] [VB] Sub Dispose Implements IDisposable.Dispose


[28267] [JScript] function IDisposable.Dispose( );


[28268] ISerializable.GetObjectData


[28269] [C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingcontext);


[28270] [C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[28271] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext) Implements ISerializable.GetObjectData


[28272] [JScript] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[28273] GlobalProxySelection class (System.Net)


[28274] ToString


[28275] Description


[28276] Contains a global default proxy instance for all HTTP requests.


[28277] The System.Net.GlobalProxySelection stores the proxy settings for the default proxy that System.Net.WebRequest instances use to contact Internet sites beyond the local network. The default proxy setting is initialized from the global or application configuration file, and can be overridden for individual requests, or disabled by setting the System.Net.HttpWebRequest.Proxy property to the result of the System.Net.GlobalProxySelection.GetEmptyWebProxy method.


[28278] GlobalProxySelection


[28279] Example Syntax:


[28280] ToString


[28281] [C++] public GlobalProxySelection( );


[28282] [C++] public: Glob alProxySelection( );


[28283] [VB] Public Sub New( )


[28284] [JScript] public function GlobalProxySelection( );


[28285] Select


[28286] ToString


[28287] [C#] public static IWebProxy Select {get; set;}


[28288] [C++] public: _property static IWebProxy* get_Select( );public: _static void set_Select(IWebProxy*);


[28289] [VB] Public Shared Property Select As IWebProxy


[28290] [JScript] public static function get Select( ): IWebProxy;public static function set Select(IWebProxy);


[28291] Description


[28292] Gets or sets the global HTTP proxy.


[28293] The System.Net.GlobalProxySelection.Select method sets the proxy that all System.Net.HttpWebRequest instances use.


[28294] GetEmptyWebProxy


[28295] [C#] public static IWebProxy GetEmptyWebProxy( );


[28296] [C++] public: static IWebProxy* GetEmptyWebProxy( );


[28297] [VB] Public Shared Function GetEmptyWebProxy( ) As IWebProxy


[28298] [JScript] public static function GetEmptyWebProxy( ): IWebProxy;


[28299] Description


[28300] Returns an empty proxy instance.


[28301] Return Value: An System.Net.IWebProxy that contains no information.


[28302] The System.Net.GlobalProxySelection.GetEmptyWebProxy method returns a blank System.Net.IWebProxy instance to indicate that no proxy is used to access an Internet resource.


[28303] HttpContinueDelegate delegate (System.Net)


[28304] ToString


[28305] Description


[28306] Represents the method that notifies callers when a continue response is received by the client. The numeric value of the HTTP status from the server. The headers returned with the 100-continue response from the server.


[28307] Use System.Net.HttpContinueDelegate to specify the callback method to be called when an HTTP 100-continue response is received from the server. When set, the delegate is called whenever protocol responses of type System.Net.HttpStatusCode.Continue are received.


[28308] HttpStatusCode enumeration (System.Net)


[28309] ToString


[28310] Description


[28311] Contains the values of status codes defined for HTTP.


[28312] The System.Net.HttpStatusCode enumeration contains the values of the status codes defined in RFC 2616 for HTTP 1.1.


[28313] ToString


[28314] [C#] public const HttpStatusCode Accepted;


[28315] [C++] public: const HttpStatusCode Accepted;


[28316] [VB] Public Const Accepted As HttpStatusCode


[28317] [JScript] public var Accepted: HttpStatusCode;


[28318] Description


[28319] Equivalent to HTTP status 202.


[28320] ToString


[28321] [C#] public const HttpStatusCode Ambiguous;


[28322] [C++] public: const HttpStatusCode Ambiguous;


[28323] [VB] Public Const Ambiguous As HttpStatusCode


[28324] [JScript] public var Ambiguous: HttpStatusCode;


[28325] Description


[28326] Equivalent to HTTP status 300.


[28327] ToString


[28328] [C#] public const HttpStatusCode BadGateway;


[28329] [C++] public: const HttpStatusCode BadGateway;


[28330] [VB] Public Const BadGateway As HttpStatusCode


[28331] [JScript] public var BadGateway: HttpStatusCode;


[28332] Description


[28333] Equivalent to HTTP status 502.


[28334] ToString


[28335] [C#] public const HttpStatusCode BadRequest;


[28336] [C++] public: const HttpStatusCode BadRequest;


[28337] [VB] Public Const BadRequest As HttpStatusCode


[28338] [JScript] public var BadRequest: HttpStatusCode;


[28339] Description


[28340] Equivalent to HTTP status 400.


[28341] ToString


[28342] [C#] public const HttpStatusCode Conflict;


[28343] [C++] public: const HttpStatusCode Conflict;


[28344] [VB] Public Const Conflict As HttpStatusCode


[28345] [JScript] public var Conflict: HttpStatusCode;


[28346] Description


[28347] Equivalent to HTTP status 409.


[28348] ToString


[28349] [C#] public const HttpStatusCode Continue;


[28350] [C++] public: const HttpStatusCode Continue;


[28351] [VB] Public Const Continue As HttpStatusCode


[28352] [JScript] public var Continue: HttpStatusCode;


[28353] Description


[28354] Equivalent to HTTP status 100.


[28355] ToString


[28356] [C#] public const HttpStatusCode Created;


[28357] [C++] public: const HttpStatusCode Created;


[28358] [VB] Public Const Created As HttpStatusCode


[28359] [JScript] public var Created: HttpStatusCode;


[28360] Description


[28361] Equivalent to HTTP status 201.


[28362]


[28363] ToString


[28364] [C#] public const HttpStatusCode ExpectationFailed;


[28365] [C++] public: const HttpStatusCode ExpectationFailed;


[28366] [VB] Public Const ExpectationFailed As HttpStatusCode


[28367] [JScript] public var ExpectationFailed: HttpStatusCode;


[28368] Description


[28369] Equivalent to HTTP status 417.


[28370]


[28371] ToString


[28372] [C#] public const HttpStatusCode Forbidden;


[28373] [C++] public: const HttpStatusCode Forbidden;


[28374] [VB] Public Const Forbidden As HttpStatusCode


[28375] [JScript] public var Forbidden: HttpStatusCode;


[28376] Description


[28377] Equivalent to HTTP status 403.


[28378] ToString


[28379] [C#] public const HttpStatusCode Found;


[28380] [C++] public: const HttpStatusCode Found;


[28381] [VB] Public Const Found As HttpStatusCode


[28382] [JScript] public var Found: HttpStatusCode;


[28383] Description


[28384] Equivalent to HTTP status 302.


[28385] ToString


[28386] [C#] public const HttpStatusCode GatewayTimeout;


[28387] [C++] public: const HttpStatusCode GatewayTimeout;


[28388] [VB] Public Const GatewayTimeout As HttpStatusCode


[28389] [JScript] public var GatewayTimeout: HttpStatusCode;


[28390] Description


[28391] Equivalent to HTTP status 504.


[28392] ToString


[28393] [C#] public const HttpStatusCode Gone;


[28394] [C++] public: const HttpStatusCode Gone;


[28395] [VB] Public Const Gone As HttpStatusCode


[28396] [JScript] public var Gone: HttpStatusCode;


[28397] Description


[28398] Equivalent to HTTP status 410.


[28399] ToString


[28400] [C#] public const HttpStatusCode HttpVersionNotSupported;


[28401] [C++] public: const HttpStatusCode HttpVersionNotSupported;


[28402] [VB] Public Const HttpVersionNotSupported As HttpStatusCode


[28403] [JScript] public var HttpVersionNotSupported: HttpStatusCode;


[28404] Description


[28405] Equivalent to HTTP status 505.


[28406] ToString


[28407] [C#] public const HttpStatusCode IntemalServerError;


[28408] [C++] public: const HttpStatusCode InternalServerError;


[28409] [VB] Public Const InternalServerError As HttpStatusCode


[28410] [JScript] public var InternalServerError: HttpStatusCode;


[28411] Description


[28412] Equivalent to HTTP status 500.


[28413] ToString


[28414] [C#] public const HttpStatusCode LengthRequired;


[28415] [C++] public: const HttpStatusCode LengthRequired;


[28416] [VB] Public Const LengthRequired As HttpStatusCode


[28417] [JScript] public var LengthRequired: HttpStatusCode;


[28418] Description


[28419] Equivalent to HTTP status 411.


[28420]


[28421] ToString


[28422] [C#] public const HttpStatusCode MethodNotAllowed;


[28423] [C++] public: const HttpStatusCode MethodNotAllowed;


[28424] [VB] Public Const MethodNotAllowed As HttpStatusCode


[28425] [JScript] public var MethodNotAllowed: HttpStatusCode;


[28426] Description


[28427] Equivalent to HTTP status 405.


[28428]


[28429] ToString


[28430] [C#] public const HttpStatusCode Moved;


[28431] [C++] public: const HttpStatusCode Moved;


[28432] [VB] Public Const Moved As HttpStatusCode


[28433] [JScript] public var Moved: HttpStatusCode;


[28434] Description


[28435] Equivalent to HTTP status 301.


[28436] ToString


[28437] [C#] pubic const HttpStatusCode MovedPermanently;


[28438] [C++] public: const HttpStatusCode MovedPennanently;


[28439] [VB] Public Const MovedPermanently As HttpStatusCode


[28440] [JScript] public var MovedPermanently: HttpStatusCode;


[28441] Description


[28442] Equivalent to HTTP status 301.


[28443] ToString


[28444] [C#] public const HttpStatusCode MultipleChoices;


[28445] [C++] public: const HttpStatusCode MultipleChoices;


[28446] [VB] Public Const MultipleChoices As HttpStatusCode


[28447] [JScript] public var MultipleChoices: HttpStatusCode;


[28448] Description


[28449] Equivalent to HTTP status 300.


[28450] ToString


[28451] [C#] public const HttpStatusCode NoContent;


[28452] [C++] public: const HttpStatusCode NoContent;


[28453] [VB] Public Const NoContent As HttpStatusCode


[28454] [JScript] public var NoContent: HttpStatusCode;


[28455] Description


[28456] Equivalent to HTTP status 204.


[28457] ToString


[28458] [C++] public const HttpStatusCode NonAuthoritativeInfonnation;


[28459] [C++] public: const HttpStatusCode NonAuthoritativeInformation;


[28460] [VB] Public Const NonAuthoritativeInformation As HttpStatusCode


[28461] [JScript] public var NonAuthoritativeInformation: HttpStatusCode;


[28462] Description


[28463] Equivalent to HTTP status 203.


[28464] ToString


[28465] [C#] public const HttpStatusCode NotAcceptable;


[28466] [C++] public: const HttpStatusCode NotAcceptable;


[28467] [VB] Public Const NotAcceptable As HttpStatusCode


[28468] [JScript] public var NotAcceptable: HttpStatusCode;


[28469] Description


[28470] Equivalent to HTTP status 406.


[28471] ToString


[28472] [C+] public const HttpStatusCode NotFound;


[28473] [C++] public: const HttpStatusCode NotFound;


[28474] [VB] Public Const NotFound As HttpStatusCode


[28475] [JScript] public var NotFound: HttpStatusCode;


[28476] Description


[28477] Equivalent to HTTP status 404.


[28478] ToString


[28479] [C#] public const HttpStatusCode NotImplemented;


[28480] [C++] public: const HttpStatusCode NotImplemented;


[28481] [VB] Public Const NotImplemented As HttpStatusCode


[28482] [JScript] public var NotImplemented: HttpStatusCode;


[28483] Description


[28484] Equivalent to HTTP status 501.


[28485] ToString


[28486] [C#] public const HttpStatusCode NotModified;


[28487] [C++] public: const HttpStatusCode NotModified;


[28488] [VB] Public Const NotModified As HttpStatusCode


[28489] [JScript] public var NotModified: HttpStatusCode;


[28490] Description


[28491] Equivalent to HTTP status 304.


[28492] ToString


[28493] [C#] public const HttpStatusCode OK;


[28494] [C++] public: const HttpStatusCode OK;


[28495] [VB] Public Const OK As HttpStatusCode


[28496] [JScript] public var OK: HttpStatusCode;


[28497] Description


[28498] Equivalent to HTTP status 200.


[28499] ToString


[28500] [C++] public const HttpStatusCode PartialContent;


[28501] [C++] public: const HttpStatusCode PartialContent;


[28502] [VB] Public Const PartialContent As HttpStatusCode


[28503] [JScript] public var PartialContent: HttpStatusCode;


[28504] Description


[28505] Equivalent to HTTP status 206.


[28506] ToString


[28507] [C#] public const HttpStatusCode PaymentRequired;


[28508] [C++] public: const HttpStatusCode PaymentRequired;


[28509] [VB] Public Const PaymentRequired As HttpStatusCode


[28510] [JScript] public var PaymentRequired: HttpStatusCode;


[28511] Description


[28512] Equivalent to HTTP status 402.


[28513] ToString


[28514] [C#] public const HttpStatusCode PreconditionFailed;


[28515] [C++] public: const HttpStatusCode PreconditionFailed;


[28516] [VB] Public Const PreconditionFailed As HttpStatusCode


[28517] [JScript] public var PreconditionFailed: HttpStatusCode;


[28518] Description


[28519] Equivalent to HTTP status 412.


[28520] ToString


[28521] [C#] public const HttpStatusCode ProxyAuthenticationRequired;


[28522] [C++] public: const HttpStatusCode ProxyAuthenticationRequired;


[28523] [VB] Public Const ProxyAuthenticationRequired As HttpStatusCode


[28524] [JScript] public var ProxyAuthenticationRequired: HttpStatusCode;


[28525] Description


[28526] Equivalent to HTTP status 407.


[28527] ToString


[28528] [C++] public const HttpStatusCode Redirect;


[28529] [C++] public: const HttpStatusCode Redirect;


[28530] [VB] Public Const Redirect As HttpStatusCode


[28531] [JScript] public var Redirect: HttpStatusCode;


[28532] Description


[28533] Equivalent to HTTP status 302.


[28534] ToString


[28535] [C#] public const HttpStatusCode RedirectKeepVerb;


[28536] [C++] public: const HttpStatusCode RedirectKeepVerb;


[28537] [VB] Public Const RedirectKeepVerb As HttpStatusCode


[28538] [JScript] public var RedirectKeepVerb: HttpStatusCode;


[28539] Description


[28540] Equivalent to HTTP status 307.


[28541] ToString


[28542] [C#] public const HttpStatusCode RedirectMethod;


[28543] [C++] public: const HttpStatusCode RedirectMethod;


[28544] [VB] Public Const RedirectMethod As HttpStatusCode


[28545] [JScript] public var RedirectMethod: HttpStatusCode;


[28546] Description


[28547] Equivalent to HTTP status 303.


[28548] ToString


[28549] [C#] public const HttpStatusCode RequestedRangeNotSatisfiable;


[28550] [C++] public: const HttpStatusCode RequestedRangeNotSatisfiable;


[28551] [VB] Public Const RequestedkangeNotSatisfiable As HttpStatusCode


[28552] [JScript] public var RequestedRangeNotSatisfiable: HttpStatusCode;


[28553] Description


[28554] Equivalent to HTTP status 416.


[28555] ToString


[28556] [C#] public const HttpStatusCode RequestEntityTooLarge;


[28557] [C++] public: const HttpStatusCode RequestEntityTooLarge;


[28558] [VB] Public Const RequestEntityTooLarge As HttpStatusCode


[28559] [JScript] public var RequestEntityTooLarge: HttpStatusCode;


[28560] Description


[28561] Equivalent to HTTP status 413.


[28562] ToString


[28563] [C#] public const HttpStatusCode RequestTimeout;


[28564] [C++] public: const HttpStatusCode RequestTimeout;


[28565] [VB] Public Const RequestTimeout As HttpStatusCode


[28566] [JScript] public var RequestTimeout: HttpStatusCode;


[28567] Description


[28568] Equivalent to HTTP status 408.


[28569] ToString


[28570] [C#] public const HttpStatusCode RequestUriTooLong;


[28571] [C++] public: const HttpStatusCode RequestUriTooLong;


[28572] [VB] Public Const RequestUriTooLong As HttpStatusCode


[28573] [JScript] public var RequestUriTooLong: HttpStatusCode;


[28574] Description


[28575] Equivalent to HTTP status 414.


[28576] ToString


[28577] [C#] public const HttpStatusCode ResetContent;


[28578] [C++] public: const HttpStatusCode ResetContent;


[28579] [VB] Public Const ResetContent As HttpStatusCode


[28580] [JScript] public var ResetContent: HttpStatusCode;


[28581] Description


[28582] Equivalent to HTTP status 205.


[28583] ToString


[28584] [C#] public const HttpStatusCode SeeOther;


[28585] [C++] public: const HttpStatusCode SeeOther;


[28586] [VB] Public Const SeeOther As HttpStatusCode


[28587] [JScript] public var SeeOther: HttpStatusCode;


[28588] Description


[28589] Equivalent to HTTP status 303.


[28590] ToString


[28591] [C#] public const HttpStatusCode ServiceUnavailabe;


[28592] [C++] public: const HttpStatusCode ServiceUnavailable;


[28593] [VB] Public Const ServiceUnavailable As HttpStatusCode


[28594] [JScript] public var ServiceUnavailable: HttpStatusCode;


[28595] Description


[28596] Equivalent to HTTP status 503.


[28597] ToString


[28598] [C#] public const HttpStatusCode SwitchingProtocols;


[28599] [C++] public: const HttpStatusCode SwitchingProtocols;


[28600] [VB] Public Const SwitchingProtocols As HttpStatusCode


[28601] [JScript] public var SwitchingProtocols: HttpStatusCode;


[28602] Description


[28603] Equivalent to HTTP status 101.


[28604] ToString


[28605] [C#] public const HttpStatusCode TemporaryRedirect;


[28606] [C++] public: const HttpStatusCode TemporaryRedirect;


[28607] [VB] Public Const TemporaryRedirect As HttpStatusCode


[28608] [JScript] public var TemporaryRedirect: HttpStatusCode;


[28609] Description


[28610] Equivalent to HTTP status 307.


[28611]


[28612] ToString


[28613] [C#] public const HttpStatusCode Unauthorized;


[28614] [C++] public: const HttpStatusCode Unauthorized;


[28615] [VB] Public Const Unauthorized As HttpStatusCode


[28616] [JScript] public var Unauthorized: HttpStatusCode;


[28617] Description


[28618] Equivalent to HTTP status 401.


[28619] ToString


[28620] [C#] public const HttpStatusCode UnsupportedMediaType;


[28621] [C++] public: const HttpStatusCode UnsupportedMediaType;


[28622] [VB] Public Const UnsupportedMediaType As HttpStatusCode


[28623] [JScript] public var UnsupportedMediaType: HttpStatusCode;


[28624] Description


[28625] Equivalent to HTTP status 415.


[28626] ToString


[28627] [C#] public const HttpStatusCode Unused;


[28628] [C++] public: const HttpStatusCode Unused;


[28629] [VB] Public Const Unused As HttpStatusCode


[28630] [JScript] public var Unused: HttpStatusCode;


[28631] Description


[28632] Equivalent to HTTP status 306.


[28633] ToString


[28634] [C#] public const HttpStatusCode UseProxy;


[28635] [C++] public: const HttpStatusCode UseProxy;


[28636] [VB] Public Const UseProxy As HttpStatusCode


[28637] [JScript] public var UseProxy: HttpStatusCode;


[28638] Description


[28639] Equivalent to HTTP status 305.


[28640] HttpVersion class (System.Net)


[28641] ToString


[28642] Description


[28643] Defines the HTTP version numbers supported by the System.Net.HttpWebRequest and System.Net.HttpWebResponse classes.


[28644] The System.Net.HttpVersion class defines the HTTP versions supported by the System.Net.HttpWebRequest and System.Net.HttpWebResponse classes. The HTTP version number is used to control version-specific features of HTTP, such as pipelining and chunking.


[28645] ToString


[28646] [C#] public static readonly Version Version10;


[28647] [C++] public: static Version* Version10;


[28648] [VB] Public Shared ReadOnly Version10 As Version


[28649] [JScript] public static var Version10: Version;


[28650] Description


[28651] Defines a System.Version instance for HTTP 1.0.


[28652] ToString


[28653] [C#] public static readonly Version Version11;


[28654] [C++] public: static Version* Version11;


[28655] [VB] Public Shared ReadOnly Version11 As Version


[28656] [JScript] public static var Version11: Version;


[28657] Description


[28658] Defines a System.Version instance for HTTP 1.1.


[28659] HttpVersion


[28660] Example Syntax:


[28661] ToString


[28662] [C#] public HttpVersion( );


[28663] [C++] public: HttpVersion( );


[28664] [VB] Public Sub New( )


[28665] [JScript] public function HttpVersion( );


[28666] HttpWebRequest class (System.Net)


[28667] ToString


[28668] Description


[28669] Provides an HTTP-specific implementation of the System.Net.WebRequest class.


[28670] The System.Net.HttpWebRequest class provides support for the properties and methods defined in System.Net.WebRequest and for additional properties and methods that enable the user to interact directly with servers using HTTP.


[28671] HttpWebRequest


[28672] Example Syntax:


[28673] ToString


[28674] [C#] protected HttpWebRequest(SerializationInfo serializationInfo, StreamingContextstreaming context streaming context streaming context);


[28675] [C++] protected: HttpWebRequest(SerializationInfo* serializationInfo, streaming context streaming context);


[28676] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streaming context As streaming context)


[28677] [JScript] protected function HttpWebRequest(serializationInfo: SerializationInfo, streaming context: streaming context);


[28678] Description


[28679] Initializes a new instance of the System.Net.HttpWebRequest class from the specified instances of the System.Runtime.Serialization.Serializationlnfo and System.Runtime.Serialization.StreamingContext classes.


[28680] This constructor implements the System.Runtime.Serialization.ISerializable interface for the System.Net.HttpWebRequest class. A System.Runtime.Serialization.Serializationlnfo instance containing the information required to serialize the new System.Net.HttpWebRequest instance. A System.Runtime.Serialization.StreamingContext instance containing the source and destination of the serialized stream associated with the new System.Net.HttpWebRequest instance.


[28681] Accept


[28682] ToString


[28683] [C#] public string Accept {get; set;}


[28684] [C++] public: _property String* get_Accept( );public: property void set_Accept(String*);


[28685] [VB] Public Property Accept As String


[28686] [JScript] public function get Accept( ): String;public function set Accept(String);


[28687] Description


[28688] Gets or sets the value of the Accept HTTP header.


[28689] Address


[28690] ToString


[28691] [C#] public Uri Address {get;}


[28692] [C++] public: property Uri* get_Address( );


[28693] [VB] Public ReadOnly Property Address As Uri


[28694] [JScript] public function get Address( ): Uri;


[28695] Description


[28696] Gets the URI of the Internet resource that actually responds to the request.


[28697] The System.Net.HttpWebRequest.Address property is set to the URI that actually responds to a request, after any redirections that might happen during the request are complete.


[28698] AllowAutoRedirect


[28699] ToString


[28700] [C#] public bool AllowAutoRedirect {get; set;}


[28701] [C++] public: _property bool get_AllowAutoRedirect( );public: _property void set_AllowAutoRedirect(bool);


[28702] [VB] Public Property AllowAutoRedirect As Boolean


[28703] [JScript] public function get AllowAutoRedirect( ): Boolean;public function set AllowAutoRedirect(Boolean);


[28704] Description


[28705] Gets or sets a value that indicates whether the request should follow redirection responses.


[28706] Set System.Net.HttpWebRequest.AllowAutoRedirect to true if you want the request to automatically follow HTTP redirection headers to the new location of the resource. The maximum number of redirections to follow is set by the System.Net.HttpWebRequest.MaximumAutomaticRedirections property.


[28707] AllowWriteStreamBuffering


[28708] ToString


[28709] [C#] public bool AllowWriteStreamBuffering {get; set;}


[28710] [C++] public: _property bool getAllowWriteStreamBuffering( );public: _property void set_AllowWriteStreamBuffering(bool);


[28711] [VB] Public Property AllowWriteStreamBuffering As Boolean


[28712] [JScript] public function get AllowWriteStreamBuffering( ): Boolean;public function set AllowWriteStreamBuffering(Boolean);


[28713] Description


[28714] Gets or sets a value that indicates whether to buffer the data sent to the Internet resource.


[28715] When System.Net.HttpWebRequest.AllowWriteStreamBuffering is true , the data is buffered in memory so it is ready to be resent in the event of redirections or authentication requests.


[28716] ClientCertificates


[28717] ToString


[28718] [C#] public X509CertificateCollection ClientCertificates {get;}


[28719] [C++] public: _property X509CertificateCollection* get_ClientCertificates( );


[28720] [VB] Public ReadOnly Property ClientCertificates As X509CertificateCollection


[28721] [JScript] public function get ClientCertificates( ): X509CertificateCollection;


[28722] Description


[28723] Gets the collection of security certificates associated with this request.


[28724] Connection


[28725] ToString


[28726] [C#] public string Connection {get; set;}


[28727] [C++] public: _property String* get_Connection( );public: _property void set_connection(String*);


[28728] [VB] Public Property Connection As String


[28729] [JScript] public function get Connection( ): String;public function set Connection(String);


[28730] Description


[28731] Gets or sets the value of the Connection HTTP header.


[28732] The request sends the System.Net.HttpWebRequest.Connection property to the Internet resource as the Connection HTTP header. If System.Net.HttpWebRequest.KeepAlive is true, the value “Keep-alive” is appended to the end of the Connection header.


[28733] ConnectionGroupName


[28734] ToString


[28735] [C#] public override string ConnectionGroupName {get; set;}


[28736] [C++] public: _property virtual String* get_ConnectionGroupName( );public: _property virtual void set_ConnectionGroupName(String*);


[28737] [VB] Overrides Public Property ConnectionGroupName As String


[28738] [JScript] public function get ConnectionGroupName( ): String;public function set ConnectionGroupName(String);


[28739] Description


[28740] Gets or sets the name of the connection group for the request.


[28741] The System.Net.HttpWebRequest.ConnectionGroupName property enables you to associate a request with a connection group. This is useful when your application makes requests to one server for different users, such as a Web site that retrieves customer information from a database server.


[28742] ContentLength


[28743] ToString


[28744] [C#] public override long ContentLength {get; set;}


[28745] [C++] public: _property virtual_int64 get_ContentLength( );public: _property virtual void set_ContentLength_int64);


[28746] [VB] Overrides Public Property ContentLength As Long


[28747] [JScript] public function get ContentLength( ): long;public function set ContentLength(long);


[28748] Description


[28749] Gets or sets the Content-length HTTP header.


[28750] The System.Net.HttpWebRequest.ContentLength property contains the value to send as the Content-length HTTP header with the request.


[28751] ContentType


[28752] ToString


[28753] [C#] public override string ContentType {get; set;}


[28754] [C++] public: _property virtual String* get_ContentType( );public: _property virtual void set_ContentType(String*);


[28755] [VB] Overrides Public Property ContentType As String


[28756] [JScript] public function get ContentType( ): String;public function set ContentType(String);


[28757] Description


[28758] Gets or sets the value of the Content-type HTTP header.


[28759] The System.Net.HttpWebRequest.ContentType property contains the media type of the request. Values assigned to the System.Net.HttpWebRequest.ContentType property replace any existing contents when the request sends the Content-type HTTP header.


[28760] ContinueDelegate


[28761] ToString


[28762] [C#] public HttpContinueDelegate ContinueDelegate {get; set;}


[28763] [C++] public: _property HttpContinueDelegate* get_ContinueDelegate( );public: _property void set_ContinueDelegate(HttpContinueDelegate*);


[28764] [VB] Public Property ContinueDelegate As HttpContinueDelegate


[28765] [JScript] public function get ContinueDelegate( ): HttpContinueDelegate;public function set ContinueDelegate(HttpContinueDelegate);


[28766] Description


[28767] Gets or sets the delegate method called when an HTTP 100-continue response is received from the Internet resource.


[28768] The System.Net.HttpWebRequest.ContinueDelegate property specifies the callback method to call when the client receives a 100-Continue response.


[28769] CookieContainer


[28770] ToString


[28771] [C#] public CookieContainer CookieContainer {get; set;}


[28772] [C++] public: _property CookieContainer* get_CookieContainer( );public: _property void set_CookieContainer(CookieContainer*);


[28773] [VB] Public Property CookieContainer As CookieContainer


[28774] [JScript] public function get CookieContainer( ): CookieContainer;public function set CookieContainer(CookieContainer);


[28775] Description


[28776] Gets or sets the cookies associated with the request.


[28777] The System.Net.HttpWebRequest.CookieContainer property provides an instance of the System.Net.CookieContainer class that contains the cookies associated with this request.


[28778] Credentials


[28779] ToString


[28780] [C#] public override ICredentials Credentials {get; set;}


[28781] [C++] public: _property virtual ICredentials* get_Credentials( );public: _property virtual void set_Credentials(ICredentials*);


[28782] [VB] Overrides Public Property Credentials As ICredentials


[28783] [JScript] public function get Credentials( ): ICredentials;public function set Credentials(ICredentials);


[28784] Description


[28785] Provides authentication information for the request.


[28786] The System.Net.HttpWebRequest.Credentials property contains authentication information to identify the maker of the request. The System.Net.HttpWebRequest.Credentials property can be either an instance of System.Net.NetworkCredential, in which case the user, password, and domain information contained in the System.Net.NetworkCredential instance is used to authenticate the request, or it can be an instance of System.Net.CredentialCache, in which case the uniform resource identifier (URI) of the request is used to determine the user, password, and domain information to use to authenticate the request.


[28787] Expect


[28788] ToString


[28789] [C#] public string Expect {get; set;}


[28790] [C++] public: _property String* get_Expect( );public: _Property void setExpect(String*);


[28791] [VB] Public Property Expect As String


[28792] [JScript] public function get Expect( ): String;public function set Expect(String);


[28793] Description


[28794] Gets or sets the value of the Expect HTTP header.


[28795] By default, System.Net.HttpWebRequest.Expect is set to “100-continue”. You can add other values to the list that System.Net.HttpWebRequest.Expect maintains, or you can delete all values except “100-continue” from the list by setting System.Net.HttpWebRequest.Expect to null.


[28796] HaveResponse


[28797] ToString


[28798] [C#] public bool HaveResponse {get;}


[28799] [C++] public: _property bool get_HaveResponse( );


[28800] [VB] Public ReadOnly Property HaveResponse As Boolean


[28801] [J Script] public function get HaveResponse( ): Boolean;


[28802] Description


[28803] Gets a value indicating whether a response has been received from an Internet resource.


[28804] Headers


[28805] ToString


[28806] [C#] public override WebHeaderCollection Headers {get; set;}


[28807] [C++] public: _property virtual WebHeaderCollection* getHeaders( );public: __property virtual void set_Headers(WebHeaderCollection*);


[28808] [VB] Overrides Public Property Headers As WebHeaderCollection


[28809] [JScript] public function get Headers( ): WebHeaderCollection;public function set Headers(WebHeaderCollection);


[28810] Description


[28811] Gets a collection of the name/value pairs that make up the HTTP headers.


[28812] The System.Net.HttpWebRequest.Headers collection contains the protocol headers associated with the request. The following table lists the HTTP headers that are not stored in the System.Net.HttpWebRequest.Headers collection but are either set by the system or set by properties or methods.


[28813] IfModifiedSince


[28814] ToString


[28815] [C#] public DateTime IfModifiedSince {get; set;}


[28816] [C++] public: _property DateTime get_IfModifiedSince( );public: _property void set_IfModifiedSince(DateTime);


[28817] [VB] Public Property IfModifiedSince As DateTime


[28818] [JScript] public function get IfModifiedSince( ): DateTime;public function set IfModifiedSince(DateTime);


[28819] Description


[28820] Gets or sets the value of the If-Modified-Since HTTP header.


[28821] KeepAlive


[28822] ToString


[28823] [C#] public bool KeepAlive {get; set; }


[28824] [C++] public: _property bool get_KeepAlive( );public: _property void set_KeepAlive(bool);


[28825] [VB] Public Property KeepAlive As Boolean


[28826] [JScript] public function get KeepAlive( ): Boolean;public function set KeepAlive(Boolean);


[28827] Description


[28828] Gets or sets a value indicating whether to make a persistent connection to the Internet resource.


[28829] Set this property to true to send an Connection HTTP header with the value Keep-alive. An application uses System.Net.HttpWebRequest.KeepAlive to indicate a preference for persistent connections. When the System.Net.HttpWebRequest.KeepAlive property is true, the application makes persistent connections to the servers that support them.


[28830] MaximumAutomaticRedirections


[28831] ToString


[28832] [C#] public int MaximumAutomaticRedirections {get; set;}


[28833] [C++] public: _property int get_MaximumAutomaticRedirections( );public: _property void set_MaximumAutomaticRedirections(int);


[28834] [VB] Public Property MaximumAutomaticRedirections As Integer


[28835] [JScript] public function get MaximumAutomaticRedirections( ): int;public function set MaximumAutomaticRedirections(int);


[28836] Description


[28837] Gets or sets the maximum number of redirects that the request will follow.


[28838] The System.Net.HttpWebRequest.MaximumAutomaticRedirections method property sets the maximum number of redirections for the request to follow if the System.Net.HttpWebRequest.AllowAutoRedirect property is true


[28839] MediaType


[28840] ToString


[28841] [C#] public string MediaType {get; set;}


[28842] [C++] public: _Property String* get_MediaType( );public: _property void set_MediaType(String*);


[28843] [VB] Public Property MediaType As String


[28844] [JScript] public function get MediaType( ): String;public function set MediaType(String);


[28845] Description


[28846] Gets or sets the media type of the request.


[28847] The value of the System.Net.HttpWebRequest.MediaType property affects the System.Net.HttpWebResponse.CharacterSet property. When you set the System.Net.HttpWebRequest.MediaType in the request, the corresponding media type is chosen from the list of character sets returned in the response Content-type HTTP header.


[28848] Method


[28849] ToString


[28850] [C#] public override string Method {get; set;}


[28851] [C++] public: _property virtual String* get_Method( );public: _property virtual void set_Method(String*);


[28852] [VB] Overrides Public Property Method As String


[28853] [JScript] public function get Method( ): String;public function set Method(String);


[28854] Description


[28855] Gets or sets the method for the request.


[28856] The System.Net.HttpWebRequest.Method property can be set to any of the HTTP 1.1 protocol verbs: GET, HEAD, POST, PUT, DELETE, TRACE, or OPTIONS.


[28857] Pipelined


[28858] ToString


[28859] [C#] public bool Pipelined {get; set;}


[28860] [C++] public: _property bool get_Pipelined( );public: _property void set_Pipelined(bool);


[28861] [VB] Public Property Pipelined As Boolean


[28862] [JScript] public function get Pipelined( ): Boolean;public function set Pipelined(Boolean);


[28863] Description


[28864] Gets or sets a value indicating whether to pipeline the request to the Internet resource.


[28865] An application uses the System.Net.HttpWebRequest.Pipelined property to indicate a preference for pipelined connections. When System.Net.HttpWebRequest.Pipelined is true, an application makes pipelined connections to the servers that support them.


[28866] PreAuthenticate


[28867] ToString


[28868] [C#] public override bool PreAuthenticate {get; set;}


[28869] [C++] public: _property virtual bool get_PreAuthenticate( );public: _property virtual void set_PreAuthenticate(bool);


[28870] [VB] Overrides Public Property PreAuthenticate As Boolean


[28871] [JScript] public function get PreAuthenticate( ): Boolean;public function set PreAuthenticate(Boolean);


[28872] Description


[28873] Gets or sets a value indicating whether to send a preauthentication header with the request.


[28874] When System.Net.HttpWebRequest.PreAuthenticate is true and credentials are supplied, the WWW-authenticate HTTP header is sent with the initial request if its value is known; otherwise the request uses standard authentication procedures.


[28875] ProtocolVersion


[28876] ToString


[28877] [C#] public Version ProtocolVersion {get; set;}


[28878] [C++] public: _property Version* get_ProtocolVersion( );public: _property void set_ProtocolVersion(Version*);


[28879] [VB] Public Property ProtocolVersion As Version


[28880] [JScript] public function get ProtocolVersion( ): Version;public function set ProtocolVersion(Version);


[28881] Description


[28882] Gets or sets the version of HTTP to use for the request.


[28883] The System.Net.HttpWebRequest class supports only versions 1.0 and 1.1 of HTTP. Setting System.Net.HttpWebRequest.ProtocolVersion to a different version throws an exception.


[28884] Proxy


[28885] ToString


[28886] [C#] public override IWebProxy Proxy {get; set;}


[28887] [C++] public: _property virtual IWebProxy* get_Proxy( );public: _property virtual void set_Proxy(IWebProxy*);


[28888] [VB] Overrides Public Property Proxy As IWebProxy


[28889] [JScript] public function get Proxy( ): IWebProxy;public function set Proxy(IWebProxy);


[28890] Description


[28891] Gets or sets proxy information for the request.


[28892] The System.Net.HttpWebRequest.Proxy property identifies the System.Net.WebProxy instance to use to process requests to Internet resources. To specify that no proxy should be used, set the System.Net.HttpWebRequest.Proxy property to the proxy instance returned by the System.Net.GlobalProxySelection.GetEmptyWebProxy method.


[28893] Referer


[28894] ToString


[28895] [C#] public string Referer {get; set;}


[28896] [C++] public: _property String* get_Referer( );public: _property void set_Referer(String*);


[28897] [VB] Public Property Referer As String


[28898] [JScript] public function get Referer( ): String;public function set Referer(String);


[28899] Description


[28900] Gets or sets the value of the Referer HTTP header.


[28901] If the System.Net.HttpWebRequest.AllowAutoRedirect property is true, the System.Net.HttpWebRequest.Referer property is set automatically when the request is redirected to another site.


[28902] RequestUri


[28903] ToString


[28904] [C#] public override Uri RequestUri {get;}


[28905] [C++] public: _property virtual Uri* get_RequestUri( );


[28906] [VB] Overrides Public ReadOnly Property RequestUri As Uri


[28907] [JScript] public function get RequestUri( ): Uri;


[28908] Description


[28909] Gets the original URI of the request.


[28910] The System.Uri instance passed to System.Net.HttpWebRequest by the call to System.Net.WebRequest.Create(System.Uri,System.Boolean).


[28911] SendChunked


[28912] ToString


[28913] [C#] public bool SendChunked {get; set;}


[28914] [C++] public: _property bool get_SendChunked( );public: _property void set SendChunked(bool);


[28915] [VB] Public Property SendChunked As Boolean


[28916] [JScript] public function get SendChunked( ): Boolean;public function set SendChunked(Boolean);


[28917] Description


[28918] Gets or sets a value indicating whether to send data in segments to the Internet resource.


[28919] When System.Net.HttpWebRequest.SendChunked is true, the request sends data to the Internet resource in segments. The Internet resource must support receiving chunked data.


[28920] ServicePoint


[28921] ToString


[28922] [C#] public ServicePoint ServicePoint {get;}


[28923] [C++] public: _property ServicePoint* get_ServicePoint( );


[28924] [VB] Public ReadOnly Property ServicePoint As ServicePoint


[28925] [JScript] public function get ServicePoint( ): ServicePoint;


[28926] Description


[28927] Gets the service point to use for the request.


[28928] The value of the System.Net.HttpWebRequest.ServicePoint property is null until the System.Net.HttpWebRequest.GetResponse method is called.


[28929] Timeout


[28930] ToString


[28931] [C#] public override int Timeout {get; set;}


[28932] [C++] public: _property virtual int get_Timeout( );public: _property virtual void set_Timeout(int);


[28933] [VB] Overrides Public Property Timeout As Integer


[28934] [JScript] public function get Timeout( ): int;public function set Timeout(int);


[28935] Description


[28936] Gets or sets the timeout value for a request.


[28937] System.Net.HttpWebRequest.Timeout is the number of milliseconds that a synchronous request made with the System.Net.HttpWebRequest.GetResponse method waits for a response. If a resource does not respond within the time-out period, the request throws a System.Net.WebException with the System.Net.WebException.Status property set to System.Net.WebExceptionStatus.Timeout.


[28938] TransferEncoding


[28939] ToString


[28940] [C#] public string TransferEncoding {get; set;}


[28941] [C++] public: _property String* get_TransferEncoding( );public: _Property void set_TransferEncoding(String*);


[28942] [VB] Public Property TransferEncoding As String


[28943] [JScript] public function get TransferEncoding( ): String;public function set TransferEncoding(String);


[28944] Description


[28945] Gets or sets the value of the Transfer-encoding HTTP header.


[28946] Before you can set the System.Net.HttpWebRequest.TransferEncoding property, you must first set the System.Net.HttpWebRequest.SendChunked property to true. Clearing System.Net.HttpWebRequest.TransferEncoding by setting it to null has no effect on the value of System.Net.HttpWebRequest.SendChunked.


[28947] UserAgent


[28948] ToString


[28949] [C#] public string UserAgent {get; set;}


[28950] [C++] public: _property String* get_UserAgent( );public: _property void set_UserAgent(String*);


[28951] [VB] Public Property UserAgent As String


[28952] [JScript] public function get UserAgent( ): String;public function set UserAgent(String);


[28953] Description


[28954] Gets or sets the value of the User-agent HTTP header.


[28955] Abort


[28956] [C#] public override void Abort( );


[28957] [C++] public: void Abort( );


[28958] [VB] Overrides Public Sub Abort( )


[28959] [JScript] public override function Abort( );


[28960] Description


[28961] Cancels a request to an Internet resource.


[28962] System.Net.HttpWebRequest.Abort cancels a request to a resource. After a request is canceled, calling System.Net.HttpWebRequest.GetResponse, System.Net.HttpWebRequest.BeginGetResponse(System.AsyncCallback,Syst em.Object), System.Net.HttpWebRequest.EndGetResponse(System.IAsyncResult), System.Net.HttpWebRequest.GetRequestStream, System.Net.HttpWebRequest.BeginGetRequestStream(System.AsyncCallbac k,System.Object), or System.Net.HttpWebRequest.EndGetRequestStream(System.IAsyncResult) will cause a System.Net.WebException with System.Net.WebException.Status set to System.Net.WebExceptionStatus.RequestCanceled


[28963] AddRange


[28964] [C#] public void AddRange(int range);


[28965] [C++] public: void AddRange(int range);


[28966] [VB] Public Sub AddRange(ByVal range As Integer)


[28967] [JScript] public function AddRange(range: int);


[28968] Description


[28969] Adds a byte range header to a request for a specific range from the beginning or end of the requested data.


[28970] System.Net.HttpWebRequest.AddRange(System.Int32,System.Int32) adds a byte range header to the request. The starting or ending point of the range.


[28971] AddRange


[28972] [C#] public void AddRange(int from, int to);


[28973] [C++] public: void AddRange(int from, int to);


[28974] [VB] Public Sub AddRange(ByVal from As Integer, ByVal to As Integer)


[28975] [JScript] public function AddRange(from: int, to: int); Adds a range header to the request.


[28976] Description


[28977] Adds a byte range header to the request for a specified range.


[28978] System.Net.HttpWebRequest.AddRange(System.Int32,System.Int32) adds a byte range header to the request. The position at which to start sending data. The position at which to stop sending data.


[28979] AddRange


[28980] [C#] public void AddRange(string rangeSpecifier, int range);


[28981] [C++] public: void AddRange(String* rangeSpecifier, int range);


[28982] [VB] Public Sub AddRange(ByVal rangeSpecifier As String, ByVal range As Integer)


[28983] [JScript] public function AddRange(rangeSpecifier: String, range: int);


[28984] Description


[28985] Adds a range header to a request for a specific range from the beginning or end of the requested data. If range is positive, the range is from the start of the data to range. The description of the range. The starting or ending point of the range.


[28986] AddRange


[28987] [C#] public void AddRange(string rangeSpecifier, int from, int to);


[28988] [C++] public: void AddRange(String* rangeSpecifier, int from, int to);


[28989] [VB] Public Sub AddRange(ByVal rangeSpecifier As String, ByVal from As Integer, ByVal to As Integer)


[28990] [JScript] public function AddRange(rangeSpecifier: String, from: int, to: int);


[28991] Description


[28992] Adds a range header to a request for a specified range. The description of the range. The position at which to start sending data. The position at which to stop sending data.


[28993] BeginGetRequestStream


[28994] [C#] public override IAsyncResult BeginGetRequestStream(AsyncCallback callback, object state);


[28995] [C++] public: IAsyncResult* BeginGetRequestStream(AsyncCallback* callback, Object* state);


[28996] [VB] Overrides Public Function BeginGetRequestStream(ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[28997] [JScript] public override function BeginGetRequestStream(callback: AsyncCallback, state: Object): IAsyncResult;


[28998] Description


[28999] Begins an asynchronous request for a System.IO.Stream instance to use to write data.


[29000] Return Value: An System.IAsyncResult that references the asynchronous request.


[29001] The System.Net.HttpWebRequest.BeginGetRequestStream(System.AsyncCallbac k,System.Object) method starts an asynchronous request for a stream used to send data for the System.Net.HttpWebRequest. The asynchronous callback method uses the System.Net.HttpWebRequest.EndGetRequestStream(System.IAsyncResult) method to return the actual stream. The System.AsyncCallback delegate. The state object for this request.


[29002] BeginGetResponse


[29003] [C#] public override IAsyncResult BeginGetResponse(AsyncCallback callback, object state);


[29004] [C++] public: IAsyncResult* BeginGetResponse(AsyncCallback* callback, Object* state);


[29005] [VB] Overrides Public Function BeginGetResponse(ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[29006] [JScript] public override function BeginGetResponse(callback: AsyncCallback, state: Object): IAsyncResult;


[29007] Description


[29008] Begins an asynchronous request to an Internet resource.


[29009] Return Value: An System.IAsyncResult that references the asynchronous request for a response.


[29010] The System.Net.HttpWebRequest.BeginGetResponse(System.AsyncCallback,Syst em.Object) method starts an asynchronous request for a response from the Internet resource. The asynchronous callback method uses the System.Net.HttpWebRequest.EndGetResponse(System.IAsyncResult) method to return the actual System.Net.WebResponse. The System.AsyncCallback delegate The state object for this request.


[29011] EndGetRequestStream


[29012] [C#] public override Stream EndGetRequestStream(IAsyncResult asyncResult);


[29013] [C++] public: Stream* EndGetRequestStream(IAsyncResult* asyncResult);


[29014] [VB] Overrides Public Function EndGetRequestStream(ByVal asyncResult As IAsyncResult) As Stream


[29015] [JScript] public override function EndGetRequestStream(asyncResult: IAsyncResult): Stream;


[29016] Description


[29017] Ends an asynchronous request for a System.IO.Stream instance to use to write data.


[29018] Return Value: A System.IO.Stream to use to write request data.


[29019] The System.Net.HttpWebRequest.EndGetRequestStream(System.IAsyncResult) method completes an asynchronous request for a stream that was started by the System.Net.HttpWebRequest.BeginGetRequestStream(System.AsyncCallbac k,System.Object) method. Once the System.IO.Stream instance has been returned, you can send data with the System.Net.HttpWebRequest by using the System.IO.Stream.Write(System.Byte[ ],System.Int32,System.Int32) method. The pending request for a stream.


[29020] EndGetResponse


[29021] [C#] public override WebResponse EndGetResponse(IAsyncResult asyncResult);


[29022] [C++] public: WebResponse* EndGetResponse(IAsyncResult* asyncResult);


[29023] [VB] Overrides Public Function EndGetResponse(ByVal asyncResult As IAsyncResult) As WebResponse


[29024] [JScript] public override function EndGetResponse(asyncResult: IAsyncResult): WebResponse;


[29025] Description


[29026] Ends an asynchronous request to an Internet resource..


[29027] Return Value: A System.Net.WebResponse containing the response from the Internet resource.


[29028] The System.Net.HttpWebRequest.EndGetResponse(System.IAsyncResult) method completes an asynchronous request for an Internet resource that was started by calling System.Net.HttpWebRequest.BeginGetResponse(System.AsyncCallback,Syst em.Object). The pending request for a response.


[29029] GetHashCode


[29030] [C#] public override int GetHashCode( );


[29031] [C++] public: int GetHashCode( );


[29032] [VB] Overrides Public Function GetHashCode( ) As Integer


[29033] [JScript] public override function GetHashCode( ): int;


[29034] Description


[29035] Gets the hash code for this System.Net.HttpWebRequest.


[29036] Return Value: The hash code for the System.Net.HttpWebRequest.


[29037] The hash codes for System.Net.HttpWebRequest A and B are guaranteed to be the same when A.Equals(B) is true.


[29038] GetRequestStream


[29039] [C#] public override Stream GetRequestStream( );


[29040] [C++] public: Stream* GetRequestStream( );


[29041] [VB] Overrides Public Function GetRequestStream( ) As Stream


[29042] [JScript] public override function GetRequestStream( ): Stream;


[29043] Description


[29044] Gets a System.IO.Stream instance to use to write request data.


[29045] Return Value: A System.IO.Stream to use to write request data.


[29046] The System.Net.HttpWebRequest.GetRequestStream method returns a stream to use to send data for the System.Net.HttpWebRequest. Once the System.IO.Stream instance has been returned, you can send data with the System.Net.HttpWebRequest by using the System.IO.Stream.Write(System.Bytel[ ],System.Int32,System.lnt32) method.


[29047] GetResponse


[29048] [C#] public override WebResponse GetResponse( );


[29049] [C++] public: WebResponse* GetResponse( );


[29050] [VB] Overrides Public Function GetResponse( ) As WebResponse


[29051] [JScript] public override function GetResponse( ): WebResponse;


[29052] Description


[29053] Returns a response from an Internet resource.


[29054] Return Value: A System.Net.WebResponse containing the response from the Internet resource.


[29055] The System.Net.HttpWebRequest.GetResponse method returns a System.Net.WebResponse instance containing the response from the Internet resource. The actual instance returned is an instance of System.Net.HttpWebResponse, and can be typecast to that class to access HTTP-specific properties.


[29056] SetServicePoint


[29057] [C#] protected void SetServicePoint(ServicePoint servicepoint);


[29058] [C++] protected: void SetServicePoint(ServicePoint* servicePoint);


[29059] [VB] Protected Sub SetServicePoint(ByVal servicePoint As ServicePoint)


[29060] [JScript] protected function SetServicePoint(servicePoint: ServicePoint);


[29061] ISerializable.GetObjectData


[29062] [C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, streaming Context streaming Context);


[29063] [C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, streaming Context streaming Context);


[29064] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streaming Context As streaming Context) Implements ISerializable.GetObjectData


[29065] [JScript] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streaming context: streaming context);


[29066] HttpWebResponse class (System.Net)


[29067] ToString


[29068] Description


[29069] Provides an HTTP-specific implementation of the System.Net.WebResponse class.


[29070] The System.Net.HttpWebResponse class contains support for the properties and methods included in System.Net.WebResponse with additional elements that enable the user to interact directly with the HTTP protocol.


[29071] HttpWebResponse


[29072] Example Syntax:


[29073] ToString


[29074] [C#] protected HttpWebResponse(SerializationInfo serializationInfo, streaming Context streaming Context);


[29075] [C++] protected: HttpWebResponse(SerializationInfo* serializationInfo, streaming Context streaming Context);


[29076] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streaming context As streaming context)


[29077] [JScript] protected function HttpWebResponse(serializationInfo: SerializationInfo, streaming context: streaming context);


[29078] Description


[29079] Initializes a new instance of the System.Net.HttpWebResponse class from the specified System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext instances.


[29080] This constructor implements the System.Runtime.Serialization.ISerializable interface for the System.Net.HttpWebRequest class. A System.Runtime.Serialization.SerializationInfo containing the information required to serialize the new System.Net.HttpWebRequest instance. A System.Runtime.Serialization.StreamingContext containing the source of the serialized stream associated with the new System.Net.HttpWebRequest instance.


[29081] CharacterSet


[29082] ToString


[29083] [C#] public string CharacterSet {get;}


[29084] [C++] public: _property String* get_CharacterSet( );


[29085] [VB] Public ReadOnly Property CharacterSet As String


[29086] [JScript] public function get CharacterSet( ): String;


[29087] Description


[29088] ContentEncoding


[29089] ToString


[29090] [C#] public string ContentEncoding {get;}


[29091] [C++] public: _property String* get_ContentEncoding( );


[29092] [VB] Public ReadOnly Property ContentEncoding As String


[29093] [JScript] public function get ContentEncoding( ): String;


[29094] Description


[29095] Gets the method used to encode the body of the response.


[29096] The System.Net.HttpWebResponse.ContentEncoding property contains the value of the Content-Encoding header returned with the response.


[29097] ContentLength


[29098] ToString


[29099] [C#] public override long ContentLength {get;}


[29100] [C++] public: _property virtual _int64 get ContentLength( );


[29101] [VB] Overrides Public ReadOnly Property ContentLength As Long


[29102] [JScript] public function get ContentLength( ): long;


[29103] Description


[29104] Gets the length of the content returned by the request.


[29105] The System.Net.HttpWebResponse.ContentLength property contains the value of the Content-length header returned with the response. If the Content-length header is not set in the response, System.Net.HttpWebResponse.ContentLength is set to the value −1.


[29106] ContentType


[29107] ToString


[29108] [C#] public override string ContentType {get;}


[29109] [C++] public: _property virtual String* get_ContentType( );


[29110] [VB] Overrides Public ReadOnly Property ContentType As String


[29111] [JScript] public function get ContentType( ): String;


[29112] Description


[29113] Gets the content type of the response.


[29114] The System.Net.HttpWebResponse.ContentType property contains the value of the Content-Type header returned with the response.


[29115] Cookies


[29116] ToString


[29117] [C#] public CookieCollection Cookies {get; set;}


[29118] [C++] public: _property CookieCollection* get_Cookies( );public: _property void set_Cookies(CookieCollection*);


[29119] [VB] Public Property Cookies As CookieCollection


[29120] [JScript] public function get Cookies( ): CookieCollection;public function set Cookies(CookieCollection);


[29121] Description


[29122] Gets or sets the cookies associated with this request.


[29123] The System.Net.HttpWebResponse.Cookies property provides an instance of the System.Net.CookieCollection class holding the cookies associated with this response.


[29124] Headers


[29125] ToString


[29126] [C#] public override WebHeaderCollection Headers {get;}


[29127] [C++] public: _property virtual WebHeaderCollection* get_Headers( );


[29128] [VB] Overrides Public ReadOnly Property Headers As WebHeaderCollection


[29129] [JScript] public function get Headers( ): WebHeaderCollection;


[29130] Description


[29131]


[29132] Gets the headers associated with this response from the server.


[29133] The System.Net.HttpWebResponse.Headers property is a collection of name/value pairs containing the HTTP header values returned with the response. Common headers, listed in the following table, are exposed as properties by the API: Header Property Content-Encoding System.Net.HttpWebResponse.ContentEncoding Content-Length System.Net.HttpWebResponse.ContentLength Content-Type System.Net.HttpWebResponse.ContentType Last-Modified System.Net.HttpWebResponse.LastModified Server System.Net.HttpWebResponse.Server Gets the headers associated with this response from the server.


[29134] LastModified


[29135] ToString


[29136] [C#] public DateTime LastModified {get;}


[29137] [C++] public: _property DateTime get_LastModified( );


[29138] [VB] Public ReadOnly Property LastModified As DateTime


[29139] [JScript] public function get LastModified( ): DateTime;


[29140] Description


[29141] Gets the last date and time that the contents of the response were modified.


[29142] The System.Net.HttpWebResponse.LastModified property contains the value of the Last-Modified header received with the response.


[29143] Method


[29144] ToString


[29145] [C#] public string Method {get;}


[29146] [C++] public: _property String* get_Method( );


[29147] [VB] Public ReadOnly Property Method As String


[29148] [JScript] public function get Method( ): String;


[29149] Description


[29150] Gets the method used to return the response.


[29151] ProtocolVersion


[29152] ToString


[29153] [C#] public Version ProtocolVersion {get;}


[29154] [C++] public: _property Version* get_ProtocolVersion( );


[29155] [VB] Public ReadOnly Property ProtocolVersion As Version


[29156] [JScript] public function get ProtocolVersion( ): Version;


[29157] Description


[29158] Gets the version of the HTTP protocol used in the response.


[29159] The System.Net.HttpWebResponse.ProtocolVersion property contains the HTTP protocol version number of the response sent by the Internet resource.


[29160] ResponseUri


[29161] ToString


[29162] [C#] public override Uri ResponseUri {get;}


[29163] [C++] public: _property virtual Uri* get_ResponseUri( );


[29164] [VB] Overrides Public ReadOnly Property ResponseUri As Uri


[29165] [JScript] public function get ResponseUri( ): Uri;


[29166] Description


[29167] Gets the uniform resource identifier (URI) of the Internet resource that responded to the request A System.Uri instance containing the URI of the Internet resource that responded to the request.


[29168] The System.Net.HttpWebResponse.ResponseUri property contains the URI of the Internet resource that actually responded to the request. This URI may not be the same as the originally requested URI if the request was redirected by the original server.


[29169] Server


[29170] ToString


[29171] [C#] public string Server {get;}


[29172] [C++] public: _property String* get_Server( );


[29173] [VB] Public ReadOnly Property Server As String


[29174] [JScript] public function get Server( ): String;


[29175] Description


[29176] Gets the name of the server that sent the response.


[29177] The System.Net.HttpWebResponse.Server property contains the value of the Server header returned with the response.


[29178] StatusCode


[29179] ToString


[29180] [C#] public HttpStatusCode StatusCode {get;}


[29181] [C++] public: _property HttpStatusCode get_StatusCode( );


[29182] [VB] Public ReadOnly Property StatusCode As Http StatusCode


[29183] [JScript] public function get StatusCode( ): HttpStatusCode;


[29184] Description


[29185] Gets the status of the response.


[29186] The System.Net.HttpWebResponse.StatusCode parameter is a number indicating the status of the HTTP response. The expected values for status are


[29187] defined in the System.Net.HttpStatusCode class.


[29188] StatusDescription


[29189] ToString


[29190] [C#] public string StatusDescription {get;}


[29191] [C++] public: _property String* get_StatusDescription( );


[29192] [VB] Public ReadOnly Property StatusDescription As String


[29193] [JScript] public function get StatusDescription( ): String;


[29194] Description


[29195] Gets the status description returned with the response.


[29196] Close


[29197] [C#] public override void Close( );


[29198] [C++] public: void Close( );


[29199] [VB] Overrides Public Sub Close( )


[29200] [JScript] public override function Close( );


[29201] Description


[29202] Closes the response stream.


[29203] The System.Net.HttpWebResponse.Close method closes the response stream and releases the connection to the Internet resource for reuse by other requests.


[29204] Dispose


[29205] [C#] protected virtual void Dispose(bool disposing);


[29206] [C++] protected: virtual void Dispose(bool disposing);


[29207] [VB] Overridable Protected Sub Dispose(ByVal disposing As Boolean)


[29208] [JScript] protected function Dispose(disposing: Boolean);


[29209] Description


[29210] GetHashCode


[29211] [C#] public override int GetHashCode( );


[29212] [C++] public: int GetHashCode( );


[29213] [VB] Overrides Public Function GetHashCode( ) As Integer


[29214] [JScript] public override function GetHashCode( ): int;


[29215] Description


[29216] GetResponseHeader


[29217] [C#] public string GetResponseHeader(string headerName);


[29218] [C++] public: String* GetResponseHeader(String* headerName);


[29219] [VB] Public Function GetResponseHeader(ByVal headerName As String) As String


[29220] [JScript] public function GetResponseHeader(headerName: String): String;


[29221] Description


[29222] Gets a specified header value returned with the response.


[29223] Return Value: The value of the header specified.


[29224] The System.Net.HttpWebResponse.GetResponseHeader(System.String) method returns the value of the specified header. The header value to return.


[29225] GetResponseStream


[29226] [C#] public override Stream GetResponseStream( );


[29227] [C++] public: _Stream* GetResponseStream( );


[29228] [VB] Overrides Public Function GetResponseStream( ) As Stream


[29229] [JScript] public override function GetResponseStream( ): Stream;


[29230] Description


[29231] Gets the stream used for reading the body of the response from the server.


[29232] Return Value: A System.IO.Stream containing the body of the response.


[29233] The System.Net.HttpWebResponse.GetResponseStream method returns the data stream from the requested Internet resource.


[29234] IDisposable.Dispose


[29235] [C#] void IDisposable.Dispose( );


[29236] [C++] void IDisposable::Dispose( );


[29237] [VB] Sub Dispose( ) Implements IDisposable.Dispose


[29238] [JScript] function IDisposable.Dispose( );


[29239] ISerializable.GetObjectData


[29240] [C#] void ISerializable.GetObjectData(SerializationInfoserialization info(serialization info serialization info,


[29241] streaming context streaming context);


[29242] [C++] void ISerializable::GetObjectData(serialization info* serialization info, streaming context streaming context);


[29243] [VB] Sub GetObjectData(ByVal serialization info As serialization info, ByVal streaming context As streaming context) Implements ISerializable.GetObjectData


[29244] [JScript] function ISerializable.GetObjectData(serialization info: serialization info, streaming context: streaming context);


[29245] I lAuthenticationModule interface (System.Net)


[29246] ToString


[29247] Description


[29248] Provides the base authentication interface for Web client authentication modules.


[29249] The System.Net.IAuthenticationModule interface defines the properties and methods that custom authentication modules must use.


[29250] AuthenticationType


[29251] ToString


[29252] [C#] string AuthenticationType {get;}


[29253] [C++] String* get AuthenticationType( );


[29254] [VB] ReadOnly Property AuthenticationType As String


[29255] [JScript] abstract function get AuthenticationType( ): String;


[29256] Description


[29257] Gets the authentication type provided by this authentication module.


[29258] The System.Net.IAuthenticationModule.AuthenticationType property identifies the authentication type implemented by this authentication module. The System.Net.IAuthenticationModule.AuthenticationType property is used by the System.Net.AuthenticationManager.Register(System.Net.IAuthenticationMo dule) method to determine if the authentication module has been registered, and by the System.Net.AuthenticationManager.Unregister(System.Net.lAuthentication Module) method to remove a registered authentication module.


[29259] CanPreAuthenticate


[29260] ToString


[29261] [C#] bool CanPreAuthenticate {get;}


[29262] [C++] bool get_CanPreAuthenticate( );


[29263] [VB] ReadOnly Property CanPreAuthenticate As Boolean


[29264] [JScript] abstract function get CanPreAuthenticate( ): Boolean;


[29265] Description


[29266] Gets a value indicating whether the authentication module supports preauthentication.


[29267] The System.Net.IAuthenticationModule.CanPreAuthenticate property is set to true to indicate that the authentication module can respond with a valid System.Net.Authorization instance when the System.Net.IAuthenticationModule.PreAuthenticate(System.Net.WebRequest, System.Net.ICredentials) method is called.


[29268] Authenticate


[29269] [C#] Authorization Authenticate(string challenge, WebRequest request,


[29270] ICredentials credentials);


[29271] [C++] Authorization* Authenticate(String* challenge, WebRequest* request, ICredentials* credentials);


[29272] [VB] Function Authenticate(ByVal challenge As String, ByVal request As WebRequest, ByVal credentials As ICredentials) As Authorization


[29273] [JScript] function Authenticate(challenge: String, request: WebRequest, credentials: ICredentials): Authorization;


[29274] Description


[29275] Returns an instance of the System.Net.Authorization class in response to an authentication challenge from a server.


[29276] Return Value: An System.Net.Authorization instance containing the authorization message for the request, or null if the challenge cannot be handled.


[29277] The System.Net.IAuthenticationModule.Authenticate(System.String,System.Net. WebRequest,System.Net.ICredentials) method conducts the authentication process with the server and returns an System.Net.Authorization instance to the System.Net.AuthenticationManager. The authentication challenge sent by the server. The System.Net.WebRequest instance associated with the challenge. The credentials associated with the challenge.


[29278] PreAuthenticate


[29279] [C#] Authorization PreAuthenticate(WebRequest request, ICredentials credentials);


[29280] [C++] Authorization* PreAuthenticate(WebRequest* request, ICredentials* credentials);


[29281] [VB] Function PreAuthenticate(ByVal request As WebRequest, ByVal credentials As ICredentials) As Authorization


[29282] [JScript] function PreAuthenticate(request: WebRequest, credentials: ICredentials): Authorization;


[29283] Description


[29284] Returns an instance of the System.Net.Authorization class for an authentication request to a server.


[29285] Return Value: An System.Net.Authorization instance containing the authorization message for the request.


[29286] When the System.Net.IAuthenticationModule.CanPreAuthenticate property is true , the System.Net.lAuthenticationModule.PreAuthenticate(System.Net.WebRequest, System.Net.ICredentials) method will return an instance of the System.Net.Authorization class containing an authentication message. The System.Net.WebRequest instance associated with the authentication request. The credentials associated with the authentication request.


[29287] ICertificatePolicy interface (System.Net)


[29288] PreAuthenticate


[29289] Description


[29290] Validates a server certificate.


[29291] The System.Net.ICertificatePolicy interface is used to provide custom security certificate validation for an application. The default policy is to allow valid certificates, as well as valid certificates that have expired. To change this policy, implement the System.Net.ICertificatePolicy interface with a different policy, and then assign that policy to System.Net.ServicePointManager.CertificatePolicy.


[29292] CheckValidationResult


[29293] [C#] bool CheckValidationResult(ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem);


[29294] [C++] bool CheckValidationResult(ServicePoint* srvPoint, X509Certificate* certificate, WebRequest* request, int certificateProblem);


[29295] [VB] Function CheckValidationResult(ByVal srvPoint As ServicePoint, ByVal certificate As X509Certificate, ByVal request As WebRequest, ByVal certificateProblem As Integer) As Boolean


[29296] [JScript] function CheckValidationResult(srvPoint: ServicePoint, certificate: X509Certificate, request: WebRequest, certificateproblem: int): Boolean;


[29297] Description


[29298] Validates a server certificate.


[29299] Return Value: true if the certificate should be honored; otherwise, false .


[29300] The System.Net.lCertificatePolicy.CheckValidationResult(System.Net.ServicePoi nt,System.Security.Cryptography.X509Certificates.X509Certificate,System.N et.WebRequest,System.Int32) method implements the application certificate validation policy. The method can examine the srvPoint, certificate , request, and certificateProblem parameters to determine whether the certificate should be honored. The System.Net.ServicePoint that will use the certificate. The certificate to validate. The request that received the certificate. The problem encountered when using the certificate.


[29301] ICredentials interface (System.Net)


[29302] CheckValidationResult


[29303] Description


[29304] Provides the base authentication interface for retrieving credentials for Web client authentication.


[29305] The System.Net.ICredentials interface provides the System.Net.ICredentials.GetCredential(System.Uri,System.String) method to objects that supply network credentials to applications.


[29306] GetCredential


[29307] [C#] NetworkCredential GetCredential(Uri uri, string authType);


[29308] [C++] NetworkCredential* GetCredential(Uri* uri, String* authType);


[29309] [VB] Function GetCredential(ByVal uri As Uri, ByVal authType As String) As NetworkCredential


[29310] [JScript] function GetCredential(uri: Uri, authType: String): NetworkCredential;


[29311] Description


[29312] Returns a System.Net.NetworkCredential object that is associated with the specified URI, and authentication type.


[29313] Return Value: The System.Net.NetworkCredential associated with the specified URI and authentication type, or if no credentials are available, null .


[29314] The System.Net.lCredentials.GetCredential(System.Uri,System.String) method returns a System.Net.NetworkCredential instance that contains the credentials associated with the specified URI and authorization scheme. When no credentials are available, the System.Net.ICredentials.GetCredential(System.Uri,System.String) method returns null. The System.Uri that the client is providing authentication for. The type of authentication, as defined in the System.Net.IAuthenticationModule.AuthenticationType property.


[29315] IPAddress class (System.Net)


[29316] GetCredential


[29317] Description


[29318] Provides an Internet Protocol (IP) address.


[29319] The System.Net.IPAddress class contains the address of a computer on an IP network.


[29320] GetCredential


[29321] [C#] public static readonly IPAddress Any;


[29322] [C++] public: static IPAddress* Any;


[29323] [VB] Public Shared ReadOnly Any As IPAddress


[29324] [JScript] public static var Any: IPAddress;


[29325] Description


[29326] Provides an IP address indicating that the server should listen for client activity on all network interfaces. This field is read-only.


[29327] The System.Net.Sockets.Socket.Bind(System.Net.EndPoint) method uses the System.Net.IPAddress.Any field to indicate that a System.Net.Sockets.Socket instance should listen for client activity on all network interfaces.


[29328] GetCredential


[29329] [C#] public static readonly IPAddress Broadcast;


[29330] [C++] public: static IPAddress* Broadcast;


[29331] [VB] Public Shared ReadOnly Broadcast As IPAddress


[29332] [JScript] public static var Broadcast: IPAddress;


[29333] Description


[29334] Provides the IP broadcast address. This field is read-only.


[29335] The System.Net.IPAddress.Broadcast field is equivalent to 255.255.255.255.


[29336] GetCredential


[29337] [C#] public static readonly IPAddress Loopback;


[29338] [C++] public: static IpAddress* Loopback;


[29339] [VB] Public Shared ReadOnly Loopback As IPAddress


[29340] [JScript] public static var Loopback: IPAddress;


[29341] Description


[29342] Provides the IP loopback address. This field is read-only.


[29343] The System.Net.IPAddress.Loopback field is equivalent to 127.0.0.1 in network byte order.


[29344] GetCredential


[29345] [C#] public static readonly IPAddress None;


[29346] [C++] public: static IPAddress* None;


[29347] [VB] Public Shared ReadOnly None As IPAddress


[29348] [JScript] public static var None: IPAddress;


[29349] Description


[29350] Provides an IP address indicating that no network interface should be used. This field is read-only.


[29351] The System.Net.Sockets.Socket.Bind(System.Net.EndPoint) method uses the System.Net.IPAddress.None field to indicate that a System.Net.Sockets.Socket instance should not listen for client activity.


[29352] IPAddress


[29353] Example Syntax:


[29354] GetCredential


[29355] [C#] public IPAddress(long newAddress);


[29356] [C++] public: IPAddress(_int64 newAddress);


[29357] [VB] Public Sub New(ByVal newAddress As Long)


[29358] [JScript] public function IPAddress(newAddress: long);


[29359] Description


[29360] Initializes a new instance of the System.Net.IPAddress class with the specified address.


[29361] The System.Net.IPAddress instance is created with the System.Net.IPAddress.Address property set to newaddress. The integer value of the IP address.


[29362] Address


[29363] GetCredential


[29364] [C#] public int Address {get; set;}


[29365] [C++] public: _property int get_Address( );public: _property void set_Address(int);


[29366] [VB] Public Property Address As Integer


[29367] [JScript] public function get Address( ): int;public function set Address(int);


[29368] Description


[29369] An Internet Protocol (IP) address.


[29370] To convert System.Net.IPAddress.Address to dotted-quad notation, use the System.Net.IPAddress.ToString method.


[29371] AddressFamily


[29372] GetCredential


[29373] [C#] public AddressFamily AddressFamily {get;}


[29374] [C++] public: _property AddressFamily get_AddressFamily( );


[29375] [VB] Public ReadOnly Property AddressFamily As AddressFamily


[29376] [JScript] public function get AddressFamily( ): AddressFamily;


[29377] Description


[29378] Specifies the address family of the IP address.


[29379] Equals


[29380] [C#] public override bool Equals(object comparand);


[29381] [C++] public: bool Equals(Object* comparand);


[29382] [VB] Overrides Public Function Equals(ByVal comparand As Object) As Boolean


[29383] [JScript] public override function Equals(comparand: Object): Boolean;


[29384] Description


[29385] Compares two IP addresses.


[29386] Return Value: true if the two address are equal; otherwise, false.


[29387] The System.Net.IPAddress.Equals(System.Object) method compares the current System.Net.IPAddress instance with the comparand parameter and returns true if the two instance contain the same IP address. An System.Net.IPAddress instance to compare to the current instance.


[29388] GetHashCode


[29389] [C#] public override int GetHashCode( );


[29390] [C++] public: int GetHashCode( );


[29391] [VB] Overrides Public Function GetHashCode( ) As Integer


[29392] [JScript] public override function GetHashCode( ): int;


[29393] Description


[29394] Returns a hash value for an IP address.


[29395] Return Value: An integer hash value.


[29396] The System.Net.IPAddress.GetHashCode method returns a hash code of the IP address. This value can be used as a key in hash tables.


[29397] HostToNetworkOrder


[29398] [C#] public static short HostToNetworkOrder(short host);


[29399] [C++] public: static short HostToNetworkOrder(short host);


[29400] [VB] Public Shared Function HostToNetworkOrder(ByVal host As Short) As Short


[29401] [JScript] public static function HostToNetworkOrder(host: Int16):Int16;


[29402] Description


[29403] Converts a short value from host byte order to network byte order.


[29404] Return Value: A short value expressed in network byte order.


[29405] Different computers use different conventions for ordering the bytes within multi-byte integer values. Some computers put the most significant byte first (known as big-endian order) and others put the least-significant byte first (known as little-endian order). To enable computers that use different byte ordering, all integer values sent over the network are sent in network byte order. The number to convert expressed in host byte order.


[29406] HostToNetworkOrder


[29407] [C#] public static int HostToNetworkOrder(int host);


[29408] [C++] public: static int HostToNetworkOrder(int host);


[29409] [VB] Public Shared Function HostToNetworkOrder(ByVal host As Integer) As Integer


[29410] [JScript] public static function HostToNetworkOrder(host: int): int;


[29411] Description


[29412] Converts an integer value from host byte order to network byte order.


[29413] Return Value: An integer value expressed in network byte order.


[29414] Different computers use different conventions for ordering the bytes within multi-byte integer values. Some computers put the most significant byte first (known as big-endian order) and others put the least-significant byte first (known as little-endian order). To enable computers that use different byte ordering, all integer values sent over the network are sent in network byte order. The number to convert expressed in host byte order.


[29415] HostToNetworkOrder


[29416] [C#] public static long HostToNetworkOrder(long host);


[29417] [C++] public: static_int64 HostToNetworkOrder(_int64 host);


[29418] [VB] Public Shared Function HostToNetworkOrder(ByVal host As Long) As Long


[29419] [JScript] public static function HostToNetworkOrder(host: long): long; Converts a value from host byte order to network byte order.


[29420] Description


[29421] Converts a long value from host byte order to network byte order.


[29422] Return Value: A long value expressed in network byte order.


[29423] Different computers use different conventions for ordering the bytes within multi-byte integer values. Some computers put the most significant byte first (known as big-endian order) and others put the least-significant byte first (known as little-endian order). To enable computers that use different byte ordering, all integer values sent over the network are sent in network byte order. The number to convert expressed in host byte order.


[29424] IsLoopback


[29425] [C#] public static bool IsLoopback(IPAddress address);


[29426] [C++] public: static bool IsLoopback(IPAddress* address);


[29427] [VB] Public Shared Function IsLoopback(ByVal address As IPAddress) As Boolean


[29428] [JScript] public static function IsLoopback(address: IPAddress): Boolean;


[29429] Description


[29430] Indicates whether the specified IP address is the loopback address.


[29431] Return Value: true if address is the loopback address; otherwise false.


[29432] The System.Net.IPAddress.IsLoopback(System.Net.IPAddress) method compares address to System.Net.IPAddress.Loopback and returns true if the two IP address are the same. An IP address.


[29433] NetworkToHostOrder


[29434] [C#] public static short NetworkToHostOrder(short network);


[29435] [C++] public: static short NetworkToHostOrder(short network);


[29436] [VB] Public Shared Function NetworkToHostOrder(ByVal network As Short) As Short


[29437] [JScript] public static function NetworkToHostOrder(network: Int16): Int16;


[29438] Description


[29439] Converts a short value from network byte order to host byte order.


[29440] Return Value: A short value expressed in host byte order.


[29441] Different computers use different conventions for ordering the bytes within multi-byte integer values. Some computers put the most significant byte first (known as big-endian order) and others put the least-significant byte first (known as little-endian order). To enable computers that use different byte ordering, all integer values sent over the network are sent in network byte order. The number to convert expressed in network byte order.


[29442] NetworkToHostOrder


[29443] [C#] public static int NetworkToHostOrder(int network);


[29444] [C++] public: static int NetworkToHostOrder(int network);


[29445] [VB] Public Shared Function NetworkToHostOrder(ByVal network As Integer) As Integer


[29446] [JScript] public static function NetworkToHostOrder(network: int): int;


[29447] Description


[29448] Converts an integer value from network byte order to host byte order.


[29449] Return Value: An integer value expressed in host byte order.


[29450] Different computers use different conventions for ordering the bytes within multi-byte integer values. Some computers put the most significant byte first (known as big-endian order) and others put the least-significant byte first (known as little-endian order). To enable computers that use different byte ordering, all integer values sent over the network are sent in network byte order. The number to convert expressed in network byte order.


[29451] NetworkToHostOrder


[29452] [C#] public static long NetworkToHostOrder(long network);


[29453] [C++] public: static_int64 NetworkToHostOrder(_int64 network);


[29454] [VB] Public Shared Function NetworkToHostOrder(ByVal network As Long) As Long


[29455] [JScript] public static function NetworkToHostOrder(network: long): long; Converts a number from network byte order to host byte order.


[29456] Description


[29457] Converts a long value from network byte order to host byte order.


[29458] Return Value: A long value expressed in host byte order.


[29459] Different computers use different conventions for ordering the bytes within multi-byte integer values. Some computers put the most significant byte first (known as big-endian order) and others put the least-significant byte first (known as little-endian order). To enable computers that use different byte ordering, all integer values sent over the network are sent in network byte order. The number to convert expressed in network byte order.


[29460] Parse


[29461] [C#] public static IPAddress Parse(string ipString);


[29462] [C++] public: static IPAddress* parse(String* ipString);


[29463] [VB] Public Shared Function Parse(ByVal ipString As String) As IPAddress


[29464] [JScript] public static function Parse(ipString: String): IPAddress;


[29465] Description


[29466] Converts an IP address string to an System.Net.IPAddress instance.


[29467] Return Value: An System.Net.IPAddress instance.


[29468] The static System.Net.IPAddress.Parse(System.String) method creates an System.Net.IPAddress instance from an IP address expressed in dotted-quad (“192.168.1.2”) notation. A string containing an IP address in dotted-quad notation (for example, “192.168.1.2”).


[29469] ToString


[29470] [C#] public override string ToString( );


[29471] [C++] public: String* ToString( );


[29472] [VB] Overrides Public Function ToString( ) As String


[29473] [JScript] public override function ToString( ): String;


[29474] Description


[29475] Converts an Internet address to standard dotted-quad format.


[29476] Return Value: A string containing the IP address in dotted-quad format (for example, “192.168.1.2”).


[29477] The System.Net.IPAddress.ToString method converts the IP address stored in the System.Net.IPAddress.Address property is converted to dotted-quad notation (for example, “192.168.1.2”).


[29478] IPEndPoint class (System.Net)


[29479] ToString


[29480] Description


[29481] Represents a network endpoint as an IP address and a port number.


[29482] The System.Net.IPEndPoint class contains the host and port information needed by an application to connect to a service on a host. By combining the host's IP address and port number of a service, the System.Net.IPEndPoint class forms a connection point to a service.


[29483] ToString


[29484] [C#] public const int MaxPort;


[29485] [C++] public: const int MaxPort;


[29486] [VB] Public Const MaxPort As Integer


[29487] [JScript] public var MaxPort: int;


[29488] Description


[29489] Specifies the maximum value that can be assigned to the System.Net.IPEndPoint.Port property. This field is read-only.


[29490] ToString


[29491] [C#] public const int MinPort;


[29492] [C++] public: const int MinPort;


[29493] [VB] Public Const MinPort As Integer


[29494] [JScript] public var MinPort: int;


[29495] Description


[29496] Specifies the minimum value that can be assigned to the System.Net.IPEndPoint.Port property. This field is read-only.


[29497] IPEndPoint


[29498] Example Syntax:


[29499] ToString


[29500] [C#] public IPEndPoint(long address, int port);


[29501] [C++] public: IPEndPoint_int64 address, int port);


[29502] [VB] Public Sub New(ByVal address As Long, ByVal port As Integer)


[29503] [JScript] public function IPndPoint(address: long, port: int); Initializes a new instance of the System.Net.IPEndPoint class.


[29504] Description


[29505] Initializes a new instance of the System.Net.IPEndPoint class with the specified address and port number. The IP address of the Internet host. The port number associated with the address, or 0 to specify any available port.


[29506] IPEndPoint


[29507] Example Syntax:


[29508] ToString


[29509] [C#] public IPEndPoint(IPAddress address, int port);


[29510] [C++] public: IPndPoint(IPAddress* address, int port);


[29511] [VB] Public Sub New(ByVal address As IPAddress, ByVal port As Integer)


[29512] [JScript] public function IPEndPoint(address: IPAddress, port: int);


[29513] Description


[29514] Initializes a new instance of the System.Net.IPEndPoint class with the specified address and port number. The IP address of the Internet host. The port number associated with address.


[29515] Address


[29516] ToString


[29517] [C#] public IPAddress Address {get; set;}


[29518] [C++] public: _property IPAddress* get_Address( );public: _property void set_Address(IPAddress*);


[29519] [VB] Public Property Address As IPAddress


[29520] [JScript] public function get Address( ): IPAddress;public function set Address(IPAddress);


[29521] Description


[29522] Gets or sets the IP address of the end point.


[29523] AddressFamily


[29524] ToString


[29525] [C#] public override AddressFamily AddressFamily {get;}


[29526] [C++] public: _property virtual AddressFamily get_AddressFamily( );


[29527] [VB] Overrides Public ReadOnly Property AddressFamily As AddressFamily


[29528] [JScript] public function get AddressFamily( ): AddressFamily;


[29529] Description


[29530] Gets the Internet Protocol (IP) address family.


[29531] Port


[29532] ToString


[29533] [C#] public int Port {get; set;}


[29534] [C++] public: _property int get_Port( );public: _property void set_Port(int);


[29535] [VB] Public Property Port As Integer


[29536] [JScript ] public function get Port( ): int;public function set Port(int);


[29537] Description


[29538] Gets o r sets the TCP port number of the end point.


[29539] Create


[29540] [C#] public override EndPoint Create(SocketAddress socketAddress);


[29541] [C++] public: EndPoint* Create(SocketAddress* socketAddress);


[29542] [VB] Overrides Public Function Create(ByVal socketAddress As SocketAddress) As EndPoint


[29543] [JScript] public override function Create(socketAddress: SocketAddress): EndPoint;


[29544] Description


[29545] Creates an end point from a socket address.


[29546] Return Value: An System.Net.EndPoint instance using the specified socket. The network socket to use for the end point.


[29547] Equals


[29548] [C#] public override bool Equals(object comparand);


[29549] [C++] public: bool Equals(Object* comparand);


[29550] [VB] Overrides Public Function Equals(ByVal comparand As Object) As Boolean


[29551] [JScript] public override function Equals(comparand: Object): Boolean;


[29552] GetHashCode


[29553] [C#] public override int GetHashCode( );


[29554] [C++] public: int GetHashCode( );


[29555] [VB] Overrides Public Function GetHashCode( ) As Integer


[29556] [JScript] public override function GetHashCode( ): int;


[29557] Serialize


[29558] [C#] public override SocketAddress Serialize( );


[29559] [C++] public: SocketAddress* Serialize( );


[29560] [VB] Overrides Public Function Serialize( ) As SocketAddress


[29561] [JScript] public override function Serialize( ): SocketAddress;


[29562] Description


[29563] Serializes end point information into a System.Net.SocketAddress instance.


[29564] Return Value: A System.Net.SocketAddress instance containing the socket is address for the end point.


[29565] ToString


[29566] [C#] public override string ToString( );


[29567] [C++] public: String* ToString( );


[29568] [VB] Overrides Public Function ToString( ) As String


[29569] [JScript] public override function ToString( ): String;


[29570] Description


[29571] Returns the IP address and port number for the specified end point.


[29572] Return Value: A string containing the IP address, in dotted-quad notation, and the port number for the specified end point (for example, 192.168.1.2:23).


[29573] IPHostEntry class (System.Net)


[29574] ToString


[29575] Description


[29576] Provides a container class for Internet host address information.


[29577] The System.Net.IPHostEntry class associates a Domain Name System (DNS) host name with an array of aliases and an array of matching IP addresses.


[29578] IPHostEntry


[29579] Example Syntax:


[29580] ToString


[29581] [C#] public IPHostEntry( );


[29582] [C++] public: IPHostEntry( );


[29583] [VB] Public Sub New( )


[29584] [JScript] public function IPHostEntry( );


[29585] AddressList


[29586] ToString


[29587] [C#] public IPAddress[ ] AddressList {get; set;}


[29588] [C++] public: _property IPAddress* get_AddressList( );public: _property void set_AddressList(IPAddress*[ ]);


[29589] [VB] Public Property AddressList As IPAddress( )


[29590] [JScript] public function get AddressList( ): IPAddress[ ];public function set AddressList(IPAddress[ ]);


[29591] Description


[29592] Gets or sets a list of IP addresses associated with a host.


[29593] Aliases


[29594] ToString


[29595] [C#] public string[ ] Aliases {get; set;}


[29596] [C++] public: _property String* get_Aliases( );public: _property void set_Aliases(String* _gc[ ]);


[29597] [VB] Public Property Aliases As String( )


[29598] [JScript] public function get Aliases( ): String[ ];public function set Aliases(String[ ]);


[29599] Description


[29600] Gets or sets a list of aliases associated with a host.


[29601] HostName


[29602] ToString


[29603] [C#] public string HostName {get; set;}


[29604] [C++] public: _property String* get_HostName( );public: _property void set_HostName(String*);


[29605] [VB] Public Property HostName As String


[29606] [JScript] public function get HostName( ): String;public function set HostName(String);


[29607] Description


[29608] Gets or sets the DNS name of the host.


[29609] The System.Net.IPHostEntry.HostName property contains the primary host name for a server. If the DNS entry for the server defines additional aliases, they will be available in the System.Net.IPHostEntry.Aliases property.


[29610] IWebProxy interface (System.Net)


[29611] ToString


[29612] Description


[29613] Provides the base interface for implementation of proxy access for the System.Net.WebRequest class.


[29614] The System.Net.IWebProxy interface provides the methods and properties required by the System.Net.WebRequest class to access proxy servers.


[29615] Credentials


[29616] ToString


[29617] [C#] ICredentials Credentials {get; set;}


[29618] [C++] ICredentials* get_Credentials( );void set_Credentials(ICredentials*);


[29619] [VB] Property Credentials As ICredentials


[29620] [JScript] abstract function get Credentials( ): ICredentials;public abstract function set Credentials(ICredentials);


[29621] Description


[29622] The credentials to submit to the proxy server for authentication.


[29623] The System.Net.lWebProxy.Credentials property is an System.Net.lCredentials instance containing the authorization credentials to send to the proxy server in response to an HTTP 407 (proxy authorization) status code.


[29624] GetProxy


[29625] [C+] Uri GetProxy(Uri destination);


[29626] [C++] Uri* GetProxy(Uri* destination);


[29627] [VB] Function GetProxy(ByVal destination As Uri) As Uri


[29628] [JScript] function GetProxy(destination: Uri): Uri;


[29629] Description


[29630] Returns the URI of a proxy.


[29631] Return Value: A System.Uri containing the URI of the proxy used to contact destination.


[29632] The System.Net.IWebProxy.GetProxy(System.Uri) method returns the URI of the proxy server that handles requests to the Internet resource specified in the destination parameter. A System.Uri specifying the requested Internet resource.


[29633] IsBypassed


[29634] [C#] bool IsBypassed(Uri host);


[29635] [C++] bool IsBypassed(Uri* host);


[29636] [VB] Function IsBypassed(ByVal host As Uri) As Boolean


[29637] [JScript] function IsBypassed(host: Uri): Boolean;


[29638] Description


[29639] Indicates that the proxy should not be used for the specified host.


[29640] Return Value: true if the proxy server should not be used for host; otherwise, false.


[29641] The System.Net.IWebProxy.IsBypassed(System.Uri) method indicates whether to use the proxy server to access the host specified in the host parameter. If System.Net.IWebProxy.IsBypassed(System.Uri) is true, the proxy is not used to contact the host and the request is passed directly to the server. The System.Uri of the host to check for proxy use.


[29642] IWebRequestCreate interface (System.Net)


[29643] IsBypassed


[29644] Description


[29645] Provides the base interface for creating System.Net.WebRequest instances.


[29646] The System.Net.lWebRequestCreate interface defines the method that System.Net.WebRequest descendants must use to register with the System.Net.WebRequest.Create(System.Uri,System.Boolean) method.


[29647] Create


[29648] [C#] WebRequest Create(Uri uri);


[29649] [C++] WebRequest* Create(Uri* uri);


[29650] [VB] Function Create(ByVal uri As Uri) As WebRequest


[29651] [JScript] function Create(uri: Uri): WebRequest;


[29652] Description


[29653] Creates a System.Net.WebRequest instance.


[29654] Return Value: A System.Net.WebRequest instance.


[29655] The System.Net.IWebRequestCreate.Create(System.Uri) method must return an initialized instance of the System.Net.WebRequest descendant capable of performing a standard request/response transaction for the protocol without needing any protocol-specific fields modified. The uniform resource identifier (URI) of the Web resource.


[29656] NetworkAccess enumeration (System.Net)


[29657] Create


[29658] Description


[29659] Specifies network access permissions.


[29660] The System.Net.NetworkAccess enumeration is used with the System.Net.WebPermission and System.Net.SocketPermission classes.


[29661] Create


[29662] [C#] public const NetworkAccess Accept;


[29663] [C++] public: const NetworkAccess Accept;


[29664] [VB] Public Const Accept As NetworkAccess


[29665] [JScript] public var Accept: NetworkAccess;


[29666] Description


[29667] Indicates that the application is allowed to accept connections from the Internet on a local resource.


[29668] Create


[29669] [C#] public const NetworkAccess Connect;


[29670] [C++] public: const NetworkAccess Connect;


[29671] [VB] Public Const Connect As NetworkAccess


[29672] [JScript] public var Connect: NetworkAccess;


[29673] Description


[29674] Indicates that the application is allowed to connect to specific Internet resources.


[29675] NetworkCredential class (System.Net)


[29676] ToString


[29677] Description


[29678] Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.


[29679] The System.Net.NetworkCredential class is a base class that supplies credentials in password-based authentication schemes such as basic, digest, NTLM, and Kerberos. Classes that implement the System.Net.ICredentials interface, such as the System.Net.CredentialCache class, return System.Net.NetworkCredential instances.


[29680] NetworkCredential


[29681] Example Syntax:


[29682] ToString


[29683] [C#] public NetworkCredential( );


[29684] [C++] public: NetworkCredential( );


[29685] [VB] Public Sub New( )


[29686] [JScript] public function NetworkCredential( );


[29687] NetworkCredential


[29688] Example Syntax:


[29689] ToString


[29690] [C#] public NetworkCredential(string userName, string password);


[29691] [C++] public: NetworkCredential(String* userName, String* password);


[29692] [VB] Public Sub New(ByVal userName As String, ByVal password As String)


[29693] [JScript] public function NetworkCredential(userName: String, password: String); Initializes a new instance of the System.Net.NetworkCredential class.


[29694] Description


[29695] Initializes a new instance of the System.Net.NetworkCredential class with the specified user name and password.


[29696] The constructor initializes a System.Net.NetworkCredential instance is initialized with the System.Net.NetworkCredential.UserName property set to userName and the System.Net.NetworkCredential.Password property set to password. The user name associated with the credentials. The password for the user name associated with the credentials.


[29697] NetworkCredential


[29698] Example Syntax:


[29699] ToString


[29700] [C#] public NetworkCredential(string userName, string password, string domain);


[29701] [C++] public: NetworkCredential(String* userName, String* password, String * domain);


[29702] [VB] Public Sub New(ByVal userName As String, ByVal password As String, ByVal domain As String)


[29703] [JScript] public function NetworkCredential(userName: String, password: String, domain: String);


[29704] Description


[29705] Initializes a new instance of the System.Net.NetworkCredential class with the specified user name, password, and domain.


[29706] The constructor initializes a System.Net.NetworkCredential instance with the System.Net.NetworkCredential.UserName property set to userName , the System.Net.NetworkCredential.Password property set to password, and the System.Net.NetworkCredential.Domain property set to domain. The user name associated with the credentials. The password for the user name associated with the credentials. The domain associated with these credentials.


[29707] Domain


[29708] ToString


[29709] [C#] public string Domain {get; set; }


[29710] [C++] public: _property String* get_Domain( );public: _property void set_Domain(String*);


[29711] [VB] Public Property Domain As String


[29712] [JScript] public function get Domain( ): String;public function set Domain(String);


[29713] Description


[29714] Gets or sets the domain or machine name that verifies the credentials.


[29715] The System.Net.NetworkCredential.Domain property specifies the domain or realm to which the user name belongs. Typically, this is the host machine name where the application runs or user domain for the currently logged in user.


[29716] Password


[29717] ToString


[29718] [C#] public string Password {get; set;}


[29719] [C++] public: _property String* get_Password( );public: _property void set_Password(String*);


[29720] [VB] Public Property Password As String


[29721] [JScript] public function get Password( ): String;public function set Password(String);


[29722] Description


[29723] Gets or sets the password for the user name associated with the credentials.


[29724] UserName


[29725] ToString


[29726] [C#] public string UserName {get; set;}


[29727] [C++] public: _property String* get_UserName( );public: _property void set_UserName(String*);


[29728] [VB] Public Property UserName As String


[29729] [JScript] public function get UserName( ): String;public function set UserName(String);


[29730] Description


[29731] Gets or sets the user name associated with the credentials.


[29732] GetCredential


[29733] [C#] public NetworkCredential GetCredential(Uri uri, string authType);


[29734] [C++] public: _sealed NetworkCredential* GetCredential(Uri* uri, String* authType);


[29735] [VB] NotOverridable Public Function GetCredential(ByVal uri As Uri, ByVal authType As String) As NetworkCredential


[29736] [JScript] public function GetCredential(uri: Uri, authType: String): NetworkCredential;


[29737] Description


[29738] Returns an instance of the System.Net.NetworkCredential class for the specified URI and authentication type.


[29739] Return Value: A System.Net.NetworkCredential instance. The URI that the client is providing authentication for. The type of authentication requested as defined in the System.Net.lAuthenticationModule.AuthenticationType property.


[29740] ProtocolViolationException class (System.Net)


[29741] ToString


[29742] Description


[29743] The exception that is thrown when an error is made while using a network protocol.


[29744] A System.Net.ProtocolViolationException is thrown by descendants of System.Net.WebRequest and System.Net.WebResponse to indicate an error using the underlying protocol. For example, the System.Net.HttpWebRequest and System.Net.HttpWebResponse classes throw a System.Net.ProtocolViolationException to indicate an error using HTTP.


[29745] ProtocolViolationException


[29746] Example Syntax:


[29747] ToString


[29748] [C#] public ProtocolViolationException( );


[29749] [C++] public: ProtocolViolationException( );


[29750] [VB] Public Sub New( )


[29751] [JScript] public function ProtocolViolationException( ); Initializes a new instance of the System.Net.ProtocolViolationException class.


[29752] Description


[29753] Initializes a new instance of the System.Net.ProtocolViolationException class.


[29754] The default constructor initializes a new instance of the System.Net.ProtocolViolationException class with all properties set to null.


[29755] ProtocolViolationException


[29756] Example Syntax:


[29757] ToString


[29758] [C#] public ProtocolViolationException(string message);


[29759] [C++] public: ProtocolViolationException(String* message);


[29760] [VB] Public Sub New(ByVal message As String)


[29761] [JScript] public function ProtocolViolationException(message: String);


[29762] Description


[29763] Initializes a new instance of the System.Net.ProtocolViolationException class with the specified message.


[29764] The System.Net.ProtocolViolationException.#ctor constructor initializes a new instance of the System.Net.ProtocolViolationException class with the System.Exception.Message property set to the value of the message parameter. The error message string.


[29765] ProtocolViolationException


[29766] Example Syntax:


[29767] ToString


[29768] [C#] protected ProtocolViolationException(SerializationInfo serializationInfo, StreamingContext streamingContext);


[29769] [C++] protected: ProtocolViolationException(SerializationInfo* serializationInfo, StreamingContext streamingcontext);


[29770] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingcontext As StreamingContext)


[29771] [JScript] protected function ProtocolViolationException(serializationInfo: SerializationInfo, streamingcontext: StreamingContext);


[29772] HelpLink


[29773] HResult


[29774] InnerException


[29775] Message


[29776] Source


[29777] StackTrace


[29778] TargetSite


[29779] ISerializable.GetObjectData


[29780] [C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext);


[29781] [C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[29782] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext) Implements ISerializable.GetObjectData


[29783] [JScript] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[29784] ServicePoint class (System.Net)


[29785] ToString


[29786] Description


[29787] Provides connection management for HTTP connections.


[29788] The System.Net.ServicePoint class handles connections to an Internet resource based on the host information passed in the resource's URI. The initial connection to the resource determines the information the System.Net.ServicePoint maintains, which is then shared by all subsequent requests to that resource.


[29789] Address


[29790] ToString


[29791] [C#] public Uri Address {get;}


[29792] [C++] public: _property Uri* get_Address( );


[29793] [VB] Public ReadOnly Property Address As Uri


[29794] [JScript] public function get Address( ): Uri;


[29795] Description


[29796] Gets the URI of the System.Net.ServicePoint.


[29797] Certificate


[29798] ToString


[29799] [C#] public X509Certificate Certificate {get;}


[29800] [C++] public: _property X509Certificate* get_Certificate( );


[29801] [VB] Public ReadOnly Property Certificate As X509Certificate


[29802] [JScript] public function get Certificate( ): X509Certificate;


[29803] Description


[29804] Gets the certificate received for this System.Net.ServicePoint.


[29805] Although a System.Net.ServicePoint can make multiple connections to an Internet resource, it can maintain only one certificate.


[29806] ClientCertificate


[29807] ToString


[29808] [C#] public X509Certificate ClientCertificate {get;}


[29809] [C++] public: _property X509Certificate* get _ClientCertificate( );


[29810] [VB] Public ReadOnly Property ClientCertificate As X509Certificate


[29811] [JScript] public function get ClientCertificate: X509Certificate; Gets the Client Certificate sent by us to the Server.


[29812] ConnectionLimit


[29813] ToString


[29814] [C#] public int ConnectionLimit {get; set;}


[29815] [C++] public: _property int get_ConnectionLimit( );public: _property void set_ConnectionLimit(int);


[29816] [VB] Public Property ConnectionLimit As Integer


[29817] [JScript] public function get ConnectionLimit( ): int;public function set ConnectionLimit(int);


[29818] Description


[29819] Gets or sets the maximum number of connections allowed on this System.Net.ServicePoint.


[29820] The System.Net.ServicePoint.ConnectionLimit property sets the maximum number of connections that the System.Net.ServicePoint can make to an Internet resource. The value of the System.Net.ServicePoint.ConnectionLimit property is set to the value of the System.Net.ServicePointManager.DefaultConnectionLimit property when the System.Net.ServicePoint is created; subsequent changes to System.Net.ServicePointManager.DefaultConnectionLimit have no effect on existing System.Net.ServicePoint instances.


[29821] ConnectionName


[29822] ToString


[29823] [C#] public string ConnectionName {get;}


[29824] [C++] public: _property String* get_ConnectionName( );


[29825] [VB] Public ReadOnly Property ConnectionName As String


[29826] [JScript] public function get ConnectionName( ): String;


[29827] Description


[29828] Gets the connection group name established by the System.Net.WebRequest that created the connection.


[29829] The System.Net.ServicePoint.ConnectionName property contains the connection group assigned to the System.Net.WebRequest.ConnectionGroupName property of the System.Net.WebRequest that initiated the connection provided by this System.Net.ServicePoint. If the System.Net.ServicePoint.ConnectionName property is set, only System.Net.WebRequest instances with the same System.Net.WebRequest.ConnectionGroupName can use this System.Net.ServicePoint.


[29830] CurrentConnections


[29831] ToString


[29832] [C#] public int CurrentConnections {get;}


[29833] [C++] public: _property int get_CurrentConnections( );


[29834] [VB] Public ReadOnly Property CurrentConnections As Integer


[29835] [JScript] public function get CurrentConnections( ): int;


[29836] Description


[29837] Gets the number of connections associated with this System.Net.ServicePoint.


[29838] The System.Net.ServicePoint.CurrentConnections property contains the number of active Internet connections associated with this System.Net.ServicePoint. The value of System.Net.ServicePoint.CurrentConnections cannot exceed that of System.Net.ServicePoint.ConnectionLimit.


[29839] IdleSince


[29840] ToString


[29841] [C#] public DateTime IdleSince {get;}


[29842] [C++] public: _property DateTime get_IdleSince( );


[29843] [VB] Public ReadOnly Property IdleSince As DateTime


[29844] [JScript] public function get IdleSince( ): DateTime;


[29845] Description


[29846] Gets the date and time that the System.Net.ServicePoint was last accessed.


[29847] The System.Net.ServicePoint.IdleSince property records the last date and time at which a service point was accessed. When the difference between the current time and System.Net.ServicePoint.IdleSince exceeds the value of System.Net.ServicePoint.MaxIdleTime, the System.Net.ServicePoint is available for recycling to another connection.


[29848] MaxIdleTime


[29849] ToString


[29850] [C#] public int MaxIdleTime {get; set;}


[29851] [C++] public: _property int get_MaxIdleTime( );public: _property void set_MaxIdleTime(int);


[29852] [VB] Public Property MaxIdleTime As Integer


[29853] [JScript] public function get MaxIdleTime( ): int;public function set MaxIdleTime(int);


[29854] Description


[29855] Gets or sets the maximum idle time for the System.Net.ServicePoint.


[29856] The System.Net.ServicePoint.MaxIdleTime property contains the length of time, in milliseconds, that the System.Net.ServicePoint is allowed to maintain an idle connection to an Internet resource before it is recycled for use in another connection.


[29857] ProtocolVersion


[29858] ToString


[29859] [C#] public virtual Version ProtocolVersion {get;}


[29860] [C++] public: _property virtual Version* get_ProtocolVersion( );


[29861] [VB] Overridable Public ReadOnly Property ProtocolVersion As Version


[29862] [JScript] public function get ProtocolVersion( ): Version;


[29863] Description


[29864] Gets the version of the HTTP protocol that the System.Net.ServicePoint uses.


[29865] SupportsPipelining


[29866] ToString


[29867] [C#] public bool SupportsPipelining {get;}


[29868] [C++] public: _property bool get_SupportsPipelining( );


[29869] [VB] Public ReadOnly Property SupportsPipelining As Boolean


[29870] [JScript] public function get SupportsPipelining( ): Boolean;


[29871] Description


[29872] Indicates whether the System.Net.ServicePoint supports pipelined connections.


[29873] GetHashCode


[29874] [C#] public override int GetHashCode( );


[29875] [C++] public: int GetHashCode( );


[29876] [VB] Overrides Public Function GetHashCode( ) As Integer


[29877] [JScript] public override function GetHashCode( ): int;


[29878] Description


[29879] Gets the hash code for the System.Net.ServicePoint


[29880] Return Value: The hash code for the System.Net.ServicePoint.


[29881] The hash code for System.Net.ServicePoint A and B is the same if A.Equals(B) is true.


[29882] ServicePointManager class (System.Net)


[29883] ToString


[29884] Description


[29885] Manages the collection of System.Net.ServicePoint instances.


[29886] System.Net.ServicePointManager is a static class used to create, maintain, and delete instances of the System.Net.ServicePoint class.


[29887] ToString


[29888] [C#] public const int DefaultNonPersistentConnectionLimit;


[29889] [C++] public: const int DefaultNonPersistentConnectionLimit;


[29890] [VB] Public Const DefaultNonPersistentConnectionLimit As Integer


[29891] [JScript] public var DefaultNonPersistentConnectionLimit: int;


[29892] Description


[29893] The default number of nonpersistent connections allowed on a System.Net.ServicePoint connected to an HTTP/1.1server.


[29894] ToString


[29895] [C#] public const int DefaultPersistentConnectionlimit;


[29896] [C++] public: const int DefaultPersistentConnectionLimit;


[29897] [VB] Public Const DefaultPersistentConnectionLimit As Integer


[29898] [JScript] public var DefaultPersistentConnectionLimit: Int;


[29899] Description


[29900] The default number of persistent connections allowed on a System.Net.ServicePoint connected to an HTTP/1.0server.


[29901] CertificatePolicy


[29902] ToString


[29903] [C#] public static ICertificatePolicy CertificatePolicy {get; set;}


[29904] [C++] public: _property static ICertificatePolicy* get_CertificatePolicy( );public: _property static void set_CertificatePolicy(ICertificatePolicy*);


[29905] [VB] Public Shared Property CertificatePolicy As ICertificatePolicy


[29906] [JScript] public static function get CertificatePolicy( ): ICertificatePolicy;public static function set CertificatePolicy(ICertificatePolicy);


[29907] Description


[29908] Gets or sets policy for server certificates.


[29909] When the System.Net.ServicePointManager.CertificatePolicy property is set to an System.Net.ICertificatePolicy interface instance, the System.Net.ServicePointManager uses the certifiate policy defined in that instance instead of the default certificate policy.


[29910] DefaultConnectionLimit


[29911] ToString


[29912] [C#] public static int DefaultConnectionLimit {get; set;}


[29913] [C++] public: _property static int get_DefaultConnectionLimit( );public: _property static void set_DefaultConnectionLimit(int);


[29914] [VB] Public Shared Property DefaultConnectionLimit As Integer


[29915] [JScript] public static function get DefaultConnectionLimit( ): int;public static function set DefaultConnectionLimit(int);


[29916] Description


[29917] The maximum number of concurrent connections allowed by a System.Net.ServicePoint instance.


[29918] The System.Net.ServicePointManager.DefaultConnectionLimit property sets the default maximum number of concurrent connections that the System.Net.ServicePointManager assigns to the System.Net.ServicePoint.ConnectionLimit property when creating System.Net.ServicePoint instances.


[29919] MaxServicePointIdleTime


[29920] ToString


[29921] [C#] public static int MaxServicePointIdleTime {get; set;}


[29922] [C++] public: _property static int get_MaxServicePointIdleTime( );public: _property static void set_MaxServicePointIdleTime(int);


[29923] [VB] Public Shared Property MaxServicePointIdleTime As Integer


[29924] [JScript] public static function get MaxServicePointIdleTime( ): int;public static function set MaxServicePointIdleTime(int);


[29925] Description


[29926] Gets or sets the maximum idle time of a System.Net.ServicePoint instance.


[29927] The System.Net.ServicePointManager.MaxServicePointIdleTime property sets the maximum idle time that the System.Net.ServicePointManager assigns to the System.Net.ServicePoint.MaxIdleTime property when creating System.Net.ServicePoint instances. Changes to this value will affect only System.Net.ServicePoint instances that are initialized after the value is changed.


[29928] MaxServicePoints


[29929] ToString


[29930] [C#] public static int MaxServicePoints {get; set;}


[29931] [C++] public: _property static int get_MaxServicePoints( );public: property static void set_MaxServicePoints(int);


[29932] [VB] Public Shared Property MaxServicePoints As Integer


[29933] [JScript] public static function get MaxServicePoints( ): int;public static function set MaxServicePoints(int);


[29934] Description


[29935] Gets or sets the maximum number of System.Net.ServicePoint instances to maintain at any time.


[29936] When you reduce the System.Net.ServicePointManager.MaxServicePoints property below the number of System.Net.ServicePoint instances currently in existence, the System.Net.ServicePointManager deletes the System.Net.ServicePoint instances with the longest idle times. If the number of System.Net.ServicePoint instances with active connections is greater than the value of System.Net.ServicePointManager.MaxServicePoints , the System.Net.ServicePointManager will delete the System.Net.ServicePoint instances as they become idle.


[29937] FindServicePoint


[29938] [C+] public static ServicePoint FindServicePoint(Uri address);


[29939] [C++] public: static ServicePoint* FindServicePoint(Uri* address);


[29940] [VB] Public Shared Function FindServicePoint(ByVal address As Uri) As ServicePoint


[29941] [JScript] public static function FindServicePoint(address: Uri): ServicePoint; Finds an existing System.Net.ServicePoint or creates a new System.Net.ServicePoint to manage communication for this request.


[29942] Description


[29943] Finds an existing System.Net.ServicePoint or creates a new System.Net.ServicePoint to manage communications with the specified System.Uri.


[29944] Return Value: The System.Net.ServicePoint that manages communications for the request.


[29945] The System.Net.ServicePointManager.FindServicePoint(System.Uri) method returns the System.Net.ServicePoint instance associated with the specified Internet host name. If no System.Net.ServicePoint exists for that host, the System.Net.ServicePointManager creates one. The System.Uri of the Internet resource to contact.


[29946] FindServicePoint


[29947] [C#] public static ServicePoint FindServicePoint(string uriString, IWebProxy proxy);


[29948] [C++] public: static ServicePoint* FindServicePoint(String* uriString, IWebProxy* proxy);


[29949] [VB] Public Shared Function FindServicePoint(ByVal uriString As String, ByVal proxy As IWebProxy) As ServicePoint


[29950] [JScript] public static function FindServicePoint(uriString: String, proxy: IWebProxy): ServicePoint; Finds an existing System.Net.ServicePoint or creates a new System.Net.ServicePoint to manage communication for this request.


[29951] Description


[29952] Finds an existing System.Net.ServicePoint or creates a new System.Net.ServicePoint to manage communications with the specified URI.


[29953] Return Value: The System.Net.ServicePoint that manages communications for the request.


[29954] The System.Net.ServicePointManager.FindServicePoint(System.Uri) method returns the System.Net.ServicePoint instance associated with the specified Internet host name. If no System.Net.ServicePoint exists for that host, the System.Net.ServicePointManager creates one. The URI of the Internet resource to be contacted. Proxy data for this request.


[29955] FindServicePoint


[29956] [C#] public static ServicePoint FindServicePoint(Uri address, IWebProxy proxy);


[29957] [C++] public: static ServicePoint* FindServicePoint(Uri* address, IWebProxy* proxy);


[29958] [VB] Public Shared Function FindServicePoint(ByVal address As Uri, ByVal proxy As IWebProxy) As ServicePoint


[29959] [JScript] public static function FindServicePoint(address: Uri, proxy: IWebProxy): ServicePoint;


[29960] Description


[29961] Finds an existing System.Net.ServicePoint or creates a new System.Net.ServicePoint to manage communications with the specified System.Uri instance.


[29962] Return Value: The System.Net.ServicePoint that manages communications for the request.


[29963] The System.Net.ServicePointManager.FindServicePoint(System.Uri) method returns the System.Net.ServicePoint instance associated with the specified Internet host name. If no System.Net.ServicePoint exists for that host, the System.Net.ServicePointManager creates one. A System.Uri instance containing the address of the Internet resource to contact. Proxy data for this request.


[29964] SocketAddress class (System.Net)


[29965] ToString


[29966] Description


[29967] Identifies a socket address.


[29968] SocketAddress


[29969] Example Syntax:


[29970] ToString


[29971] [C#] public SocketAddress(AddressFamily family);


[29972] [C++] public: SocketAddress(AddressFamily family);


[29973] [VB] Public Sub New(ByVal family As AddressFamily)


[29974] [JScript] public function SocketAddress(family: AddressFamily); Initializes a new instance of the System.Net.SocketAddress class.


[29975] Description


[29976] Initializes a new instance of the System.Net.SocketAddress class for the given address family.


[29977] SocketAddress


[29978] Example Syntax:


[29979] ToString


[29980] [C#] public SocketAddress(AddressFamily family, int size);


[29981] [C++] public: SocketAddress(AddressFamily family, int size);


[29982] [VB] Public Sub New(ByVal family As AddressFamily, ByVal size As Integer)


[29983] [JScript] public function SocketAddress(family: AddressFamily, size: int);


[29984] Description


[29985] Family


[29986] ToString


[29987] [C#] public AddressFamily Family {get;}


[29988] [C++] public: p_property AddressFamily get_Family( );


[29989] [VB] Public ReadOnly Property Family As AddressFamily


[29990] [JScript] public function get Family( ): AddressFamily;


[29991] Description


[29992] Item


[29993] ToString


[29994] [C#] public byte this[int offset] {get; set;}


[29995] [C++] public: _property unsigned char get_Item(int offset);public: _property void set_Item(int offset, unsigned char);


[29996] [VB] Public Default Property Item(ByVal offset As Integer) As Byte


[29997] [JScript] returnValue =SocketAddressObject.Item(offset);SocketAddressObject.Item(offset)=returnvalue;


[29998] Description


[29999] Size


[30000] ToString


[30001] [C#] public int Size {get;}


[30002] [C++] public: _property int get_Size( );


[30003] [VB] Public ReadOnly Property Size As Integer


[30004] [JScript] public function get Size( ): int;


[30005] Description


[30006] Equals


[30007] [C#] public override bool Equals(object comparand);


[30008] [C++] public: bool Equals(Object* comparand);


[30009] [VB] Overrides Public Function Equals(ByVal comparand As Object) As Boolean


[30010] [JScript] public override function Equals(comparand: Object): Boolean;


[30011] GetHashCode


[30012] [C#] public override int GetHashCode( );


[30013] [C++] public: int GetHashCode( );


[30014] [VB] Overrides Public Function GetHashCode( ) As Integer


[30015] [JScript] public override function GetHashCode( ): int;


[30016] ToString


[30017] [C#] public override string ToString( );


[30018] [C++] public: String* ToString( );


[30019] [VB] Overrides Public Function ToString( ) As String


[30020] [JScript] public override function ToString( ): String;


[30021] SocketPermission class (System.Net)


[30022] ToString


[30023] Description


[30024] Controls rights to make or accept connections on a transport address.


[30025] ToString


[30026] [C#] public const int AllPorts;


[30027] [C++] public: const int AllPorts;


[30028] [VB] Public Const AllPorts As Integer


[30029] [JScript] public var AllPorts: int;


[30030] Description


[30031] Defines a constant representing all ports.


[30032] SocketPermission


[30033] Example Syntax:


[30034] ToString


[30035] [C#] public SocketPermission(PermissionState state);


[30036] [C++] public: SocketPermission(PermissionState state);


[30037] [VB] Public Sub New(ByVal state As PermissionState)


[30038] [JScript] public function SocketPermission(state: PermissionState); Initializes a new instance of the System.Net.SocketPermission class.


[30039] Description


[30040] Initializes a new instance of the System.Net.SocketPermission class that passes all demands or fails all demands.


[30041] If the System.Net.SocketPermission instance was created with the Unrestricted value from System.Security.Permissions.PermissionState then the System.Net.SocketPermission instance will pass all demands. Any other value for state will result in a System.Net.SocketPermission instance that will fail all demands. One of the System.Security.Permissions.PermissionState values.


[30042] SocketPermission


[30043] Example Syntax:


[30044] ToString


[30045] [C#] public SocketPermission(NetworkAccess access, TransportType transport, string hostName, int portNumber);


[30046] [C++] public: SocketPermission(NetworkAccess access, TransportType transport, String* hostName, int portNumber);


[30047] [VB] Public Sub New(ByVal access As NetworkAccess, ByVal transport As TransportType, ByVal hostName As String, ByVal portNumber As Integer)


[30048] [JScript] public function SocketPermission(access: NetworkAccess, transport: TransportType, hostName: String, portNumber: int);


[30049] Description


[30050] Initializes a new instance of the System.Net.SocketPermission class for the given transport address with the specified permission. One of the System.Net.NetworkAccess values. One of the System.Net.TransportType values. The host name for the transport address. The port number for the transport address.


[30051] AcceptList


[30052] ToString


[30053] [C#] public IEnumerator AcceptList {get; }


[30054] [C++] public: _property IEnumerator* get_AcceptList( );


[30055] [VB] Public ReadOnly Property AcceptList As IEnumerator


[30056] [JScript] public function get AcceptList( ): IEnumerator;


[30057] Description


[30058] Gets a list of System.Net.EndpointPermission instances identifying the endpoints that can be accepted under this permission instance.


[30059] ConnectList


[30060] ToString


[30061] [C#] public IEnumerator ConnectList {get;}


[30062] [C++] public: _property IEnumerator* get_ConnectList( );


[30063] [VB] Public ReadOnly Property ConnectList As IEnumerator


[30064] [JScript] public function get ConnectList( ): IEnumerator;


[30065] Description


[30066] Gets a list of System.Net.EndpointPermission instances identifying the endpoints that can be connected to under this permission instance.


[30067] AddPermission


[30068] [C#] public void AddPermission(NetworkAccess access, TransportType transport, string hostName, int portNumber);


[30069] [C++] public: void AddPermnission(NetworkAccess access, TransportType transport, String* hostName, int portNumber);


[30070] [VB] Public Sub AddPermission(ByVal access As NetworkAccess, ByVal transport As TransportType, ByVal hostName As String, ByVal portNumber As Integer)


[30071] [JScript] public function AddPermission(access: NetworkAccess, transport: TransportType, hostName: String, portNumber: int);


[30072] Description


[30073] Adds a permission to the set of permissions for a transport address.


[30074] Permissions are checked with a logical OR operation. One of the System.Net.NetworkAccess values. One of the System.Net.TransportType values. The host name for the transport address. The port number for the transport address.


[30075] Copy


[30076] [CH] public override IPermission Copy( );


[30077] [C++] public: IPermission* Copy( );


[30078] [VB] Overrides Public Function Copy( ) As IPermission


[30079] [JScript] public override function Copy( ): IPermission;


[30080] Description


[30081] Creates a copy of a System.Net.SocketPermission instance.


[30082] Return Value: A new instance of the System.Net.SocketPermission class that is a copy of the current instance.


[30083] FromXml


[30084] [C#] public override void FromXml(SecurityElement securityElement);


[30085] [C++] public: void FromXml(SecurityElement* securityElement);


[30086] [VB] Overrides Public Sub FromXmnl(ByVal securityElement As SecurityElement)


[30087] [JScript] public override function FromXml(securityElement: SecurityElement);


[30088] Description


[30089] Reconstructs a System.Net.SocketPermission instance for an XML encoding.


[30090] The System.Net.SocketPermission.FromXml(System.Security.SecurityElement) method reconstructs a System.Net.SocketPermission instance from an XML encoding defined by the System.Security.SecurityElement class. The XML encoding used to reconstruct the System.Net.SocketPermission instance.


[30091] Intersect


[30092] [C#] public override IPermission Intersect(IPermission target);


[30093] [C++] public: IPermission* Intersect(IPermission* target);


[30094] [VB] Overrides Public Function Intersect(ByVal target As IPermission) As IPermission


[30095] [JScript] public override function Intersect(target: IPermission): IPermission;


[30096] Description


[30097] Returns the logical intersection between two System.Net.SocketPermission instances.


[30098] Return Value: The System.Net.SocketPermission instance that represents the intersection of two System.Net.SocketPermission instances. The System.Net.SocketPermission instance to combine with the current instance.


[30099] IsSubsetOf


[30100] [C#] public override bool IsSubsetOf(lPermission target);


[30101] [C++] public: bool IsSubsetOf(IPermission* target);


[30102] [VB] Overrides Public Function IsSubsetOf(ByVal target As IPermission) As Boolean


[30103] [JScript] public override function IsSubsetOf(target: Ipermission): Boolean;


[30104] Description


[30105] Compares two System.Net.SocketPermission instances.


[30106] Return Value: false if target is null; otherwise, an exception is thrown.


[30107] The System.Net.SocketPermission class does not support the System.Net.SocketPermission.IsSubsetOf(System.Security.IPermission) method. The second System.Net.SocketPermission instance to compare.


[30108] IsUnrestricted


[30109] [C#] public bool IsUnrestricted( );


[30110] [C++] public: _sealed bool IsUnrestricted( );


[30111] [VB] NotOverridable Public Function IsUnrestricted( ) As Boolean


[30112] [JScript] public function IsUnrestricted( ): Boolean;


[30113] Description


[30114] Checks the overall permission state of the object.


[30115] Return Value: true if the System.Net.SocketPermission instance was created with the Unrestricted value from System.Security.Permissions.PermissionState ; otherwise, false.


[30116] ToXml


[30117] [C#] public override SecurityElement ToXml( );


[30118] [C++] public: SecurityElement* ToXml( );


[30119] [VB] Overrides Public Function ToXml( ) As SecurityElement


[30120] [JScript] public override function ToXmnl( ): SecurityElement;


[30121] Description


[30122] Creates an XML encoding of a System.Net.SocketPermission instance and its current state.


[30123] Return Value: A System.Security.SecurityElement instance containing an XML-encoded representation of the System.Net.SocketPermission instance, including state information.


[30124] The System.Net.SocketPermission.ToXml method creates a System.Security.SecurityElement instance to encode a representation of the System.Net.SocketPermission instance, including state information, in XML.


[30125] Union


[30126] [C#] public override Ipermission Union(IPermission target);


[30127] [C++] public: IPermission* Union(IPermission* target);


[30128] [VB] Overrides Public Function Union(ByVal target As IPermission) As IPermission


[30129] [JScript] public override function Union(target: IPermission): IPermission;


[30130] Description


[30131] Returns the logical union between two System.Net.SocketPermission instances.


[30132] Return Value: The System.Net.SocketPermission instance that represents the union of two System.Net.SocketPermission instances. The System.Net.SocketPermission instance to combine with the current instance.


[30133] SocketPermissionAttribute class (System.Net)


[30134] Union


[30135] Description


[30136] Enables security actions for System.Net.SocketPermission to be applied to code using declarative security. This class cannot be inherited.


[30137] SocketPermissionAttribute


[30138] Example Syntax:


[30139] Union


[30140] [C#] public SocketPermissionAttribute(SecurityAction action);


[30141] [C++] public: SocketPermissionAttribute(SecurityAction action);


[30142] [VB] Public Sub New(ByVal action As SecurityAction)


[30143] [JScript] public function SocketPermissionAttribute(action: SecurityAction);


[30144] Description


[30145] Initializes a new instance of the System.Net.SocketPermissionAttribute class with the specified System.Security.Permissions.SecurityAction value. One of the System.Security.Permissions.SecurityAction values.


[30146] Access


[30147] Union


[30148] [C#] public string Access {get; set;}


[30149] [C++] public: _property String* get_Access( );public: _property void set_Access(String*);


[30150] [VB] Public Property Access As String


[30151] [JScript] public function get Access( ): String;public function set Access(String);


[30152] Description


[30153] Gets or sets the network access method allowed by this permission instance.


[30154] Action


[30155] Host


[30156] Union


[30157] Description


[30158] The DNS host name or IP address associated with this permission instance.


[30159] Port


[30160] Union


[30161] [C#] public string Port {get; set;}


[30162] [C++] public: _property String* get_Port( );public: _property void set_Port(String*);


[30163] [VB] Public Property Port As String


[30164] [JScript] public function get Port: String;public function set Port(String);


[30165] Description


[30166] Gets or sets the transport type associated with this permission instance.


[30167] Transport


[30168] Union


[30169] [C#] public string Transport {get; set;}


[30170] [C++] public: _property String* get_Transport( );public: _property void set_Transport(String*);


[30171] [VB] Public Property Transport As String


[30172] [JScript] public function get Transport( ): String;public function set Transport(String);


[30173] Description


[30174] Gets or sets the transport type associated with this permission instance.


[30175] TypeId


[30176] Unrestricted


[30177] CreatePermission


[30178] [C#] public override IPermission CreatePermission( );


[30179] [C++] public: IPermission* CreatePermission( );


[30180] [VB] Overrides Public Function CreatePermission( ) As IPermission


[30181] [JScript] public override function CreatePermission( ): IPermission;


[30182] Description


[30183] Creates and returns a new instance of the System.Net.SocketPermission class.


[30184] Return Value: An instance of the System.Net.SocketPermission class corresponding to the security declaration.


[30185] The System.Net.SocketPermissionAttribute.CreatePermission method is called by the security system, not by application code.


[30186] TransportType enumeration (System.Net)


[30187] ToString


[30188] Description


[30189] Defines transport types for the System.Net.SocketPermission and System.Net.Sockets.Socket classes.


[30190] The System.Net.TransportType enumeration defines transport types for the System.Net.SocketPermission and System.Net.Sockets.Socket classes.


[30191] ToString


[30192] [C#] public const TransportType All;


[30193] [C++] public: const TransportType All;


[30194] [VB] Public Const All As TransportType


[30195] [JScript] public var All: TransportType;


[30196] Description


[30197] All transport types.


[30198] ToString


[30199] [C#] public const TransportType Connectionless;


[30200] [C++] public: const TransportType Connectionless;


[30201] [VB] Public Const Connectionless As TransportType


[30202] [JScript] public var Connectionless: TransportType;


[30203] Description


[30204] The transport type is connectionless, such as UDP.


[30205] ToString


[30206] [C#] public const TransportType ConnectionOriented;


[30207] [C++] public: const TransportType ConnectionOriented;


[30208] [VB] Public Const ConnectionOriented As TransportType


[30209] [JScript] public var ConnectionOriented: TransportType;


[30210] Description


[30211] The transport is connection oriented, such as TCP.


[30212] ToString


[30213] [C#] public const TransportType Tcp;


[30214] [C++] public: const TransportType Tcp;


[30215] [VB] Public Const Tcp As TransportType


[30216] [JScript] public var Tcp: TransportType;


[30217] Description


[30218] TCP transport.


[30219] ToString


[30220] [C#] public const TransportType Udp;


[30221] [C++] public: const TransportType Udp;


[30222] [VB] Public Const Udp As TransportType


[30223] [J Script] public var Udp: TransportType;


[30224] Description


[30225] UDP transport.


[30226] WebClient class (System.Net)


[30227] ToString


[30228] Description


[30229] Provides common methods for sending data to and receiving data from a resource identified by a URI. This class cannot be inherited.


[30230] The System.Net.WebClient class provides common methods for sending data to or receiving data from any local, Intranet, or Internet resource identified by a URI.


[30231] WebClient


[30232] Example Syntax:


[30233] ToString


[30234] [C#] public WebClient( );


[30235] [C++] public: WebClient( );


[30236] [VB] Public Sub New( )


[30237] [JScript] public function WebClient( );


[30238] Description


[30239] Initializes a new instance of the System.Net.WebClient class.


[30240] The default constructor creates a new instance of the System.Net.WebClient class with all fields set to null.


[30241] BaseAddress


[30242] ToString


[30243] [C#] public string BaseAddress {get; set;}


[30244] [C++] public: _property String* get_BaseAddress( );public: _property void set_BaseAddress(String*);


[30245] [VB] Public Property BaseAddress As String


[30246] [JScript] public function get BaseAddress( ): String;public function set BaseAddress(String);


[30247] Description


[30248] Gets or sets the base URI for requests made by a System.Net.WebClient.


[30249] The System.Net.WebClient.BaseAddress property contains a base URI that is combined with the relative address specified when calling an upload or download method.


[30250] Container


[30251] Credentials


[30252] ToString


[30253] Description


[30254] Gets or sets the network credentials used for authenticating the request with the Internet resource.


[30255] The System.Net.WebClient.Credentials property contains the authentication credentials required to access the Internet resource.


[30256] DesignMode


[30257] Events


[30258] Headers


[30259] ToString


[30260] Description


[30261] Gets or sets a collection of header name/value pairs associated with the request.


[30262] The System.Net.WebClient.Headers property contains a System.Net.WebHeaderCollection instance containing header information the System.Net.WebClient sends to the Internet resource. This is an unrestricted collection of headers, so setting headers that are restricted by System.Net.WebRequest descendants like System.Net.HttpWebRequest is allowed.


[30263] QueryString


[30264] ToString


[30265] [C#] public NameValueCollection QueryString {get; set;}


[30266] [C++] public: _property NameValueCollection* get_QueryString( );public: _property void set_QueryString(NameValueCollection*);


[30267] [VB] Public Property QueryString: As NameValueCollection


[30268] [JScript] public function get QueryString( ): NameValueCollection;public function set QueryString(NameValueCollection);


[30269] Description


[30270] Gets or sets a collection of query name/value pairs associated with the request.


[30271] The System.Net.WebClient.QueryString property contains a System.Collections.Specialized.NameValueCollection instance containing name/value pairs that are appended to the URI as a query string. The contents of the System.Net.WebClient.QueryString property are preceded by a question mark (?), and each name/value pair is separated by an ampersand (&).


[30272] ResponseHeaders


[30273] ToString


[30274] [C#] public WebHeaderCollection ResponseHeaders {get; }


[30275] [C++] public: _property WebHeaderCollection* get_ResponseHeaders( );


[30276] [VB] Public ReadOnly Property ResponseHeaders As WebHeaderCollection


[30277] [JScript] public function get ResponseHeaders( ): WebHeaderCollection;


[30278] Description


[30279] Gets a collection of header name/value pairs associated with the response.


[30280] The System.Net.WebClient.ResponseHeaders property contains a System.Net.WebHeaderCollection instance containing header information the System.Net.WebClient receives from the Internet resource.


[30281] Site


[30282] DownloadData


[30283] [C#] public byte[ ] DownloadData(string address);


[30284] [C++] public: unsigned char DownloadData(String* address)_gc[ ];


[30285] [VB] Public Function DownloadData(ByVal address As String) As Byte( )


[30286] [JScript] public function DownloadData(address: String): Byte[ ];


[30287] Description


[30288] Downloads data from a resource identified by a URI.


[30289] Return Value: A byte array containing the data downloaded from the resource specified by address.


[30290] The System.Net.WebClient.DownloadData(System.String) method downloads the data from the URI specified by address to a local byte array. The URI from which the data will be downloaded.


[30291] DownloadFile


[30292] [C#] public void DownloadFile(string address, string fileName);


[30293] [C++] public: void DownloadFile(String* address, String* fileName);


[30294] [VB] Public Sub DownloadFile(ByVal address As String, ByVal fileName As String)


[30295] [JScript] public function DownloadFile(address: String, fileName: String);


[30296] Description


[30297] Downloads data from a resource identified by a URI to a local file.


[30298] The System.Net.WebClient.DownloadFile(System.String,System.String) method downloads the data from the URI specified by address to a local file. The URI from which the data will be downloaded. The name of the local file to receive the data.


[30299] OpenRead


[30300] [C#] public Stream OpenRead(string address);


[30301] [C++] public: Stream* OpenRead(String* address);


[30302] [VB] Public Function OpenRead(ByVal address As String) As Stream


[30303] [JScript] public function OpenRead(address: String): Stream;


[30304] Description


[30305] Opens a readable stream for the data downloaded from a resource identified by a URI.


[30306] Return Value: A System.IO.Stream used to read data from a resource.


[30307] The System.Net.WebClient.OpenRead(System.String) method creates a System.IO.Stream instance used to access the data specified by address . The URI from which the data will be downloaded.


[30308] OpenWrite


[30309] [C#] public Stream OpenWrite(string address);


[30310] [C++] public: Stream* OpenWrite(String* address);


[30311] [VB] Public Function OpenWrite(ByVal address As String) As Stream


[30312] [JScript] public function OpenWrite(address: String): Stream; Opens a stream for writing data to a resource identified by a URI.


[30313] Description


[30314] Opens a stream for writing data to the specified resource.


[30315] Return Value: A System.IO.Stream used to write data to the resource.


[30316] The System.Net.WebClient.OpenWrite(System.String) method returns a writable stream that is used to send data to a resource. The underlying request is made with the POST method. The URI of the resource to receive the data.


[30317] OpenWrite


[30318] [C#] public Stream OpenWrite(string address, string method);


[30319] [C++] public: Stream* OpenWrite(String* address, String* method);


[30320] [VB] Public Function OpenWrite(ByVal address As String, ByVal method As String) As Stream


[30321] [JScript] public function OpenWrite(address: String, method: String): Stream;


[30322] Description


[30323] Opens a stream for writing data to the specified resource identified by a URI using the specified method.


[30324] Return Value: A System.IO.Stream used to write data to the resource.


[30325] The System.Net.WebClient.OpenWrite(System.String) method returns a writable stream that is used to send data to a resource. The underlying request is made with the method specified in the method parameter. The URI of the resource to receive the data. The method used to send the data to the resource.


[30326] UploadData


[30327] [C#] public byte[ ] UploadData(string address, byte[ ] data);


[30328] [C++] public: unsigned char UploadData(String* address, unsigned char data _gc[ ]) _gc[ ];


[30329] [VB] Public Function UploadData(ByVal address As String, ByVal data( ) As Byte) As Byte( )


[30330] [JScript] public function UploadData(address: String, data: Byte[ ]): Byte[ ]; Uploads a data buffer to a resource identified by a URI.


[30331] Description


[30332] Uploads a data buffer to the resource identified by a URI.


[30333] Return Value: An array of bytes containing the body of any response from the resource.


[30334] The System.Net.WebClient.UploadData(System.String,System.Byte[ ]) method sends a data buffer to a resource. The underlying request is made using the POST method. The URI of the resource to receive the data. The data buffer to send to the resource.


[30335] UploadData


[30336] [C#] public byte[ ] UploadData(string address, string method, byte[ ] data);


[30337] [C++] public: unsigned char UploadData(String* address, String* method, unsigned char data _gc[ ]) _gc[ ];


[30338] [VB] Public Function UploadData(ByVal address As String, ByVal method As String, ByVal data( ) As Byte) As Byte( )


[30339] [JScript] public function UploadData(address: String, method: String, data: Byte[ ]): Byte[ ];


[30340] Description


[30341] Uploads a data buffer to the specified resource identified by a URI using the specified method.


[30342] Return Value: An array of bytes containing the body of any response from the resource.


[30343] The System.Net.WebClient.UploadData(System.String,System.Byte[ ]) method sends a data buffer to a resource using the method specified in the method parameter, and returns any response from the server. The URI of the resource to receive the data. The method used to send the data to the resource. The data buffer to send to the resource.


[30344] UploadFile


[30345] [C#] public byte[ ] UploadFile(string address, string fileName);


[30346] [C++] public: unsigned char UploadFile(String* address, String* fileName) _gc[ ];


[30347] [VB] Public Function UploadFile(ByVal address As String, ByVal fileName As String) As Byte( )


[30348] [JScript] public function UploadFile(address: String, fileName: String): Byte[ ]; Uploads a local file to a resource identified by a URI.


[30349] Description


[30350] Uploads the specified local file to the resource identified by a URI.


[30351] Return Value: An array of bytes containing the body of any response from the resource.


[30352] The System.Net.WebClient.UploadFile(System.String,System.String) method sends a local file to a resource. The underlying request is made using the POST method. The URI of the resource to receive the file. The file to send to the resource.


[30353] UploadFile


[30354] C#] public byte[ ] UploadFile(string address, string method, string fileName);


[30355] C++] public: unsigned char UploadFile(String* address, String* method, String* fileName)_gc[ ];


[30356] [VB] Public Function UploadFile(ByVal address As String, ByVal method As String, ByVal fileName As String) As Byte( )


[30357] [JScript] public function UploadFile(address: String, method: String, fileName: String): Byte[ ];


[30358] Description


[30359] Uploads the specified local file to the specified resource identified by a URI using the specified method.


[30360] Return Value: An array of bytes containing the body of any response from the resource.


[30361] The System.Net.WebClient.UploadFile(System.String,System.String) method sends a local file to a resource using the method specified in the method parameter, and returns any response from the server. The URI of the resource to receive the file. The method used to send the file to the resource. The file to send to the resource.


[30362] UploadValues


[30363] C#] public byte[ ] UploadValues(string address, NameValueCollection data);


[30364] C++] public: unsigned char UploadValues(String* address, NameValueCollection* data)_gc[ ];


[30365] [VB] Public Function UploadValues(ByVal address As String, ByVal data As NameValueCollection) As Byte( )


[30366] [JScript] public function UploadValues(address: String, data: NameValueCollection): Byte[ ]; Uploads a name/value collection to a resource identified by a URI.


[30367] Description


[30368] Uploads the specified name/value collection to the specified resource identified by a URI.


[30369] Return Value: An array of bytes containing the body of any response from the resource.


[30370] The System.Net.WebClient.UploadValues(System.String,System.Collections.Speci alized.NameValueCollection) method sends a System.Collections.Specialized.NameValueCollection to an Internet server. The underlying request is made using the POST method. The URI of the resource to receive the collection. The System.Collections.Specialized.NameValueCollection to send to the resource.


[30371] UploadValues


[30372] C#] public byte[ ] UploadValues(string address, string method, NameValueCollection data);


[30373] C++] public: unsigned char UploadValues(String* address, String* method, NameValueCollection* data)_gc[ ];


[30374] [VB] Public Function UploadValues(ByVal address As String, ByVal method As String, ByVal data As NameValueCollection) As Byte( )


[30375] [JScript] public function UploadValues(address: String, method: String, data: NameValueCollection): Byte[ ];


[30376] Description


[30377] Uploads the specified name/value collection to the specified resource identified by a URI using the specified method.


[30378] Return Value: An array of bytes containing the body of any response from the resource.


[30379] The System.Net.Webelient.UploadValues(System.String,System.Collections.Speci alized.NameValueCollection) method sends a System.Collections.Specialized.NameValueCollection to a resource using the method specified in the method parameter, and returns any response from the server. The URI of the resource to receive the collection. The method used to send ii the file to the resource. The System.Collections.Specialized.NameValueCollection to send to the resource.


[30380] WebException class (System.Net)


[30381] UploadValues


[30382] Description


[30383] The exception that is thrown when an error occurs while accessing the network through a pluggable protocol.


[30384] The System.Net.WebException class is thrown by classes descended from System.Net.WebRequest and System.Net.WebResponse that implement pluggable protocols for accessing the Internet.


[30385] WebException


[30386] Example Syntax:


[30387] UploadValues


[30388] C#] public WebException( );


[30389] C++] public: WebException( );


[30390] [VB] Public Sub New( )


[30391] [JScript] public function WebException( ); Initializes a new instance of the System.Net.WebException class.


[30392] Description


[30393] Initializes a new instance of the System.Net.WebException class.


[30394] The default constructor initializes a new instance of the System.Net.WebException class with all fields set to null.


[30395] WebException


[30396] ExampleSyntax:


[30397] UploadValues


[30398] C#] public WebException(string message);


[30399] C++] public: WebException(String* message);


[30400] [VB] Public Sub New(ByVal message As String)


[30401] [JScript] public function WebException(message: String);


[30402] Description


[30403] Initializes a new instance of the System.Net.WebException class with the specified error message.


[30404] The System.Net.WebException instance is initialized with the System.Exception.Message property set to the value of message . The text of the error message.


[30405] WebException


[30406] Example Syntax:


[30407] UploadValues


[30408] C#] protected WebException(SerializationInfo serializationInfo, StreamingContext streamingContext);


[30409] C++] protected: WebException(SerializationInfo* serializationInfo, StreamingContext streamingcontext);


[30410] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext)


[30411] [JScript] protected function WebException(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[30412] WebException


[30413] Example Syntax:


[30414] UploadValues


[30415] C#] public WebException(string message, Exception innerException);


[30416] C++] public: WebException(String* message, Exception* innerException);


[30417] [VB] Public Sub New(ByVal message As String, ByVal innerException As Exception)


[30418] [JScript] public function WebException(message: String, innerException: Exception);


[30419] Description


[30420] Initializes a new instance of the System.Net.WebException class with the specified error message and nested exception.


[30421] The System.Net.WebException instance is initialized with the System.Exception.Message property set to the value of message and the System.Exception.InnerException property set to the value of innerException The text of the error message. A nested exception.


[30422] WebException


[30423] Example Syntax:


[30424] UploadValues


[30425] C#] public WebException(string message, WebExceptionStatus status);


[30426] C++] public: WebException(String* message, WebExceptionStatus status);


[30427] [VB] Public Sub New(ByVal message As String, ByVal status As WebExceptionStatus)


[30428] [JScript] public function WebException(message: String, status: WebExceptionStatus);


[30429] Description


[30430] Initializes a new instance of the System.Net.WebException class with the specified error message and status.


[30431] The System.Net.WebException instance is initialized with the System.Exception.Message property set to the value of message and the System.Net.WebException.Status property set to the value of status . The text of the error message. One of the System.Net.WebExceptionStatus values.


[30432] WebException


[30433] Example Syntax:


[30434] UploadValues


[30435] C#] public WebException(string message, Exception innerException, WebExceptionStatus status, WebResponse response);


[30436] C++] public: WebException(String* message, Exception* innerException, WebExceptionStatus status, WebResponse* response); [Vi [B Public Sub New(ByVal message As String, ByVal innerException As Exception, ByVal status As WebExceptionStatus, ByVal response As WebResponse)


[30437] [JScript] public function WebException(message: String, innerException: Exception, status: WebExceptionStatus, response: WebResponse);


[30438] Description


[30439] Initializes a new instance of the System.Net.WebException class with the specified error message, nested exception, status, and response.


[30440] The System.Net.WebException instance is initialized with the System.Exception.Message property set to the value of message , the System.Exception.InnerException property set to the value of innerException, the System.Net.WebException.Status property set to the value of status , and the System.Net.WebException.Response property set to response. The text of the error message. A nested exception. One of the System.Net.WebExceptionStatus values. A System.Net.WebResponse instance containing the response from the remote host.


[30441] HelpLink


[30442] HResult


[30443] InnerException


[30444] Message


[30445] Response


[30446] UploadValues


[30447] Description


[30448] Gets the response that the remote host returned.


[30449] Some Internet protocols, such as HTTP, return otherwise valid responses indicating that an error has occurred at the protocol level. When the response to an Internet request indicates an error, System.Net.WebRequest.GetResponse sets the System.Net.WebException.Status property to System.Net.WebExceptionStatus.ProtocolError and provides the System.Net.WebResponse containing the error message in the System.Net.WebException.Response property of the System.Net.WebException that was thrown. The application can examine the System.Net.WebResponse to determine the actual error.


[30450] Source


[30451] StackTrace


[30452] Status


[30453] UploadValues


[30454] Description


[30455] Gets the status of the response.


[30456] The System.Net.WebException.Status property indicates the reason for the System.Net.WebException.


[30457] TargetSite


[30458] Serializable.GetObjectData


[30459] C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingcontext);


[30460] C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[30461] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streamingcontext As StreamingContext) Implements ISerializable.GetObjectData


[30462] [JScript] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streamingcontext: StreamingContext);


[30463] WebExceptionStatus enumeration (System.Net)


[30464] ToString


[30465] Description


[30466] Defines status codes for the System.Net.WebException class.


[30467] The System.Net.WebExceptionStatus enumeration defines the status codes assigned to the System.Net.WebException.Status property.


[30468] ToString


[30469] C#] public const WebExceptionStatus ConnectFailure;


[30470] C++] public: const WebExceptionStatus ConnectFailure;


[30471] [VB] Public Const ConnectFailure As WebExceptionStatus


[30472] [JScript] public var ConnectFailure: WebExceptionStatus;


[30473] Description


[30474] The remote service point could not be contacted at the transport level.


[30475] ToString


[30476] C#] public const WebExceptionStatus ConnectionClosed;


[30477] C++] public: const WebExceptionStatus ConnectionClosed;


[30478] [VB] Public Const ConnectionClosed As WebExceptionStatus


[30479] [JScript] public var ConnectionClosed: WebExceptionStatus;


[30480] Description


[30481] The connection was prematurely closed.


[30482] ToString


[30483] C#] public const WebExceptionStatus KeepAliveFailure;


[30484] C++] public: const WebExceptionStatus KeepAliveFailure;


[30485] [VB] Public Const KeepAliveFailure As WebExceptionStatus


[30486] [JScript] public var KeepAliveFailure: WebExceptionStatus;


[30487] Description


[30488] The connection for a request that specifies the Keep-alive header was closed unexpectedly.


[30489] ToString


[30490] C++] public const WebExceptionStatus NameResolutionFailure;


[30491] C++] public: const WebExceptionStatus NameResolutionFailure;


[30492] [VB] Public Const NameResolutionFailure As WebExceptionStatus


[30493] [JScript] public var NameResolutionFailure: WebExceptionStatus;


[30494] Description


[30495] The name resolver service could not resolve the host name.


[30496] ToString


[30497] C#] public const WebExceptionStatus Pending;


[30498] C++] public: const WebExceptionStatus Pending; [VC+] Public Const Pending As WebExceptionStatus


[30499] [JScript] public var Pending: WebExceptionStatus;


[30500] Description


[30501] An internal asynchronous request is pending.


[30502] ToString


[30503] C#] public const WebExceptionStatus PipelineFailure;


[30504] C++] public: const WebExceptionStatus PipelineFailure;


[30505] [VB] Public Const PipelineFailure As WebExceptionStatus


[30506] [JScript] public var PipelineFailure: WebExceptionStatus;


[30507] Description


[30508] ToString


[30509] C#] public const WebExceptionStatus ProtocolError;


[30510] C++] public: const WebExceptionStatus ProtocolError;


[30511] [VB] Public Const ProtocolError As WebExceptionStatus


[30512] [JScript] public var ProtocolError: WebExceptionStatus;


[30513] Description


[30514] The response received from the server was complete but indicated a protocol-level error. For example, an HTTP protocol error such as 401 Access Denied would use this status.


[30515] ToString


[30516] C#] public const WebExceptionStatus ProxyNameResolutionFailure;


[30517] C++] public: const WebExceptionStatus ProxyNameResolutionFailure;


[30518] [VB] Public Const ProxyNameResolutionFailure As WebExceptionStatus


[30519] [JScript] public var ProxyNameResolutionFailure: WebExceptionStatus;


[30520] Description


[30521] The name resolver service could not resolve the proxy host name.


[30522] ToString


[30523] C#] public const WebExceptionStatus ReceiveFailure;


[30524] C++] public: const WebExceptionStatus ReceiveFailure;


[30525] [VB] Public Const ReceiveFailure As WebExceptionStatus


[30526] [JScript] public var ReceiveFailure: WebExceptionStatus;


[30527] Description


[30528] A complete response was not received from the remote server.


[30529] ToString


[30530] C#] public const WebExceptionStatus RequestCanceled;


[30531] C++] public: const WebExceptionStatus RequestCanceled;


[30532] [VB] Public Const RequestCanceled As WebExceptionStatus


[30533] [JScript] public var RequestCanceled: WebExceptionStatus;


[30534] Description


[30535] The request was canceled or the System.Net.WebRequest.Abort method was called.


[30536] ToString


[30537] [C#] public const WebExceptionStatus SecureChannelFailure;


[30538] C++] public: const WebExceptionStatus SecureChannelFailure;


[30539] [VB] Public Const SecureChannelFailure As WebExceptionStatus


[30540] [JScript] public var SecureChannelFailure: WebExceptionStatus;


[30541] Description


[30542] An error occurred in a secure channel link.


[30543] ToString


[30544] C#] public const WebExceptionStatus SendFailure;


[30545] C++] public: const WebExceptionStatus SendFailure;


[30546] [VB] Public Const SendFailure As WebExceptionStatus


[30547] [JScript] public var SendFailure: WebExceptionStatus;


[30548] Description


[30549] A complete request could not be sent to the remote server.


[30550] ToString


[30551] C#] public const WebExceptionStatus ServerProtocolViolation;


[30552] C++] public: const WebExceptionStatus ServerProtocolViolation;


[30553] [VB] Public Const ServerProtocolViolation As WebExceptionStatus


[30554] [JScript] public var ServerProtocolViolation: WebExceptionStatus;


[30555] Description


[30556] The server response was not a valid HTTP response.


[30557] ToString


[30558] C#] public const WebExceptionStatus Success;


[30559] C++] public: const WebExceptionStatus Success;


[30560] [VB] Public Const Success As WebExceptionStatus


[30561] [JScript] public var Success: WebExceptionStatus;


[30562] Description


[30563] No error was encountered. This is the default value for System.Net.WebException.Status.


[30564] ToString


[30565] C#] public const WebExceptionStatus Timeout;


[30566] C++] public: const WebExceptionStatus Timeout;


[30567] [VB] Public Const Timeout As WebExceptionStatus


[30568] [JScript] public var Timeout: WebExceptionStatus;


[30569] Description


[30570] No response was received during the timeout period for a request.


[30571] ToString


[30572] C#] public const WebExceptionStatus TrustFailure;


[30573] C++] public: const WebExceptionStatus TrustFailure;


[30574] [VB] Public Const TrustFailure As WebExceptionStatus


[30575] [JScript] public var TrustFailure: WebExceptionStatus;


[30576] Description


[30577] A server certificate could not be validated.


[30578] WebHeaderCollection class (System.Net)


[30579] ToString


[30580] Description


[30581] Contains protocol headers associated with a request or response.


[30582] The System.Net.WebHeaderCollection class is generally accessed through System.Net.WebRequest.Headers or System.Net.WebResponse.Headers . Some common headers are considered restricted and are either exposed directly by the API (such as Content-Type) or protected by the system and cannot be changed.


[30583] WebHeaderCollection


[30584] Example Syntax:


[30585] ToString


[30586] C#] public WebHeaderCollection( );


[30587] C++] public: WebHeaderCollection( );


[30588] [VB] Public Sub New( )


[30589] [JScript] public function WebHeaderCollection( ); Initializes a new instance of the System.Net.WebHeaderCollection class.


[30590] Description


[30591] Initializes a new instance of the System.Net.WebHeaderCollection class.


[30592] WebHeaderCollection


[30593] Example Syntax:


[30594] ToString


[30595] C#] protected WebHeaderCollection(SerializationInfo serializationInfo, StreamingContext streamingContext);


[30596] C++] protected: WebHeaderCollection(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[30597] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext)


[30598] [JScript] protected function WebHeaderCollection(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[30599] Description


[30600] Initializes a new instance of the System.Net.WebHeaderCollection class from the specified instances of the System.Runtime.Serialization.Serializationlnfo and System.Runtime.Serialization.StreamingContext classes.


[30601] This constructor implements the System.Runtime.Serialization.ISerializable interface for the System.Net.WebHeaderCollection class. A System.Runtime.Serialization.Serializationlnfocontaining the information required to serialize the System.Net.WebHeaderCollection. A System.Runtime.Serialization.StreamingContext containing the source of the serialized stream associated with the new System.Net.WebleaderCollection.


[30602] AllKeys


[30603] Count


[30604] IsReadOnly


[30605] Item


[30606] Item


[30607] Keys


[30608] Add


[30609] C#] public void Add(string header);


[30610] [C++) public: void Add(String* header);


[30611] [VB] Public Sub Add(ByVal header As String)


[30612] [JScript] public function Add(header: String);


[30613] Description


[30614] Inserts the specified header into the collection.


[30615] The System.Net.WebHeaderCollection.Add(System.String,System.String) method inserts a new header into the list of header name/value pairs. The header value must be specified in the format “header:value”. The header to add, with the name and value separated by a colon.


[30616] Add


[30617] C#] public override void Add(string name, string value);


[30618] C++] public: void Add(String* name, String* value);


[30619] [VB] Overrides Public Sub Add(ByVal name As String, ByVal value As String)


[30620] [JScript] public override function Add(name: String, value: String); Inserts a new header into the collection.


[30621] Description


[30622] Inserts a new header with the specified name and value into the collection.


[30623] The System.Net.WebHeaderCollection.Add(System.String,System.String) method inserts a new header into the list of header name/value pairs. The header to add to the collection. The content of the header.


[30624] AddWithoutValidate


[30625] C#] protected void AddWithoutValidate(string headerName, string headervalue);


[30626] C++] protected: void AddWithoutValidate(String* headerName, String* headervalue);


[30627] [VB] Protected Sub AddWithoutValidate(ByVal headerName As String, ByVal headerValue As String)


[30628] [JScript] protected function AddWithoutValidate(headerName: String, headerValue: String);


[30629] Description


[30630] Inserts a header into the collection without checking whether the header is on the restricted header list.


[30631] The System.Net.WebHeaderCollection.AddWithoutValidate(System.String,System m.String) method adds a header to the collection without checking whether the header is on the restricted header list. The header to add to the collection. The content of the header.


[30632] GetValues


[30633] C#] public override string[ ] GetValues(string header);


[30634] C++] public: String* GetValues(String* header)_gc[ ];


[30635] [VB] Overrides Public Function GetValues(ByVal header As String) As String( )


[30636] [JScript] public override function GetValues(header: String): String[ ]; Gets an array of header values stored in a header.


[30637] Description


[30638] Gets an array of header values stored in a header.


[30639] Return Value: An array of header strings.


[30640] System.Net.WebHeaderCollection.GetValues(System.String) returns the contents of the specified header as an array. The header to return.


[30641] IsRestricted


[30642] C#] public static bool IsRestricted(string headerName);


[30643] C++] public: static bool IsRestricted(String* headerName);


[30644] [VB] Public Shared Function IsRestricted(ByVal headerName As String) As Boolean


[30645] [JScript] public static function IsRestricted(headerName: String): Boolean;


[30646] Description


[30647] Tests whether the specified HTTP header can be set.


[30648] Return Value: true if the header is restricted; otherwise false.


[30649] The System.Net.WebHeaderCollection.IsRestricted(System.String) method returns true to indicate that a header is restricted and must be set using properties instead of directly. The restricted headers are: Accept Connection Date Expect Host Range Referer Tests if access to the HTTP header with the provided name is accessible for setting. The header to test.


[30650] OnDeserialization


[30651] [C#] public override void OnDeserialization(object sender);


[30652] C++] public: void OnDeserialization(Object* sender);


[30653] [VB] Overrides Public Sub OnDeserialization(ByVal sender As Object)


[30654] [JScript] public override function OnDeserialization(sender: Object);


[30655] Description


[30656] Remove


[30657] C#] public override void Remove(string name);


[30658] C++] public: void Remove(String* name);


[30659] [VB] Overrides Public Sub Remove(ByVal name As String)


[30660] [JScript] public override function Remove(name: String);


[30661] Description


[30662] Removes the specified header from the collection.


[30663] System.Net.WebHeaderCollection.Remove(System.String) deletes the specified header from the collection. If the same header was added multiple times with System.Net.WebHeaderCollection.Add(System.String,System.String), a single call to System.Net.WebHeaderCollection.Remove(System.String) deletes all of the headers. The name of the header to remove from the collection.


[30664] Set


[30665] C#] public override void Set(string name, string value);


[30666] C++] public: void Set(String* name, String* value);


[30667] [VB] Overrides Public Sub Set(ByVal name As String, ByVal value As String)


[30668] [JScript] public override function Set(name: String, value: String);


[30669] Description


[30670] Sets the specified header to the specified value.


[30671] The System.Net.WebHeaderCollection.Set(System.String,System.String) method inserts a new header into the list of header name/value pairs. The header value must be specified in the format header:value. The header to set. The content of the header to set.


[30672] ISerializable.GetObjectData


[30673] C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext);


[30674] C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[30675] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streamingcontext As StreamingContext) Implements ISerializable.GetObjectData


[30676] [JScript] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[30677] ToByteArray


[30678] C#] public byte[ ] ToByteArray( );


[30679] C++] public: unsigned char ToByteArray( )_gc[ ];


[30680] [VB] Public Function ToByteArray( ) As Byte( )


[30681] [JScript] public function ToByteArray( ): Byte[ ];


[30682] Description


[30683] Obsolete.


[30684] ToString


[30685] C#] public override string


[30686] ToString( );


[30687] C++] public: String* ToString( );


[30688] [VB] Overrides Public Function ToString( ) As String


[30689] [JScript] public override function ToString( ): String;


[30690] Description


[30691] Obsolete.


[30692] WebPermission class (System.Net)


[30693] ToString


[30694] Description


[30695] Controls rights to access an Internet resource.


[30696] WebPermission


[30697] Example Syntax:


[30698] ToString


[30699] C#] public WebPermission( );


[30700] C++] public: WebPermission( );


[30701] [VB] Public Sub New( )


[30702] [JScript] public function WebPermission( );


[30703] Description


[30704] Creates a new instance of the System.Net.WebPermission class.


[30705] WebPermission


[30706] Example Syntax:


[30707] ToString


[30708] C#] public WebPermission(PermissionState state);


[30709] C++] public: WebPermission(PermissionState state);


[30710] [VB] Public Sub New(ByVal state As PermissionState)


[30711] [JScript] public function WebPermission(state: PermissionState); Creates a new instance of the System.Net.WebPermission class.


[30712] Description


[30713] Creates a new instance of the System.Net.WebPermission class that passes all demands or fails all demands.


[30714] If System.Net.WebPermission is created with the Unrestricted value from System.Security.Permissions.PermissionState then the System.Net.WebPermission instance will pass all demands. Any other value for s tate will result in a System.Net.WebPermission instance that will fail all demands. One of the System.Security.Permissions.PermissionState values.


[30715] WebPermission


[30716] Example Syntax:


[30717] ToString


[30718] C#] public WebPermission(NetworkAccess access, Regex uriRegex);


[30719] C++] public: WebPermission(NetworkAccess access, Regex* uriRegex);


[30720] [VB] Public Sub New(ByVal access As NetworkAccess, ByVal uriRegex As Regex)


[30721] [JScript] public function WebPermission(access NetworkAccess, uriRegex: Regex);


[30722] Description


[30723] Initializes a new instance of the System.Net.WebPermission class with the specified access rights for the specified URI regular expression. The access right to grant. A regular expression describing the URI to grant the access right to.


[30724] WebPermission


[30725] Example Syntax:


[30726] ToString


[30727] C#] public WebPermission(NetworkAccess access, string uriString);


[30728] C++] public: WebPermission(NetworkAccess access, String* uriString);


[30729] [VB] Public Sub New(ByVal access As NetworkAccess, ByVal uriString As String)


[30730] [JScript] public function WebPermission(access: NetworkAccess, uriString: String);


[30731] Description


[30732] Initializes a new instance of the System.Net.WebPermission class with the specified access rights for the specified URI. The access right to grant. A regular expression describing the URI to grant the access right to.


[30733] AcceptList


[30734] ToString


[30735] C#] public IEnumerator AcceptList {get;}


[30736] C++] public: _property IEnumerator* get_AcceptList( );


[30737] [VB] Public ReadOnly Property AcceptList As IEnumerator


[30738] [JScript] public function get AcceptList( ): IEnumerator;


[30739] Description


[30740] Returns the enumeration of permissions to export a local URI.


[30741] ConnectList


[30742] ToString


[30743] C#] public IEnumerator ConnectList {get;}


[30744] C++] public: _property IEnumerator* get_ConnectList( );


[30745] [VB] Public ReadOnly Property ConnectList As IEnumerator


[30746] [JScript] public function get ConnectList( ): IEnumerator;


[30747] Description


[30748] Returns the enumeration of permissions to connect a remote URI.


[30749] AddPernission


[30750] C++] public void AddPermission(NetworkAccess access, Regex uriRegex);


[30751] C++] public: void AddPermission(NetworkAccess access, Regex* uriRegex);


[30752] [VB] Public Sub AddPermission(ByVal access As NetworkAccess, ByVal uriRegex As Regex)


[30753] [JScript] public function AddPermission(access: NetworkAccess, uriRegex: Regex);


[30754] Description


[30755] Adds a new instance of the System.Net.WebPermission class with the specified access rights for the specified URI pattern. The access right to grant. A regular expression describing the URI to grant the access right to.


[30756] AddPermission


[30757] C#] public void AddPermission(NetworkAccess access, string uriString);


[30758] C++] public: void AddPermission(NetworkAccess access, String* uriString);


[30759] [VB] Public Sub AddPermission(ByVal access As NetworkAccess, ByVal uriString As String)


[30760] [JScript] public function AddPermission(access: NetworkAccess, uriString: String); Adds a new instance of the System.Net.WebPermission class with the specified access rights for the specified URI.


[30761] Description


[30762] Adds a new instance of the System.Net.WebPermission class with the specified access rights for the specified URI. The access right to grant. A string describing the URI to grant the access right to.


[30763] Copy


[30764] C#] public override IPermission Copy( );


[30765] C++] public: IPermission* Copy( );


[30766] [VB] Overrides Public Function Copy( ) As IPermission


[30767] [JScript] public override function Copy( ): IPermission;


[30768] Description


[30769] Creates a copy of a System.Net.WebPermission instance.


[30770] Return Value: A new instance of the System.Net.WebPermission class that is a copy of the current instance.


[30771] FromXml


[30772] C#] public override void FromXml(SecurityElement securityElement);


[30773] C++] public: void FromXml(SecurityElement* securityElement);


[30774] [VB] Overrides Public Sub FromXml(ByVal securityElement As SecurityElement)


[30775] [JScript] public override function FromXml(securityElement: SecurityElement);


[30776] Description


[30777] Reconstructs a System.Net.WebPermission instance from an XML encoding.


[30778] The System.Net.WebPermission.FromXml(System.Security.SecurityElement) method reconstructs a System.Net.WebPermission instance from an XML encoding defined by the System.Security.SecurityElement class. The XML encoding to use to reconstruct the System.Net.WebPermission instance.


[30779] Intersect


[30780] C#] public override IPermission Intersect(IPermission target);


[30781] C++] public: IPermission* Intersect(IPermission* target);


[30782] [VB] Overrides Public Function Intersect(ByVal target As IPermission) As IPermission


[30783] [JScript] public override function Intersect(target: IPermission): IPermission;


[30784] Description


[30785] Returns the logical intersection between two System.Net.WebPermission instances.


[30786] Return Value: System.Net.WebPermission instance that represents the intersection of two System.Net.WebPermission instances. The System.Net.WcbPermission instance to combine with the current instance.


[30787] IsSubsetOf


[30788] C#] public override bool IsSubsetOf(IPermission target);


[30789] C++] public: bool IsSubsetOf(IPermission* target);


[30790] [VB] Overrides Public Function IsSubsetOf(ByVal target As IPermission) As Boolean


[30791] [JScript] public override function IsSubsetOf(target: IPermission): Boolean;


[30792] Description


[30793] Compares two System.Net.WebPermission instances.


[30794] Return Value: false if target is null; otherwise an exception is thrown.


[30795] The System.Net.WebPermission.IsSubsetOf(System.Security.lPermission) method is not supported by the System.Net.WebPermission class. The second System.Net.WebPermission instance to compare.


[30796] IsUnrestricted


[30797] C#] public bool IsUnrestricted( );


[30798] C++] public: _sealed bool IsUnrestricted( );


[30799] [VB] NotOverridable Public Function IsUnrestricted( ) As Boolean


[30800] [JScript] public function IsUnrestricted( ): Boolean;


[30801] Description


[30802] Checks the overall permission state of the object.


[30803] Return Value: true if the System.Net.WebPermission instance was created with the Unrestricted value from System.Security.Permissions.PermissionState; otherwise, false.


[30804] ToXml


[30805] C#] public override SecurityElement ToXml( );


[30806] C++] public: SecurityElement* ToXml( );


[30807] [VB] Overrides Public Function ToXml( ) As SecurityElement


[30808] [JScript] public override function ToXml( ): SecurityElement;


[30809] Description


[30810] Creates an XML encoding of a System.Net.WebPermission instance and its current state.


[30811] Return Value: A System.Security.SecurityElement instance containing an XML-encoded representation of the System.Net.WebPermission instance, including state information.


[30812] The System.Net.WebPermission.ToXml method creates a System.Security.SecurityElement instance to XML-encode a representation of the System.Net.WebPermission instance, including state information.


[30813] Union


[30814] C#] public override IPermission Union(IPermission target);


[30815] C++] public: Ipermission* Union(IPermission* target);


[30816] [VB] Overrides Public Function Union(ByVal target As Ipermission) As IPermission


[30817] [JScript] public override function Union(target: IPermission): IPermission;


[30818] Description


[30819] Returns the logical union between two System.Net.WebPermission instances.


[30820] Return Value: System.Net.WebPermission instance that represents the union of two System.Net.WebPermission instances. The System.Net.WebPermission instance to combine with the current instance. WebPermissionAttribute class (System.Net)


[30821] Union


[30822] Description


[30823] Enables security actions for System.Net.WebPermission to be applied to code using declarative security. This class cannot be inherited.


[30824] WebPermissionAttribute


[30825] Example Syntax:


[30826] Union


[30827] C#] public WebPermissionAttribute(SecurityAction action);


[30828] C++] public: WebPemissionAttribute(SecurityAction action);


[30829] [VB] Public Sub New(ByVal action As SecurityAction)


[30830] [JScript] public function WebPermissionAttribute(action: SecurityAction); 24


[30831] Description


[30832] Initializes a new instance of the System.Net.WebPermissionAttribute class with the specified System.Security.Permissions.SecurityAction. One of the System.Security.Permissions.SecurityAction values.


[30833] Accept


[30834] Union


[30835] [C#] public string Accept {get; set;}


[30836] [C++] public: _property String* get Accept( );public: _property void set_Accept(String*);


[30837] [VB] Public Property Accept As String


[30838] [JScript] public function get Accept( ): String;public function set Accept(String);


[30839] Description


[30840] Gets or sets the URI accepted by this permission instance.


[30841] AcceptPattern


[30842] Union


[30843] [C#] public string AcceptPattern {get; set;}


[30844] [C++] public: _property String* get_AcceptPattern( );public: _property void set_AcceptPattern(String*);


[30845] [VB] Public Property AcceptPattern As String


[30846] [JScript] public function get AcceptPattern( ): String;public function set AcceptPattern(String);


[30847] Description


[30848] Gets or sets a regular expression pattern that describes the URI accepted by this permission instance.


[30849] Action


[30850] Connect


[30851] Union


[30852] Description


[30853] Gets or sets the URI connection controlled by this permission instance.


[30854] ConnectPattern


[30855] Union


[30856] [C#] public string ConnectPattern {get; set;}


[30857] [C++] public: _property String* get_ConnectPattern( );public: _property void set_ConnectPattern(String*);


[30858] [VB] Public Property ConnectPattern As String


[30859] [JScript] public function get ConnectPattern( ): String;public function set ConnectPattern(String);


[30860] Description


[30861] Gets or sets a regular expression pattern that describes the URI connection controlled by this permission instance.


[30862] TypeId


[30863] Unrestricted


[30864] CreatePermission


[30865] [C#] public override IPermission CreatePermission( );


[30866] [C++] public: IPermission* CreatePermission( );


[30867] [VB] Overrides Public Function CreatePermission( ) As IPermission


[30868] [JScript] public override function CreatePermission( ): IPermission;


[30869] Description


[30870] Creates and returns a new instance of the System.Net.WebPermission class.


[30871] Return Value: A System.Net.WebPermission instance corresponding to the security declaration.


[30872] WebProxy class (System.Net)


[30873] ToString


[30874] Description


[30875] Contains HTTP proxy settings for the System.Net.WebRequest class.


[30876] The System.Net.WebProxy class contains the proxy settings that System.Net.WebRequest instances use to override the proxy settings in System.Net.GlobalProxySelection.


[30877] WebProxy


[30878] Example Syntax:


[30879] ToString


[30880] [C#] public WebProxy( );


[30881] [C++] public: WebProxy( );


[30882] [VB] Public Sub New( )


[30883] [JScript] public function WebProxy( ); Initializes a new instance of the System.Net.WebProxy class.


[30884] Description


[30885] Initializes an empty instance of the System.Net.WebProxy class.


[30886] The default constructor initializes an empty instance of the System.Net.WebProxy class initializes an empty instance of the System.Net.WebProxy class with the System.Net.WebProxy.Address property set to null. When the System.Net.WebProxy.Address property is null, the System.Net.WebProxy.IsBypassed(System.Uri) method returns true, and the System.Net.WebProxy.GetProxy(System.Uri) method returns the destination address.


[30887] WebProxy


[30888] Example Syntax:


[30889] ToString


[30890] [C#] public WebProxy(string Address);


[30891] [C++] public: WebProxy(String* Address);


[30892] [VB] Public Sub New(ByVal Address As String)


[30893] [JScript] public function WebProxy(Address: String);


[30894] Description


[30895] Initializes a new instance of the System.Net.WebProxy class with the specified URI.


[30896] The System.Net.WebProxy instance is initialized with the System.Net.WebProxy.Address property set to a System.Uri instance containing Address. The URI of the proxy server.


[30897] WebProxy


[30898] Example Syntax:


[30899] ToString


[30900] [C#] public WebProxy(Uri Address);


[30901] [C++] public: WebProxy(Uri* Address);


[30902] [VB] Public Sub New(ByVal Address As Uri)


[30903] [JScript] public function WebProxy(Address: Uri);


[30904] Description


[30905] Initializes a new instance of the System.Net.WebProxy class from the specified System.Uri.


[30906] The System.Net.WebProxy instance is initialized with the System.Net.WebProxy.Address property set to the Address parameter. A System.Uri containing the address of the proxy server.


[30907] WebProxy


[30908] Example Syntax:


[30909] ToString


[30910] [C#] protected WebProxy(SerializationInfo serializationInfo, StreamingContext streamingContext);


[30911] [C++] protected: WebProxy(SerializationInfo* serializationInfo, StreamingContext streamingcontext);


[30912] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext)


[30913] [JScript] protected function WebProxy(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[30914] Description


[30915] Initializes a new instance of the System.Net.WebProxy class from the specified instances of the System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext classes.


[30916] This constructor implements the System.Runtime.Serialization.ISerializable interface for the System.Net.WebProxy class. A System.Runtime.Serialization.SerializationInfo containing the information required to serialize the new System.Net.WebProxy instance. A System.Runtime.Serialization.StreamingContext containing the source and destination of the serialized stream associated with the new System.Net.WebProxy.


[30917] WebProxy


[30918] Example Syntax:


[30919] ToString


[30920] [C#] public WebProxy(string Address, bool BypassOnLocal);


[30921] [C++] public: WebProxy(String* Address, bool BypassOnLocal);


[30922] [VB] Public Sub New(ByVal Address As String, ByVal BypassOnLocal As Boolean)


[30923] [JScript] public function WebProxy(Address: String, BypassOnLocal: Boolean);


[30924] Description


[30925] Initializes a new instance of the System.Net.WebProxy class with the specified URI and bypass setting.


[30926] The System.Net.WebProxy instance is initialized with the System.Net.WebProxy.Address property set to a System.Uri instance containing Address and the System.Net.WebProxy.BypassProxyOnLocal property set to BypassOnLocal. The URI of the proxy server. true to bypass the proxy for local addresses; otherwise, false.


[30927] WebProxy


[30928] Example Syntax:


[30929] ToString


[30930] [C#] public WebProxy(string Host, int Port);


[30931] [C++] public: WebProxy(String* Host, int Port);


[30932] [VB] Public Sub New(ByVal Host As String, ByVal Port As Integer)


[30933] [JScript] public function WebProxy(Host: String, Port: int);


[30934] Description


[30935] Initializes a new instance of the System.Net.WebProxy class with the specified host and port number.


[30936] The System.Net.WebProxy instance is initialized with the System.Net.WebProxy.Address property set to a System.Uri instance of the form http:// Host: Port. The name of the proxy host. The port number on Host to use.


[30937] WebProxy


[30938] Example Syntax:


[30939] ToString


[30940] [C#] public WebProxy(Uri Address, bool BypassOnLocal);


[30941] [C++] public: WebProxy(Uri* Address, bool BypassOnLocal);


[30942] [VB] Public Sub New(ByVal Address As Uri, ByVal BypassOnLocal As Boolean)


[30943] [JScript] public function WebProxy(Address: Uri, BypassOnLocal: Boolean);


[30944] Description


[30945] Initializes a new instance of the System.Net.WebProxy class with the System.Uri and bypass setting.


[30946] The System.Net.WebProxy instance is initialized with the System.Net.WebProxy.Address property set to Address and with the System.Net.WebProxy.BypassProxyOnLocal property set to BypassOnLocal. A System.Uri containing the address of the proxy server. true to bypass the proxy for local addresses; otherwise, false.


[30947] WebProxy


[30948] Example Syntax:


[30949] ToString


[30950] [C#] public WebProxy(string Address, bool BypassOnLocal, string[ ] BypassList);


[30951] [C++] public: WebProxy(String* Address, bool BypassOnLocal, String* BypassList_gc[ ]);


[30952] [VB] Public Sub New(ByVal Address As String, ByVal BypassOnLocal As Boolean, ByVal BypassList( ) As String)


[30953] [JScript] public function WebProxy(Address: String, BypassOnLocal: Boolean, BypassList: String[ ]);


[30954] Description


[30955] Initializes a new instance of the System.Net.WebProxy class with the specified URI, bypass setting, and list of URIs to bypass.


[30956] The System.Net.WebProxy instance is initialized with the System.Net.WebProxy.Address property set to a System.Uri instance containing Address, the System.Net.WebProxy.BypassProxyOnLocal property set to BypassOnLocal, and the System.Net.WebProxy.BypassList property set to BypassList. The URI of the proxy server. true to bypass the proxy for local addresses; otherwise, false. An array of regular expression strings containing the URIs of the servers to bypass.


[30957] WebProxy


[30958] Example Syntax:


[30959] ToString


[30960] [C#] public WebProxy(Uri Address, bool BypassOnLocal, string[ ] BypassList);


[30961] [C++] public: WebProxy(Uri* Address, bool BypassOnLocal, String* BypassList _gc[ ]);


[30962] [VB] Public Sub New(ByVal Address As Uri, ByVal BypassOnLocal As Boolean, ByVal BypassList( ) As String)


[30963] [JScript] public function WebProxy(Address: Uri, BypassOnLocal: Boolean, BypassList: String[ ]);


[30964] Description


[30965] Initializes a new instance of the System.Net.WebProxy class with the specified System.Uri , bypass setting, and list of URIs to bypass.


[30966] The System.Net.WebProxy instance is initialized with the System.Net.WebProxy.Address property set to Address, the System.Net.WebProxy.BypassProxyOnLocal property set to BypassOnLocal, and the System.Net.WebProxy.BypassList property set to BypassList. A System.Uri containing the address of the proxy server. true to bypass the proxy for local addresses; otherwise, false. An array of regular expression strings containing the URIs of the servers to bypass.


[30967] WebProxy


[30968] Example Syntax:


[30969] ToString


[30970] [C#] public WebProxy(string Address, bool BypassOnLocal, string[ ] BypassList, ICredentials Credentials);


[30971] [C++] public: WebProxy(String* Address, bool BypassOnLocal, String* BypassList_gc[ ], ICredentials* Credentials);


[30972] [VB] Public Sub New(ByVal Address As String, ByVal BypassOnLocal As Boolean, ByVal BypassList( ) As String, ByVal Credentials As ICredentials)


[30973] [JScript] public function WebProxy(Address: String, BypassOnLocal: Boolean, BypassList: String[ ], Credentials: ICredentials);


[30974] Description


[30975] Initializes a new instance of the System.Net.WebProxy class with the specified URI, bypass setting, list of URIs to bypass, and credentials.


[30976] The System.Net.WebProxy instance is initialized with the System.Net.WebProxy.Address property set to a System.Uri instance containing Address, the System.Net.WebProxy.BypassProxyOnLocal property set to BypassOnLocal, the System.Net.WebProxy.BypassList property set to BypassList, and the System.Net.WebProxy.Credentials property set to Credentials. The URI of the proxy server. true to bypass the proxy for local addresses; otherwise, false. An array of regular expression strings containing the URIs of the servers to bypass. An System.Net.ICredentials to submit to the proxy server for authentication.


[30977] WebProxy


[30978] Example Syntax:


[30979] ToString


[30980] [C#] public WebProxy(Uri Address, bool BypassOnLocal, string[ ] BypassList, ICredentials Credentials);


[30981] [C++] public: WebProxy(Uri* Address, bool BypassOnLocal, String* BypassList _gc[ ], ICredentials* Credentials);


[30982] [VB] Public Sub New(ByVal Address As Uri, ByVal BypassOnLocal As Boolean, ByVal BypassList( ) As String, ByVal Credentials As ICredentials)


[30983] [JScript] public function WebProxy(Address: Uri, BypassOnLocal: Boolean, BypassList: String[ ], Credentials: ICredentials);


[30984] Description


[30985] Initializes a new instance of the System.Net.WebProxy class with the specified System.Uri, bypass setting, list of URIs to bypass, and credentials.


[30986] The System.Net.WebProxy instance is initialized with the System.Net.WebProxy.Address property set to Address, the System.Net.WebProxy.BypassProxyOnLocal property set to BypassOnLocal, the System.Net.WebProxy.BypassList property set to BypassList, and the System.Net.WebProxy.Credentials property set to Credentials A System.Uri containing the address of the proxy server. true to bypass the proxy for local addresses; otherwise, false. An array of regular expression strings containing the URIs of the servers to bypass. An System.Net.ICredentials to submit to the proxy server for authentication.


[30987] Address


[30988] ToString


[30989] [C#] public Uri Address {get; set;}


[30990] [C++] public: _property Uri* get_Address( );public: _property void set_Address(Uri*);


[30991] [VB] Public Property Address As Uri


[30992] [JScript] public function get Address( ): Uri;public function set Address(Uri);


[30993] Description


[30994] Gets or sets the address of the proxy server.


[30995] The System.Net.WebProxy.Address property contains the address of the proxy server. When System.Net.WebProxy.Address is null, all requests bypass the proxy and connect directly to the destination host.


[30996] BypassArrayList


[30997] ToString


[30998] [C#] public ArrayList BypassArrayList {get;}


[30999] [C++] public: _property ArrayList* get_BypassArrayList( );


[31000] [VB] Public ReadOnly Property BypassArrayList As ArrayList


[31001] [JScript] public function get BypassArrayList( ): ArrayList;


[31002] Description


[31003] Gets a list of addresses that do not use the proxy server.


[31004] The System.Net.WebProxy.BypassList property contains an array of URI strings that a System.Net.WebRequest instance accesses directly instead of through the proxy server.


[31005] BypassList


[31006] ToString


[31007] [C# public string[ ] BypassList {get; set;}


[31008] [C++] public: _property String* get_BypassList( );public: _property void set_BypassList(String* _gc[ ]);


[31009] [VB] Public Property BypassList As String ( )


[31010] [JScript] public function get BypassList( ): String[ ];public function set BypassList(String[ ]);


[31011] Description


[31012] Gets or sets an array of addresses that do not use the proxy server.


[31013] The System.Net.WebProxy.BypassList property contains an array of regular expressions that describe URIs that a System.Net.WebRequest instance accesses directly instead of through the proxy server.


[31014] BypassProxyOnLocal


[31015] ToString


[31016] [C#] public bool BypassProxyOnLocal {get; set;}


[31017] [C++] public: _property bool get_BypassProxyOnLocal( );public: _property void set_BypassProxyOnLocal(bool);


[31018] [VB] Public Property BypassProxyOnLocal As Boolean


[31019] [JScript] public function get BypassProxyOnLocal( ): Boolean;public function set BypassProxyOnLocal(Boolean);


[31020] Description


[31021] Gets or sets a value indicating whether to bypass the proxy server for local addresses.


[31022] The setting of the System.Net.WebProxy.BypassProxyOnLocal property determines whether System.Net.WebRequest instances use the proxy server when accessing local Internet resources.


[31023] Credentials


[31024] ToString


[31025] [C#] public ICredentials Credentials {get; set; }


[31026] [C++] public: _property ICredentials* get_Credentials( );public: _property void set_Credentials(ICredentials*);


[31027] [VB] Public Property Credentials As ICredentials


[31028] [JScript] public function get Credentials( ): ICredentials;public function set Credentials(ICredentials);


[31029] Description


[31030] Gets or sets the credentials to submit to the proxy server for authentication.


[31031] The System.Net.WebProxy.Credentials property contains the authentication credentials to send to the proxy server in response to an HTTP 407 (proxy authorization) status code.


[31032] GetDefaultProxy


[31033] [C#] public static WebProxy GetDefaultProxy( );


[31034] [C++] public: static WebProxy* GetDefaultProxy( );


[31035] [VB] Public Shared Function GetDefaultProxy( ) As WebProxy


[31036] [JScript] public static function GetDefaultProxy( ): WebProxy;


[31037] Description


[31038] Reads the Internet Explorer nondynamic proxy settings.


[31039] Return Value: A System.Net.WebProxy instance containing the nondynamic proxy settings from Internet Explorer 5.5.


[31040] The System.Net.WebProxy.GetDefaultProxy method reads the nondynamic proxy settings stored by Internet Explorer 5.5 and creates a System.Net.WebProxy instance with those settings.


[31041] GetProxy


[31042] [C#] public Uri GetProxy(Uri destination);


[31043] [C++] public: _sealed Uri* GetProxy(Uri* destination);


[31044] [VB] NotOverridable Public Function GetProxy(ByVal destination As Uri) As Uri


[31045] [JScript] public function GetProxy(destination: Uri): Uri;


[31046] Description


[31047] Returns the proxied URI for a request.


[31048] Return Value: The System.Uri of the Internet resource, if the resource is on the bypass list; otherwise, the System.Uri of the proxy.


[31049] The System.Net.WebProxy.GetProxy(System.Uri) method returns the URI that the System.Net.WebRequest uses to access the Internet resource. The System.Uri of the requested Internet resource.


[31050] IsBypassed


[31051] [C#] public bool IsBypassed(Uri host);


[31052] [C++] public: _sealed bool IsBypassed(Uri* host);


[31053] [VB] NotOverridable Public Function IsBypassed(ByVal host As Uri) As Boolean


[31054] [JScript] public function IsBypassed(host: Uri): Boolean;


[31055] Description


[31056] Indicates whether to use the proxy server for the specified host.


[31057] Return Value: true if the proxy server should not be used for host; otherwise, false.


[31058] The System.Net.WebProxy.IsBypassed(System.Uri) method is used to determine whether to bypass the proxy server when accessing an Internet resource. The System.Uri of the host to check for proxy use.


[31059] ISerializable.GetObjectData


[31060] [C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext);


[31061] [C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[31062] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext) Implements ISerializable.GetObjectData


[31063] [JScript] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[31064] WebRequest class (System.Net)


[31065] ToString


[31066] Description


[31067] Makes a request to a Uniform Resource Identifier (URI). This is an abstract class.


[31068] System.Net.WebRequest is the abstract base class for the .NET Framework's request/response model for accessing data from the Internet. An application that uses the request/response model can request data from the Internet in a protocol-agnostic manner, in which the application works with instances of the System.Net.WebRequest class while protocol-specific descendant classes carry out the details of the request.


[31069] WebRequest


[31070] Example Syntax:


[31071] ToString


[31072] [C#] protected WebRequest( );


[31073] [C++] protected: WebRequest( );


[31074] [VB] Protected Sub New( )


[31075] [JScript] protected function WebRequest( ); Initializes a new instance of the System.Net.WebRequest class.


[31076] Description


[31077] Initializes a new instance of the System.Net.WebRequest class.


[31078] Use the System.Net.WebRequest.Create(System.Uri,System.Boolean) method to initialize new System.Net.WebRequest instances. Do not use the constructor.


[31079] WebRequest


[31080] Example Syntax:


[31081] ToString


[31082] [C#] protected WebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext);


[31083] [C++] protected: WebRequest(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[31084] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext)


[31085] [JScript] protected function WebRequest(serializationInfo: SerializationInfo, steamingContext: StreamingContext);


[31086] Description


[31087] Initializes a new instance of the System.Net.WebRequest class from the specified instances of the System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext classes.


[31088] When implemented by a descendant class, this constructor implements the System.Runtime.Serialization.ISerializable interface for the System.Net.WebRequest descendant. A System.Runtime.Serialization.SerializationInfo that contains the information required to serialize the new System.Net.WebRequest instance. A System.Runtime.Serialization.StreamingContext that indicates the source of the serialized stream associated with the new System.Net.WebRequest instance.


[31089] ConnectionGroupName


[31090] ToString


[31091] [C#] public virtual string ConnectionGroupName {get; set;}


[31092] [C++] public: _property virtual String* get_ConnectionGroupName( );public: _property virtual void set_ConnectionGroupName(String*);


[31093] [VB] Overridable Public Property ConnectionGroupName As String


[31094] [JScript] public function get ConnectionGroupName( ): String;public function set ConnectionGroupName(String);


[31095] Description


[31096] When overridden in a descendant class, gets or sets the name of the connection group for the request.


[31097] The System.Net.WebRequest.ConnectionGroupName property associates specific requests within an application to one or more connection pools.


[31098] ContentLength


[31099] ToString


[31100] [C#] public virtual long ContentLength {get; set;}


[31101] [C++] public: _property virtual_int64 get_ContentLength( );public: _property virtual void set_ContentLength(_int64);


[31102] [VB] Overridable Public Property ContentLength As Long


[31103] [JScript] public function get ContentLength( ): long;public function set ContentLength(long);


[31104] Description


[31105] When overridden in a descendant class, gets or sets the content length of the request data being sent.


[31106] The System.Net.WebRequest.ContentLength property contains the number of bytes of data sent to the Internet resource by the System.Net.WebRequest instance.


[31107] ContentType


[31108] ToString


[31109] [C#] public virtual string ContentType {get; set;}


[31110] [C++] public: _Property virtual String* get_ContentType( );public: _property virtual void set_ContentType(String*);


[31111] [VB] Overridable Public Property ContentType As String


[31112] [JScript] public function get ContentType( ): String;public function set ContentType(String);


[31113] Description


[31114] When overridden in a descendant class, gets or sets the content type of the request data being sent.


[31115] The System.Net.WebRequest.ContentType property contains the media type of the request. This is typically the MIME encoding of the content.


[31116] Credentials


[31117] ToString


[31118] [C#] public virtual ICredentials Credentials {get; set;}


[31119] [C++] public: _property virtual ICredentials* get_Credentials( );public: _property virtual void set_Credentials(ICredentials*);


[31120] [VB] Overridable Public Property Credentials As ICredentials


[31121] [JScript] public function get Credentials( ): ICredentials;public function set Credentials(ICredentials);


[31122] Description


[31123] When overridden in a descendant class, gets or sets the network credentials used for authenticating the request with the Internet resource.


[31124] The System.Net.WebRequest.Credentials property contains the authentication credentials required to access the Internet resource.


[31125] Headers


[31126] ToString


[31127] [C#] public virtual WebHeaderCollection Headers {get; set;}


[31128] [C++] public: _property virtual WebHeaderCollection* get_Headers( );public: _property virtual void set_Headers(WebHeaderCollection*);


[31129] [VB] Overridable Public Property Headers As WebHeaderCollection


[31130] [JScript] public function get Headers( ): WebHeaderCollection;public function set Headers(WebHeaderCollection);


[31131] Description


[31132] When overridden in a descendant class, gets or sets the collection of header name/value pairs associated with the request.


[31133] The System.Net.WebRequest.Headers property contains a System.Net.WebHeaderCollection instance containing the header information to send to the Internet resource.


[31134] Method


[31135] ToString


[31136] [C#] public virtual string Method {get; set;}


[31137] [C++] public: _property virtual String* get_Method( );public: _property virtual void set_Method(String*);


[31138] [VB] Overridable Public Property Method As String


[31139] [JScript] public function get Method( ): String;public function set Method(String);


[31140] Description


[31141] When overridden in a descendant class, gets or sets the protocol method to use in this request.


[31142] When overridden in a descendant class, the System.Net.WebRequest.Method property contains the request method to use in this request.


[31143] PreAuthenticate


[31144] ToString


[31145] [C#] public virtual bool PreAuthenticate {get; set;}


[31146] [C++] public: _property virtual bool get_PreAuthenticate( );public: _property virtual void set_PreAuthenticate(bool);


[31147] [VB] Overridable Public Property PreAuthenticate As Boolean


[31148] [JScript] public function get PreAuthenticate( ): Boolean;public function set PreAuthenticate(Boolean);


[31149] Description


[31150] When overridden in a descendant class, indicates whether to preauthenticate the request.


[31151] The System.Net.WebRequest.PreAuthenticate property indicates whether to send authentication information with the initial request. When System.Net.WebRequest.PreAuthenticate is false, the System.Net.WebRequest waits for an authentication challenge before sending authentication information.


[31152] Proxy


[31153] ToString


[31154] [C#] public virtual IWebProxy Proxy {get; set;}


[31155] [C++] public: _property virtual IWebProxy* get_Proxy( );public: _property virtual void set_Proxy(IWebProxy*);


[31156] [VB] Overridable Public Property Proxy As IWebProxy


[31157] [JScript] public function get Proxy( ): IWebProxy;public function set Proxy(IWebProxy);


[31158] Description


[31159] When overridden in a descendant class, gets or sets the network proxy to use to access this Internet resource.


[31160] The System.Net.WebRequest.Proxy property identifies the network proxy that the request uses to access the Internet resource. The request is made through the proxy server rather than directly to the Internet resource.


[31161] RequestUri


[31162] ToString


[31163] [C#] public virtual Uri RequestUri {get;}


[31164] [C++] public: _property virtual Uri* get_RequestUri( );


[31165] [VB] Overridable Public ReadOnly Property RequestUri As Uri


[31166] [JScript] public function get RequestUri( ): Uri;


[31167] Description


[31168] When overridden in a descendant class, gets the URI of the Internet resource associated with the request.


[31169] When overridden in a descendant class, the System.Net.WebRequest.RequestUri property contains the System.Uri instance that System.Net.WebRequest.Create(System.Uri,System.Boolean) method uses to create the request.


[31170] Timeout


[31171] ToString


[31172] [C#] public virtual int Timeout {get; set;}


[31173] [C++] public: _property virtual int get_Timeout( );public: _property virtual void set_Timeout(int);


[31174] [VB] Overridable Public Property Timeout As Integer


[31175] [JScript] public function get Timeout( ): int;public function set Timeout(int);


[31176] Description


[31177] Gets or sets the length of time before the request times out.


[31178] The System.Net.WebRequest.Timeout property indicates the length of time, in milliseconds, until the request times out and throws a System.Net.WebException . The System.Net.WebRequest.Timeout property affects only synchronous requests made with the System.Net.WebRequest.GetResponse method. To time out asynchronous requests, use the System.Net.WebRequest.Abort method.


[31179] Abort


[31180] [C#] public virtual void Abort( );


[31181] [C++] public: virtual void Abort( );


[31182] [VB] Overridable Public Sub Abort( )


[31183] [JScript] public function Abort( );


[31184] Description


[31185] Cancels an asynchronous request to an Internet resource.


[31186] The System.Net.WebRequest.Abort method cancels asynchronous requests to Internet resources started with the System.Net.WebRequest.BeginGetResponse(System.AsyncCallback,System.O bject) method.


[31187] BeginGetRequestStream


[31188] [C#] public virtual IAsyncResult BeginGetRequestStream(AsyncCallback callback, object state);


[31189] [C++] public: virtual IAsyncResult* BeginGetRequestStream(AsyncCallback* callback, Object* state);


[31190] [VB] Overridable Public Function BeginGetRequestStream(ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[31191] [JScript] public function BeginGetRequestStream(callback: AsyncCallback, state: Object): IAsyncResult;


[31192] Description


[31193] When overridden in a descendant class, provides an asynchronous version of the System.Net.WebRequest.GetRequestStream method.


[31194] Return Value: An System.IAsyncResult that references the asynchronous request.


[31195] The System.Net.WebRequest.BeginGetRequestStream(System.AsyncCallback,Sys tem.Object) method starts an asynchronous request for a stream used to send data to an Internet resource. The callback method that implements the System.AsyncCallback delegate uses the System.Net.WebRequest.EndGetRequestStream(System.IAsyncResult) method to return the request stream. The System.AsyncCallback delegate. An object containing state information for this asynchronous request.


[31196] BeginGetResponse


[31197] [C#] public virtual IAsyncResult BeginGetResponse(AsyncCallback callback, object state);


[31198] [C++] public: virtual IAsyncResult* BeginGetResponse(AsyncCallback* callback, Object* state);


[31199] [VB] Overridable Public Function BeginGetResponse(ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[31200] [JScript] public function BeginGetResponse(callback: AsyncCallback, state: Object): IAsyncResult;


[31201] Description


[31202] When overridden in a descendant class, begins an asynchronous request for an Internet resource.


[31203] Return Value: An System.IAsyncResult that references the asynchronous request.


[31204] The System.Net.WebRequest.BeginGetResponse(System.AsyncCallback,System.O bject) method starts an asynchronous request for a response. The callback method that implements the System.AsyncCallback delegate uses the System.Net.WebRequest.EndGetResponse(System.IAsyncResult) method to return the System.Net.WebResponse from the Internet resource. The System.AsyncCallback delegate. An object containing state information for this asynchronous request.


[31205] Create


[31206] [C#] public static WebRequest Create(string requestUriString);


[31207] [C++] public: static WebRequest* Create(String* requestUriString);


[31208] [VB] Public Shared Function Create(ByVal requestUriString As String) As WebRequest


[31209] [JScript] public static function Create(requestUriString: String): WebRequest; Initializes a new System.Net.WebRequest.


[31210] Description


[31211] Initializes a new System.Net.WebRequest instance for the specified URI scheme.


[31212] Return Value: A System.Net.WebRequest descendant for the specific URI scheme.


[31213] The System.Net.WebRequest.Create(System.Uri,System.Boolean) method returns a descendant of the System.Net.WebRequest class determined at run time by the scheme of the URI in requestUriString. For example, when a URI beginning with http:// is passed in requestUriString, an System.Net.HttpWebRequest instance is returned by System.Net.WebRequest.Create(System.Uri,System.Boolean). If a URI beginning with file:// is passed instead, the System.Net.WebRequest.Create(System.Uri,System.Boolean) method will return a System.Net.FileWebRequest instance. The URI that identifies the Internet resource.


[31214] Create


[31215] [C#] public static WebRequest Create(Uri requestUri);


[31216] [C++] public: static WebRequest* Create(Uri* requestUri);


[31217] [VB] Public Shared Function Create(ByVal requestUri As Uri) As WebRequest


[31218] [JScript] public static function Create(requestUri: Uri): WebRequest;


[31219] Description


[31220] Initializes a new System.Net.WebRequest instance for the specified URI scheme.


[31221] Return Value: A System.Net.WebRequest descendant for the specified URI scheme.


[31222] The System.Net.WebRequest.Create(System.Uri,System.Boolean) method returns a descendant of the System.Net.WebRequest class determined at run time by the scheme of the URI in requestUri. For example, when a URI beginning with http:// is passed in requestUri, an System.Net.HttpWebRequest instance is returned by System.Net.WebRequest.Create(System.Uri,System.Boolean). If a URI beginning with file:// is passed instead, the System.Net.WebRequest.Create(System.Uri,System.Boolean) method will return a System.Net.FileWebRequest instance. A System.Uri containing the URI of the requested resource.


[31223] CreateDefault


[31224] [C#] public static WebRequest CreateDefault(Uri requestUri);


[31225] [C++] public: static WebRequest* CreateDefault(Uri* requestUri);


[31226] [VB] Public Shared Function CreateDefault(ByVal requestUri As Uri) As WebRequest


[31227] [JScript] public static function CreateDefault(requestUri: Uri): WebRequest;


[31228] Description


[31229] Initializes a new System.Net.WebRequest instance for the specified URI scheme.


[31230] Return Value: A System.Net.WebRequest descendant for the specified URI scheme.


[31231] The System.Net.WebRequest.CreateDefault(System.Uri) method returns a System.Net.WebRequest descendant instance based on only the scheme portion of a URI. A System.Uri containing the URI of the requested resource.


[31232] EndGetRequestStream


[31233] [C#] public virtual Stream EndGetRequestStream(IAsyncResult asyncResult);


[31234] [C++] public: virtual Stream* EndGetRequestStream(IAsyncResult* asyncResult);


[31235] [VB] Overridable Public Function EndGetRequestStream(ByVal asyncResult As IAsyncResult) As Stream


[31236] [JScript] public function EndGetRequestStream(asyncResult: IAsyncResult): Stream;


[31237] Description


[31238] When overridden in a descendant class, returns a System.IO.Stream for writing data to the Internet resource.


[31239] Return Value: A System.IO.Stream to write data to.


[31240] The System.Net.WebRequest.EndGetRequestStream(System.IAsyncResult) method completes an asynchronous stream request that was started by the System.Net.WebRequest.BeginGetRequestStream(System.AsyncCallback,Sys tem.Object) method. An System.IAsyncResult that references a pending request for a stream.


[31241] EndGetResponse


[31242] [C#] public virtual WebResponse EndGetResponse(IAsyncResult asyncResult);


[31243] [C++] public: virtual WebResponse* EndGetResponse(IAsyncResult* asyncResult);


[31244] [VB] Overridable Public Function EndGetResponse(ByVal asyncResult As IAsyncResult) As WebResponse


[31245] [JScript] public function EndGetResponse(asyncResult: IAsyncResult): WebResponse;


[31246] Description


[31247] When overridden in a descendant class, returns a System.Net.WebResponse.


[31248] Return Value: A System.Net.WebResponse that contains a response to the Internet request.


[31249] The System.Net.WebRequest.EndGetResponse(System.IAsyncResult) method completes an asynchronous request for an Internet resource that was started with the System.Net.WebRequest.BeginGetResponse(System.AsyncCallback,System.O bject) method. An System.IAsyncResult that references a pending request for a response.


[31250] GetRequestStream


[31251] [C#] public virtual Stream GetRequestStream( );


[31252] [C++] public: virtual Stream* GetRequestStream( );


[31253] [VB] Overridable Public Function GetRequestStream( ) As Stream


[31254] [JScript] public function GetRequestStream( ): Stream;


[31255] Description


[31256] When overridden in a descendant class, returns a System.IO.Stream for writing data to the Internet resource.


[31257] Return Value: A System.IO.Stream for writing data to the Internet resource.


[31258] The System.Net.WebRequest.GetRequestStream method initiates a request to send data to the Internet resource and returns a System.IO.Stream instance for sending data to the Internet resource.


[31259] GetResponse


[31260] [C#] public virtual WebResponse GetResponse( );


[31261] [C++] public: virtual WebResponse* GetResponse( );


[31262] [VB] Overridable Public Function GetResponse( ) As WebResponse


[31263] [JScript] public function GetResponse( ): WebResponse;


[31264] Description


[31265] When overridden in a descendant class, returns a response to an Internet request.


[31266] Return Value: A System.Net.WebResponse containing the response to the Internet request.


[31267] The System.Net.WebRequest.GetResponse method sends a request to an Internet resource and returns a System.Net.WebResponse instance. If the request has already been initiated by a call to System.Net.WebRequest.GetRequestStream, the System.Net.WebRequest.GetResponse method completes the request and returns any response.


[31268] RegisterPrefix


[31269] [C#] public static bool RegisterPrefix(string prefix, IWebRequestCreate creator);


[31270] [C++] public: static bool RegisterPrefix(String* prefix, IWebRequestCreate* creator);


[31271] [VB] Public Shared Function RegisterPrefix(ByVal prefix As String, ByVal creator As IWebRequestCreate) As Boolean


[31272] [JScript] public static function RegisterPrefix(prefix: String, creator: IWebRequestCreate): Boolean;


[31273] Description


[31274] Registers a System.Net.WebRequest descendant for the specified URI.


[31275] Return Value: true if registration is successful; otherwise, false.


[31276] The System.Net.WebRequest.RegisterPrefix(System.String,System.Net.IWebRequ estCreate) method registers System.Net.WebRequest descendants to service requests. The URI prefix that the System.Net.WebRequest descendant services. The create method that the System.Net.WebRequest calls to create the System.Net.WebRequest descendant.


[31277] ISerializable.GetObjectData


[31278] [C#] void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext);


[31279] [C++] void ISerializable::GetObjectData(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[31280] [VB] Sub GetObjectData(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext) Implements ISerializable.GetObjectData


[31281] [JScript] function ISerializable.GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[31282] WebResponse class (System.Net)


[31283] ToString


[31284] Description


[31285] Provides a response from a Uniform Resource Identifier (URI). This is an abstract class.


[31286] The System.Net.WebResponse class is the abstract base class from which protocol-specific response classes are derived. Applications can use the System.Net.WebResponse class to handle responses in a protocol-agnostic manner. In that case, the application works with instances of the System.Net.WebResponse class while the details of the request are carried out by protocol-specific descendant classes.


[31287] WebResponse


[31288] Example Syntax:


[31289] ToString


[31290] [C#] protected WebResponse( );


[31291] [C++] protected: WebResponse( );


[31292] [VB] Protected Sub New( )


[31293] [JScript] protected function WebResponse( ); Initializes a new instance of the System.Net.WebResponse class.


[31294] Description


[31295] Initializes a new instance of the System.Net.WebResponse class.


[31296] Applications do not call the System.Net.WebResponse constructor directly, use the System.Net.WebRequest.GetResponse method on a System.Net.WebRequest instance.


[31297] WebResponse


[31298] Example Syntax:


[31299] ToString


[31300] [C#] protected WebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext);


[31301] [C++] protected: WebResponse(SerializationInfo* serializationInfo, StreamingContext streamingContext);


[31302] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext)


[31303] [JScript] protected function WebResponse(serializationInfo: SerializationInfo, streamingContext: StreamingContext);


[31304] Description


[31305] Initializes a new instance of the System.Net.WebResponse class from the specified instances of the System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext classes.


[31306] When implemented by a descendant class, this constructor implements the System.Runtime.Serialization.ISerializable interface for the System.Net.WebResponse descendant. An instance of the System.Runtime.Serialization.SerializationInfo class containing the information required to serialize the new System.Net.WebRequest instance. An instance of the System.Runtime.Serialization.StreamingContext class indicating the source of the serialized stream associated with the new System.Net.WebRequest instance.


[31307] ContentLength


[31308] ToString


[31309] [C#] public virtual long ContentLength {get; set;}


[31310] [C++] public: _property virtual_int64 get_ContentLength( );public: _property virtual void set_ContentLength(_int64);


[31311] [VB] Overridable Public Property ContentLength As Long


[31312] [JScript] public function get ContentLength( ): long;public function set ContentLength(long);


[31313] Description


[31314] When overridden in a descendant class, gets or sets the content length of data being received.


[31315] The System.Net.WebResponse.ContentLength property contains the length, in bytes, of the response from the Internet resource. For request methods that contain header information, the System.Net.WebResponse.ContentLength does not include the length of the header information.


[31316] ContentType


[31317] ToString


[31318] [C#] public virtual string ContentType {get; set;}


[31319] [C++] public: _property virtual String* get_ContentType( );public: _property virtual void set_ContentType(String*);


[31320] [VB] Overridable Public Property ContentType As String


[31321] [JScript] public function get ContentType( ): String;public function set ContentType(String);


[31322] Description


[31323] When overridden in a derived class, gets or sets the content type of the data being received.


[31324] The System.Net.WebResponse.ContentType property contains the MIME content type of the response from the Internet resource, if known.


[31325] Headers


[31326] ToString


[31327] [C#] public virtual WebHeaderCollection Headers {get;}


[31328] [C++] public: _property virtual WebHeaderCollection* get_Headers( );


[31329] [VB] Overridable Public ReadOnly Property Headers As WebHeaderCollection


[31330] [JScript] public function get Headers( ): WebHeaderCollection;


[31331] Description


[31332] When overridden in a derived class, gets a collection of header name-value pairs associated with this request.


[31333] The System.Net.WebResponse.Headers property contains the name-value header pairs returned in the response.


[31334] ResponseUri


[31335] ToString


[31336] [C#] public virtual Uri ResponseUri {get;}


[31337] [C++] public: _property virtual Uri* get_ResponseUri( );


[31338] [VB] Overridable Public ReadOnly Property ResponseUri As Uri


[31339] [JScript] public function get ResponseUri( ): Uri;


[31340] Description


[31341] When overridden in a derived class, gets the URI of the Internet resource that actually responded to the request.


[31342] The System.Net.WebResponse.ResponseUri property contains the URI of the Internet resource that actually provided the response data. This resource may not be the originally requested URI if the underlying protocol allows redirection of the request.


[31343] Close


[31344] [C#] public virtual void Close( );


[31345] [C++] public: virtual void Close( );


[31346] [VB] Overridable Public Sub Close( )


[31347] [JScript] public function Close( );


[31348] Description


[31349] When overridden by a descendent class, closes the response stream.


[31350] The System.Net.WebResponse.Close method cleans up the resources used by a System.Net.WebResponse and closes the underlying stream by calling the System.IO.Stream.Close method.


[31351] GetResponseStream


[31352] [C#] public virtual Stream GetResponseStream( );


[31353] [C++] public: virtual Stream* GetResponseStream( );


[31354] [VB] Overridable Public Function GetResponseStream( ) As Stream


[31355] [JScript] public function GetResponseStream( ): Stream;


[31356] Description


[31357] When overridden in a descendant class, returns the data stream from the Internet resource.


[31358] Return Value: An instance of the System.IO.Stream class for reading data from the Internet resource.


[31359] The System.Net.WebResponse.GetResponseStream method returns the data stream from the Internet resource.


[31360] IDisposable.Dispose


[31361] [C#] void IDisposable.Dispose( );


[31362] [C++] void IDisposable::Dispose( );


[31363] [VB] Sub Dispose( ) Implements IDisposable.Dispose


[31364] [JScript] function IDisposable.Dispose( );


[31365] ISerializable.GetObjectData


[31366] [C#] void ISeria


[31367] System.Net.Sockets


[31368] The namespace provides a managed implementation of the Windows Sockets interface for developers that need to tightly control access to the network. Developers familiar with the Winsock API should have no problems developing applications using the class.


[31369] Description


[31370] The System.Net.Sockets namespace provides a managed implementation of the Windows Sockets interface for developers that need to tightly control access to the network. Developers familiar with the Winsock API should have no problems developing applications using the System.Net.Sockets.Socket class.


[31371] AddressFamily enumeration (System.Net.Sockets)


[31372] Description


[31373] Specifies the addressing scheme that an instance of the System.Net.Sockets.Socket class can use.


[31374] An System.Net.Sockets.AddressFamily member specifies the addressing scheme that a System.Net.Sockets.Socket instance uses to resolve an address. For example, System.Net.Sockets.AddressFamily.InterNetwork indicates that an IP version 4 address is expected when a System.Net.Sockets.Socket connects to an end point.


[31375] [C#] public const AddressFamily AppleTalk;


[31376] [C++] public: const AddressFamily AppleTalk;


[31377] [VB] Public Const AppleTalk As AddressFamily


[31378] [JScript] public var AppleTalk: AddressFamily;


[31379] Description


[31380] AppleTalk address.


[31381] [C#] public const AddressFamily Atm;


[31382] [C++] public: const AddressFamily Atm;


[31383] [VB] Public Const Atm As AddressFamily


[31384] [JScript] public var Atm: AddressFamily;


[31385] Description


[31386] Native ATM services address.


[31387] [C#] public const AddressFamily Banyan;


[31388] [C++] public: const AddressFamily Banyan;


[31389] [VB] Public Const Banyan As AddressFamily


[31390] [JScript] public var Banyan: AddressFamily;


[31391] Description


[31392] Banyan address.


[31393] [C#] public const AddressFamily Ccitt;


[31394] [C++] public: const AddressFamily Ccitt;


[31395] [VB] Public Const Ccitt As AddressFamily


[31396] [JScript] public var Ccitt: AddressFamily;


[31397] Description


[31398] Addresses for CCITT protocols, such as X.25.


[31399] [C#] public const AddressFamily Chaos;


[31400] [C++] public: const AddressFamily Chaos;


[31401] [VB] Public Const Chaos As AddressFamily


[31402] [JScript] public var Chaos: AddressFamily;


[31403] Description


[31404] Address for MIT CHAOS protocols.


[31405] [C#] public const AddressFamily Cluster;


[31406] [C++] public: const AddressFamily Cluster;


[31407] [VB] Public Const Cluster As AddressFamily


[31408] [JScript] public var Cluster: AddressFamily;


[31409] Description


[31410] Address for Microsoft cluster products.


[31411] [C#] public const AddressFamily DataKit;


[31412] [C++] public: const AddressFamily DataKit;


[31413] [VB] Public Const DataKit As AddressFamily


[31414] [JScript] public var DataKit: AddressFamily;


[31415] Description


[31416] Address for Datakit protocols.


[31417] [C#] public const AddressFamily DataLink;


[31418] [C++] public: const AddressFamily DataLink;


[31419] [VB] Public Const DataLink As AddressFamily


[31420] [JScript] public var DataLink: AddressFamily;


[31421] Description


[31422] Direct data-link interface address.


[31423] [C#] public const AddressFamily DecNet;


[31424] [C++] public: const AddressFamily DecNet;


[31425] [VB] Public Const DecNet As AddressFamily


[31426] [JScript] public var DecNet: AddressFamily;


[31427] Description


[31428] DECnet address.


[31429] [C#] public const AddressFamily Ecma;


[31430] [C++] public: const AddressFamily Ecma;


[31431] [VB] Public Const Ecma As AddressFamily


[31432] [JScript] public var Ecma: AddressFamily;


[31433] Description


[31434] European Computer Manufacturers Association (ECMA) address.


[31435] [C#] public const AddressFamily FireFox;


[31436] [C++] public: const AddressFamily FireFox;


[31437] [VB] Public Const FireFox As AddressFamily


[31438] [JScript] public var FireFox: AddressFamily;


[31439] Description


[31440] FireFox address.


[31441] [C#] public const AddressFamily HyperChannel;


[31442] [C++] public: const AddressFamily HyperChannel;


[31443] [VB] Public Const HyperChannel As AddressFamily


[31444] [JScript] public var HyperChannel: AddressFamily;


[31445] Description


[31446] NSC Hyperchannel address.


[31447] [C#] public const AddressFamily Ieee12844;


[31448] [C++] public: const AddressFamily Ieee12844;


[31449] [VB] Public Const Ieee12844 As AddressFamily


[31450] [JScript] public var Ieee12844: AddressFamily;


[31451] Description


[31452] IEEE 1284.4 workgroup address.


[31453] [C#] public const AddressFamily ImpLink;


[31454] [C++] public: const AddressFamily ImpLink;


[31455] [VB] Public Const ImpLink As AddressFamily


[31456] [JScript] public var ImpLink: AddressFamily;


[31457] Description


[31458] ARPANET IMP address.


[31459] [C#] public const AddressFamily InterNetwork;


[31460] [C++] public: const AddressFamily InterNetwork;


[31461] [VB] Public Const InterNetwork As AddressFamily


[31462] [JScript] public var InterNetwork: AddressFamily;


[31463] Description


[31464] Address for IP version 4.


[31465] [C#] public const AddressFamily InterNetworkV6;


[31466] [C++] public: const AddressFamily InterNetworkV6;


[31467] [VB] Public Const InterNetworkV6 As AddressFamily


[31468] [JScript] public var InterNetworkV6: AddressFamily;


[31469] Description


[31470] Address for IP version 6.


[31471] [C#] public const AddressFamily Ipx;


[31472] [C++] public: const AddressFamily Ipx;


[31473] [VB] Public Const Ipx As AddressFamily


[31474] [JScript] public var Ipx: AddressFamily;


[31475] Description


[31476] IPX or SPX address.


[31477] [C#] public const AddressFamily Irda;


[31478] [C++] public: const AddressFamily Irda;


[31479] [VB] Public Const Irda As AddressFamily


[31480] [JScript] public var Irda: AddressFamily;


[31481] Description


[31482] IrDA address.


[31483] [C#] public const AddressFamily Iso;


[31484] [C++] public: const AddressFamily Iso;


[31485] [VB] Public Const Iso As AddressFamily


[31486] [JScript] public var Iso: AddressFamily;


[31487] Description


[31488] Address for ISO protocols.


[31489] [C#] public cost AddressFamily Lat;


[31490] [C++] public: const AddressFamily Lat;


[31491] [VB] Public Const Lat As AddressFamily


[31492] [JScript] public var Lat: AddressFamily;


[31493] Description


[31494] LAT address.


[31495] [C#] public const AddressFamily Max;


[31496] [C++] public: const AddressFamily Max;


[31497] [VB] Public Const Max As AddressFamily


[31498] [JScript] public var Max: AddressFamily;


[31499] Description


[31500] MAX address.


[31501] [C#] public const AddressFamily NetBios;


[31502] [C++] public: const AddressFamily NetBios;


[31503] [VB] Public Const NetBios As AddressFamily


[31504] [JScript] public var NetBios AddressFamily;


[31505] Description


[31506] NetBios address.


[31507] [C#] public const AddressFamily NetworkDesigners;


[31508] [C++] public: const AddressFamily NetworkDesigners;


[31509] [VB] Public Const NetworkDesigners As AddressFamily


[31510] [JScript] public var NetworkDesigners: AddressFamily;


[31511] Description


[31512] Address for Network Designers OSI gateway-enabled protocols.


[31513] [C#] public const AddressFamily NS;


[31514] [C++] public: const AddressFamily NS;


[31515] [VB] Public Const NS As AddressFamily


[31516] [JScript] public var NS: AddressFamily;


[31517] Description


[31518] Address for Xerox NS protocols.


[31519] [C#] public const AddressFamily Osi;


[31520] [C++] public: const AddressFamily Osi;


[31521] [VB] Public Const Osi As AddressFamily


[31522] [JScript] public var Osi: AddressFamily;


[31523] Description


[31524] Address for ISO protocols.


[31525] [C#] public const AddressFamily Pup;


[31526] [C++] public: const AddressFamily Pup;


[31527] [VB] Public Const Pup As AddressFamily


[31528] [JScript] public var Pup: AddressFamily;


[31529] Description


[31530] Address for PUP protocols.


[31531] [C#] public const AddressFamily Sna;


[31532] [C++] public: const AddressFamily Sna;


[31533] [VB] Public Const Sna As AddressFamily


[31534] [JScript] public var Sna: AddressFamily;


[31535] Description


[31536] IBM SNA address.


[31537] [C#] public const AddressFamily Unix;


[31538] [C++] public: const AddressFamily Unix;


[31539] [VB] Public Const Unix As AddressFamily


[31540] [JScript] public var Unix: AddressFamily;


[31541] Description


[31542] Unix local to host address.


[31543] [C#] public const AddressFamily Unknown;


[31544] [C++] public: const AddressFamily Unknown;


[31545] [VB] Public Const Unknown As AddressFamily


[31546] [JScript] public var Unknown: AddressFamily;


[31547] Description


[31548] Unknown address family.


[31549] [C#] public const AddressFamily Unspecified;


[31550] [C++] public: const AddressFamily Unspecified;


[31551] [VB] Public Const Unspecified As AddressFamily


[31552] [JScript] public var Unspecified: AddressFamily;


[31553] Description


[31554] Unspecified address family.


[31555] [C#] public const AddressFamily VoiceView;


[31556] [C++] public: const AddressFamily VoiceView;


[31557] [VB] Public Const VoiceView As AddressFamily


[31558] [JScript] public var VoiceView: AddressFamily;


[31559] Description


[31560] VoiceView address.


[31561] Methods:


[31562] LingerOption class (System.Net.Sockets)


[31563] ToString


[31564] Description


[31565] Contains information about a socket's linger time, the amount of time it will remain after closing if data remains to be sent.


[31566] The settings of the System.Net.Sockets.LingerOption instance associated with a System.Net.Sockets.Socket instance control the length of time that a socket will remain after closing if data remains to be sent.


[31567] Constructors:


[31568] LingerOption


[31569] Example Syntax:


[31570] ToString


[31571] [C#] public LingerOption(bool enable, int seconds);


[31572] [C++] public: LingerOption(bool enable, int seconds);


[31573] [VB] Public Sub New(ByVal enable As Boolean, ByVal seconds As Integer)


[31574] [JScript] public function LingerOption(enable: Boolean, seconds: int);


[31575] Description


[31576] Initializes a new instance of the System.Net.Sockets.LingerOption class.


[31577] The System.Net.Sockets.LingerOption instance is created with System.Net.Sockets.LingerOption.Enabled property set to enable and the System.Net.Sockets.LingerOption.LingerTime property set to seconds. true to enable remaining connected after System.Net.Sockets.Socket.Close is called; otherwise, false. The number of seconds to remain connected after System.Net.Sockets.Socket.Closeis called.


[31578] Properties:


[31579] Enabled


[31580] ToString


[31581] [C#] public bool Enabled {get; set;}


[31582] [C++] public: _property bool get_Enabled( );public: _property void set_Enabled(bool);


[31583] [VB] Public Property Enabled As Boolean


[31584] [JScript] public function get Enabled( ): Boolean;public function set Enabled(Boolean);


[31585] Description


[31586] Gets or sets a value indicating whether to linger after the socket is closed.


[31587] LingerTime


[31588] ToString


[31589] [C#] public int LingerTime {get; set;}


[31590] [C++] public: _property int get_LingerTime( );public: _property void set LingerTime(int);


[31591] [VB] Public Property LingerTime As Integer


[31592] [JScript] public function get LingerTime( ): int;public function set LingerTime(int);


[31593] Description


[31594] Gets or sets the amount of time to remain connected after the socket is closed.


[31595] MulticastOption class (System.Net.Sockets)


[31596] ToString


[31597] Description


[31598] Contains IP address values for IP multicast packets.


[31599] The System.Net.Sockets.MulticastOption class sets IP address values when joining or leaving an IP multicast group. It is used with the System.Net.Sockets.Socket.SetSocketOption(System.Net.Sockets.SocketOptio nLevel,System.Net.Sockets.SocketOptionName,System.Int32) and System.Net.Sockets.Socket.GetSocketOption(System.Net.Sockets.SocketOptio nLevel,System.Net.Sockets.SocketOptionName) methods when the optionName parameter is set to System.Net.Sockets.SocketOptionName.AddMembership or System.Net.Sockets.SocketOptionName.DropMembership.


[31600] MulticastOption


[31601] Example Syntax:


[31602] ToString


[31603] [C#] public MulticastOption(IPAddress group);


[31604] [C++] public: MulticastOption(IPAddress* group);


[31605] [VB] Public Sub New(ByVal group As IPAddress)


[31606] [JScript] public function MulticastOption(group: IPAddress);


[31607] Description


[31608] Initializes a new version of the System.Net.Sockets.MulticastOption class for the specified IP multicast group. The IP address of the multicast group.


[31609] MulticastOption


[31610] Example Syntax:


[31611] ToString


[31612] [C++] public MulticastOption(IPAddress group, IPAddress mcint);


[31613] [C++] public: MulticastOption(IPAddress* group, IpAddress* mcint);


[31614] [VB] Public Sub New(ByVal group As IPAddress, ByVal mcint As IPAddress)


[31615] [JScript] public function MulticastOption(group: IPAddress, mcint: IPAddress); Initializes a new instance of the System.Net.Sockets.MulticastOption class.


[31616] Description


[31617] Initializes a new instance of the System.Net.Sockets.MulticastOption class with the specified IP multicast group address and local interface address. The group IP address. The local IP address.


[31618] Group


[31619] ToString


[31620] [C#] public IPAddress Group {get; set;}


[31621] [C++] public: _property IPAddress* get_Group( );public: _property void set Group(IPAddress*);


[31622] [VB] Public Property Group As IPAddress


[31623] [JScript] public function get Group( ): IPAddress;public function set Group(IPAddress);


[31624] Description


[31625] Gets or sets the IP address of a multicast group.


[31626] Valid IP addresses for multicast packets are in the range 224.0.0.0 to 20 239.255.255.255.


[31627] LocalAddress


[31628] ToString


[31629] [C#] public IPAddress LocalAddress {get; set;}


[31630] [C++] public: _Property IPAddress* get_LocalAddress( );public: _Property void set_LocalAddress(IPAddress*);


[31631] [VB] Public Property LocalAddress As IPAddress


[31632] [JScript] public function get LocalAddress( ): IPAddress;public function set LocalAddress(IPAddress);


[31633] Description


[31634] Gets or sets the local address associated with a multicast group.


[31635] The System.Net.Sockets.MulticastOption.LocalAddress property contains the IP address of the interface associated with the multicast group membership. If System.Net.Sockets.MulticastOption.LocalAddress is set to System.Net.IPAddress.Any, the default interface is used.


[31636] NetworkStream class (System.Net.Sockets)


[31637] ToString


[31638] Description


[31639] Provides the underlying stream of data for network access.


[31640] System.Net.Sockets.NetworkStream implements the standard NET Framework stream mechanism to send and receive data through network sockets.


[31641] NetworkStream


[31642] Example Syntax:


[31643] ToString


[31644] [C#] public NetworkStream(Socket socket);


[31645] [C++] public: NetworkStream(Socket* socket);


[31646] [VB] Public Sub New(ByVal socket As Socket)


[31647] [JScript] public function NetworkStream(socket: Socket); Creates a new instance of the System.Net.Sockets.NetworkStream class.


[31648] Description


[31649] Creates a new instance of the System.Net.Sockets.NetworkStream class for the specified System.Net.Sockets.Socket.


[31650] The System.Net.Sockets.NetworkStream is created with read/write access to the specified socket. The System.Net.Sockets.NetworkStream does not own the underlying socket, so calling the System.Net.Sockets.NetworkStream.Close method will not close the socket. The System.Net.Sockets.Socket that provides the network data for the new System.Net.Sockets.NetworkStream.


[31651] NetworkStream


[31652] Example Syntax:


[31653] ToString


[31654] [C#] public NetworkStream(Socket socket, bool ownsSocket);


[31655] [C++] public: NetworkStream(Socket* socket, bool ownssocket);


[31656] [VB] Public Sub New(ByVal socket As Socket, ByVal ownsSocket As Boolean)


[31657] [JScript] public function NetworkStream(socket: Socket, ownsSocket: Boolean);


[31658] Description


[31659] Initializes a new instance of the System.Net.Sockets.NetworkStream class for the specified socket with the specified System.Net.Sockets.Socket ownership.


[31660] The System.Net.Sockets.NetworkStream is created with read/write access to the specified socket. If ownsSocket is true, the System.Net.Sockets.NetworkStream owns the underlying socket, and calling System.Net.Sockets.NetworkStream.Close will also close the underlying socket. The network socket that the new System.Net.Sockets.NetworkStream will encapsulate. true if the socket will be owned by this System.Net.Sockets.NetworkStream instance; otherwise, false.


[31661] NetworkStream


[31662] Example Syntax:


[31663] ToString


[31664] [C#] public NetworkStream(Socket socket, FileAccess access);


[31665] [C++] public: NetworkStream(Socket* socket, FileAccess access);


[31666] [VB] Public Sub New(ByVal socket As Socket, ByVal access As FileAccess)


[31667] [JScript] public function NetworkStream(socket: Socket, access: FileAccess);


[31668] Description


[31669] Creates a new instance of the System.Net.Sockets.NetworkStream class for the specified System.Net.Sockets.Socket with the specified access rights.


[31670] The System.Net.Sockets.NetworkStream is created with the specified access to the specified socket. The System.Net.Sockets.NetworkStream does not own the underlying socket, so calling the System.Net.Sockets.NetworkStream.Close method will not close the socket. The System.Net.Sockets.Socket that provides the network data. One of the System.IO.FileAccess values that sets the System.Net.Sockets.NetworkStream.CanRead and System.Net.Sockets.NetworkStream.CanWrite properties of the System.Net.Sockets.NetworkStream


[31671] NetworkStream


[31672] Example Syntax:


[31673] ToString


[31674] [C#] public NetworkStream(Socket socket, FileAccess access, bool ownssocket);


[31675] [C++] public: NetworkStream(Socket* socket, FileAccess access, bool ownsSocket);


[31676] [VB] Public Sub New(ByVal socket As Socket, ByVal access As FileAccess, ByVal ownsSocket As Boolean)


[31677] [JScript] public function NetworkStream(socket: Socket, access: FileAccess, ownsSocket: Boolean);


[31678] Description


[31679] Creates a new instance of the System.Net.Sockets.NetworkStream class


[31680] for the specified System.Net.Sockets.Socket with the specified access rights and


[31681] the specified System.Net.Sockets.Socket ownership.


[31682] The System.Net.Sockets.NetworkStream is created with the specifed access to the specified socket. If ownsSocket is true, the System.Net.Sockets.NetworkStream owns the underlying socket, and calling System.Net.Sockets.NetworkStream.Close will also close the underlying socket. The System.Net.Sockets.Socket that provides the network data. One of the System.IO.FileAccess values that sets the System.Net.Sockets.NetworkStream.CanRead and System.Net.Sockets.NetworkStream.CanWrite properties of the System.Net.Sockets.NetworkStream. true if the socket will be owned by this System.Net.Sockets.NetworkStream instance; otherwise, false.


[31683] CanRead


[31684] ToString


[31685] [C#] public override bool CanRead {get;}


[31686] [C++] public: property virtual bool getCanRead( );


[31687] [VB] Overrides Public ReadOnly Property CanRead As Boolean


[31688] [JScript] public function get CanRead( ): Boolean;


[31689] Description


[31690] Gets a value indicating whether the current stream supports reading.


[31691] CanSeek


[31692] ToString


[31693] [C#] public override bool CanSeek {get;}


[31694] [C++] public: property virtual bool getCanSeek( );


[31695] [VB] Overrides Public ReadOnly Property CanSeek As Boolean


[31696] [JScript] public function get CanSeek( ): Boolean;


[31697] Description


[31698] Gets a value indicating whether the stream supports seeking. This property always returns false.


[31699] CanWrite


[31700] ToString


[31701] [C#] public override bool CanWrite {get;}


[31702] [C++] public: _property virtual bool get_CanWrite( );


[31703] [VB] Overrides Public ReadOnly Property CanWrite As Boolean


[31704] [JScript] public function get CanWrite( ): Boolean;


[31705] Description


[31706] Gets a value that indicates whether the current stream supports writing.


[31707] DataAvailable


[31708] ToString


[31709] [C#] public virtual bool DataAvailable {get;}


[31710] [C++] public: _property virtual bool get_DataAvailable( );


[31711] [VB] Overridable Public ReadOnly Property DataAvailable As Boolean


[31712] [JScript] public function get DataAvailable( ): Boolean;


[31713] Description


[31714] Gets a value indicating whether data is available on the stream to be read.


[31715] Length


[31716] ToString


[31717] [C#] public override long Length {get;}


[31718] [C++] public: _property virtual_int64 get_Length( );


[31719] [VB] Overrides Public ReadOnly Property Length As Long


[31720] [JScript] public function get Length( ): long;


[31721] Description


[31722] The length of the data available on the stream. This property always throws a System.NotSupportedException.


[31723] Position


[31724] ToString


[31725] [C#] public override long Position {get; set;}


[31726] [C++] public: _property virtual_int64 get_Position( );public: _property virtual void set_Position(_int64);


[31727] [VB] Overrides Public Property Position As Long


[31728] [JScript] public function get Position( ): long;public function set Position(long);


[31729] Description


[31730] Gets or sets the current position in the stream. This property always throws a System.NotSupportedException.


[31731] Readable


[31732] ToString


[31733] [C#] protected bool Readable {get; set;}


[31734] [C++] protected: _property bool get_Readable( );protected: _property void set_Readable(bool);


[31735] [VB] Protected Property Readable As Boolean


[31736] [JScript] protected function get Readable( ): Boolean;protected function set Readable(Boolean);


[31737] Description


[31738] Gets or sets a value indicating that the stream can be read.


[31739] The System.Net.Sockets.NetworkStream.Readable property is accessible only through this class or a derived class. Other classes can determine whether a System.Net.Sockets.NetworkStream is readable by checking the System.Net.Sockets.NetworkStream.CanRead property.


[31740] Socket


[31741] ToString


[31742] [C#] protected Socket Socket {get;}


[31743] [C++] protected: _property Socket* get_Socket( );


[31744] [VB] Protected ReadOnly Property Socket As Socket


[31745] [JScript] protected function get Socket( ): Socket;


[31746] Description


[31747] Gets the underlying network connection.


[31748] The System.Net.Sockets.NetworkStream.Socket property represents the underlying network socket that this System.Net.Sockets.NetworkStream encapsulates.


[31749] Writeable


[31750] ToString


[31751] [C#] protected bool Writeable {get; set;}


[31752] [C++] protected: _property bool get_Writeable( );protected: _property void set_Writeable(bool);


[31753] [VB] Protected Property Writeable As Boolean


[31754] [JScript] protected function get Writeable( ): Boolean;protected function set Writeable(Boolean);


[31755] Description


[31756] Gets a value that indicates whether the stream is writable.


[31757] The System.Net.Sockets.NetworkStream.Writeable property is accessible only through this class or a derived class. Other classes can determine whether a System.Net.Sockets.NetworkStream is writable by checking the System.Net.Sockets.NetworkStream.CanWrite property.


[31758] BeginRead


[31759] [C#] public override IAsyncResult BeginRead(byte[ ] buffer, int offset, int size, AsyncCallback callback, object state);


[31760] [C++] public: IAsyncResult* BeginRead(unsigned char buffer_gc[ ], int offset, int size, AsyncCallback* callback, Object* state);


[31761] [VB] Overrides Public Function BeginRead(ByVal buffer( ) As Byte, ByVal offset As Integer, ByVal size As Integer, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[31762] [JScript] public override function BeginRead(buffer: Byte[ ], offset: int, size: int, callback: AsyncCallback, state: Object): IAsyncResult;


[31763] Description


[31764] Begins an asynchronous read from a stream.


[31765] Return Value: An System.IAsyncResult representing the asynchronous call.


[31766] The System.Net.Sockets.NetworkStream.BeginRead(System.Bytet],System.Int32,S ystem.Int32,System.AsyncCallback,System.Object) method begins an asynchronous request for data from a network stream. The method that implements the System.AsyncCallback delegate uses the System.Net.Sockets.NetworkStream.EndRead(System.IAsyncResult) method to return the amount of data read from the stream. The location in memory that stores the data from the stream. The location in buffer to begin storing the data to. The size of buffer. The delegate to call when the asynchronous call is complete. An object containing additional information supplied by the client.


[31767] BeginWrite


[31768] [C#] public override IAsyncResult BeginWrite(byte[ ] buffer, int offset, int size, AsyncCallback callback, object state);


[31769] [C++] public: IAsyncResult* BeginWrite(unsigned char buffer_gc[ ], int offset, int size, AsyncCallback* callback, Object* state);


[31770] [VB] Overrides Public Function BeginWrite(ByVal buffer( ) As Byte, ByVal offset As Integer, ByVal size As Integer, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[31771] [JScript] public override function BeginWrite(buffer: Byte[ ], offset: int, size: int, callback: AsyncCallback, state: Object): IAsyncResult;


[31772] Description


[31773] Begins an asynchronous write to a stream.


[31774] Return Value: An System.IAsyncResult representing the asynchronous call.


[31775] The System.Net.Sockets.NetworkStream.BeginWrite(System.Byte[ ],System.Int32, System.Int32,System.AsyncCallback,System.Object) method begins to send data asynchronously to the network stream. The method that implements the System.AsyncCallback delegate uses the System.Net.Sockets.NetworkStream.EndRead(System.IAsyncResult) method to complete sending the data. The location in memory that holds the data to send. The location in buffer to begin sending the data. The size of buffer. The delegate to call when the asynchronous call is complete. An object containing additional information supplied by the client.


[31776] Close


[31777] [C#] public override void Close( );


[31778] [C++] public: void Close( );


[31779] [VB] Overrides Public Sub Close( )


[31780] [JScript] public override function Close( );


[31781] Description


[31782] Closes the stream and optionally closes the underlying socket.


[31783] The System.Net.Sockets.NetworkStream.Close method frees resources used by the System.Net.Sockets.NetworkStream instance and, if the System.Net.Sockets.NetworkStream owns the underlying socket, closes the underlying socket.


[31784] Dispose


[31785] [C#] protected virtual void Dispose(bool disposing);


[31786] [C++] protected: virtual void Dispose(bool disposing);


[31787] [VB] Overridable Protected Sub Dispose(ByVal disposing As Boolean)


[31788] [JScript] protected function Dispose(disposing: Boolean);


[31789] Description


[31790] Cleans up a network stream. true if this method was called by another method such as System.Net.Sockets.NetworkStream.Close or System.Net.Sockets.NetworkStream.Dispose(System.Boolean); false if this method was called by the finalizer.


[31791] EndRead


[31792] [C#] public override int EndRead(IAsyncResult asyncResult);


[31793] [C++] public: int EndRead(IAsyncResult* asyncResult);


[31794] [VB] Overrides Public Function EndRead(ByVal asyncResult As IAsyncResult) As Integer


[31795] [JScript] public override function EndRead(asyncResult: IAsyncResult): int;


[31796] Description


[31797] Handles the end of an asynchronous read.


[31798] Return Value: The number of bytes read from the stream.


[31799] The System.Net.Sockets.NetworkStream.EndRead(System.IAsyncResult) method completes an asynchronous read of the network stream started with the System.Net.Sockets.NetworkStream.BeginRead(System.Byte[ ],System.Int32,S ystem.Int32,System.AsyncCallback,System.Object) method. An System.IAsyncResult representing an asynchronous call.


[31800] EndWrite


[31801] [C#] public override void EndWrite(IAsyncResult asyncResult);


[31802] [C++] public: void EndWrite(IAsyncResult* asyncResult);


[31803] [VB] Overrides Public Sub EndWrite(ByVal asyncResult As IAsyncResult)


[31804] [JScript] public override function EndWrite(asyncResult: IAsyncResult);


[31805] Description


[31806] Handles the end of an asynchronous write.


[31807] The System.Net.Sockets.NetworkStream.EndWrite(System.IAsyncResult) method completes an asynchronous write to a network stream started with the System.Net.Sockets.NetworkStream.BeginWrite(System.Byte[ ],System.Int32, System.Int32,System.AsyncCallback,System.Object) method. The System.IAsyncResult representing the asynchronous call.


[31808] Finalize


[31809] [C#] NetworkStream( );


[31810] [C++] NetworkStream( );


[31811] [VB] Overrides Protected Sub Finalize( )


[31812] [JScript] protected override function Finalize( );


[31813] Description


[31814] Frees resources used by the System.Net.Sockets.NetworkStream.


[31815] The System.Net.Sockets.NetworkStream finalizer calls the System.Net.Sockets.NetworkStream.Close method to close the stream.


[31816] Flush


[31817] [C#] public override void Flush( );


[31818] [C++] public: void Flush( );


[31819] [VB] Overrides Public Sub Flush( )


[31820] [JScript] public override function Flush( );


[31821] Description


[31822] Flushes data from the stream. This method is reserved for future use.


[31823] The System.Net.Sockets.NetworkStream.Flush method implements the System.IO.Stream.Flush method but, because System.Net.Sockets.NetworkStream is not buffered, has no effect on network streams. Calling the System.Net.Sockets.NetworkStream.Flush method will not throw an exception.


[31824] Read


[31825] [C#] public override int Read(in byte[ ] buffer, int offset, int size);


[31826] [C++] public: int Read(_in unsigned char* buffer_gc[ ], int offset, int size);


[31827] [VB] Overrides Public Function Read(ByVal buffer( ) As Byte, ByVal offset As Integer, ByVal size As Integer) As Integer


[31828] [JScript] public override function Read(in buffer: Byte[ ], offset: int, size: int): int;


[31829] Description


[31830] Reads data from the stream.


[31831] Return Value: The number of bytes read from the stream.


[31832] The System.Net.Sockets.NetworkStream.Read(System.Byte[ ],System.Int32,System .Int32) method reads data from the network stream into a data buffer. The location in memory to store data read from the stream. The location in the buffer to begin storing the data to. The number of bytes to read from the stream.


[31833] Seek


[31834] [C#] public override long Seek(long offset, SeekOrigin origin);


[31835] [C++] public: _int64 Seek(_int64 offset, SeekOrigin origin);


[31836] [VB] Overrides Public Function Seek(ByVal offset As Long, ByVal origin As SeekOrigin) As Long


[31837] [JScript] public override function Seek(offset: long, origin: SeekOrigin): long;


[31838] Description


[31839] Sets the current position of the stream to the given value. This method always throws a System.NotSupportedException. This parameter is not used. This parameter is not used.


[31840] SetLength


[31841] [C#] public override void SetLength(long value);


[31842] [C++] public: void SetLength_int64 value);


[31843] [VB] Overrides Public Sub SetLength(ByVal value As Long)


[31844] [JScript] public override function SetLength(value: long);


[31845] Description


[31846] Sets the length of the stream. This method always throws a System.NotSupportedException. This parameter is not used.


[31847] IDisposable.Dispose


[31848] [C#] void IDisposable.Dispose( );


[31849] [C++] void IDisposable::Dispose( );


[31850] [VB] Sub Dispose( ) Implements IDisposable.Dispose


[31851] [JScript] function IDisposable.Dispose( );


[31852] Write


[31853] [C#] public override void Write(byte[ ] buffer, int offset, int size);


[31854] [C++] public: void Write(unsigned char buffer_gc[ ], int offset, int size);


[31855] [VB] Overrides Public Sub Write(ByVal buffer As Byte, ByVal offset As Integer, ByVal size As Integer)


[31856] [JScript] public override function Write(buffer: Byte[ ], offset: int, size: int);


[31857] Description


[31858] Writes data to the stream.


[31859] Return Value: The number of bytes written to the stream.


[31860] The System.Net.Sockets.NetworkStream.Write(System.Byte[ ],System.Int32,Syste m.Int32) method sends the contents of a data buffer to the network. The data to write to the stream. The location in the buffer to start writing data from. The number of bytes to write to the stream.


[31861] ProtocolFamily enumeration (System.Net.Sockets)


[31862] WriteByte


[31863] Description


[31864] Specifies the type of protocol that an instance of the System.Net.Sockets.Socket class can use.


[31865] The System.Net.Sockets.ProtocolFamily enumeration specifies the protocol scheme used by the System.Net.Sockets.Socket class to resolve an address. For example, System.Net.Sockets.ProtocolFamily.InterNetwork indicates that the IP version 4 protocol is expected when a System.Net.Sockets.Socket connects to an endpoint.


[31866] WriteByte


[31867] [C#] public const ProtocolFamily AppleTalk;


[31868] [C++] public: const ProtocolFamily AppleTalk;


[31869] [VB] Public Const AppleTalk As ProtocolFamily


[31870] [JScript] public var AppleTalk: ProtocolFamily;


[31871] Description


[31872] AppleTalk protocol.


[31873] WriteByte


[31874] [C#] public const ProtocolFamily Atm;


[31875] [C++] public: const ProtocolFamily Atm;


[31876] [VB] Public Const Atm As ProtocolFamily


[31877] [JScript] public var Atm: ProtocolFamily;


[31878] Description


[31879] Native ATM services protocol.


[31880] WriteByte


[31881] [C#] public const ProtocolFamily Banyan;


[31882] [C++] public: const ProtocolFamily Banyan;


[31883] [VB] Public Const Banyan As ProtocolFamily


[31884] [JScript] public var Banyan: ProtocolFamily;


[31885] Description Banyan protocol.


[31886] WriteByte


[31887] [C#] public const ProtocolFamily Ccitt;


[31888] [C++] public: const ProtocolFamily Ccitt;


[31889] [VB] Public Const Ccitt As ProtocolFamily


[31890] [JScript] public var Ccitt: ProtocolFamily;


[31891] Description


[31892] CCITT protocol, such as X.25.


[31893] WriteByte


[31894] [C#] public const ProtocolFamily Chaos;


[31895] [C++] public: const ProtocolFamily Chaos;


[31896] [VB] Public Const Chaos As ProtocolFamily


[31897] [JScript] public var Chaos: ProtocolFamily;


[31898] Description


[31899] MIT CHAOS protocol.


[31900] WriteByte


[31901] [C#] public const ProtocolFamily Cluster;


[31902] [C++] public: const ProtocolFamily Cluster;


[31903] [VB] Public Const Cluster As ProtocolFamily


[31904] [JScript] public var Cluster: ProtocolFamily;


[31905] Description


[31906] Microsoft Cluster products protocol.


[31907] WriteByte


[31908] [C#] public const ProtocolFamily DataKit;


[31909] [C++] public: const ProtocolFamily DataKit;


[31910] [VB] Public Const DataKit As ProtocolFamily


[31911] [JScript] public var DataKit: ProtocolFamily;


[31912] Description


[31913] DataKit protocol.


[31914] WriteByte


[31915] [C#] public const ProtocolFamily DataLink;


[31916] [C++] public: const ProtocolFamily DataLink;


[31917] [VB] Public Const DataLink As ProtocolFamily


[31918] [JScript] public var DataLink: ProtocolFamily;


[31919] Description


[31920] Direct data link protocol.


[31921] WriteByte


[31922] [C#] public const ProtocolFamily DecNet;


[31923] [C++] public: const ProtocolFamily DeeNet;


[31924] [VB] Public Const DeeNet As ProtocolFamily


[31925] [JScript] public var DecNet: ProtocolFamily;


[31926] Description


[31927] DECNet protocol.


[31928] WriteByte


[31929] [C#] public const ProtocolFamily Ecma;


[31930] [C++] public: const ProtocolFamily Eema;


[31931] [VB] Public Const Ecma As ProtocolFamily


[31932] [JScript] public var Ecma: ProtocolFamily;


[31933] Description


[31934] European Computer Manufactures Association (ECMA) protocol.


[31935] WriteByte


[31936] [C#] public const ProtocolFamily FireFox;


[31937] [C++] public: const ProtocolFamily FireFox;


[31938] [VB] Public Const FireFox As ProtocolFamily


[31939] [JScript] public var FireFox: ProtocolFamily;


[31940] Description


[31941] FireFox protocol.


[31942] WriteByte


[31943] [C#] public const ProtocolFamily HyperChannel;


[31944] [C++] public: const ProtocolFamily HyperChannel;


[31945] [VB] Public Const HyperChannel As ProtocolFamily


[31946] [JScript] public var HyperChannel: ProtocolFamily;


[31947] Description


[31948] NSC HyperChannel protocol.


[31949] WriteByte


[31950] [C#] public const ProtocolFamily Ieeel2844;


[31951] [C++] public: const ProtocolFamily leee12844;


[31952] [VB] Public Const Ieeel2844 As ProtocolFamily


[31953] [JScript] public var Ieeel2844: ProtocolFamily;


[31954] Description


[31955] IEEE 1284.4 workgroup protocol.


[31956] WriteByte


[31957] [C#] public const ProtocolFamily ImpLink;


[31958] [C++] public: const ProtocolFamily ImpLink;


[31959] [VB] Public Const ImpLink As ProtocolFamily


[31960] [JScript] public var ImpLink: ProtocolFamily;


[31961] Description


[31962] ARPANET IMP protocol.


[31963] WriteByte


[31964] [C#] public const ProtocolFamily InterNetwork;


[31965] [C++] public: const ProtocolFamily InterNetwork;


[31966] [VB] Public Const InterNetwork As ProtocolFamily


[31967] [JScript] public var InterNetwork: ProtocolFamily;


[31968] Description


[31969] IP version 4 protocol.


[31970] WriteByte


[31971] [C#] public const ProtocolFamily InterNetworkV6;


[31972] [C++] public: const ProtocolFamily InterNetworkV6;


[31973] [VB] Public Const InterNetworkV6 As ProtocolFamily


[31974] [JScript] public var InterNetworkV6: ProtocolFamily;


[31975] Description


[31976] IP version 6 protocol.


[31977] WriteByte


[31978]


[31979] [C#] public const ProtocolFamily Ipx;


[31980] [C++] public: const ProtocolFamily Ipx;


[31981] [VB] Public Const Ipx As ProtocolFamily


[31982] [JScript] public var Ipx: ProtocolFamily;


[31983] Description


[31984] IPX or SPX protocol.


[31985] WriteByte


[31986] [C#] public const ProtocolFamily Irda;


[31987] [C++] public: const ProtocolFamily Irda;


[31988] [VB] Public Const Irda As ProtocolFamily


[31989] [JScript] public var Irda: ProtocolFamily;


[31990] Description


[31991] IrDA protocol.


[31992] WriteByte


[31993] [C#] public const ProtocolFamily Iso;


[31994] [C++] public: const ProtocolFamily Iso;


[31995] [VB] Public Const Iso As ProtocolFamily


[31996] [JScript] public var Iso: ProtocolFamily;


[31997] Description


[31998] ISO protocol.


[31999] WriteByte


[32000] [C#] public const ProtocolFamily Lat;


[32001] [C++] public: const ProtocolFamily Lat;


[32002] [VB] Public Const Lat As ProtocolFamily


[32003] [JScript] public var Lat: ProtocolFamily;


[32004] Description


[32005] LAT protocol.


[32006] WriteByte


[32007] [C#] public const ProtocolFamily Max;


[32008] [C++] public: const ProtocolFamily Max;


[32009] [VB] Public Const Max As ProtocolFamily


[32010] [JScript] public var Max: ProtocolFamily;


[32011] Description


[32012] MAX protocol.


[32013] WriteByte


[32014] [C#] public const ProtocolFamily NetBios;


[32015] [C++] public: const ProtocolFamily NetBios;


[32016] [VB] Public Const NetBios As ProtocolFamily


[32017] [JScript] public var NetBios:ProtocolFamily;


[32018] Description


[32019] NetBios protocol.


[32020] WriteByte


[32021] [C#] public const ProtocolFamily NetworkDesigners;


[32022] [C++] public: const ProtocolFamily NetworkDesigners;


[32023] [VB] Public Const NetworkDesigners As ProtocolFamily


[32024] [JScript] public var NetworkDesigners: ProtocolFamily;


[32025] Description


[32026] Network Designers OSI gateway enabled protocol.


[32027] WriteByte


[32028] [C#] public const ProtocolFamily NS;


[32029] [C++] public: const ProtocolFamily NS;


[32030] [VB] Public Const NS As ProtocolFamily


[32031] [JScript] public var NS: ProtocolFamily;


[32032] Description


[32033] Xerox NS protocol.


[32034] WriteByte


[32035] [C#] public const ProtocolFamily Osi;


[32036] [C++] public: const ProtocolFamily Osi;


[32037] [VB] Public Const Osi As ProtocolFamily


[32038] [JScript] public var Osi: ProtocolFamily;


[32039] Description


[32040] OSI protocol.


[32041] WriteByte


[32042] [C++] public const ProtocolFamily Pup;


[32043] [C++] public: const ProtocolFamily Pup;


[32044] [VB] Public Const Pup As ProtocolFamily


[32045] [JScript] public var Pup: ProtocolFamily;


[32046] Description


[32047] PUP protocol.


[32048] WriteByte


[32049] [C#] public const ProtocolFamily Sna;


[32050] [C++] public: const ProtocolFamily Sna;


[32051] [VB] Public Const Sna As ProtocolFamily


[32052] [JScript] public var Sna: ProtocolFamily;


[32053] Description


[32054] IBM SNA protocol.


[32055] WriteByte


[32056] [C#] public const ProtocolFamily Unix;


[32057] [C++] public: const ProtocolFamily Unix;


[32058] [VB] Public Const Unix As ProtocolFamily


[32059] [JScript] public var Unix: ProtocolFamily;


[32060] Description


[32061] Unix local to host protocol.


[32062] WriteByte


[32063] [C#] public const ProtocolFamily Unknown;


[32064] [C++] public: const ProtocolFamily Unknown;


[32065] [VB] Public Const Unknown As ProtocolFamily


[32066] [JScript] public var Unknown: ProtocolFamily;


[32067] Description


[32068] Unknown protocol.


[32069] WriteByte


[32070] [C#] public const ProtocolFamily Unspecified;


[32071] [C++] public: const ProtocolFamily Unspecified;


[32072] [VB] Public Const Unspecified As ProtocolFamily


[32073] [JScript] public var Unspecified: ProtocolFamily;


[32074] Description


[32075] Unspecified protocol.


[32076] WriteByte


[32077] [C#] public const ProtocolFamily VoiceView;


[32078] [C++] public: const ProtocolFamily VoiceView;


[32079] [VB] Public Const VoiceView As ProtocolFamily


[32080] [JScript] public var VoiceView: ProtocolFamily;


[32081] Description


[32082] VoiceView protocol.


[32083] ProtocolType enumeration (System.Net.Sockets)


[32084] ToString


[32085] Description


[32086] Specifies the protocols that the System.Net.Sockets.Socket class supports.


[32087] The System.Net.Sockets.ProtocolType enumeration is used by the System.Net.Sockets.Socket class to indicate to the Windows Socket API the requested protocol for the socket. Low-level driver software for the requested protocol must be present on the computer for the System.Net.Sockets.Socket to be created.


[32088] ToString


[32089] [C#] public const ProtocolType Ggp;


[32090] [C++] public: const ProtocolType Ggp;


[32091] [VB] Public Const Ggp As ProtocolType


[32092] [JScript] public var Ggp: ProtocolType;


[32093] Description


[32094] Gateway To Gateway Protocol.


[32095] ToString


[32096] [C#] public const ProtocolType Icmp;


[32097] [C++] public: const ProtocolType Icmp;


[32098] [VB] Public Const Icmp As ProtocolType


[32099] [JScript] public var Icmp: ProtocolType;


[32100] Description


[32101] Internet Control Message Protocol.


[32102] ToString


[32103] [C#+public const ProtocolType Idp;


[32104] [C++] public: const ProtocolType Idp;


[32105] [VB] Public Const Idp As ProtocolType


[32106] [JScript] public var Idp: ProtocolType;


[32107] Description


[32108] IDP Protocol.


[32109] ToString


[32110] [C#] public const ProtocolType Ignip;


[32111] [C++] public: const ProtocolType Igmp;


[32112] [VB] Public Const Igmp As ProtocolType


[32113] [JScript] public var Igmp: ProtocolType;


[32114] Description


[32115] Internet Group Management Protocol.


[32116] ToString


[32117] [C#] public const ProtocolType IP;


[32118] [C++] public: const ProtocolType IP;


[32119] [VB] Public Const IP As ProtocolType


[32120] [JScript] public var IP: ProtocolType;


[32121] Description


[32122] Internet Protocol.


[32123] ToString


[32124] [C#] public const ProtocolType Ipx;


[32125] [C++] public: const ProtocolType Ipx;


[32126] [VB] Public Const Ipx As ProtocolType


[32127] [JScript] public var Ipx: ProtocolType;


[32128] Description


[32129] IPX Protocol.


[32130] ToString


[32131] [C+] public const ProtocolType ND;


[32132] [C++] public: const ProtocolType ND;


[32133] [VB] Public Const ND As ProtocolType


[32134] [JScript] public var ND: ProtocolType;


[32135] Description


[32136] Net Disk Protocol (unofficial).


[32137] ToString


[32138] [C#] public const ProtocolType Pup;


[32139] [C++] public: const ProtocolType Pup;


[32140] [VB] Public Const Pup As ProtocolType


[32141] [JScript] public var Pup: ProtocolType;


[32142] Description


[32143] PUP Protocol.


[32144] ToString


[32145] [C#] public const ProtocolType Raw;


[32146] [C++] public: const ProtocolType Raw;


[32147] [VB] Public Const Raw As ProtocolType


[32148] [JScript] public var Raw: ProtocolType;


[32149] Description


[32150] Raw UP packet protocol.


[32151] ToString


[32152] [C#] public const ProtocolType Spx;


[32153] [C++] public: const ProtocolType Spx;


[32154] [VB] Public Const Spx As ProtocolType


[32155] [JScript] public var Spx: ProtocolType;


[32156] Description


[32157] SPX Protocol.


[32158] ToString


[32159] [C#] public const ProtocolType SpxII;


[32160] [C++] public: const ProtocolType SpxII;


[32161] [VB] Public Const SpxII As ProtocolType


[32162] [JScript] public var SpxII: ProtocolType;


[32163] Description


[32164] SPX Version 2 Protocol.


[32165] ToString


[32166] [C#] public const ProtocolType Tcp;


[32167] [C++] public: const ProtocolType Tcp;


[32168] [VB] Public Const Tcp As ProtocolType


[32169] [JScript] public var Tcp: ProtocolType;


[32170] Description


[32171] Transmission Control Protocol.


[32172] ToString


[32173] [C#] public const ProtocolType Udp;


[32174] [C++] public: const ProtocolType Udp;


[32175] [VB] Public Const Udp As ProtocolType


[32176] [JScript] public var Udp: ProtocolType;


[32177] Description


[32178] User Datagram Protocol.


[32179] ToString


[32180] [C#] public const ProtocolType Unknown;


[32181] [C++] public: const ProtocolType Unknown;


[32182] [VB] Public Const Unknown As ProtocolType


[32183] [JScript] public var Unknown: ProtocolType;


[32184] Description


[32185] Unknown protocol.


[32186] ToString


[32187] [C#] public const ProtocolType Unspecified;


[32188] [C++] public: const ProtocolType Unspecified;


[32189] [VB] Public Const Unspecified As ProtocolType


[32190] [JScript] public var Unspecified: ProtocolType;


[32191] Description


[32192] Unspecified protocol.


[32193] SelectMode enumeration (System.Net.Sockets)


[32194] ToString


[32195] Description


[32196] Defines the polling modes for the System.Net.Sockets.Socket.Poll(System.Int32,System.Net.Sockets.SelectMode ) method.


[32197] The System.Net.Sockets.SelectMode enumeration defines the polling modes that can be passed to the System.Net.Sockets.Socket.Poll(System.Int32,System.Net.Sockets.SelectMode ) method.


[32198] ToString


[32199] [C#] public const SelectMode SelectError;


[32200] [C++] public: const SelectMode SelectError;


[32201] [VB] Public Const SelectError As SelectMode


[32202] [JScript] public var SelectError: SelectMode;


[32203] Description


[32204] Error status mode.


[32205] ToString


[32206] [C#] public const SelectMode SelectRead;


[32207] [C++] public: const SelectMode SelectRead;


[32208] [VB] Public Const SelectRead As SelectMode


[32209] [JScript] public var SelectRead: SelectMode;


[32210] Description


[32211] Read status mode.


[32212] ToString


[32213] [C#] public const SelectMode SelectWrite;


[32214] [C++] public: const SelectMode SelectWrite;


[32215] [VB] Public Const SelectWrite As SelectMode


[32216] [JScript] public var SelectWrite: SelectMode;


[32217] Description


[32218] Write status mode.


[32219] Socket class (System.Net.Sockets)


[32220] ToString


[32221] Description


[32222] Implements the Berkeley sockets interface.


[32223] The System.Net.Sockets.Socket class creates a managed version of an Internet transport service. Once the socket is created, it is bound to a specific endpoint through the System.Net.Sockets.Socket.Bind(System.Net.EndPoint) method, and the connection to that endpoint is established through the System.Net.Sockets.Socket.Connect(System.Net.EndPoint) method.


[32224] Socket


[32225] Example Syntax:


[32226] ToString


[32227] [C#] public Socket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType);


[32228] [C++] public: Socket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType);


[32229] [VB] Public Sub New(ByVal addressFamily As AddressFamily, ByVal socketType As SocketType, ByVal protocolType As ProtocolType)


[32230] [JScript] public function Socket(addressFamily: AddressFamily, socketType: SocketType, protocolType: ProtocolType);


[32231] Description


[32232] Initializes a new instance of the System.Net.Sockets.Socket class.


[32233] The addressFamily parameter specifies the addressing scheme that the socket uses, the socketType parameter specifies the type of the socket, and the protocolType parameter specifies the protocol used by the socket. The three parameters are not independent. Some address families restrict which protocols can be used with them, and often the socket type is implicit in the protocol. If the combination of address family, socket type, and protocol type results in an invalid socket, a System.Net.Sockets.SocketException is thrown. One of the System.Net.Sockets.AddressFamily values. One of the System.Net.Sockets.SocketType values. One of the System.Net.Sockets.ProtocolType values.


[32234] AddressFamily


[32235] ToString


[32236] [C#] public AddressFamily AddressFamily {get;}


[32237] [C++] public: _property AddressFamily get_AddressFamily( );


[32238] [VB] Public ReadOnly Property AddressFamily As AddressFamily


[32239] [JScript] public function get AddressFamily( ): AddressFamily;


[32240] Description


[32241] Gets the address family of the socket.


[32242] Available


[32243] ToString


[32244] [C#] public int Available {get;}


[32245] [C++] public: _property int get_Available( );


[32246] [VB] Public ReadOnly Property Available As Integer


[32247] [JScript] public function get Available( ): int;


[32248] Description


[32249] Gets the amount of data that has been received from the network and is available to be read.


[32250] Blocking


[32251] ToString


[32252] [C#] public bool Blocking {get; set;}


[32253] [C++] public: _property bool get_Blocking( );public: _property void set_Blocking(bool);


[32254] [VB] Public Property Blocking As Boolean


[32255] [JScript] public function get Blocking( ): Boolean;public function set Blocking(Boolean);


[32256] Description


[32257] Gets or sets a value that indicates whether the socket is in blocking mode.


[32258] The System.Net.Sockets.Socket.Blocking property indicates whether a System.Net.Sockets.Socket is in blocking mode.


[32259] Connected


[32260] ToString


[32261] [C#] public bool Connected {get;}


[32262] [C++] public: _property bool get_Connected( );


[32263] [VB] Public ReadOnly Property Connected As Boolean


[32264] [JScript] public function get Connected( ): Boolean;


[32265] Description


[32266] Gets a value indicating whether a socket is connected to a remote resource.


[32267] System.Net.Sockets.Socket.Connected returns true if the socket has either connected to a remote resource or accepted a connection from a remote resource.


[32268] Handle


[32269] ToString


[32270] [C#] public IntPtr Handle {get;}


[32271] [C++] public: _property IntPtr get_Handle( );


[32272] [VB] Public ReadOnly Property Handle As IntPtr


[32273] [JScript] public function get Handle( ): IntPtr;


[32274] Description


[32275] Gets the operating system handle for the socket.


[32276] LocalEndPoint


[32277] ToString


[32278] [C#] public EndPoint LocalEndPoint {get;}


[32279] [C++] public: _property EndPoint* get_LocalEndPoint( );


[32280] [VB] Public ReadOnly Property LocalEndPoint As EndPoint


[32281] [JScript] public function get LocalEndPoint( ): EndPoint;


[32282] Description


[32283] Gets the local endpoint.


[32284] The System.Net.Sockets.Socket.LocalEndPoint property contains the network connection information associated with the local network device.


[32285] ProtocolType


[32286] ToString


[32287] [C#] public ProtocolType ProtocolType {get;}


[32288] [C++] public: _property ProtocolType get_ProtocolType( );


[32289] [VB] Public ReadOnly Property ProtocolType As ProtocolType


[32290] [JScript] public function get ProtocolType( ): ProtocolType;


[32291] Description


[32292] Gets the protocol type of the socket.


[32293] RemoteEndPoint


[32294] ToString


[32295] [C#] public EndPoint RemoteEndPoint {get;}


[32296] [C++] public: _property EndPoint* get_RemoteEndPoint( );


[32297] [VB] Public ReadOnly Property RemoteEndPoint As EndPoint


[32298] [JScript] public function get RemoteEndPoint( ): EndPoint;


[32299] Description


[32300] Gets the remote endpoint.


[32301] The System.Net.Sockets.Socket.RemoteEndPoint property gets the network connection information associated with the remote network device.


[32302] SocketType


[32303] ToString


[32304] [C#] public SocketType SocketType {get;}


[32305] [C++] public: _property SocketType_getSocketType( );


[32306] [VB] Public ReadOnly Property SocketType As SocketType


[32307] [JScript] public function get SocketType( ): SocketType;


[32308] Description


[32309] Gets the type of the socket.


[32310] Accept


[32311] [C#] public Socket Accept( );


[32312] [C++] public: Socket* Accepto;


[32313] [VB] Public Function Accept( ) As Socket


[32314] [JScript] public function Accept( ): Socket;


[32315] Description


[32316] Creates a new System.Net.Sockets.Socket to handle an incoming connection request.


[32317] Return Value: A System.Net.Sockets.Socket instance to handle an incoming connection request.


[32318] The System.Net.Sockets.Socket.Accept method extracts the first connection request from the queue of pending requests and creates a new System.Net.Sockets.Socket instance to handle it. The System.Net.Sockets.Socket returned by System.Net.Sockets.Socket.Accept is a duplicate of the current System.Net.Sockets.Socket.


[32319] BeginAccept


[32320] [C#] public IAsyncResult BeginAccept(AsyncCallback callback, object state);


[32321] [C++] public: IAsyncResult* BeginAccept(AsyncCallback* callback, Obj ect* state);


[32322] [VB] Public Function BeginAccept(ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[32323] [JScript] public function BeginAccept(callback: AsyncCallback, state: Object): IAsyncResult;


[32324] Description


[32325] Begins an asynchronous request to create a new socket to accept an incoming connection request.


[32326] Return Value: An System.IAsyncResult that references the asynchronous socket creation.


[32327] The System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Objec t) method starts an asynchronous request to create a socket to handle an incoming connection request. The callback method that implements the System.AsyncCallback delegate uses the System.Net.Sockets.Socket.EndAccept(System.IAsyncResult) method to return the socket. The System.AsyncCallbackdelegate. An object containing state information for this request.


[32328] BeginConnect


[32329] [C#] public IAsyncResult BeginConnect(EndPoint remoteEP, AsyncCallback callback, object state);


[32330] [C++] public: IAsyncResult* BeginConnect(EndPoint* remoteEP, AsyncCallback* callback, Object* state);


[32331] [VB] Public Function BeginConnect(ByVal remoteEP As EndPoint, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[32332] [JScript] public function BeginConnect(remoteEP: EndPoint, callback: AsyncCallback, state: Object): IAsyncResult;


[32333] Description


[32334] Begins an asynchronous request for a connection to a network device.


[32335] Return Value: An System.IAsyncResult that references the asynchronous connection.


[32336] The System.Net.Sockets.Socket.BeginConnect(System.Net.EndPointSystem.Async Callback,System.Object) method starts an asynchronous request for a connection to a remote device. The callback method that implements the System.AsyncCallback delegate uses the System.Net.Sockets.Socket.EndConnect(System.IAsyncResult) method to return the socket. An System.Net.EndPointinstance that represents the remote device. The System.AsyncCallback delegate. An object that contains state information for this request.


[32337] BeginReceive


[32338] [C#] public IAsyncResult BeginReceive(byte[ ] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state);


[32339] [C++] public: IAsyncResult* BeginReceive(unsigned char buffer_gc[ ], int offset, int size, SocketFlags socketFlags, AsyncCallback* callback, Object* state);


[32340] [VB] Public Function BeginReceive(ByVal buffer( ) As Byte, ByVal offset As Integer, ByVal size As Integer, ByVal socketFlags As SocketFlags, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[32341] [JScript] public function BeginReceive(buffer: Byte[ ], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback, state: Object): IAsyncResult;


[32342] Description


[32343] Begins to asynchronously receive data from a connected socket.


[32344] Return Value: An System.IAsyncResult that references the asynchronous read.


[32345] The System.Net.Sockets.Socket.BeginReceive(System.Byte[ ],System.Int32,System. Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object) method starts asynchronously reading data from a socket. The callback method that implements the System.AsyncCallback delegate uses the System.Net.Sockets.Socket.EndReceive(System.IAsyncResult) method to return the data read from the socket. The storage location for the received data. The zero-based position in the buffer at which to store the received data. The number of bytes to receive. A bitwise combination of the System.Net.Sockets.SocketFlags values. The System.AsyncCallback delegate. An object containing state information for this request.


[32346] BeginReceiveFrom


[32347] [C#] public IAsyncResult BeginReceiveFrom(byte[ ] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback callback, object state);


[32348] [C++] public: IAsyncResult* BeginReceiveFrom(unsigned char buffer _gc[ ], int offset, int size, SocketFlags socketFlags, EndPoint** remoteEP, AsyncCallback* callback, Object* state);


[32349] [VB] Public Function BeginReceiveFrom(ByVal buffer( ) As Byte, ByVal offset As Integer, ByVal size As Integer, ByVal socketFlags As SocketFlags, ByRef remoteEP As EndPoint, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[32350] [JScript] public function BeginReceiveFrom(buffer: Byte[ ], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: Object): IAsyncResult;


[32351] Description


[32352] Begins to asynchronously receive data from a specified network device.


[32353] Return Value: An System.IAsyncResult that references the asynchronous read.


[32354] The System.Net.Sockets.Socket.BeginReceiveFrom(System.Byte[ ],System.Int32,Sy stem.Int32,System.Net.Sockets.SocketFlags,System.Net.EndPoint@,System.A syncCallback,System.Object) method starts asynchronously reading data from a socket. The callback method that implements the System.AsyncCallback delegate uses the System.Net.Sockets.Socket.EndReceive(System.IAsyncResult) method to return the data read from the socket. The storage location for the received data. The zero-based position in the buffer at which to store the data. The number of bytes to receive. A bitwise combination of the System.Net.Sockets.SocketFlags values. An System.Net.EndPoint that represents the source of the data. The System.AsyncCallback delegate. An object containing state information for this request.


[32355] BeginSend


[32356] [C#] public IAsyncResult BeginSend(byte[ ] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state);


[32357] [C++] public: IAsyncResult* BeginSend(unsigned char buffer_gc[ ], int offset, int size, SocketFlags socketFlags, AsyncCallback* callback, Object* state);


[32358] [VB] Public Function BeginSend(ByVal buffers As Byte, ByVal offset As Integer, ByVal size As Integer, ByVal socketFlags As SocketFlags, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[32359] [JScript] public function BeginSend(buffer: Byte[ ], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback, state: Object): IAsyncResult;


[32360] Description


[32361] Sends data asynchronously to a connected socket.


[32362] Return Value: An System.IAsyncResult that references the asynchronous send.


[32363] The System.Net.Sockets.Socket.BeginSend(System.Byte[ ],System.Int32,System.Int 32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object) method starts asynchronously sending data through a socket. The callback method that implements the System.AsyncCallback delegate uses the System.Net.Sockets.Socket.EndSend(System.IAsyncResult) method to complete sending data. The data to send. The zero-based position in buffer at which to begin sending data. The number of bytes to send. A bitwise combination of the System.Net.Sockets.SocketFlags values. The System.AsyncCallback delegate. An object containing state information for this request.


[32364] BeginSendTo


[32365] [C#] public IAsyncResult BeginSendTo(byte[ ] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, object state);


[32366] [C++] public: IAsyncResult* BeginSendTo(unsigned char buffer _gc[ ], int offset, int size, SocketFlags socketFlags, EndPoint* remoteEP, AsyncCallback* callback, Object* state);


[32367] [VB] Public Function BeginSendTo(ByVal buffer As Byte, ByVal offset As Integer, ByVal size As Integer, ByVal socketFlags As SocketFlags, ByVal remoteEP As EndPoint, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult


[32368] [JScript] public function BeginSendTo(buffer: Byte[ ], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: Object): IAsyncResult;


[32369] Description


[32370] Sends data asynchronously to a specific network device.


[32371] Return Value: An System.IAsyncResult that references the asynchronous send.


[32372] The System.Net.Sockets.Socket.BeginSendTo(System.Byte [ ],System.Int32,System. Int32,System.Net.Sockets.SocketFlags,System.Net.EndPoint,System.AsyncCal lback,System.Object) method starts asynchronously sending data through a socket. The callback method that implements the System.AsyncCallback delegate uses the System.Net.Sockets.Socket.EndSendTo(System.IAsyncResult) method to complete sending data. The data to send. The zero-based position in buffer at which to begin sending data. The number of bytes to send. A bitwise combination of the System.Net.Sockets.SocketFlags values. An System.Net.EndPoint that represents the remote device. The System.AsyncCallback delegate. An object containing state information for this request.


[32373] Bind


[32374] [C#] public void Bind(EndPoint localEP);


[32375] [C++] public: void Bind(EndPoint* localEP);


[32376] [VB] Public Sub Bind(ByVal localEP As EndPoint)


[32377] [JScript] public function Bind(localEP: EndPoint);


[32378] Description


[32379] Associates a socket with a local endpoint.


[32380] You must call the System.Net.Sockets.Socket.Bind(System.Net.EndPoint) method before you call the System.Net.Sockets.Socket.Listen(System.Int32) or System.Net.Sockets.Socket.Connect(System.Net.EndPoint) methods. The local System.Net.EndPoint to associate with the socket.


[32381] Close


[32382] [C#] public void Close( );


[32383] [C++] public: void Close( );


[32384] [VB] Public Sub Close( )


[32385] [JScript] public function Close( );


[32386] Description


[32387] Forces a socket connection to close.


[32388] The System.Net.Sockets.Socket.Connected property is set to false when the socket is closed.


[32389] Connect


[32390] [C#] public void Connect(EndPoint remoteEP); [C++] public: void Connect(EndPoint* remoteEP);


[32391] [VB] Public Sub Connect(ByVal remoteEP As EndPoint)


[32392] [JScript] public function Connect(remoteEP: EndPoint);


[32393] Description


[32394] Establishes a connection to a remote device.


[32395] The System.Net.Sockets.Socket.Connect(System.Net.EndPoint) method establishes a network connection between System.Net.Sockets.Socket.LocalEndPoint and the device identified by remoteEP. Once the connection has been made, you can send data to the remote device with the System.Net.Sockets.Socket.Send(System.Byte [ ],System.Int32,System.Net.Sock ets.SocketFlags) method, or receive data from the remote device with the System.Net.Sockets.Socket.Receive(System.Byte [ ],System.Int32,System.Net.Sockets .SocketFlags) method. An System.Net.EndPoint instance that represents the remote device.


[32396] Dispose


[32397] [C#] protected virtual void Dispose(bool disposing);


[32398] [C++] protected: virtual void Dispose(bool disposing);


[32399] [VB] Overridable Protected Sub Dispose(ByVal disposing As Boolean)


[32400] [JScript] protected function Dispose(disposing: Boolean);


[32401] Description


[32402] EndAccept


[32403] [C#] public Socket EndAccept(IAsyncResult asyncResult);


[32404] [C++] public: Socket* EndAccept(IAsyncResult* asyncResult);


[32405] [VB] Public Function EndAccept(ByVal asyncResult As IAsyncResult) As Socket


[32406] [JScript] public function EndAccept(asyncResult: IAsyncResult): Socket;


[32407] Description


[32408] Ends an asynchronous request to create a new socket to accept an incoming connection request.


[32409] Return Value: A System.Net.Sockets.Socket to handle the incoming connection.


[32410] The System.Net.Sockets.Socket.EndAccept(System.IAsyncResult) method completes a request for a connection that was started with the System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Object ) method. The pending request for an incoming socket.


[32411] EndConnect


[32412] [C#] public void EndConnect(IAsyncResult asyncResult);


[32413] [C++] public: void EndConnect(IAsyncResult* asyncResult);


[32414] [VB] Public Sub EndConnect(ByVal asyncResult As IAsyncResult)


[32415] [JScript] public function EndConnect(asyncResult: IAsyncResult);


[32416] Description


[32417] Ends a pending synchronous connection request. The pending asynchronous connection request.


[32418] EndReceive


[32419] [C#] public int EndReceive(IAsyncResult asyncResult);


[32420] [C++] public: int EndReceive(IAsyncResult* asyncResult);


[32421] [VB] Public Function EndReceive(ByVal asyncResult As IAsyncResult) As Integer


[32422] [JScript] public function EndReceive(asyncResult: IAsyncResult): int;


[32423] Description


[32424] Ends a pending asynchronous read.


[32425] Return Value: The number of bytes received. The pending asynchronous read.


[32426] EndReceiveFrom


[32427] [C#] public int EndReceiveFrom(IAsyncResult asyncResult, ref EndPoint endPoint);


[32428] [C++] public: int EndReceiveFrom(IAsyncResult* asyncResult, Endpoint** endPoint);


[32429] [VB] Public Function EndReceiveFrom(ByVal asyncResult As IAsyncResult, ByRef endPoint As EndPoint) As Integer


[32430] [JScript] public function EndReceiveFrom(asyncResult: IAsyncResult, end Point: EndPoint): int;


[32431] Description


[32432] Ends a pending asynchronous read from a specific endpoint.


[32433] Return Value: If successful, the number of bytes received. If unsuccessful, then if the socket was closed with System.Net.Sockets.Socket.Close, returns 0; otherwise, returns an invalid socket error. The pending asynchronous read. The source endpoint.


[32434] EndSend


[32435] [C#] public int EndSend(IAsyncResult asyncResult);


[32436] [C++] public: int EndSend(IAsyncResult* asyncResult);


[32437] [VB] Public Function EndSend(ByVal asyncResult As IAsyncResult) As Integer


[32438] [JScript] public function EndSend(asyncResult: IAsyncResult): int;


[32439] Description


[32440] Ends a pending asynchronous send.


[32441] Return Value: If successful, the number of bytes sent to the socket; otherwise, an invalid socket error is returned. The pending asynchronous send.


[32442] EndSendTo


[32443] [C#] public int EndSendTo(IAsyncResult asyncResult);


[32444] [C++] public: int EndSendTo(IAsyncResult* asyncResult);


[32445] [VB] Public Function EndSendTo(ByVal asyncResult As IAsyncResult) As Integer


[32446] [JScript] public function EndSendTo(asyncResult: IAsyncResult): int;


[32447] Description


[32448] Ends a pending asynchronous send to a specific location.


[32449] Return Value: If successful, the number of bytes sent; otherwise, an invalid socket error is returned. The pending asynchronous send.


[32450] Finalize


[32451] [C#] ˜Socket( );


[32452] [C++] ˜Socket( );


[32453] [VB] Overrides Protected Sub Finalize( )


[32454] [JScript] protected override function Finalize( );


[32455] Description


[32456] Frees resources used by the System.Net.Sockets.Socket class.


[32457] The System.Net.Sockets.Socket class finalizer calls the System.Net.Sockets.Socket.Close method to close the socket and free resources associated with the socket.


[32458] GetHashCode


[32459] [C#] public override int GetHashCode( );


[32460] [C++] public: int GetHashCode( );


[32461] [VB] Overrides Public Function GetHashCode( ) As Integer


[32462] [JScript] public override function GetHashCode( ): int;


[32463] Description


[32464] GetSocketoption


[32465] [C#] public object GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName);


[32466] [C++] public: Object* GetSocketOption(SocketoptionLevel optionLevel, SocketoptionName optionName);


[32467] [VB] Public Function GetSocketoption(ByVal optionLevel As SocketOptionLevel, ByVal optionName As SocketOptionName) As Object


[32468] [JScript] public function GetSocketoption(optionLevel: SocketOptionLevel, optionName: SocketoptionName): Object; Gets the value of a socket option.


[32469] Description


[32470] Gets the value of a specified socket option.


[32471] Return Value: The value of the option. When optionName is set to System.Net.Sockets.SocketoptionName.Linger the return value is an instance of System.Net.Sockets.Lingeroption. When optionName is set to System.Net.Sockets.SocketOptionName.AddMembership or System.Net.Sockets.SocketOptionName.DropMembership, the return value is an instance of System.Net.Sockets.MulticastOption. When optionName is any other value, the return value is an integer. One of the System.Net.Sockets.SocketOptionLevel values. One of the System.Net.Sockets.SocketOptionName values.


[32472] GetSocketOption


[32473] [C#] public void GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, byte[ ] optionvalue);


[32474] [C++] public: void GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, unsigned char optionValue _gc[ ]);


[32475] [VB] Public Sub GetSocketOption(ByVal optionLevel As SocketOptionLevel, ByVal optionName As SocketOptionName, ByVal optionValue( ) As Byte)


[32476] [JScript] public function GetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: Byte[ ]);


[32477] Description


[32478] Gets the specified socket option setting. One of the System.Net.Sockets.SocketOptionLevel values. One of the System.Net.Sockets.SocketOptionName values. The buffer to receive the option setting.


[32479] GetSocketOption


[32480] [C#] public byte[ ] GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int optionLength);


[32481] [C++] public: unsigned char GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int optionLength) _gc[ ];


[32482] [VB] Public Function GetSocketOption(ByVal optionLevel As SocketOptionLevel, ByVal optionName As SocketOptionName, ByVal optionLength As Integer) As Byte( )


[32483] [JScript] public function GetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionLength: int): Byte[ ];


[32484] Description


[32485] Gets the value of the specified socket option and returns an array.


[32486] Return Value: An array of bytes containing the value of the socket option.


[32487] The optionLength parameter sets the maximum size of the returned byte array. If the option value requires fewer bytes, the array will contain only that many bytes. If the option value requires more bytes, a System.Net.Sockets.SocketException will be thrown. One of the System.Net.Sockets.SocketOptionLevel values. One of the System.Net.Sockets.SocketOptionName values. The length, in bytes, of the expected return value.


[32488] IOControl


[32489] [C#] public int IOControl(int ioControlCode, byte[ ] optionInValue, byte[ ] optionOutValue);


[32490] [C++] public: int IOControl(int ioControlCode, unsigned char optionInValue _gc[ ], unsigned char optionOutValue gc[ ]);


[32491] [VB] Public Function IOControl(ByVal ioControlCode As Integer, ByVal optionInValue( ) As Byte, ByVal optionOutValue( ) As Byte) As Integer


[32492] [JScript] public function IOControl(ioControlCode: int, optionInValue: Byte[ ], optionOutValue: Byte[ ]): int;


[32493] Description


[32494] Sets low-level operating modes for the socket.


[32495] Return Value: The number of bytes returned in optionOutValue.


[32496] The System.Net.Sockets.Socket.IOControl(System.Int32,System.Byte[ ]1,System.Byte [ ]) method provides low-level access to the operating system socket underlying the System.Net.Sockets.Socket class instance. For more information about System.Net.Sockets.Socket.IOControl(System.Int32,System.Byte[ ],System.Byte [ ]), see the documentation in MSDN. The control code of the operation to perform. The input data required by the operation. The output data returned by the operation.


[32497] Listen


[32498] [C#] public void Listen(int backlog);


[32499] [C++] public: void Listen(int backlog);


[32500] [VB] Public Sub Listen(ByVal backlog As Integer)


[32501] [JScript] public function Listen(backlog: int);


[32502] Description


[32503] Places a socket in a listening state.


[32504] If System.Net.Sockets.Socket.Listen(System.Int32) is successful, System.Net.Sockets.Socket.Connected is set to true. Maximum length of the queue of pending connections.


[32505] Poll


[32506] [C#] public bool Poll(int microseconds, SelectMode mode);


[32507] [C++] public: bool Poll(int microSeconds, SelectMode mode);


[32508] [VB] Public Function Poll(ByVal microseconds As Integer, ByVal mode As SelectMode) As Boolean


[32509] [JScript] public function Poll(microSeconds: int, mode: SelectMode): Boolean;


[32510] Description


[32511] Determines the status of the socket.


[32512] Return Value: Mode Return Value SelectRead ( System.Net.Sockets.SelectMode ) true if System.Net.Sockets.Socket.Listen(System.Int32) has been called and a connection is pending, System.Net.Sockets.Socket.Accept will succeed -or- true if data is available for reading -or- true, if connection has been closed, reset, or terminated; otherwise, returns false. The time to wait for a response, in microseconds. One of the System.Net.Sockets.SelectMode values.


[32513] Receive


[32514] [C#] public int Receive(byte[ ] buffer);


[32515] [C++] public: int Receive(unsigned char buffer _gc[ ]);


[32516] [VB] Public Function Receive(ByVal buffers As Byte) As Integer


[32517] [JScript] public function Receive(buffer: Byte[ ]): int;


[32518] Description


[32519] Receives data from a connected socket into a specific location of the receive buffer.


[32520] Return Value: The number of bytes received. Storage location for received data.


[32521] Receive


[32522] [C#] public int Receive(byte[ ] buffer, SocketFlags socketFlags);


[32523] [C++] public: int Receive(unsigned char buffer _gc[ ], SocketFlags socketFlags);


[32524] [VB] Public Function Receive(ByVal buffer( ) As Byte, ByVal socketFlags As SocketFlags) As Integer


[32525] [JScript] public function Receive(buffer: Byte[ ], socketFlags: SocketFlags): int;


[32526] Description


[32527] Receives data from a connected socket into a specific location of the receive buffer.


[32528] Return Value: The number of bytes received. Storage location for received data. A bitwise combination of the System.Net.Sockets.SocketFlags values.


[32529] Receive


[32530] [C#] public int Receive(byte[ ] buffer, int size, SocketFlags socketFlags);


[32531] [C++] public: int Receive(unsigned char buffer _gc[ ], int size, SocketFlags socketFlags);


[32532] [VB] Public Function Receive(ByVal buffer( ) As Byte, ByVal size As Integer, ByVal socketFlags As SocketFlags) As Integer


[32533] [JScript] public function Receive(buffer: Byte[ ], size: int, socketFlags SocketFlags): int; Receives data from a connected socket.


[32534] Description


[32535] Receives data from a connected socket into a specific location of the receive buffer.


[32536] Return Value: The number of bytes received. Storage location for received data. The number of bytes to receive. A bitwise combination of the System.Net.Sockets.SocketFlags values.


[32537] Receive


[32538] [C#] public int Receive(byte[ ] buffer, int offset, int size, SocketFlags socketFlags);


[32539] [C++] public: int Receive(unsigned char buffer _gc[ ], int offset, int size, SocketFlags socketFlags);


[32540] [VB] Public Function Receive(ByVal buffer( ) As Byte, ByVal offset As Integer, ByVal size As Integer, ByVal socketFlags As SocketFlags) As Integer


[32541] [JScript] public function Receive(buffer: Byte[ ], offset: int, size: int, socketFlags: SocketFlags): int;


[32542] Description


[32543] Receives data from a connected socket into a specific location of the receive buffer.


[32544] Return Value: The number of bytes received. Storage location for received data. The location in buffer to store the received data. The number of bytes to receive. A bitwise combination of the System.Net.Sockets.SocketFlags values.


[32545] ReceiveFrom


[32546] [C#] public int ReceiveFrom(byte[ ] buffer, ref EndPoint remoteEP);


[32547] [C++] public: int ReceiveFrom(unsigned char buffer _gc[ ], EndPoint** remoteEP);


[32548] [VB] Public Function ReceiveFrom(ByVal buffer( ) As Byte, ByRef remoteEP As EndPoint) As Integer


[32549] [JScript] public function ReceiveFrom(buffer: Byte[ ], remoteEP: EndPoint): int;


[32550] Description


[32551] Receives a datagram into a specific location in the data buffer and stores the endpoint.


[32552] Return Value: The number of bytes received. Storage location for received data. An System.Net.EndPoint, passed by reference, that represents the remote server.


[32553] ReceiveFrom


[32554] [C#] public int ReceiveFrom(byte[ ] buffer, SocketFlags socketFlags, ref EndPoint remoteEP); p0 [C++] public: int ReceiveFrom(unsigned char buffer _gc[ ], SocketFlags socketFlags, EndPoint** remoteEP);


[32555] [VB] Public Function ReceiveFrom(ByVal buffer( ) As Byte, ByVal socketFlags As SocketFlags, ByRef remoteEP As EndPoint) As Integer


[32556] [JScript] public function ReceiveFrom(buffer: Byte[ ], socketFlags: SocketFlags, remoteEP: EndPoint): int;


[32557] Description


[32558] Receives a datagram into a specific location in the data buffer and stores the endpoint.


[32559] Return Value: The number of bytes received. Storage location for received data. A bitwise combination of the System.Net.Sockets.SocketFlags values. An System.Net.EndPoint, passed by reference, that represents the remote server.


[32560] ReceiveFrom


[32561] [C#] public int ReceiveFrom(byte[ ] buffer, int size, SocketFlags socketFlags, ref EndPoint remoteEP);


[32562] [C++] public: int ReceiveFrom(unsigned char buffer _gc[ ], int size, SocketFlags socketFlags, EndPoint** remoteEP);


[32563] [VB] Public Function ReceiveFrom(ByVal buffer( ) As Byte, ByVal size As Integer, ByVal socketFlags As SocketFlags, ByRef remoteEP As EndPoint) As Integer


[32564] [JScript] public function ReceiveFrom(buffer: Byte[ ], size: int, socketFlags SocketFlags, remoteEP: EndPoint): int;


[32565] Description


[32566] Receives a datagram into a specific location in the data buffer and stores the endpoint.


[32567] Return Value: The number of bytes received. Storage location for received data. The number of bytes to receive. A bitwise combination of the System.Net.Sockets.SocketFlags values. An System.Net.EndPoint, passed by reference, that represents the remote server.


[32568] ReceiveFrom


[32569] [C#] public int ReceiveFrom(byte[ ] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP);


[32570] [C++] public: int ReceiveFrom(unsigned char buffer _gc[ ], int offset, int size, SocketFlags socketFlags, EndPoint** remoteEP);


[32571] [VB] Public Function ReceiveFrom(ByVal buffer( ) As Byte, ByVal offset As Integer, ByVal size As Integer, ByVal socketFlags As SocketFlags, ByRef remoteEP As EndPoint) As Integer


[32572] [JScript] public function ReceiveFrom(buffer: Byte[ ], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint): int; Receives a datagram and stores the source endpoint.


[32573] Description


[32574] Receives a datagram into a specific location in the data buffer and stores the endpoint.


[32575] Return Value: The number of bytes received. Storage location for received data. The position in buffer to store the received data. The number of bytes to receive. A bitwise combination of the System.Net.Sockets.SocketFlags values. An System.Net.EndPoint, passed by reference, that represents the remote server.


[32576] Select


[32577] [C#] public static void Select(IList checkRead, IList checkWrite, IList checkError, int microseconds);


[32578] [C++] public: static void Select(IList* checkread, IList* checkWrite, IList* checkerror, int microseconds);


[32579] [VB] Public Shared Sub Select(ByVal checkread As IList, ByVal checkWrite As IList, ByVal checkError As IList, ByVal microSeconds As Integer)


[32580] [JScript] public static function Select(checkRead: IList, checkWrite: IList, checkError: IList, microSeconds: int);


[32581] Description


[32582] Determines the status of a socket.


[32583] System.Net.Sockets.Socket.Select(System.Collections.IList,System.Coll ections.IList,System.Collections.IList,System.Int32) is a static method that determines the status of a set of System.Net.Sockets.Socket instances. For example, to determine which of a set of System.Net.Sockets.Socket instances has data ready to be read, place the System.Net.Sockets.Socket in an System.Collections.IList instance, and then call System.Net.Sockets.Socket.Select(System.Collections.lList,System.Collections .IList,System.Collections.IList,System.Int32). After the call to System.Net.Sockets.Socket.Select(System.Collections.IList,System.Collections .IList,System.Collections.IList,System.Int32), the System.Collections.IList will contain only those System.Net.Sockets.Socket instances with data ready to be read. A list of System.Net.Sockets.Socket instances to check for data to read. A list of System.Net.Sockets.Socket instances to check that are available for writing. A list of System.Net.Sockets.Socket instances to check for errors. The time to wait for a response, in microseconds.


[32584] Send


[32585] [C#] public int Send(byte[ ] buffer);


[32586] [C++] public: int Send(unsigned char buffer _gc[ ]);


[32587] [VB] Public Function Send(ByVal buffers As Byte) As Integer


[32588] [JScript] public function Send(buffer: Byte[ ]): int;


[32589] Description


[32590] Sends data to a connected socket, starting at the indicated location in the data.


[32591] Return Value: The number of bytes sent to the socket. The data to be sent.


[32592] Send


[32593] [C#] public int Send(byte[ ] buffer, SocketFlags socketFlags);


[32594] [C++] public: int Send(unsigned char buffer _gc[ ], SocketFlags socketFlags);


[32595] [VB] Public Function Send(ByVal buffers As Byte, ByVal socketFlags As SocketFlags) As Integer


[32596] [JScript] public function Send(buffer: Byte[ ], socketFlags: SocketFlags): int;


[32597] Description


[32598] Sends data to a connected socket, starting at the indicated location in the data.


[32599] Return Value: The number of bytes sent to the socket. The data to be sent. A bitwise combination of the System.Net.Sockets.SocketFlags values.


[32600] Send


[32601] [C#] public int Send(byte[ ] buffer, int size, SocketFlags socketFlags);


[32602] [C++] public: int Send(unsigned char buffer _gc[ ], int size, SocketFlags socketFlags);


[32603] [VB] Public Function Send(ByVal buffer( ) As Byte, ByVal size As Integer, ByVal socketFlags As SocketFlags) As Integer


[32604] [JScript] public function Send(buffer: Byte[ ], size: int, socketFlags: SocketFlags): int; Sends data to a connected socket.


[32605] Description


[32606] Sends data to a connected socket, starting at the indicated location in the data.


[32607] Return Value: The number of bytes sent to the socket. The data to be sent. The number of bytes to send. A bitwise combination of the System.Net.Sockets.SocketFlags values.


[32608] Send


[32609] [C#] public int Send(byte[ ] buffer, int offset, int size, SocketFlags socketFlags);


[32610] [C++] public: int Send(unsigned char buffer _gc[ ], int offset, int size, SocketFlags socketFlags);


[32611] [VB] Public Function Send(ByVal buffer( ) As Byte, ByVal offset As Integer, ByVal size As Integer, ByVal socketFlags As SocketFlags) As Integer


[32612] [JScript] public function Send(buffer: Byte[ ], offset: int, size: int, socketFlags SocketFlags): int;


[32613] Description


[32614] Sends data to a connected socket, starting at the indicated location in the data.


[32615] Return Value: The number of bytes sent to the socket. The data to be sent. The position in the data buffer to begin sending data. The number of bytes to send. A bitwise combination of the System.Net.Sockets.SocketFlags values.


[32616] SendTo


[32617] [C#] public int SendTo(byte[ ] buffer, EndPoint remoteEP);


[32618] [C++] public: int SendTo(unsigned char buffer _gc[ ], EndPoint* remoteEP);


[32619] [VB] Public Function SendTo(ByVal buffers As Byte, ByVal remoteEP As EndPoint) As Integer


[32620] [JScript] public function SendTo(buffer: Byte[ ], remoteEP: EndPoint): int;


[32621] Description


[32622] Sends data to a specific endpoint.


[32623] Return Value: The number of bytes sent. The data to be sent. The destination location for the data.


[32624] SendTo


[32625] [C#] public int SendTo(byte[ ] buffer, SocketFlags socketFlags, EndPoint remoteEP);


[32626] [C++] public: int SendTo(unsigned char buffer _gc[ ], SocketFlags socketFlags, EndPoint* remoteEP);


[32627] [VB] Public Function SendTo(ByVal buffer( ) As Byte, ByVal socketFlags As SocketFlags, ByVal remoteEP As EndPoint) As Integer


[32628] [JScript] public function SendTo(buffer: Byte[ ], socketFlags: SocketFlags, remoteEP: EndPoint): int;


[32629] Description


[32630] Sends data to a specific endpoint.


[32631] Return Value: The number of bytes sent. The data to be sent. A bitwise combination of the System.Net.Sockets.SocketFlags values. The destination location for the data.


[32632] SendTo


[32633] [C#] public int SendTo(byte[ ] buffer, int size, SocketFlags socketFlags, EndPoint remoteEP);


[32634] [C++] public: int SendTo(unsigned char buffer _gc[ ], int size, SocketFlags socketFlags, EndPoint* remoteEP);


[32635] [VB] Public Function SendTo(ByVal buffers As Byte, ByVal size As Integer, ByVal socketFlags As SocketFlags, ByVal remoteEP As EndPoint) As Integer


[32636] [JScript] public function SendTo(buffer: Byte[ ], size: int, socketFlags SocketFlags, remoteEP: EndPoint): int;


[32637] Description


[32638] Sends data to a specific endpoint.


[32639] Return Value: The number of bytes sent. The data to be sent. The number of bytes to send. A bitwise combination of the System.Net.Sockets.SocketFlags values. The destination location for the data.


[32640] SendTo


[32641] [C#] public int SendTo(byte[ ] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP);


[32642] [C++] public: int SendTo(unsigned char buffer _gc[ ], int offset, int size, SocketFlags socketFlags, EndPoint* remoteEP);


[32643] [VB] Public Function SendTo(ByVal buffer( ) As Byte, ByVal offset As Integer, ByVal size As Integer, ByVal socketFlags As SocketFlags, ByVal remoteEP As EndPoint) As Integer


[32644] [JScript] public function SendTo(buffer: Byte[ ], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint): int; Sends data to a specific endpoint.


[32645] Description


[32646] Sends data to a specific endpoint, starting at the indicated location in the data.


[32647] Return Value: The number of bytes sent. The data to be sent. The position in the data buffer to begin sending data. The number of bytes to send. A bitwise combination of the System.Net.Sockets.SocketFlags values. The destination location for the data.


[32648] SetSocketOption


[32649] [C#] public void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, byte[ ] optionValue);


[32650] [C++] public: void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, unsigned char optionValue _gc[ ]);


[32651] [VB] Public Sub SetSocketOption(ByVal optionLevel As SocketOptionLevel, ByVal optionName As SocketOptionName, ByVal optionValue As Byte)


[32652] [JScript] public function SetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: Byte[ ]);


[32653] Description


[32654] Sets the specified option to the specified value. One of the System.Net.Sockets.SocketOptionLevel values. One of the System.Net.Sockets.SocketOptionName values. The value of the option.


[32655] SetSocketOption


[32656] [C#] public void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int optionvalue);


[32657] [C++] public: void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int optionvalue);


[32658] [VB] Public Sub SetSocketOption(ByVal optionLevel As SocketOptionLevel, ByVal optionName As SocketOptionName, ByVal optionValue As Integer)


[32659] [JScript] public function SetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: int); Sets a socket option.


[32660] Description Sets the specified option to the specified value. One of the System.Net.Sockets.SocketOptionLevel values. One of the System.Net.Sockets.SocketOptionName values. The value of the option.


[32661] SetSocketOption


[32662] [C#] public void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, object optionvalue);


[32663] [C++] public: void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Object* optionvalue);


[32664] [VB] Public Sub SetSocketOption(ByVal optionLevel As SocketOptionLevel, ByVal optionName As SocketOptionName, ByVal optionValue As Object)


[32665] [JScript] public function SetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: Object);


[32666] Description


[32667] Sets the specified option to the specified value. One of the System.Net.Sockets.SocketOptionLevel values. One of the System.Net.Sockets.SocketOptionName values. An instance of System.Net.Sockets.LingerOption or System.Net.Sockets.MulticastOption containing the value of the option.


[32668] Shutdown


[32669] [C#] public void Shutdown(SocketShutdown how);


[32670] [C++] public: void Shutdown(SocketShutdown how);


[32671] [VB] Public Sub Shutdown(ByVal how As SocketShutdown)


[32672] [JScript] public function Shutdown(how: SocketShutdown);


[32673] Description


[32674] Disables sends and receives on a socket.


[32675] The System.Net.Sockets.SocketShutdown class contains the valid values for how. The valid values are: Value Description Send Disable sending on this socket. The function that will no longer be allowed.


[32676] IDisposable.Dispose


[32677] [C#] void IDisposable.Dispose( );


[32678] [C++] void IDisposable::Dispose( );


[32679] [VB] Sub Dispose( ) Implements IDisposable.Dispose


[32680] [JScript] function IDisposable.Dispose( );


[32681] SocketException class (System.Net.Sockets)


[32682] ToString


[32683] Description


[32684] The exception that is thrown when a socket error occurs. A System.Net.Sockets.SocketException is thrown by the System.Net.Sockets.Socket and System.Net.Dns classes when an error occurs with the network.


[32685] SocketException


[32686] Example Syntax:


[32687] ToString


[32688] [C#] public SocketException( );


[32689] [C++] public: SocketException( );


[32690] [VB] Public Sub New( )


[32691] [JScript] public function SocketException( ); Initializes a new instance of the System.Net.Sockets.SocketException class.


[32692] Description


[32693] Initializes a new instance of the System.Net.Sockets.SocketException class with the last operating system error code.


[32694] The System.Net.Sockets.SocketException.#ctor constructor sets the System.Net.Sockets.SocketException.ErrorCode property to the last operating system socket error that occurred. For more information about socket error codes, see the Windows Socket Version 2 API error code documentation in MSDN.


[32695] SocketException


[32696] Example Syntax:


[32697] ToString


[32698] [C#] public SocketException(int errorCode);


[32699] [C++] public: SocketException(int errorCode);


[32700] [VB] Public Sub New(ByVal errorCode As Integer)


[32701] [JScript] public function SocketException(errorCode: int);


[32702] Description


[32703] Initializes a new instance of the System.Net.Sockets.SocketException class with the specified error code.


[32704] The System.Net.Sockets.SocketException.#ctor constructor sets the System.Net.Sockets.SocketException.ErrorCode property to errorCode. The error code indicating the error that occurred.


[32705] SocketException


[32706] Example Syntax:


[32707] ToString


[32708] [C#] protected SocketException(SerializationInfo serializationInfo, StreamingContext streamingContext);


[32709] [C++] protected: SocketException(SerializationInfo* serializationInfo, StreamingContext streamingcontext);


[32710] [VB] Protected Sub New(ByVal serializationInfo As SerializationInfo, ByVal streamingContext As StreamingContext)


[32711] [JScript] protected function SocketException(serializationInfo: SerializationInfo, streamingcontext: StreamingContext);


[32712] Description


[32713] Initializes a new instance of the System.Net.Sockets.SocketException class from the specified instances of the System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext classes.


[32714] This constructor implements the System.Runtime.Serialization.ISerializable interface for the System.Net.Sockets.SocketException class. A System.Runtime.Serialization.SerializationInfo instance containing the information required to serialize the new System.Net.Sockets.SocketException instance. A System.Runtime.Serialization.StreamingContext containing the source of the serialized stream associated with the new System.Net.Sockets.SocketException instance.


[32715] ErrorCode


[32716] ToString


[32717] [C#] public override int ErrorCode {get;}


[32718] [C++] public: _property virtual int get_ErrorCode( );


[32719] [VB] Overrides Public ReadOnly Property ErrorCode As Integer


[32720] [JScript] public function get ErrorCode( ): int;


[32721] Description


[32722] Gets the error code associated with this exception.


[32723] The System.Net.Sockets.SocketException.ErrorCode property contains the error code associated with the error that caused the exception.


[32724] HelpLink


[32725] HResult


[32726] InnerException


[32727] Message


[32728] NativeErrorCode


[32729] Source


[32730] StackTrace


[32731] TargetSite


[32732] SocketFlags enumeration (System.Net.Sockets)


[32733] ToString


[32734] Description


[32735] Provides constant values for socket messages.


[32736] ToString


[32737] [C#] public const SocketFlags DontRoute;


[32738] [C++] public: const SocketFlags DontRoute;


[32739] [VB] Public Const DontRoute As SocketFlags


[32740] [JScript] public var DontRoute: SocketFlags;


[32741] Description


[32742] Send without using routing tables.


[32743] ToString


[32744] [C#] public const SocketFlags MaxIOVectorLength;


[32745] [C++] public: const SocketFlags MaxIOVectorLength;


[32746] [VB] Public Const MaxIOVectorLength As SocketFlags


[32747] [JScript] public var MaxIOVectorLength: SocketFlags;


[32748] Description


[32749] Provides a standard value for the number of WSABUF structures used to send and receive data.


[32750] ToString


[32751] [C#] public const SocketFlags None;


[32752] [C++] public: const SocketFlags None;


[32753] [VB] Public Const None As SocketFlags


[32754] [JScript] public var None: SocketFlags;


[32755] Description


[32756] Use no flags for this call.


[32757] ToString


[32758] [C#] public const SocketFlags OutOfBand;


[32759] [C++] public: const SocketFlags OutOfBand;


[32760] [VB] Public Const OutOfBand As SocketFlags


[32761] [JScript] public var OutOfBand: SocketFlags;


[32762] Description


[32763] Process out-of-band data.


[32764] ToString


[32765] [C#] public const SocketFlags Partial;


[32766] [C++] public: const SocketFlags Partial;


[32767] [VB] Public Const Partial As SocketFlags


[32768] [JScript] public var Partial: SocketFlags;


[32769] Description


[32770] Partial send or receive for message.


[32771] ToString


[32772] [C#] public const SocketFlags Peek;


[32773] [C++] public: const SocketFlags Peek;


[32774] [VB] Public Const Peek As SocketFlags


[32775] [JScript] public var Peek: SocketFlags;


[32776] Description


[32777] Peek at incoming message.


[32778] SocketOptionLevel enumeration (System.Net.Sockets)


[32779] ToString


[32780] Description


[32781] Defines socket option levels for the System.Net.Sockets.Socket.SetSocketOption(System.Net.Sockets.SocketOptio nLevel,System.Net.Sockets.SocketOptionName,System.Int32) and System.Net.Sockets.Socket.GetSocketOption(System.Net.Sockets.SocketOptio nLevel,System.Net.Sockets.SocketOptionName) methods.


[32782] The System.Net.Sockets.SocketOptionLevel enumeration defines the socket option levels that can be passed to the System.Net.Sockets.Socket.SetSocketOption(System.Net.Sockets.SocketOptio nLevel,System.Net.Sockets.SocketOptionName,System.Int32) and System.Net.Sockets.Socket.GetSocketOption(System.Net.Sockets.SocketOptio nLevel,System.Net.Sockets.SocketOptionName) methods.


[32783] ToString


[32784] [C#] public const SocketOptionLevel IP;


[32785] [C++] public: const SocketOptionLevel IP;


[32786] [VB] Public Const IP As SocketOptionLevel


[32787] [JScript] public var IP: SocketOptionLevel;


[32788] Description


[32789] Socket options apply to IP sockets.


[32790] ToString


[32791] [C#] public const SocketOptionLevel Socket;


[32792] [C++] public: const SocketOptionLevel Socket;


[32793] [VB] Public Const Socket As SocketOptionLevel


[32794] [JScript] public var Socket: SocketOptionLevel;


[32795] Description


[32796] Socket options apply to the socket itself.


[32797] ToString


[32798] [C#] public const SocketOptionLevel Tcp;


[32799] [C++] public: const SocketOptionLevel Tcp;


[32800] [VB] Public Const Tcp As SocketOptionLevel


[32801] [JScript] public var Tcp: SocketOptionLevel;


[32802] Description


[32803] Socket options apply to TCP sockets.


[32804] ToString


[32805] [C#] public const SocketOptionLevel Udp;


[32806] [C++] public: const SocketOptionLevel Udp;


[32807] [VB] Public Const Udp As SocketOptionLevel


[32808] [JScript] public var Udp: SocketOptionLevel;


[32809] Description


[32810] Socket options apply to UDP sockets.


[32811] SocketOptionName enumeration (System.Net.Sockets)


[32812] ToString


[32813] Description


[32814] Defines socket option names for the System.Net.Sockets.Socket class.


[32815] ToString


[32816] [C#] public const SocketOptionName AcceptConnection;


[32817] [C++] public: const SocketOptionName AcceptConnection;


[32818] [VB] Public Const AcceptConnection As SocketOptionName


[32819] [JScript] public var AcceptConnection: SocketOptionName;


[32820] Description


[32821] Socket is listening.


[32822] ToString


[32823] [C#] public const SocketOptionName AddMembership;


[32824] [C++] public: const SocketOptionName AddMembership;


[32825] [VB] Public Const AddMembership As SocketOptionName


[32826] [JScript] public var AddMembership: SocketOptionName;


[32827] Description


[32828] Add an IP group membership.


[32829] ToString


[32830] [C#] public const SocketOptionName AddSourceMembership;


[32831] [C++] public: const SocketOptionName AddSourceMembership;


[32832] [VB] Public Const AddSourceMembership As SocketOptionName


[32833] [JScript] public var AddSourceMembership: SocketOptionName;


[32834] Description


[32835] Join a source group.


[32836] ToString


[32837] [C#] public const SocketOptionName BlockSource;


[32838] [C++] public: const SocketOptionName BlockSource;


[32839] [VB] Public Const BlockSource As SocketOptionName


[32840] [JScript] public var BlockSource: SocketOptionName;


[32841] Description


[32842] Block data from a source.


[32843] ToString


[32844] [C#] public const SocketOptionName Broadcast;


[32845] [C++] public: const SocketOptionName Broadcast;


[32846] [VB] Public Const Broadcast As SocketOptionName


[32847] [JScript] public var Broadcast: SocketOptionName;


[32848] Description


[32849] Permit sending broadcast messages on the socket.


[32850] ToString


[32851] [C#] public const SocketOptionName BsdUrgent;


[32852] [C++] public: const SocketOptionName BsdUrgent;


[32853] [VB] Public Const BsdUrgent As SocketOptionName


[32854] [JScript] public var BsdUrgent: SocketOptionName;


[32855] Description


[32856] Use urgent data as defined in RFC-1222. This option can be set only once, and once set, cannot be turned off.


[32857] ToString


[32858] [C#] public const SocketOptionName ChecksumCoverage;


[32859] [C++] public: const SocketOptionName ChecksumCoverage;


[32860] [VB] Public Const ChecksumCoverage As SocketOptionName


[32861] [JScript] public var ChecksumCoverage: SocketOptionName;


[32862] Description


[32863] Set or get UDP checksum coverage.


[32864] ToString


[32865] [C#] public const SocketOptionName Debug;


[32866] [C++] public: const SocketOptionName Debug;


[32867] [VB] Public Const Debug As SocketOptionName


[32868] [JScript] public var Debug: SocketOptionName;


[32869] Description


[32870] Record debugging information.


[32871] ToString


[32872] [C#] public const SocketOptionName DontFragment;


[32873] [C++] public: const SocketOptionName DontFragment;


[32874] [VB] Public Const DontFragment As SocketOptionName


[32875] [JScript] public var DontFragment: SocketOptionName;


[32876] Description


[32877] Do not fragment IP datagrams.


[32878] ToString


[32879] [C#] public const SocketOptionName DontLinger;


[32880] [C++] public: const SocketOptionName DontLinger;


[32881] [VB] Public Const DontLinger As SocketOptionName


[32882] [JScript] public var DontLinger: SocketOptionName;


[32883] Description


[32884] Close socket gracefully without lingering.


[32885] ToString


[32886] [C#] public const SocketOptionName DontRoute;


[32887] [C++] public: const SocketOptionName DontRoute;


[32888] [VB] Public Const DontRoute As SocketOptionName


[32889] [JScript] public var DontRoute: SocketOptionName;


[32890] Description


[32891] Do not route; send directly to interface addresses.


[32892] ToString


[32893] [C#] public const SocketOptionName DropMembership;


[32894] [C++] public: const SocketOptionName DropMembership;


[32895] [VB] Public Const DropMembership As SocketOptionName


[32896] [JScript] public var DropMembership: SocketOptionName;


[32897] Description


[32898] Drop an IP group membership.


[32899] ToString


[32900] [C#] public const SocketOptionName DropSourceMembership;


[32901] [C++] public: const SocketOptionName DropSourceMembership;


[32902] [VB] Public Const DropSourceMembership As SocketOptionName


[32903] [JScript] public var DropSourceMembership: SocketOptionName;


[32904] Description


[32905] Drop a source group.


[32906] ToString


[32907] [C#] public const SocketOptionName Error;


[32908] [C++] public: const SocketOptionName Error;


[32909] [VB] Public Const Error As SocketOptionName


[32910] [JScript] public var Error: SocketOptionName;


[32911] Description


[32912] Get error status and clear.


[32913] ToString


[32914] [C#] public const SocketOptionName ExclusiveAddressUse;


[32915] [C++] public: const SocketOptionName ExclusiveAddressUse;


[32916] [VCB] Public Const ExclusiveAddressUse As SocketOptionName


[32917] [JScript] public var. ExclusiveAddressUse: SocketOptionName;


[32918] Description


[32919] Enables a socket to be bound for exclusive access.


[32920] ToString


[32921] [C#] public const SocketOptionName Expedited;


[32922] [C++] public: const SocketOptionName Expedited;


[32923] [VB] Public Const Expedited As SocketOptionName


[32924] [JScript] public var Expedited: SocketOptionName;


[32925] Description


[32926] Use expedited data as defined in RFC-1222. This option can be set only once, and once set, cannot be turned off.


[32927] ToString


[32928] [C#] public const SocketOptionName HeaderIncluded;


[32929] [C++] public: const SocketOptionName Headerlncluded;


[32930] [VB] Public Const HeaderIncluded As SocketOptionName


[32931] [JScript] public var HeaderIncluded: SocketOptionName;


[32932] Description


[32933] Indicates application is providing the IP header for outgoing datagrams.


[32934] ToString


[32935] [C#] public const SocketOptionName IPOptions;


[32936] [C++] public: const SocketOptionName IPOptions;


[32937] [VB] Public Const IPOptions As SocketOptionName


[32938] [JScript] public var IPOptions: SocketOptionName;


[32939] Description


[32940] Specifies IP options to be inserted into outgoing datagrams.


[32941] ToString


[32942] [C#] public const SocketOptionName IpTimeToLive;


[32943] [C++] public: const SocketOptionName IpTimeToLive;


[32944] [VB] Public Const IpTimeToLive As SocketOptionName


[32945] [JScript] public var IpTimeToLive: SocketOptionName;


[32946] Description


[32947] Set the IP header time-to-live field.


[32948] ToString p0 [C#] public const SocketOptionName KeepAlive;


[32949] [C++] public: const SocketOptionName KeepAlive;


[32950] [VB] Public Const KeepAlive As SocketOptionName


[32951] [JScript] public var KeepAlive: SocketOptionName;


[32952] Description


[32953] Send keep-alives.


[32954] ToString


[32955] [C#] public const SocketOptionName Linger;


[32956] [C++] public: const SocketOptionName Linger;


[32957] [VB] Public Const Linger As SocketOptionName


[32958] [JScript] public var Linger: SocketOptionName;


[32959] Description


[32960] Linger on close if unsent data is present.


[32961] ToString


[32962] [C#] public const SocketOptionName MaxConnections;


[32963] [C++] public: const SocketOptionName MaxConnections;


[32964] [VB] Public Const MaxConnections As SocketOptionName


[32965] [JScript] public var MaxConnections: SocketOptionName;


[32966] Description


[32967] Maximum queue length that can be specified by System.Net.Sockets.Socket.Listen(System.Int32)


[32968] ToString


[32969] [C#] public const SocketOptionName MulticastInterface;


[32970] [C++] public: const SocketOptionName MulticastInterface;


[32971] [VB] Public Const MulticastInterface As SocketOptionName


[32972] [JScript] public var MulticastInterface: SocketOptionName;


[32973] Description


[32974] Set the interface for outgoing multicast packets.


[32975] ToString


[32976] [C#] public const SocketOptionName MulticastLoopback;


[32977] [C++] public: const SocketOptionName MulticastLoopback;


[32978] [VB] Public Const MulticastLoopback As SocketOptionName


[32979] [JScript] public var MulticastLoopback: SocketOptionName;


[32980] Description


[32981] IP multicast loopback.


[32982] ToString


[32983] [C#] public const SocketOptionName MulticastTimeToLive;


[32984] [C++] public: const SocketOptionName MulticastTimeToLive;


[32985] [VB] Public Const MulticastTimeToLive As SocketOptionName


[32986] [JScript] public var MulticastTimeToLive: SocketOptionName;


[32987] Description


[32988] IP multicast time to live.


[32989] ToString


[32990] [C#] public const SocketOptionName NoChecksum;


[32991] [C++] public: const SocketOptionName NoChecksum;


[32992] [VB] Public Const NoChecksum As SocketOptionName


[32993] [JScript] public var NoChecksum: SocketOptionName;


[32994] Description


[32995] Send UDP datagrams with checksum set to zero.


[32996] ToString


[32997] [C#] public const SocketOptionName NoDelay;


[32998] [C++] public: const SocketOptionName NoDelay;


[32999] [VB] Public Const NoDelay As SocketOptionName


[33000] [JScript] public var NoDelay: SocketOptionName;


[33001] Description


[33002] Disables the Nagle algorithm for send coalescing.


[33003] ToString


[33004] [C#] public const SocketOptionName OutOfBandInline;


[33005] [C++] public: const SocketOptionName OutOfBandInline;


[33006] [VB] Public Const OutOfBandInline As SocketOptionName


[33007] [JScript] public var OutOfBandInline: SocketOptionName;


[33008] Description


[33009] Receives out-of-band data in the normal data stream.


[33010] ToString


[33011] [C#] public const SocketOptionName PacketInformation;


[33012] [C++] public: const SocketOptionName PacketInformation;


[33013] [VB] Public Const PacketInformation As SocketOptionName


[33014] [JScript] public var PacketInformation: SocketOptionName;


[33015] Description


[33016] Return information about received packets.


[33017] ToString


[33018] [C#] public const SocketOptionName ReceiveBuffer;


[33019] [C++] public: const SocketOptionName ReceiveBuffer;


[33020] [VB] Public Const ReceiveBuffer As SocketOptionName


[33021] [JScript] public var ReceiveBuffer: SocketOptionName;


[33022] Description


[33023] Send low water mark.


[33024] ToString


[33025] [C#] public const SocketOptionName ReceiveLowWater;


[33026] [C++] public: const SocketOptionName ReceiveLowWater;


[33027] [VB] Public Const ReceiveLowWater As SocketOptionName


[33028] [JScript] public var ReceiveLowWater: SocketOptionName;


[33029] Description


[33030] Receive low water mark.


[33031] ToString


[33032] [C+] public const SocketOptionName ReceiveTimeout;


[33033] [C++] public: const SocketOptionName ReceiveTimeout;


[33034] [VB] Public Const ReceiveTimeout As SocketOptionName


[33035]

11
[JScript] public var ReceiveTimeout: SocketOptionName;


[33036] Description


[33037] Receive time out.


[33038] ToString


[33039] [C#] public const SocketOptionName ReuseAddress;


[33040] [C++] public: const SocketOptionName ReuseAddress;


[33041] [VB] Public Const ReuseAddress As SocketOptionName


[33042] [JScript] public var ReuseAddress: SocketOptionName;


[33043] Description


[33044] Allows the socket to be bound to an address that is already in use.


[33045] ToString


[33046] [C#] public const SocketOptionName SendBuffer;


[33047] [C++] public: const SocketOptionName SendBuffer;


[33048] [VB] Public Const SendBuffer As SocketOptionName


[33049] [JScript] public var SendBuffer: SocketOptionName;


[33050] Description


[33051] Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum message size or the size of a TCP window.


[33052] ToString


[33053] [C190 ] public const SocketOptionName SendLowWater;


[33054] [C++] public: const SocketOptionName SendLowWater;


[33055] [VB] Public Const SendLowWater As SocketOptionName


[33056] [JScript] public var SendLowWater: SocketOptionName;


[33057] Description


[33058] Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum message size or the size of a TCP window.


[33059] ToString


[33060] [C#] public const SocketOptionName SendTimeout;


[33061] [C++] public: const SocketOptionName SendTimeout;


[33062] [VB] Public Const SendTimeout As SocketOptionName


[33063] [JScript] public var SendTimeout: SocketOptionName;


[33064] Description


[33065] Send timeout.


[33066] ToString


[33067] [C#] public const SocketOptionName Type;


[33068] [C++] public: const SocketOptionName Type;


[33069] [VB] Public Const Type As SocketOptionName


[33070] [JScript] public var Type: SocketOptionName;


[33071] Description


[33072] Get socket type.


[33073] ToString


[33074] [C#] public const SocketOptionName TypeOfService;


[33075] [C++] public: const SocketOptionName TypeOfService;


[33076] [VB] Public Const TypeOfService As SocketOptionName


[33077] [JScript] public var TypeOfService: SocketOptionName;


[33078] Description


[33079] Change the IP header type of service field.


[33080] ToString


[33081] [C#] public const SocketOptionName UnblockSource;


[33082] [C++] public: const SocketOptionName UnblockSource;


[33083] [VB] Public Const UnblockSource As SocketOptionName


[33084] [JScript] public var UnblockSource: SocketOptionName;


[33085] Description


[33086] Unblock a previously blocked source.


[33087] ToString


[33088] [C++] public const SocketOptionName UseLoopback;


[33089] [C++] public: const SocketOptionName UseLoopback;


[33090] [VB] Public Const UseLoopback As SocketOptionName


[33091] [JScript] public var UseLoopback: SocketOptionName;


[33092] Description


[33093] Bypass hardware when possible.


[33094] SocketShutdown enumeration (System.Net.Sockets)


[33095] ToString


[33096] Description


[33097] Defines constants used by the System.Net.Sockets.Socket.Shutdown(System.Net.Sockets.SocketShutdown) method.


[33098] The System.Net.Sockets.SocketShutdown class is a helper class that defines the values that can be passed to the System.Net.Sockets.Socket.Shutdown(System.Net.Sockets.SocketShutdown) method.


[33099] ToString


[33100] [C+] public const SocketShutdown Both;


[33101] [C++] public: const SocketShutdown Both;


[33102] [VB] Public Const Both As SocketShutdown


[33103] [JScript] public var Both: SocketShutdown;


[33104] Description


[33105] Shuts down a socket for both sending and receiving. This field is constant.


[33106] ToString


[33107] [C#] public const SocketShutdown Receive;


[33108] [C++] public: const SocketShutdown Receive;


[33109] [VB] Public Const Receive As SocketShutdown


[33110] [JScript] public var Receive: SocketShutdown;


[33111] Description


[33112] Shuts down a socket for receiving. This field is constant.


[33113] ToString


[33114] [C#] public const SocketShutdown Send;


[33115] [C++] public: const SocketShutdown Send;


[33116] [VB] Public Const Send As SocketShutdown


[33117] [JScript] public var Send: SocketShutdown;


[33118] Description


[33119] Shuts down a socket for sending. This field is constant.


[33120] SocketType enumeration (System.Net.Sockets)


[33121] ToString


[33122] Description


[33123] Specifies the type of socket an instance of the System.Net.Sockets.Socket class represents.


[33124] ToString


[33125] [C#] public const SocketType Dgram;


[33126] [C++] public: const SocketType Dgram;


[33127] [VB] Public Const Dgram As SocketType


[33128] [JScript] public var Dgram: SocketType;


[33129] Description


[33130] ToString


[33131] [C#] public const SocketType Raw;


[33132] [C++] public: const SocketType Raw;


[33133] [VB] Public Const Raw As SocketType


[33134] [JScript] public var Raw: SocketType;


[33135] Description


[33136] ToString


[33137] [C#] public const SocketType Rdm;


[33138] [C++] public: const SocketType Rdm;


[33139] [VB] Public Const Rdm As SocketType


[33140] [JScript] public var Rdm: SocketType;


[33141] Description


[33142] ToString


[33143] [C#] public const SocketType Seqpacket;


[33144] [C++] public: const SocketType Seqpacket;


[33145] [VB] Public Const Seqpacket As SocketType


[33146] [JScript] public var Seqpacket: SocketType;


[33147] Description


[33148] ToString


[33149] [C#] public const SocketType Stream;


[33150] [C++] public: const SocketType Stream;


[33151] [VB] Public Const Stream As SocketType


[33152] [JScript] public var Stream: SocketType;


[33153] Description


[33154] ToString


[33155] [C#] public const SocketType Unknown;


[33156] [C++] public: const SocketType Unknown;


[33157] [VB] Public Const Unknown As SocketType


[33158] [JScript] public var Unknown: SocketType;


[33159] Description


[33160] TcpClient class (System.Net.Sockets)


[33161] ToString


[33162] Description


[33163] Provides client connections for TCP network services.


[33164] The System.Net.Sockets.TcpClient class builds upon the System.Net.Sockets.Socket class to provide TCP services at a higher level of abstraction. You can establish a System.Net.Sockets.TcpClient connection can be establish by one of two ways.


[33165] TcpClient


[33166] Example Syntax:


[33167] ToString


[33168] [C#] public TcpClient( );


[33169] [C++] public: TcpClient( );


[33170] [VB] Public Sub New( )


[33171] [JScript] public function TcpClient( );


[33172] Description


[33173] Initializes a new instance of the System.Net.Sockets.TcpClient class.


[33174] The default constructor sets the IP address to System.Net.IPAddress.Any and the port number to 0.


[33175] TcpClient


[33176] Example Syntax:


[33177] ToString


[33178] [C#] public TcpClient(IPEndPoint localEP);


[33179] [C++] public: TcpClient(IPEndPoint* localEP);


[33180] [VB] Public Sub New(ByVal localEP As IPEndPoint)


[33181] [JScript] public function TcpClient(localEP: IPEndPoint); Initializes a new instance of the System.Net.Sockets.TcpClient class.


[33182] Description


[33183] Initializes a new instance of the System.Net.Sockets.TcpClient class with the local endpoint.


[33184] The localEP parameter specifies the local endpoint. This constructor instantiates a socket and binds that socket to the provided local endpoint. The local endpoint to which you bind the TCP connection.


[33185] TcpClient


[33186] Example Syntax:


[33187] ToString


[33188] [Cg] public TcpClient(string hostname, int port);


[33189] [C++] public: TcpClient(String* hostname, int port);


[33190] [VB] Public Sub New(ByVal hostname As String, ByVal port As Integer)


[33191] [JScript] public function TcpClient(hostname: String, port: int);


[33192] Description


[33193] Initializes a new instance of the System.Net.Sockets.TcpClient class and connects to the specified port on the specified host.


[33194] This constructor accepts two parameters. Name of the remote host to which you intend to connect. Port number of the remote host to which you intend to connect.


[33195] Active


[33196] ToString


[33197] [C#] protected bool Active {get; set;}


[33198] [C++] protected: _property bool get_Active( );protected: _property void set_Active(bool);


[33199] [VB] Protected Property Active As Boolean


[33200] [JScript] protected function get Active( ): Boolean;protected function set Active(Boolean);


[33201] Description


[33202] Gets or set a value that indicates whether a connection has been made.


[33203] Client


[33204] ToString


[33205] [C#] protected Socket Client {get; set;}


[33206] [C++] protected: _property Socket* get_Client( );protected: _property void set_Client(Socket*);


[33207] [VB] Protected Property Client As Socket


[33208] [JScript] protected function get Client( ): Socket;protected function set Client(Socket);


[33209] Description


[33210] Gets or sets the underlying System.Net.Sockets.Socket instance.


[33211] Use this property to set or get the underlying System.Net.Sockets.Socket instance of System.Net.Sockets.TcpClient.


[33212] LingerState


[33213] ToString


[33214] [C#] public LingerOption LingerState {get; set;}


[33215] [C++] public: _property LingerOption* get_LingerState( );public: _property void set_LingerState(LingerOption*);


[33216] [VB] Public Property LingerState As LingerOption


[33217] [JScript] public function get LingerState( ): LingerOption;public function set LingerState(LingerOption);


[33218] Description


[33219] Gets or sets the value of the connection's System.Net.Sockets.LingerOption An instance of the System.Net.Sockets.LingerOption class.


[33220] This property sets or gets a System.Net.Sockets.LingerOption instance. If the System.Net.Sockets.LingerOption.Enabled property of the System.Net.Sockets.LingerOption instance is true, and data remains to be sent, then System.Net.Sockets.TcpClient remains open even after System.Net.Sockets.TcpClient.Close is called. The amount of time the object remains open is specified by the System.Net.Sockets.LingerOption.LingerTime property of the System.Net.Sockets.LingerOption instance. If the Enabled property of the System.Net.Sockets.LingerOption instance is false, then System.Net.Sockets.TCPClient will close immediately, even if data remains to be sent.


[33221] NoDelay


[33222] ToString


[33223] [C#] public bool NoDelay {get; set;}[C++] public: _property bool get_NoDelay( );public: _property void set_NoDelay(bool);


[33224] [VB] Public Property NoDelay As Boolean


[33225] [JScript] public function get NoDelayo: Boolean;public function set NoDelay(Boolean);


[33226] Description


[33227] Gets or sets a value that enables a delay when send or receive buffers are full.


[33228] If System.Net.Sockets.TcpClient.NoDelay is set to false, System.Net.Sockets.TcpClient delays the sending and receiving of data while buffers are full. If System.Net.Sockets.TcpClient.NoDelay is set to true, then System.Net.Sockets.TcpClient continues writing to buffers even if there is no capacity left.


[33229] ReceiveBufferSize


[33230] ToString


[33231] [C#] public int ReceiveBufferSize {get; set;}


[33232] [C++] public: _property int get_ReceiveBufferSize( );public: _property void


[33233] set_ReceiveBufferSize(int);


[33234] [VB] Public Property ReceiveBufferSize As Integer


[33235] [JScript] public function get ReceiveBufferSize( ): int;public function set ReceiveBufferSize(int);


[33236] Description


[33237] Gets or sets the size of the receive buffer.


[33238] The System.Net.Sockets.TcpClient.ReceiveBufferSize property gets or sets the amount of bytes that can be stored in the receive buffer. After using System.Net.Sockets.TcpClient.GetStream to retrieve the underlying System.Net.Sockets.NetworkStream instance, you will initiate a read by using one of the System.Net.Sockets.NetworkStream read methods. The amount of data that can be stored from this read, will be determined by the System.Net.Sockets.TcpClient.ReceiveBufferSize property.


[33239] ReceiveTimeout


[33240] ToString


[33241] [C#] public int ReceiveTimeout {get; set;}


[33242]


[33243] [C++] public: _property int get_ReceiveTimeout( );public: _property void set_ReceiveTimeout(int);


[33244] [VB] Public Property ReceiveTimeout As Integer


[33245] [JScript] public function get ReceiveTimeout( ): int;public function set ReceiveTimeout(int);


[33246] Description


[33247] Gets or sets the amount of time a System.Net.Sockets.TcpClient object will wait to receive data once a read is initiated.


[33248] The System.Net.Sockets.TcpClient.ReceiveTimeout property determines the amount of time a System.Net.Sockets.TcpClient object will wait to receive data after a read is initiated. This time is measured in milliseconds.


[33249] SendBufferSize


[33250] ToString


[33251] [C#] public int SendBufferSize {get; set;}


[33252] [C++] public: _property int get_SendBufferSize( );public: _property void set_SendBufferSize(int);


[33253] [VB] Public Property SendBufferSize As Integer


[33254] [JScript] public function get SendBufferSize( ): int;public function set SendBufferSize(int);


[33255] Description


[33256] Gets or sets the size of the send buffer.


[33257] The System.Net.Sockets.TcpChient.SendBufferSize property gets or sets the amount of bytes that can be stored in the send buffer. After using System.Net.Sockets.TcpClient.GetStream to retrieve the underlying System.Net.Sockets.NetworkStream instance, you will initiate a send by using one of the System.Net.Sockets.NetworkStream send methods. The amount of data that can be sent for each send, will be determined by the System.Net.Sockets.TcpClient.SendBufferSize property.


[33258] SendTimeout


[33259] ToString


[33260] [C#] public int SendTimeout {get; set;}


[33261] [C++] public: _property int get_SendTimeout( );public: _property void set_SendTimeout(int);


[33262] [VB] Public Property SendTimeout As Integer


[33263] [JScript] public function get SendTimeout( ): int;public function set


[33264] SendTimeout(int);


[33265] Description


[33266] Gets or sets the amount of time a System.Net.Sockets.TcpClient object will wait to receive confirmation you initiate a send.


[33267] After you initiate a send, the underlying System.Net.Sockets.Socket instance returns the number of bytes actually sent to the host. The System.Net.Sockets.TcpClient.SendTimeout property determines the amount of time a System.Net.Sockets.TcpClient object will wait before receiving the number of bytes returned by the System.Net.Sockets.Socket class.


[33268] Close


[33269] [C#] public void Close( );


[33270] [C++] public: void Close( );


[33271] [VB] Public Sub Close( )


[33272] [JScript] public function Close( );


[33273] Description


[33274] Closes the TCP connection.


[33275] Closes the TCP connection.


[33276] Connect


[33277] [C#] public void Connect(IPEndPoint remoteEP);


[33278] [C++] public: void Connect(IPEndPoint* remoteEP);


[33279] [VB] Public Sub Connect(ByVal remoteEP As IPEndPoint)


[33280] [JScript] public function Connect(remoteEP: IPEndPoint);


[33281] Description


[33282] Connects the client to a remote TCP host using the specified remote network endpoint.


[33283] System.Net.Sockets.TcpClient.Connect(System.String,System.Int32) establishes a TCP connection using the specified network endpoint. Before you call System.Net.Sockets.TcpClient.Connect(System.String,System.Int32), you must first instantiate an System.Net.IPEndPoint object using an IP address and port number. This is your network end-point. After you have instantiated the System.Net.Sockets.IPEndPoint object, you can then call System.Net.Sockets.TepChient.Connect(System.String,System.Int32) and use the System.Net.IPEndPoint object as its argument. The IP endpoint to which you intend to connect.


[33284] Connect


[33285] [C#] public void Connect(IPAddress address, int port);


[33286] [C++] public: void Connect(IPAddress* address, int port);


[33287] [VB] Public Sub Connect(ByVal address As IPAddress, ByVal port As Integer)


[33288] [JScript] public function Connect(address: IPAddress, port: int);


[33289] Description


[33290] Connects the client to a remote TCP host using the specified IP Address and port number. System.Net.Sockets.TcpClient.Connect(System.String,System.Int32) establishes a TCP connection using the specified port and IP address. This method establishes a connection by calling the System.Net.Sockets.Socket.Connect(System.Net.EndPoint) method of the underlying System.Net.Sockets.Socket instance. After the connection is established, you can use the underlying System.Net.Sockets.NetworkStream instance to send and receive data. Use System.Net.Sockets.TcpClient.GetStream to obtain the underlying System.Net.Sockets.NetworkStream instance. IP address of the host to which you intend to connect. The port number to which you intend to connect.


[33291] Connect


[33292] [C#] public void Connect(string hostname, int port);


[33293] [C++] public: void Connect(String* hostname, int port);


[33294] [VB] Public Sub Connect(ByVal hostname As String, ByVal port As Integer)


[33295] [JScript] public function Connect(hostname: String, port: int); Connects the client to a remote TCP host using the specified host name and port number.


[33296] Description


[33297] Connects the client to the specified port on the specified host.


[33298] System.Net.Sockets.TcpClient.Connect(System.String,System.Int32) establishes a TCP connection to the host device using the specified port and hostname specified. This method establishes a connection by calling the System.Net.Sockets.Socket.Connect(System.Net.EndPoint) method of the underlying System.Net.Sockets.Socket instance. After the connection is established, you can use the underlying System.Net.Sockets.NetworkStream instance to send and receive data. Use System.Net.Sockets.TcpClient.GetStream to obtain the underlying System.Net.Sockets.NetworkStream instance. Name of the remote host to which you intend to connect. Port number of the remote host to which you intend to connect.


[33299] Dispose


[33300] [C#] protected virtual void Dispose(bool disposing);


[33301] [C++] protected: virtual void Dispose(bool disposing);


[33302] [VB] Overridable Protected Sub Dispose(ByVal disposing As Boolean)


[33303] [JScript] protected function Dispose(disposing: Boolean);


[33304] Description


[33305] Releases the unmanaged resources used by the System.Net.Sockets.TcpClient and optionally releases the managed resources.


[33306] This method releases the underlying System.Net.Sockets.NetworkStream and System.Net.Sockets.Socket instances. There are no managed resources that require releasing. If you call System.Net.Sockets.TcpClient.Dispose(System.Boolean) and specify true as its parameter, then be sure to suppress the finalizer by calling the System.Net.Sockets.TcpClient.suppressfinalize method of the garbage collector. If true, releases both managed and unmanaged resources; if false, releases only unmanaged resources.


[33307] Finalize


[33308] [C#]˜TcpClient( );


[33309] [C++]˜TcpClient( );


[33310] [VB] Overrides Protected Sub Finalize( )


[33311] [JScript] protected override function Finalize( );


[33312] Description


[33313] Frees resources used by the System.Net.Sockets.TcpClient class.


[33314] The System.Net.Sockets.TcpChient class finalizer calls the System.Net.Sockets.TcpClient.Close method to close the TCP connection, shut down the network stream, and free the socket.


[33315] GetStream


[33316] [C#] public NetworkStream GetStream( );


[33317] [C++] public: NetworkStream* GetStream( );


[33318] [VB] Public Function GetStream( ) As NetworkStream


[33319] [JScript] public function GetStream( ): NetworkStream;


[33320] Description


[33321] Returns the stream used to send and receive data.


[33322] Return Value: The underlying System.Net.Sockets.NetworkStream instance.


[33323] System.Net.Sockets.TcpClient.GetStream returns the underlying System.Net.Sockets.NetworkStream used to send and receive data.


[33324] IDisposable.Dispose


[33325] [C#] void IDisposable.Dispose( );


[33326] [C++] void IDisposable::Dispose( );


[33327] [VB] Sub Dispose( ) Implements IDisposable.Dispose


[33328] [JScript] function IDisposable.Dispose( );


[33329] TcpListener class (System.Net.Sockets)


[33330] ToString


[33331] Description


[33332] Listens for connections from TCP network clients.


[33333] The System.Net.Sockets.TcpListener class builds upon the System.Net.Sockets.Socket class to provide TCP services at a higher level of abstraction.


[33334] TcpListener


[33335] Example Syntax:


[33336] ToString


[33337] [C#] public TcpListener(int port);


[33338] [C++] public: TcpListener(int port);


[33339] [VB] Public Sub New(ByVal port As Integer)


[33340] [JScript] public function TcpListener(port: int);


[33341] Description


[33342] Initializes a new instance of the System.Net.Sockets.TcpListener that listens on the specified port.


[33343] The port parameter specifies the local port number on which you intend to listen. This constructor instantiates the underlying System.Net.Sockets.IPEndPoint using the specified port number. When you call System.Net.Sockets.TcpListener.Start, System.Net.Sockets.TcpListener uses the default network interface to listen for connections on the specified port number. The port on which to listen. If this number is 0, a port number will be selected at random.


[33344] TcpListener


[33345] Example Syntax:


[33346] ToString


[33347] [C#] public TcpListener(IPEndPoint localEP);


[33348] [C++] public: TcpListener(IPEndPoint* localEP);


[33349] [VB] Public Sub New(ByVal localEP As IPEndPoint)


[33350] [JScript] public function TcpListener(localEP: IPEndPoint); Initializes a new instance of the System.Net.Sockets.TcpListener class.


[33351] Description


[33352] Initializes a new instance of the System.Net.Sockets.TcpListener class with the specified local endpoint.


[33353] The localEP parameter specifies the local endpoint. This constructor sets the underlying System.Net.Sockets.IPEndPoint of System.Net.Sockets.TcpListener to the specified local endpoint. If you call System.Net.Sockets.TcpListener.Start, System.Net.Sockets.TcpListener will listen for connections using this endpoint. The localend point to bind the listener connection to.


[33354] TcpListener


[33355] Example Syntax:


[33356] ToString


[33357] [C+] public TcpListener(IPAddress localaddr, int port);


[33358] [C++] public: TcpListener(IPAddress* localaddr, t port);


[33359] [VB] Public Sub New(ByVal localaddr As IPAddress, ByVal port As Integer)


[33360] [JScript] public function TcpListener(localaddr: IPAddress, port: int);


[33361] Description


[33362] Initializes a new instance of the System.Net.Sockets.TcpListener class that listens to the specified IP address and port.


[33363] This constructor instantiates the underlying System.Net.Sockets.IPEndPoint of System.Net.Sockets.TcpListener using the specified IP address and port number. If you call System.Net.Sockets.TcpListener.Start, System.Net.Sockets.TcpListener listens for connections using the underlying endpoint. The local IP address to listen to. The port on which to listen. If this is set to 0, a port number will be selected at random.


[33364] Active


[33365] ToString


[33366] [C#] protected bool Active {get;}


[33367] [C++] protected: _property bool get_Active( );


[33368] [VB] Protected ReadOnly Property Active As Boolean


[33369] [JScript] protected function get Active( ): Boolean;


[33370] Description


[33371] Gets or Sets a value that indicates whether System.Net.Sockets.TcpListener is actively listening for client connections.


[33372] LocalEndpoint


[33373] ToString


[33374] [C#] public EndPoint LocalEndpoint {get;}


[33375] [C++] public: _property EndPoint* get_LocalEndpoint( );


[33376] [VB] Public ReadOnly Property LocalEndpoint As EndPoint


[33377] [JScript] public function get LocalEndpoint( ): EndPoint;


[33378] Description


[33379] Gets the underlying System.Net.Sockets.EndPoint of System.Net.Sockets.TcpListener.


[33380] Server


[33381] ToString


[33382] [C#] protected Socket Server {get;}


[33383] [C++] protected: _property Socket* get_Server( );


[33384] [VB] Protected ReadOnly Property Server As Socket


[33385] [JScript] protected function get Server( ): Socket;


[33386] Description


[33387] Used by the class to get or set the underlying network socket.


[33388] Use this property to get the underlying System.Net.Sockets.Socket instance of System.Net.Sockets.TcpListener.


[33389] AcceptSocket


[33390] [C#] public Socket AcceptSocket( );


[33391] [C++] public: Socket* AcceptSocket( );


[33392] [VB] Public Function AcceptSocket( ) As Socket


[33393] [JScript] public function AcceptSocket( ): Socket;


[33394] Description


[33395] Accepts a pending connection request.


[33396] Return Value: A System.Net.Sockets.Socket instance to handle the incoming connection request.


[33397] System.Net.Sockets.TcpListener.AcceptSocket returns a System.Net.Sockets.Socket instance used to facilitate communication with the connecting client. This System.Net.Sockets.Socket is initialized with the IP Address and port number of the connecting client. You can use any of the System.Net.Sockets.Socket.Send(System.Byte[ ],System.Int32, System.Net.Sock ets.SocketFlags) and System.Net.Sockets.Socket.Receive(System.Byte[ ],System.Int32, System.Net.Sockets. SocketFlags) methods available in the System.Net.Sockets.Socket class to facilitate communication.


[33398] AcceptTcpClient


[33399] [C#] public TcpClient AcceptTcpClient( );


[33400] [C++] public: TcpClient* AcceptTcpClient( );


[33401] [VB] Public Function AcceptTcpClient( ) As TcpClient


[33402] [JScript] public function AcceptTcpClient( ): TcpClient;


[33403] Description


[33404] Accepts a pending connection request


[33405] Return Value: A System.Net.Sockets.TcpClient instance to handle the incoming connection request.


[33406] System.Net.Sockets.TcpListener.AcceptTcpClient returns System.Net.Sockets.TcpClient instance used to facilitate communication with the connecting client. Use System.Net.Sockets.TcpClient.GetStream to obtain the underlying System.Net.Sockets.NetworkStream instance of System.Net.Sockets.TcpClient. You can use this System.Net.Sockets.TcpClient.NetworkStream to facilitate communication with the client.


[33407] Finalize


[33408] [C#]˜TcpListener( );


[33409] [C++]˜TcpListener( );


[33410] [VB] Overrides Protected Sub Finalize( )


[33411] [JScript] protected override function Finalize( );


[33412] Description


[33413] Frees resources used by the System.Net.Sockets.TcpClient class.


[33414] The finalizer for the System.Net.Sockets.TcpListener class calls the System.Net.Sockets.TcpListener.Stop method to free the underlying System.Net.Sockets.Socket.


[33415] Pending


[33416] [C#] public bool Pending( );


[33417] [C++] public: bool Pending( );


[33418] [VB] Public Function Pending( ) As Boolean


[33419] [JScript] public function Pending( ): Boolean;


[33420] Description


[33421] Determine if there are pending connection requests.


[33422] Return Value: true if connections are pending; otherwise, false.


[33423] Before System.Net.Sockets.TcpListener can poll for client connection attempts, it must first initialize its underlying System.Net.Sockets.Socket instance to listen for incoming connection requests. The way you inititailize the underlying System.Net.Sockets.Socket is by calling the System.Net.Sockets.TcpListener.Start method.


[33424] Start


[33425] [C#] public void Start( );


[33426] [C++] public: void Start( );


[33427] [VB] Public Sub Start( )


[33428] [JScript] public function Start( );


[33429] Description


[33430] Starts listening to network requests.


[33431] System.Net.Sockets.TcpListener.Start initializes the underlying System.Net.Sockets.Socket instance. After this initialization, System.Net.Sockets.Start does the following: Binds the underlying System.Net.Sockets.Socket instance using the underlying System.Net.Sockets.IPEndPoint instance Begins listening for client connections by calling the System.Net.Sockets.Socket.Listen(System.Int32) method of the underlying System.Net.Sockets.Socket instance.


[33432] Stop


[33433] [C#] public void Stop( );


[33434] [C++] public: void Stop( );


[33435] [VB] Public Sub Stop( )


[33436] [JScript] public function Stop( );


[33437] Description


[33438] Closes the network connection.


[33439] Close closes the network connection.


[33440] UdpClient class (System.Net.Sockets)


[33441] ToString


[33442] Description


[33443] Provides UDP (User Datagram Protocol) network services.


[33444] The System.Net.Sockets.UdpClient class builds upon the System.Net.Sockets.Socket class to provide UDP services at a higher level of abstraction. Because UDP is a connectionless transport protocol, you do not need to establish a remote host connection prior to sending and receiving data. You do however, have the option to establish a System.Net.Sockets.UdpClient connection with a remote host using one of the following ways.


[33445] UdpClient


[33446] Example Syntax:


[33447] ToString


[33448] [C#] public UdpClient( );


[33449] [C++] public: UdpClient( );


[33450] [VB] Public Sub New( )


[33451] [JScript] public function UdpClient( ); Initializes a new instance of the System.Net.Sockets.UdpClient class.


[33452] Description


[33453] Initializes a new instance of the System.Net.Sockets.UdpClient class.


[33454] The default constructor sets the IP address to System.Net.IPAddress.Any and the port number to 0.


[33455] UdpClient


[33456] Example Syntax:


[33457] ToString


[33458] [C#] public UdpClient(int port);


[33459] [C++] public: UdpClient(int port);


[33460] [VB] Public Sub New(ByVal port As Integer)


[33461] [JScript] public function UdpClient(port: int);


[33462] Description


[33463] Initializes a new instance of the System.Net.Sockets.UdpClient class that communicates on a specified port.


[33464] The port parameter specifies the local port number on which you intend to communicate. This constructor instantiates an underlying System.Net.Sockets.Socket and binds that System.Net.Sockets.Socket using the provided port number. This constructor configures the underlying System.Net.Sockets.Socket to use the default local network interface for communication. The local port number from which you intend to communicate.


[33465] UdpClient


[33466] Example Syntax:


[33467] ToString


[33468] [C#] public UdpClient(IPEndPoint localEP);


[33469] [C++] public: UdpClient(IPEndPoint* localEP);


[33470] [VB] Public Sub New(ByVal localEP As IPEndPoint)


[33471] [JScript] public function UdpClient(localEP: IPEndPoint);


[33472] Description


[33473] Initializes a new instance of the System.Net.Sockets.UdpClient class that communicates on a specified local endpoint.


[33474] The localEP parameter specifies the local end point. This constructor instantiates a socket and binds that socket to the local end point provided. The local endpoint to which you bind the Udp connection.


[33475] UdpClient


[33476] Example Syntax:


[33477] ToString


[33478] [C#] public UdpClient(string hostname, mt port);


[33479] [C++] public: UdpClient(String* hostname, int port);


[33480] [VB] Public Sub New(ByVal hostname As String, ByVal port As Integer)


[33481] [JScript] public function UdpClient(hostname: String, port: int);


[33482] Description


[33483] Initializes a new instance of the System.Net.Sockets.UdpClient class and connects to a specified remote host on a specified port.


[33484] This constructor accepts two parameters. The remote host name to which you intend to connect The remote port number to which you intend to connect


[33485] Active


[33486] ToString


[33487] [C#] protected bool Active {get; set;}


[33488] [C++] protected: _property bool get_Active( );protected: _property void set_Active(bool);


[33489] [VB] Protected Property Active As Boolean


[33490] [JScript] protected function get Active( ): Boolean;protected function set Active(Boolean);


[33491] Description


[33492] Gets or sets a value indicating whether a connection to a remote host has been made.


[33493] Client


[33494] ToString


[33495] [C#] protected Socket Client {get; set;}


[33496] [C++] protected: _property Socket* get_Client( );protected: _property void set_Client(Socket*);


[33497] [VB] Protected Property Client As Socket


[33498] [JScript] protected function get Client( ): Socket;protected function set is Client(Socket);


[33499] Description


[33500] Gets or sets the underlying network socket.


[33501] System.Net.Sockets.UdpClient creates a System.Net.Sockets.Socket instance to handle the actual sending and receiving of data over a network.


[33502] Close


[33503] [C#] public void Close( );


[33504] [C++] public: void Close( );


[33505] [VB] Public Sub Close( )


[33506] [JScript] public function Close( );


[33507] Description


[33508] Closes the UDP connection.


[33509] System.Net.Sockets.TcpClient.Close disposes the UDP connection.


[33510] Connect


[33511] [C#] public void Connect(IPEndPoint endPoint);


[33512] [C++] public: void Connect(IPEndPoint* endPoint);


[33513] [VB] Public Sub Connect(ByVal endPoint As IPEndPoint)


[33514] [JScript] public function Connect(endPoint: IPEndPoint);


[33515] Description


[33516] Connects the client to a remote UDP host using the specified remote network endpoint.


[33517] System.Net.Sockets.UdpClient.Connect(System.String,System.Int32) establishes a UDP connection to the host using the specified System.Net.IPEndPoint . The network endpoint to which you intend to connect.


[33518] Connect


[33519] [C#] public void Connect(IPAddress addr, int port);


[33520] [C++] public: void Connect(IPAddress* addr, int port);


[33521] [VB] Public Sub Connect(ByVal addr As IPAddress, ByVal port As Integer)


[33522] [JScript] public function Connect(addr: IPAddress, port: int);


[33523] Description


[33524] Connects the client to a remote UDP host using the specified IP Address and port number.


[33525] System.Net.Sockets.TcpClient.Connect(System.String,System.Int32) establishes a UDP connection using the port and IP address specified. This method establishes a connection by calling the System.Net.Sockets.Socket.Connect(System.Net.EndPoint) method of the underlying System.Net.Sockets.Socket instance. After a connection is established, you can use the System.Net.Sockets.UdpClient.Send(System.Byte[ ],System.Int32, System.Net.I PEndPoint) and System.Net.Sockets.UdpClient.Receive(System.Net.IPEndPoint@) methods to communicate with the remote host. IP address of the host to which you intend to connect. The port number to which you intend to connect.


[33526] Connect


[33527] [C#] public void Connect(string hostname, int port);


[33528] [C++] public: void Connect(String* hostname, int port);


[33529] [VB] Public Sub Connect(ByVal hostname As String, ByVal port As Integer)


[33530] [JScript] public finction Connect(hostname: String, port: int); Establishes a connection to a remote host.


[33531] Description


[33532] Establishes a connection to the specified port on the specified remote host.


[33533] System.Net.Sockets.TcpClient.Connect(System.String,System.Int32) establishes a UDP connection to the host machine using the specified port and hostname . This method establishes a connection by calling the System.Net.Sockets.Socket.Connect(System.Net.EndPoint) method of the underlying System.Net.Sockets.Socket instance. Once a connection is established, you can use the System.Net.Sockets.UdpClient.Send(System.Byte[ ],System.Int32, System.Net.IPEndPoint) and System.Net.Sockets.UdpCIient.Receive(System.Net.IPEndPoint@) methods to communicate with the remote host. Name of the remote host to which you intend to connect. Port number on the remote host to which you intend to connect.


[33534] DropMulticastGroup


[33535] [C#] public void DropMulticastGroup(IPAddress multicastAddr);


[33536] [C++] public: void DropMulticastGroup(IPAddress* multicastAddr);


[33537] [VB] Public Sub DropMulticastGroup(ByVal multicastAddr As IPAddress)


[33538] [JScript] public function DropMulticastGroup(multicastAddr: IPAddress);


[33539] Description


[33540] Leaves a multicast group.


[33541]


[33542] System.Net.Sockets.UdpClient.DropMulticastGroup(System.Net.IPAddress) disassociates a System.Net.Sockets.UdpClient instance with a multicast group. In order to remove the System.Net.Sockets.UdpClient instance from a multicast group, you must call System.Net.Sockets.UdpClient.DropMulticastGroup(System.Net.IPAddress) using the System.Net.Sockets.IPAddress of the group from which you intend to withdrawal. The System.Net.IPAddressof the multicast group to leave.


[33543] JoinMulticastGroup


[33544] [C#] public void JoinMulticastGroup(IPAddress multicastAddr);


[33545] [C++] public: void JoinMulticastGroup(IPAddress* multicastAddr);


[33546] [VB] Public Sub JoinMulticastGroup(ByVal multicastAddr As IPAddress)


[33547] [JScript] public function JoinMulticastGroup(multicastAddr: IPAddress); Adds a System.Net.Sockets.UdpClient to a multicast group.


[33548] Description


[33549] Adds a System.Net.Sockets.UdpClient to a multicast group.


[33550] System.Net.Sockets.UdpClient.JoinMulticastGroup(System.Net.IPAdd ress) associates the System.Net.Sockets.UdpClient instance with a multicast group. In order to receive data from this group, you must call System.Net.Sockets.UdpClient.JoinMulticastGroup(System.Net.IPAddress) using the System.Net.Sockets.IPAddress of the group to which you intend to join. The multicast System.Net.Sockets.IPAddress of the group you wish to join.


[33551] JoinMulticastGroup


[33552] [C#] public void JoinMulticastGroup(IPAddress multicastAddr, int timeToLive);


[33553] [C++] public: void JoinMulticastGroup(IPAddress* multicastAddr, int timeToLive);


[33554] [VB] Public Sub JoinMulticastGroup(ByVal multicastAddr As IPAddress, ByVal timeToLive As Integer)


[33555] [JScript] public function JoinMulticastGroup(multicastAddr: IPAddress, timeToLive: int);


[33556] Description


[33557] Adds a System.Net.Sockets.UdpClient to a multicast group with the specified Time to Live (TTL).


[33558] System.Net.Sockets.UdpClient.JoinMulticastGroup(System.Net.IPAdd * ress) associates the System.Net.Sockets.UdpClient instance with a multicast group. This overload requires two parameters. The System.Net.IPAddress of the mulficast group to join. The Time to Live (TTL)


[33559] Receive


[33560] [C#] public byte[ ]Receive(ref IPEndPoint remoteEP);


[33561] [C++] public: unsigned char Receive(IPEndPoint** remoteEP) _gc[ ];


[33562] [VB] Public Function Receive(ByRef remoteEP As IPEndPoint) As Byte( )


[33563] [JScript] public function Receive(remoteEP: IPEndPoint): Byte[ ];


[33564] Description


[33565] Returns a UDP datagram that was sent by a remote host.


[33566] Return Value: An array of 8-bit unsigned integers that contains the datagram data. An System.Net.IPEndPoint representing the remote host from which the data was sent.


[33567] Send


[33568] [C#] public int Send(byte[ ]dgram, int bytes);


[33569] [C++] public: int Send(unsigned char dgram _gc[ ], int bytes);


[33570] [VB] Public Function Send(ByVal dgram( ) As Byte, ByVal bytes As Integer) As Integer


[33571] [JScript] public function Send(dgram: Byte[ ], bytes: int): int;


[33572] Description


[33573] Sends a UDP datagram to a remote host.


[33574] Return Value: The number of bytes sent.


[33575] System.Net.Sockets.UdpClient.Send(System.Byte[ ],System.Int32, Syste m.Net.IPEndPoint) sends the provided datagram to a remote host. Before using System.Net.Sockets.UdpClient.Send(System.Bytel[ ],System.lnt32, System.Net.IPEndPoint), you must first use System.Net.Sockets.UdpClient.Connect(System.String,System.Int32) to establish a remote host connection. The UDP datagram that you intend to send. The number of bytes in the datagram.


[33576] Send


[33577] [C#] public int Send(byte[ ]dgram, int bytes, IPEndPoint endPoint);


[33578] [C++] public: int Send(unsigned char dgram _gc[ ], int bytes, IPEndPoint* endpoint);


[33579] [VB] Public Function Send(ByVal dgram( ) As Byte, ByVal bytes As Integer, ByVal endPoint As IPEndPoint) As Integer


[33580] [JScript] public function Send(dgram: Byte[ ], bytes: int, endPoint: IPEndPoint): int; Sends a UDP datagram to a remote host.


[33581] Description


[33582] Sends a UDP datagram to the host that is at the remote endpoint.


[33583] Return Value: The number of bytes sent.


[33584] The System.Net.Sockets.UdpClient.Send(System.Byte[ ],System.Int32, System.Net.IPEndPoint) method establishes a UDP connection to the remote host using the specified System.Net.IPEndPoint, and then sends the datagram. The UDP datagram to send. The number of bytes in the datagram. An System.Net.IPEndPoint that represents the host and port to which to send the datagram.


[33585] Send


[33586] [C#] public int Send(byte[ ]dgram, int bytes, string hostname, int port);


[33587] [C++] public: mnt Send(unsigned char dgram _gc[ ], int bytes, String* hostname, int port);


[33588] [VB] Public Function Send(ByVal dgram( ) As Byte, ByVal bytes As Integer, ByVal hostname As String, ByVal port As Integer) As Integer


[33589] [JScript] public function Send(dgram: Byte[ ], bytes: int, hostname: String, port: int): int;


[33590] Description


[33591] Sends a UDP datagram to a specified port on a specified remote host.


[33592] Return Value: The number of bytes sent.


[33593] System.Net.Sockets.UdpClient.Send(System.Byte[ ],System.Int32, Syste m.Net.IPEndPoint) establishes a UDP connection to the specified host and port and then sends the datagram. The data is sent by calling the System.Net.Sockets.Socket.SendTo(System.Byte[ ],System.Int32, System.Int32, System.Net.Sockets.SocketFlags,System.Net.EndPoint) method of the underlying System.Net.Sockets.Socket instance. The UDP datagram to send.


[33594] SYSTEM.SECURITY NAMESPACE


[33595] The System.Security namespace provides the underlying structure of the security system, including base classes for permissions. Cryptographic classes in the namespace are integrated with streams, allowing the classes to be used with file or network I/O seamlessly. Additionally, security is made available due to isolated storage that allows code running with restricted permissions to use its own private file system. Furthermore, a role-based user identity programming model is unified across different underlying authentication technologies, enabling applications to write to a single API that works for all the authentication technologies. As part of this role-based user identity programming model, an Ildentity interface defines the basic functionality of an identity object (which represents the user on whose behalf the code is running), and an IPrincipal interface defines the basic functionality of a principal object (which represents the security context of the user on whose behalf the code is running, including that user's identity (Ildentity) and any roles to which the user belongs).


[33596] The System.Security namespace includes a System.Security.Cryptography namespace, a System.Security.Cryptography.X509Certificates namespace, a System.Security.Cryptography.Xml namespace, a System.Security.Permissions namespace, a System.Security.Policy namespace, and a System.Security.Principal namespace.


[33597] The System.Security.Cryptography namespace provides cryptographic services, including secure encoding and decoding of data, as well as many other operations, such as hashing, random number generation, and message authentication. The System.Security.Cryptography.X509Certificates namespace contains the common language runtime implementation of the Authenticode X.509 v.3 certificate. This certificate is signed with a private key, uniquely and positively identifying the holder of the certificate. The System.Security.Cryptography.Xml namespace contains an XML model for use within the net framework security system, allowing XML objects to be signed with a digital signature.


[33598] The System.Security.Permissions namespace defines classes that control access to operations and resources based on policy. The System.Security.Policy namespace contains three types of classes: code groups, membership conditions, and evidence. These three types of classes are used to create the rules applied by the common language runtime security policy system. Evidence classes are the input to security policy and membership conditions are the switches; together these create policy statements and determine the granted permission set. Policy levels and code groups are the structure of the policy hierarchy. Code groups are the encapsulation of a rule and are arranged hierarchically in a policy level. The System.Security.Principal namespace defines a principal object that represents the security context under which code is running.


[33599] System.Management Namespace


[33600] The System.Management namespace includes numerous objects and methods that enable rich management through late binding to WMI providers. Various management finctionality and capacity is made available, including standard querying on management data, events-publication/subscription, management data retrieval, method invocation (system reboots, process kill, etc.), system/application configuration, discoverability through common schema, support for management relationship hierarchies, etc.


[33601] Numerous objects representing management instrumentation are accessible through the System.Management namespace (which includes the System.Management.Instrumentation namespace), from configuration to events that can be consumed by NET clients to manage devices. The System.Management namespace exposes multiple classes (e.g., ManagementObject( ) and ManagementObjectSearcher( ), etc.) that allow client devices to query and enumerate through management classes and invoke methods, write configurations, subscribe for events, etc. Examples of this functionality include: SNMP management (traps, etc.); WDM management (windows drivers); MSI management (windows installer); DS management (directory services); Security settings management; Network Adapters/bindings management; Computer System management; Memory, CPU, Processor, and Disks management; File and directory management; Application management; System Device management; and so forth.


[33602] System.ServiceProcess Namespace


[33603] As discussed above, the System.ServiceProcess namespace contains classes that allow developers to install and run services. These allow services (e.g., Windows NT® operating system services) to be written, installed, and run relatively easily. These also allow custom installation actions for services to be packaged into assemblies, easing the installation process.


[33604] System.Runtime.Serialization Namespace


[33605] The System.Runtime.Serialization namespace contains classes that can be used for serializing and deserializing objects in a relatively simple manner. Serialization is the process of converting an object or a graph of objects int( ) a linear sequence of bytes for either storage or transmission to another location. Deserialization is the process of taking in stored information and recreating objects from it. An ISerializable interface provides a way for classes to control their own serialization behavior. The System.Runtime.Serialization namespace includes three additional namespaces: the System.Runtime.Serialization.Formatters namespace (which contains common enumerations, interfaces and classes that are used by serialization formatters), the System.Runtime.Serialization.Formatters.Binary namespace (which contains a BinaryFormatter class that can be used to serialize and deserialize objects in binary format), and the System.Runtime.Serialization.Formatters.Soap namespace (which contains a SoapFormatter class that can be used to serialize and deserialize objects in the SOAP format).


[33606] System.Messaging Namespace


[33607] The System.Messaging namespace provides classes that allow connecting to message queues on the network, sending messages to queues, receiving messages from queues, and peeking at (reading without removing) messages from queues. A MessageQueue class supports both synchronous and asynchronous retrieval of messages from a queue. Peek and Receive methods on the MessageQueue class interrupt processing until a message is available in the queue (or until a specified timeout expires), while BeginPeek and BeginReceive methods on the MessageQueue class allow processing to continue and use event notification or callbacks to indicate that a message exists or has arrived in the queue. MessageQueue use an internal connection cache (or pool), allowing repeated instantiation of MessageQueue to bind to the same queue very quickly. Additionally, any object can be sent or received as a message, and the object on the server and client can be of a different type (as long as the schemas are the same).


[33608] The MessageQueue class and Message class are the primary classes that provide the functionality for message queuing. MessageQueue provides a means for getting and setting queue properties and default message properties, as well as initiating message send, peek, or receive operations. MessageQueue also provides support for transactional message processing. The Message class is used to peek or receive messages from a queue, or to have fine control over message properties when sending a message to a queue.


[33609] System.Diagnostics Namespace


[33610] As discussed above, the System.Diagnostics namespace contains classes that are used to debug applications and to trace code execution, as well as start system processes, read and write to event logs, and monitor system performance. These classes allow, for example, easy publishing of performance counter data and writing to event logs (e.g., without having to generate separate dll's in order to do so). A Trace class contains a set of methods and properties that help a developer trace the execution of code. A Debug class contains a set of methods and properties that help a developer debug code. A Process class enables access to local and remote processes, allowing a developer to start and stop local system processes. An EventLog class enables interaction with Windows® operating systems event logs, which record information about important software or hardware events. A PerformanceCounter class represents a Windows NT® operating system performance counter component that can be used for both reading existing predefined or custom counters and publishing (writing) performance data to custom counters.


[33611] Exemplary Computing System and Enviroment


[33612]
FIG. 4 illustrates an example of a suitable computing environment 400 within which the programming framework 132 may be implemented (either fully or partially). The computing environment 400 may be utilized in the computer and network architectures described herein.


[33613] The exemplary computing environment 400 is only one example of a computing environment and is not intended to suggest any limitation as to the scope of use or functionality of the computer and network architectures. Neither should the computing environment 400 be interpreted as having any dependency requirement relating to any one or combination of components illustrated in the exemplary computing environment 400.


[33614] The framework 132 may be implemented with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use include, but are not limited to, personal computers, server computers, multiprocessor systems, microprocessor-based systems, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and so on. Compact or subset versions of the framework may also be implemented in clients of limited resources, such as cellular phones, personal digital assistants, handheld computers, or other communication/computing devices.


[33615] The framework 132 may be described in the general context of computer-executable instructions, such as program modules, being executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The framework 132 may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.


[33616] The computing environment 400 includes a general-purpose computing device in the form of a computer 402. The components of computer 402 can include, by are not limited to, one or more processors or processing units 404, a system memory 406, and a system bus 408 that couples various system components including the processor 404 to the system memory 406.


[33617] The system bus 408 represents one or more of several possible types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures can include an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnects (PCI) bus also known as a Mezzanine bus.


[33618] Computer 402 typically includes a variety of computer readable media. Such media can be any available media that is accessible by computer 402 and includes both volatile and non-volatile media, removable and non-removable media.


[33619] The system memory 406 includes computer readable media in the form of volatile memory, such as random access memory (RAM) 410, and/or non-volatile memory, such as read only memory (ROM) 412. A basic input/output system (BIOS) 414, containing the basic routines that help to transfer information between elements within computer 402, such as during start-up, is stored in ROM 412. RAM 410 typically contains data and/or program modules that are immediately accessible to and/or presently operated on by the processing unit 404.


[33620] Computer 402 may also include other removable/non-removable, volatile/non-volatile computer storage media. By way of example, FIG. 4 illustrates a hard disk drive 416 for reading from and writing to a non-removable, non-volatile magnetic media (not shown), a magnetic disk drive 418 for reading from and writing to a removable, non-volatile magnetic disk 420 (e.g., a “floppy disk”), and an optical disk drive 422 for reading from and/or writing to a removable, non-volatile optical disk 424 such as a CD-ROM, DVD-ROM, or other optical media. The hard disk drive 416, magnetic disk drive 418, and optical disk drive 422 are each connected to the system bus 408 by one or more data media interfaces 426. Alternatively, the hard disk drive 416, magnetic disk drive 418, and optical disk drive 422 can be connected to the system bus 408 by one or more interfaces (not shown).


[33621] The disk drives and their associated computer-readable media provide non-volatile storage of computer readable instructions, data structures, program modules, and other data for computer 402. Although the example illustrates a hard disk 416, a removable magnetic disk 420, and a removable optical disk 424, it is to be appreciated that other types of computer readable media which can store data that is accessible by a computer, such as magnetic cassettes or other magnetic storage devices, flash memory cards, CD-ROM, digital versatile disks (DVD) or other optical storage, random access memories (RAM), read only memories (ROM), electrically erasable programmable read-only memory (EEPROM), and the like, can also be utilized to implement the exemplary computing system and environment.


[33622] Any number of program modules can be stored on the hard disk 416, magnetic disk 420, optical disk 424, ROM 412, and/or RAM 410, including by way of example, an operating system 426, one or more application programs 428, other program modules 430, and program data 432. Each of the operating system 426, one or more application programs 428, other program modules 430, and program data 432 (or some combination thereof) may include elements of the programming framework 132.


[33623] A user can enter commands and information int( ) computer 402 via input devices such as a keyboard 434 and a pointing device 436 (e.g., a “mouse”). Other input devices 438 (not shown specifically) may include a microphone, joystick, game pad, satellite dish, serial port, scanner, and/or the like. These and other input devices are connected to the processing unit 404 via input/output interfaces 440 that are coupled to the system bus 408, but may be connected by other interface and bus structures, such as a parallel port, game port, or a universal serial bus (USB).


[33624] A monitor 442 or other type of display device can also be connected to the system bus 408 via an interface, such as a video adapter 444. In addition to the monitor 442, other output peripheral devices can include components such as speakers (not shown) and a printer 446 which can be connected to computer 402 via the input/output interfaces 440.


[33625] Computer 402 can operate in a networked environment using logical connections to one or more remote computers, such as a remote computing device 448. By way of example, the remote computing device 448 can be a personal computer, portable computer, a server, a router, a network computer, a peer device or other common network node, and so on. The remote computing device 448 is illustrated as a portable computer that can include many or all of the elements and features described herein relative to computer 402.


[33626] Logical connections between computer 402 and the remote computer 448 are depicted as a local area network (LAN) 450 and a general wide area network (WAN) 452. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets, and the Internet.


[33627] When implemented in a LAN networking environment, the computer 402 is connected to a local network 450 via a network interface or adapter 454. When implemented in a WAN networking environment, the computer 402 typically includes a modem 456 or other means for establishing communications over the wide network 452. The modem 456, which can be internal or external to computer 402, can be connected to the system bus 408 via the input/output interfaces 440 or other appropriate mechanisms. It is to be appreciated that the illustrated network connections are exemplary and that other means of establishing communication link(s) between the computers 402 and 448 can be employed.


[33628] In a networked environment, such as that illustrated with computing environment 400, program modules depicted relative to the computer 402, or portions thereof, may be stored in a remote memory storage device. By way of example, remote application programs 458 reside on a memory device of remote computer 448. For purposes of illustration, application programs and other executable program components such as the operating system are illustrated herein as discrete blocks, although it is recognized that such programs and components reside at various times in different storage components of the computing device 402, and are executed by the data processor(s) of the computer.


[33629] An implementation of the framework 132, and particularly, the API 142 or calls made to the API 142, may be stored on or transmitted across some form of computer readable media. Computer readable media can be any available media that can be accessed by a computer. By way of example, and not limitation, computer readable media may comprise “computer storage media” and “communications media.” “Computer storage media” include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. “Communication media” typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as carrier wave or other transport mechanism. Communication media also includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared, and other wireless media. Combinations of any of the above are also included within ig the scope of computer readable media.


[33630] Alternatively, portions of the framework may be implemented in hardware or a combination of hardware, software, and/or firmware. For example, one or more application specific integrated circuits (ASICs) or programmable logic devices (PLDs) could be designed or programmed to implement one or more portions of the framework.


[33631] Conclusion


[33632] Although the invention has been described in language specific to structural features and/or methodological acts, it is to be understood that the invention defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the claimed invention.


Claims
  • 1. A software architecture for a distributed computing system comprising: an application configured to handle requests submitted by applications executing on remote devices over a network; and an application program interface to present functions used by the applications to access network and computing resources of the distributed computing system, wherein the application program interface comprises a set of base classes and types that are used in substantially all applications executing on the remote devices submitting requests.
  • 2. A software architecture as recited in claim 1, wherein the set of base types comprises: an AsyncCallback delegate supplied to an application, wherein the AsyncCallback delegate references a callback method to be called when a corresponding asynchronous operation is completed; and an IAsyncResult interface that enables determination of the status of an asynchronous operation.
  • 3. A software architecture as recited in claim 2, wherein the IAsyncResult interface includes: an AsyncState property that returns the object that was provided as the last parameter as part of a Begin call corresponding to the asynchronous operation; an AsyncWaitHandle property that returns a WaitHandle that can be used to allow the application to wait for a call to be completed without needing to poll; a CompletedSynchronously property that is set to true if the Begin call corresponding to the asynchronous operation completed synchronously; and an IsCompleted property that is set to true after processing of the asynchronous operation is completed.
  • 4. A software architecture as recited in claim 1, wherein the set of types support an event model including an event delegate that connects an event with a handler of the event, the set of base classes and types further comprising: one or more classes that hold event data; and one or more delegates that identify a method to provide a response to an event.
  • 5. A software architecture as recited in claim 1, wherein the application program interface further comprises a collections namespace that includes a plurality of classes and interfaces for in-memory data storage and manipulation.
  • 6. A software architecture as recited in claim 5, wherein the collections namespace includes, as at least part of the plurality of types: a first set of types including commonly used collection classes; a second set of types including interfaces to define a formal contract between developers creating new collections and developers consuming collections; and a third set of types that support creating strongly typed collections.
  • 7. A software architecture as recited in claim 1, wherein the application program interface further comprises a globalization namespace that includes a plurality of classes that define culture-related information, wherein the plurality of classes include a first set of types representing information about a user's culture and a second set of types representing information about a user's region.
  • 8. A software architecture as recited in claim 1, wherein the application program interface further comprises a net namespace that includes a plurality of Classes that enables use of network resources without details of one or more protocols used to access the network resources.
  • 9. A software architecture as recited in claim 1, wherein the application program interface further comprises a security namespace that includes a plurality of classes and interfaces that make available an underlying structure of a security system including one or more cryptographic services, code access security and role based security infrastructure.
  • 10. A software architecture as recited in claim 1, wherein the application program interface further comprises a service process namespace that includes a plurality of classes that allow installation and running of services.
  • 11. A software architecture as recited in claim 1, wherein the application program interface further comprises a serialization namespace that includes a plurality of classes that enable serializing and deserializing of instance data.
  • 12. A software architecture as recited in claim 1, wherein the application program interface further comprises a diagnostics namespace that includes a plurality of classes that enable debugging of applications, trace code execution, reading event logs, writing event logs, and monitoring system performance.
  • 13. A software architecture as recited in claim 1, wherein the application program interface further comprises a messaging namespace that includes a plurality of classes that enable connecting to message queues on the network, sending messages to message queues, receiving messages from message queues, and peeking at messages from message queues.
  • 14. An application program interface, embodied on one or more computer readable media, comprising: an AsyncCallback delegate supplied to an application, wherein the AsyncCallback delegate references a callback method to be called when a corresponding asynchronous operation is completed; and an lAsyncResult interface that enables determination of the status of an asynchronous operation.
  • 15. An application program interface as recited in claim 14, wherein the IAsyncResult interface includes: an AsyncState property that returns the object that was provided as the last parameter as part of a Begin call corresponding to the asynchronous operation; an AsyncWaitHandle property that returns a WaitHandle that can be used to allow the application to wait for a call to be completed without needing to poll; a CompletedSynchronously property that is set to true if the Begin call corresponding to the asynchronous operation completed synchronously; and an IsCompleted property that is set to true after processing of the asynchronous operation is completed.
  • 16. A distributed computer software architecture, comprising: one or more applications configured to be executed on one or more computing devices, the applications handling requests submitted from remote computing devices; a networking platform to support the one or more applications; and an application programming interface to interface the one or more applications with the networking platform, wherein the application program interface comprises a set of types that are used in each of the one or more applications.
  • 17. A distributed computer software architecture as recited in claim 16, wherein the set of base classes and types comprises: an AsyncCallback delegate supplied to an application, wherein the AsyncCallback delegate references a callback method to be called when a corresponding asynchronous operation is completed; and an IAsyncResult interface that enables determination of the status of an asynchronous operation.
  • 18. A method comprising: receiving one or more application program interface (API) calls from one or more remote devices over a network, wherein the one or more calls are to one or more functions that include a set of base classes and types that are used in substantially all applications executing on the one or more remote devices; and performing the function requested in each of the one or more calls.
  • 19. A method as recited in claim 18, wherein the set of base classes and types comprises: an AsyncCallback delegate supplied to an application, wherein the AsyncCallback delegate references a callback method to be called when a corresponding asynchronous operation is completed; and an lAsyncResult interface that enables determination of the status of an asynchronous operation.
  • 20. A method as recited in claim 18, wherein the set of base classes and types support an event model including an event delegate that connects an event with a handler of the event, the set of base classes and types further comprising: one or more classes that hold event data; and one or more delegates that identify a method to provide a response to an event.
  • 21. A method as recited in claim 18, wherein the application program interface further comprises a collections namespace that includes a plurality of classes and interfaces for in-memory data storage and manipulation.
  • 22. A method as recited in claim 18, wherein the application program interface further comprises a globalization namespace that includes a plurality of classes that define culture-related information, wherein the plurality of classes include a first set of types representing information about a user's culture and a second set of types representing information about a user's region.
  • 23. A method as recited in claim 18, wherein the application program interface further comprises a net namespace that includes a plurality of classes that enables use of Internet resources without details of one or more protocols used to access the Internet resources.
  • 24. A method comprising: calling, to one or more remote devices over a network, one or more functions via an application program interface (API) that make available a set of base classes and types that are used in substantially all applications calling the one or more functions; receiving, from the one or more remote devices, a response to the calling.
  • 25. A method as recited in claim 24, wherein the set of base classes and types comprises: an AsyncCallback delegate supplied to an application, wherein the AsyncCallback delegate references a callback method to be called when a corresponding asynchronous operation is completed; and an IAsyncResult interface that enables determination of the status of an asynchronous operation.
  • 26. A method as recited in claim 24, wherein the set of types support an event model including an event delegate that connects an event with a handler of the event, the set of base classes and types further comprising: one or more classes that hold event data; and one or more delegates that identify a method to provide a response to an event.
  • 27. A method as recited in claim 24, wherein the application program interface further comprises a collections namespace that includes a plurality of classes and interfaces for in-memory data storage and manipulation.
  • 28. A method as recited in claim 24, wherein the application program interface further comprises a globalization namespace that includes a plurality of classes that define culture-related information, wherein the plurality of classes include a first set of types representing information about a user's culture and a second set of types representing information about a user's region.
  • 29. A method as recited in claim 24, wherein the application program interface further comprises a net namespace that includes a plurality of classes that enables use of Internet resources without details of one or more protocols used to access the Internet resources.