Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.Data / System / Data / DataSysAttribute.cs
blob6022e8f8bfb1fa52f59b4d88181183bf1f7c30c4
1 //------------------------------------------------------------------------------
2 // <copyright file="DataSysAttribute.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">Microsoft</owner>
6 // <owner current="true" primary="false">Microsoft</owner>
7 //------------------------------------------------------------------------------
9 /*
11 namespace System.Data {
12 using System;
13 using System.ComponentModel;
15 /// <devdoc>
16 /// <para>
17 /// DescriptionAttribute marks a property, event, or extender with a
18 /// description. Visual designers can display this description when referencing
19 /// the member.
20 /// </para>
21 /// </devdoc>
22 [AttributeUsage(AttributeTargets.All)]
23 [ Obsolete("DataSysDescriptionAttribute has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202", false) ]
24 public class DataSysDescriptionAttribute : DescriptionAttribute {
26 private bool replaced = false;
28 /// <devdoc>
29 /// Constructs a new sys description.
30 /// </devdoc>
31 [ Obsolete("DataSysDescriptionAttribute has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202", false) ]
32 public DataSysDescriptionAttribute(string description) : base(description) {
35 /// <devdoc>
36 /// Retrieves the description text.
37 /// </devdoc>
38 public override string Description {
39 get {
40 if (!replaced) {
41 replaced = true;
42 DescriptionValue = Res.GetString(base.Description);
44 return base.Description;