GetServerList

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
ultraman69
Posts: 8
Joined: Fri 08 May 2009 19:15

GetServerList

Post by ultraman69 » Mon 11 May 2009 21:15

Can anyone give me an example on how to use the Devart.Data.Oracle.OracleHome.GetServerList() method (C# or VB.NET) ? This is not a static class, but I can't instanciate an object because I get "The type 'Devart.Data.Oracle.OracleHome' has no constructors defined" error... never seen that.

Thanks !

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Tue 12 May 2009 15:07

The Devart.Data.Oracle.OracleHome class represents information about Oracle home. The GetServerList() method of this class can be accessed in the following way:
OracleConnection.Homes.DefaultHome.GetServerList();

As an alternative, you can use the static method GetServerList() of the Devart.Data.Oracle.OracleConnection class.

ultraman69
Posts: 8
Joined: Fri 08 May 2009 19:15

Post by ultraman69 » Tue 12 May 2009 17:48

Thanks ! Works fine !

Post Reply