ScriptEngineEnableNullResultWrapping Property |
Enables or disables null wrapping for field, property, and method return values.
Namespace:
Microsoft.ClearScript
Assembly:
ClearScript.Core (in ClearScript.Core.dll) Version: 7.2.4
Syntaxpublic bool EnableNullResultWrapping { get; set; }
Public Property EnableNullResultWrapping As Boolean
Get
Set
public:
property bool EnableNullResultWrapping {
bool get ();
void set (bool value);
}
member EnableNullResultWrapping : bool with get, set
Property Value
Type:
Boolean
Remarks
When this property is set to
true, all field, property, and method return values
are marshaled with full .NET type information even if they are
null. Note that
such values will always fail equality comparison with JavaScript's
null,
VBScript's
Nothing,
and other similar values. Instead, use
isNull(Object) or
Equals(Object, Object) to perform such a comparison.
See Also