小编Hoj*_*ojo的帖子

方括号[]在下面的代码中是什么意思?

我从http://msdn.microsoft.com/en-us/library/dd584174(office.11​​).aspx获取以下代码,用于在webpart工具窗格中添加自定义属性.方括号([])在下面的代码中的含义是什么?

[Category("Custom Properties")]
        [WebPartStorage(Storage.Personal)]
        [FriendlyNameAttribute("Custom Color")]
        [Description("Select a color from the dropdown list.")]
        [Browsable(true)]
        [XmlElement(typeof(System.Drawing.KnownColor))]
        public System.Drawing.KnownColor MyColor
        {
            get
            {
                return _myColor;
            }
            set
            {
                _myColor = value;
            }
        }
Run Code Online (Sandbox Code Playgroud)

c# asp.net sharepoint sharepoint-2007

22
推荐指数
2
解决办法
2万
查看次数

标签 统计

asp.net ×1

c# ×1

sharepoint ×1

sharepoint-2007 ×1