Class CopyrightAttribute
Sets the Copyright information of the element.
Implements
Inherited Members
Namespace: TheXDS.MCART.Attributes
Assembly: MCART.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Module|AttributeTargets.Class|AttributeTargets.Method)]
[Serializable]
public sealed class CopyrightAttribute : TextAttribute, IValueAttribute<string>
Constructors
| Edit this page View SourceCopyrightAttribute(int, int, string)
Initializes a new instance of the DescriptionAttribute class.
Declaration
public CopyrightAttribute(int startYear, int endYear, string holder)
Parameters
Type | Name | Description |
---|---|---|
int | startYear | Initial year of the Copyright |
int | endYear | Final year of the Copyright |
string | holder | Copyright holder. |
CopyrightAttribute(int, string)
Initializes a new instance of the DescriptionAttribute class.
Declaration
public CopyrightAttribute(int year, string holder)
Parameters
Type | Name | Description |
---|---|---|
int | year | Year of Copyright registration. |
string | holder | Copyright holder. |
CopyrightAttribute(string)
Sets the Copyright information of the element.
Declaration
public CopyrightAttribute(string copyright)
Parameters
Type | Name | Description |
---|---|---|
string | copyright | Value of the attribute. |
CopyrightAttribute(Range<int>, string)
Initializes a new instance of the DescriptionAttribute class.
Declaration
public CopyrightAttribute(Range<int> years, string holder)
Parameters
Type | Name | Description |
---|---|---|
Range<int> | years | Years of Copyright registration. |
string | holder | Copyright holder. |
Operators
| Edit this page View Sourceimplicit operator CopyrightAttribute(AssemblyCopyrightAttribute)
Implicitly converts an AssemblyCopyrightAttribute object to a CopyrightAttribute
Declaration
public static implicit operator CopyrightAttribute(AssemblyCopyrightAttribute attribute)
Parameters
Type | Name | Description |
---|---|---|
AssemblyCopyrightAttribute | attribute | Object to convert |
Returns
Type | Description |
---|---|
CopyrightAttribute |
implicit operator AssemblyCopyrightAttribute(CopyrightAttribute)
Implicitly converts a CopyrightAttribute object to an AssemblyCopyrightAttribute
Declaration
public static implicit operator AssemblyCopyrightAttribute(CopyrightAttribute attribute)
Parameters
Type | Name | Description |
---|---|---|
CopyrightAttribute | attribute | Object to convert |
Returns
Type | Description |
---|---|
AssemblyCopyrightAttribute |