// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
namespace Microsoft.ClearScript
{
///
/// Defines document access options.
///
[Flags]
public enum DocumentAccessFlags
{
///
/// Specifies that no options are selected.
///
None = 0,
///
/// Specifies that documents may be loaded from the file system.
///
EnableFileLoading = 0x00000001,
///
/// Specifies that documents may be downloaded from the Web.
///
EnableWebLoading = 0x00000002,
///
/// Specifies that documents may be loaded from any location.
///
EnableAllLoading = EnableFileLoading | EnableWebLoading,
///
/// 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.
///
EnforceRelativePrefix = 0x00000004,
///
/// Relaxes the requirement that a loaded document must be of the requested category.
///
AllowCategoryMismatch = 0x00000008,
///
/// Enables the use of instead of .
///
UseAsyncLoadCallback = 0x00000010
}
}