forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHostItemFlags.cs
More file actions
46 lines (40 loc) · 1.65 KB
/
HostItemFlags.cs
File metadata and controls
46 lines (40 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using System.Dynamic;
namespace Microsoft.ClearScript
{
/// <summary>
/// Defines options for exposing host resources to script code.
/// </summary>
[Flags]
public enum HostItemFlags
{
/// <summary>
/// Specifies that no options are selected.
/// </summary>
None = 0,
/// <summary>
/// Specifies that the host resource's members are to be exposed as global items in the
/// script engine's root namespace.
/// </summary>
GlobalMembers = 0x00000001,
/// <summary>
/// Specifies that the host resource's non-public members are to be exposed.
/// </summary>
PrivateAccess = 0x00000002,
/// <summary>
/// Specifies that the host resource's dynamic members are not to be exposed. This option
/// applies only to objects that implement <see cref="IDynamicMetaObjectProvider"/>.
/// </summary>
HideDynamicMembers = 0x00000004,
/// <summary>
/// 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 <see href="https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.comvisibleattribute">COM-visible</see>
/// objects exposed in Windows Script engines.
/// </summary>
DirectAccess = 0x00000008
}
}