ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.Windows
Nothing Class
Nothing Methods
Nothing Fields

# Nothing Class

Represents an empty object reference.
Inheritance Hierarchy
SystemObject
Microsoft.ClearScript.WindowsNothing
Namespace: Microsoft.ClearScript.Windows
Assembly: ClearScript.Windows.Core (in ClearScript.Windows.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public class Nothing

    Public Class Nothing

    public ref class Nothing

    type Nothing = class end

The Nothing type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
| GetHashCode | Serves as the default hash function. (Inherited from Object)
| GetType | Gets the Type of the current instance. (Inherited from Object)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
| ToString | Returns a string that represents the current object. (Overrides ObjectToString)

Top
Fields

| Name | Description
--- | --- | ---
| Value | The sole instance of the Nothing class.

Top
Remarks
When passed to a Windows Script engine, an instance of this class is marshaled as an empty variant of type VT_DISPATCH. VBScript interprets this as the special object reference Nothing. In JScript it appears as a value that is equal to, but not strictly equal to, undefined.
See Also

#### Reference

Microsoft.ClearScript.Windows Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft