Tôi nhận được mã bên dưới từ http://msdn.microsoft.com/en-us/library/dd584174(office.11).aspx để thêm thuộc tính tùy chỉnh trong ngăn công cụ webpart. Khung hình vuông ([]
) có nghĩa là gì trong mã bên dưới?Dấu ngoặc vuông [] có nghĩa là gì trong mã bên dưới?
[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;
}
}
Liên kết đã chết, trang được lưu trong bộ nhớ cache ở đây: http://archive.is/ULDED – heltonbiker