2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / FirebirdSql.Data.Firebird / FirebirdSql.Data.Firebird / Services / FbDatabasesInfo.cs
1 /*
2  *      Firebird ADO.NET Data provider for .NET and     Mono 
3  * 
4  *         The contents of this file are subject to     the     Initial 
5  *         Developer's Public License Version 1.0 (the "License"); 
6  *         you may not use this file except     in compliance with the 
7  *         License.     You     may     obtain a copy of the License at 
8  *         http://www.firebirdsql.org/index.php?op=doc&id=idpl
9  *
10  *         Software     distributed     under the License is distributed on     
11  *         an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 
12  *         express or implied.  See     the     License for     the     specific 
13  *         language     governing rights and limitations under the License.
14  * 
15  *      Copyright (c) 2002,     2004 Carlos     Guzman Alvarez
16  *      All     Rights Reserved.
17  */
18
19 using System;
20 using System.Collections.Specialized;
21
22 namespace FirebirdSql.Data.Firebird.Services
23 {
24         ///     <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbDatabasesInfo"]/overview/*'/>
25         public struct FbDatabasesInfo
26         {
27                 #region Fields
28
29                 private int     connectionCount;
30                 private StringCollection databases;
31
32                 #endregion
33
34                 #region Properties
35
36                 ///     <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbDatabasesInfo"]/field[@name="ConnectionCount"]/*'/>
37                 public int ConnectionCount
38                 {
39                         get     { return this.connectionCount; }
40                         set     { this.connectionCount = value; }
41                 }
42
43                 ///     <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbDatabasesInfo"]/field[@name="Databases"]/*'/>
44                 public StringCollection Databases
45                 {
46                         get
47                         {
48                                 if (this.databases == null)
49                                 {
50                                         this.databases = new StringCollection();
51                                 }
52                                 return this.databases;
53                         }
54                 }
55
56                 #endregion
57         }
58 }