requiredpropertyattribute.cs

来自「AJAX 应用 实现页面的无刷新」· CS 代码 · 共 28 行

CS
28
字号
// (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;

namespace AjaxControlToolkit
{
    /// <summary>
    /// The presence of this attribute on a property of a subclass of
    /// TargetControlPropertiesBase indicates that the property value is
    /// required and the control can not be used without it. Absence of a
    /// required property value causes an exception to be thrown during
    /// creation of the control.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public sealed class RequiredPropertyAttribute : Attribute
    {
        /// <summary>
        /// Constructs a new RequiredPropertyAttribute
        /// </summary>
        public RequiredPropertyAttribute()
        {
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?