ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
VoidResult Class
VoidResult Methods
VoidResult Fields

# VoidResult Class

Represents the result of a host method that returns no value.
Inheritance Hierarchy
SystemObject
Microsoft.ClearScriptVoidResult
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public class VoidResult

    Public Class VoidResult

    public ref class VoidResult

    type VoidResult = class end

The VoidResult 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 VoidResult class.

Top
Remarks
Some script languages expect every subroutine call to return a value. When script code written in such a language invokes a host method that explicitly returns no value (such as a C# void method), the ClearScript library provides an instance of this class as a dummy return value.
See Also

#### Reference

Microsoft.ClearScript Namespace
VoidResultValue

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft