ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ScriptEngine Class
ScriptEngine Properties
AccessContext Property
AllowReflection Property
ContinuationCallback Property
Current Property
CustomAttributeLoader Property
DefaultAccess Property
DisableDynamicBinding Property
DisableExtensionMethods Property
DisableFloatNarrowing Property
DisableListIndexTypeRestriction Property
DisableTypeRestriction Property
DocumentSettings Property
EnableAutoHostVariables Property
EnableNullResultWrapping Property
EnforceAnonymousTypeAccess Property
ExposeHostObjectStaticMembers Property
FileNameExtension Property
FormatCode Property
Global Property
HostData Property
Name Property
NullExportValue Property
NullImportValue Property
Script Property
UndefinedImportValue Property
UseReflectionBindFallback Property
VoidResultValue Property

# ScriptEngineNullExportValue Property

Gets or sets the script engine's null export value.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public Object NullExportValue { get; set; }

    Public Property NullExportValue As Object
    	Get
    	Set

    public:
    virtual property Object^ NullExportValue {
    	Object^ get () sealed;
    	void set (Object^ value) sealed;
    }

    abstract NullExportValue : Object with get, set
    override NullExportValue : Object with get, set

#### Property Value

Object

#### Implements

IScriptEngineNullExportValue
Remarks

When a null object reference is marshaled to script code, the script engine maps it to the value of this property. The default value is simply null, which corresponds to null or its closest equivalent in the script language. Other useful possibilities include Undefined.Value and Nothing.Value.

Note that WrapNullResult, EnableNullResultWrapping, and MarshalNullAsDispatch all take precedence over this property.

See Also

#### Reference

ScriptEngine Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft