ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
AsyncDocumentLoadCallback Delegate
ConcurrentPropertyBag Class
ContinuationCallback Delegate
CustomAttributeLoader Class
DefaultDocumentLoader Class
DefaultScriptUsageAttribute Class
Document Class
DocumentAccessFlags Enumeration
DocumentCategory Class
DocumentContextCallback Delegate
DocumentFlags Enumeration
DocumentInfo Structure
DocumentLoadCallback Delegate
DocumentLoader Class
DocumentSettings Class
DynamicHostObject Class
EventConnection Class
EventConnection<T> Class
EventSource Class
EventSource<T> Class
ExtendedHostFunctions Class
Extensions Class
HostFunctions Class
HostItemFlags Enumeration
HostSettings Class
HostTypeCollection Class
ImmutableValueAttribute Class
IPropertyBag Interface
IScriptableObject Interface
IScriptEngine Interface
IScriptEngineException Interface
IScriptObject Interface
NoDefaultScriptAccessAttribute Class
NoScriptAccessAttribute Class
PropertyBag Class
ScriptAccess Enumeration
ScriptEngine Class
ScriptEngineException Class
ScriptInterruptedException Class
ScriptMemberAttribute Class
ScriptMemberFlags Enumeration
ScriptObject Class
ScriptUsageAttribute Class
StringDocument Class
Undefined Class
ValueRef Class
ValueRef<T> Class
VoidResult Class

# HostItemFlags Enumeration

Defines options for exposing host resources to script code.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    [FlagsAttribute]
    public enum HostItemFlags

    <FlagsAttribute>
    Public Enumeration HostItemFlags

    [FlagsAttribute]
    public enum class HostItemFlags

    [<FlagsAttribute>]
    type HostItemFlags

Members

Member name | Value | Description
--- | --- | ---
None | 0 | Specifies that no options are selected.
GlobalMembers | 1 | Specifies that the host resource's members are to be exposed as global items in the script engine's root namespace.
PrivateAccess | 2 | Specifies that the host resource's non-public members are to be exposed.
HideDynamicMembers | 4 | Specifies that the host resource's dynamic members are not to be exposed. This option applies only to objects that implement IDynamicMetaObjectProvider.
DirectAccess | 8 | Specifies that the script engine is to be given direct access to the exposed object if possible. This option, when supported, suppresses marshaling and hands off the object for script access without the host's involvement. It is currently supported only for COM and COM-visible objects exposed in Windows Script engines.

See Also

#### Reference

Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft