📄 requiredscriptattribute.cs
字号:
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
namespace AjaxControlToolkit
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple=true)]
public sealed class RequiredScriptAttribute : Attribute
{
private int _order;
private Type _extenderType;
private string _scriptName;
public Type ExtenderType
{
get { return _extenderType; }
}
public string ScriptName
{
get { return _scriptName; }
}
public int LoadOrder
{
get { return _order; }
}
public RequiredScriptAttribute()
{
}
public RequiredScriptAttribute(string scriptName)
{
_scriptName = scriptName;
}
public RequiredScriptAttribute(Type extenderType): this(extenderType, 0) {
}
public RequiredScriptAttribute(Type extenderType, int loadOrder)
{
_extenderType = extenderType;
_order = loadOrder;
}
public override bool IsDefaultAttribute()
{
return _extenderType == null;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -