2
// AddinPropertyAttribute.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
/// Defines an add-in property
33
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple=true)]
34
public class AddinPropertyAttribute: Attribute
37
/// Initializes a new instance of the <see cref="Mono.Addins.AddinPropertyAttribute"/> class.
39
/// <param name='name'>
40
/// Name of the property
42
/// <param name='value'>
43
/// Value of the property
45
public AddinPropertyAttribute (string name, string value): this (name, null, value)
50
/// Initializes a new instance of the <see cref="Mono.Addins.AddinPropertyAttribute"/> class.
52
/// <param name='name'>
53
/// Name of the property
55
/// <param name='locale'>
56
/// Locale of the property. It can be null if the property is not bound to a locale.
58
/// <param name='value'>
59
/// Value of the property
61
public AddinPropertyAttribute (string name, string locale, string value)
69
/// Name of the property
71
public string Name { get; set; }
74
/// Locale of the property. It can be null if the property is not bound to a locale.
76
public string Locale { get; set; }
79
/// Value of the property
81
public string Value { get; set; }