forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocumentAccessFlags.cs
More file actions
41 lines (35 loc) · 1.18 KB
/
DocumentAccessFlags.cs
File metadata and controls
41 lines (35 loc) · 1.18 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
namespace Microsoft.ClearScript
{
/// <summary>
/// Defines document access options.
/// </summary>
[Flags]
public enum DocumentAccessFlags
{
/// <summary>
/// Specifies that no options are selected.
/// </summary>
None = 0,
/// <summary>
/// Specifies that documents may be loaded from the file system.
/// </summary>
EnableFileLoading = 0x00000001,
/// <summary>
/// Specifies that documents may be downloaded from the Web.
/// </summary>
EnableWebLoading = 0x00000002,
/// <summary>
/// Specifies that documents may be loaded from any location.
/// </summary>
EnableAllLoading = EnableFileLoading | EnableWebLoading,
/// <summary>
/// Specifies that a document path must begin with a segment of "." or ".." to be
/// considered a relative path. By default, any path that is not explicitly a top-level
/// or root path is eligible.
/// </summary>
EnforceRelativePrefix = 0x00000004
}
}