[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/ehtick/ClearScript/master/ClearScript/ScriptUsageAttribute.cs [Back]  [Original]

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

using System;

namespace Microsoft.ClearScript
{
    /// 
    /// Specifies how the target type member is to be exposed to script code.
    /// 
    /// 
    /// This attribute is applicable to events, fields, methods, properties, and nested types.
    /// 
    [AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct)]
    public class ScriptUsageAttribute : Attribute
    {
        /// 
        /// Initializes a new  instance.
        /// 
        public ScriptUsageAttribute()
        {
        }

        /// 
        /// Initializes a new  instance with the specified script access setting.
        /// 
        /// The script access setting for the target type member.
        public ScriptUsageAttribute(ScriptAccess access)
        {
            Access = access;
        }

        /// 
        /// Gets the script access setting for the target type member.
        /// 
        public ScriptAccess Access { get; }
    }
}

Web Proxy Viewer  |  New URL  |  Original Page