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

# ScriptEngineEnableAutoHostVariables Property

Enables or disables automatic host variable tunneling for by-reference arguments to script functions and delegates.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public bool EnableAutoHostVariables { get; set; }

    Public Property EnableAutoHostVariables As Boolean
    	Get
    	Set

    public:
    virtual property bool EnableAutoHostVariables {
    	bool get () sealed;
    	void set (bool value) sealed;
    }

    abstract EnableAutoHostVariables : bool with get, set
    override EnableAutoHostVariables : bool with get, set

#### Property Value

Boolean

#### Implements

IScriptEngineEnableAutoHostVariables
Remarks
When this property is set to true, the script engine replaces by-reference arguments to script functions and delegates with host variables, allowing script code to simulate output arguments if the script language does not support them natively.
See Also

#### Reference

ScriptEngine Class
Microsoft.ClearScript Namespace
newVarT(T)

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft