2
// AddinDescriptionAttribute.cs
5
// Lluis Sanchez Gual <lluis@novell.com>
7
// Copyright (c) 2011 Novell, Inc (http://www.novell.com)
9
// Permission is hereby granted, free of charge, to any person obtaining a copy
10
// of this software and associated documentation files (the "Software"), to deal
11
// in the Software without restriction, including without limitation the rights
12
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
// copies of the Software, and to permit persons to whom the Software is
14
// furnished to do so, subject to the following conditions:
16
// The above copyright notice and this permission notice shall be included in
17
// all copies or substantial portions of the Software.
19
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
31
/// Describes the purpose of an add-in or add-in root
33
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple = true)]
34
public class AddinDescriptionAttribute: Attribute
37
/// Initializes a new instance of the <see cref="Mono.Addins.AddinDescriptionAttribute"/> class.
39
/// <param name='description'>
40
/// Description of the add-in
42
public AddinDescriptionAttribute (string description)
44
Description = description;
48
/// Initializes a new instance of the <see cref="Mono.Addins.AddinDescriptionAttribute"/> class.
50
/// <param name='description'>
51
/// Description of the add-in
53
/// <param name='locale'>
54
/// Locale of the description (for example, 'en-US', or 'en')
56
public AddinDescriptionAttribute (string description, string locale)
58
Description = description;
63
/// Description of the add-in
65
public string Description { get; set; }
68
/// Locale of the description (for example, 'en-US', or 'en')
70
public string Locale { get; set; }