// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using System; using System.Dynamic; namespace Microsoft.ClearScript { ///

/// Defines options for exposing host resources to script code. /// [Flags] public enum HostItemFlags { /// /// Specifies that no options are selected. /// None = 0, /// /// Specifies that the host resource's members are to be exposed as global items in the /// script engine's root namespace. /// GlobalMembers = 0x00000001, /// /// Specifies that the host resource's non-public members are to be exposed. /// PrivateAccess = 0x00000002, /// /// Specifies that the host resource's dynamic members are not to be exposed. This option /// applies only to objects that implement . /// HideDynamicMembers = 0x00000004, /// /// 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. /// DirectAccess = 0x00000008 } }