Fixed API: added missing attribute System.Serializable
[mono.git] / mcs / class / Microsoft.VisualBasic / Microsoft.VisualBasic / ComClassAttribute.cs
1 //
2 // ComClassAttribute.cs
3 //
4 // Authors:
5 //   Chris J Breisch (cjbreisch@altavista.net) 
6 //   Rafael Teixeira (rafaelteixeirabr@hotmail.com)
7 //
8 // (C) 2002 Chris J Breisch
9 // (C) 2004 Rafael Teixeira
10 //
11
12 //
13 // Copyright (c) 2002-2003 Mainsoft Corporation.
14 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
15 //
16 // Permission is hereby granted, free of charge, to any person obtaining
17 // a copy of this software and associated documentation files (the
18 // "Software"), to deal in the Software without restriction, including
19 // without limitation the rights to use, copy, modify, merge, publish,
20 // distribute, sublicense, and/or sell copies of the Software, and to
21 // permit persons to whom the Software is furnished to do so, subject to
22 // the following conditions:
23 // 
24 // The above copyright notice and this permission notice shall be
25 // included in all copies or substantial portions of the Software.
26 // 
27 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
28 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
29 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
30 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
31 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
32 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
33 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 //
35
36 using System;
37
38 namespace Microsoft.VisualBasic {
39         [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] 
40         sealed public class ComClassAttribute : Attribute {
41                 // Declarations
42                 private string classID;
43                 private string interfaceID;
44                 private string eventID;
45                 private bool interfaceShadows;
46
47                 // Constructors
48
49                 public ComClassAttribute() { }
50
51                 public ComClassAttribute(string _ClassID) { 
52                         classID = _ClassID;
53                 }
54
55                 public ComClassAttribute(string _ClassID, string _InterfaceID) { 
56                         classID = _ClassID;
57                         interfaceID = _InterfaceID;
58                 }
59
60                 public ComClassAttribute(string _ClassID, string _InterfaceID, string _EventID) { 
61                         classID = _ClassID;
62                         interfaceID = _InterfaceID;
63                         eventID = _EventID;
64                 }
65
66                 // Properties
67                 public string EventID { get { return eventID; } }
68
69                 public bool InterfaceShadows { 
70                         get { return interfaceShadows; } 
71                         set { interfaceShadows = value; } 
72                 }
73
74                 public string ClassID { get { return classID; } }
75
76                 public string InterfaceID { get { return interfaceID; } }
77         };
78 }