Regarding Inheriting class.vb in vb.net

  • Thread starter Thread starter Girish
  • Start date Start date
G

Girish

Hi all,

I want help i am new vb.net i want to write very general
connection class object in vb.net and i want to call on of
get property from this connection class object and store
in local sqlclient.sqlconnection variable object and use
it.

Can somebody help me out.
 
Class MyConnection
Inherits SqlClient.SqlConnection

End Class


That is the code to inherit from SqlConnection. I'm not sure what you want
to accomplish, but this class will have all of the existing members of
SqlConnection, as well as any members that you wish to add.

I hope this helps.
 
* "Girish said:
I want help i am new vb.net i want to write very general

"very general" or "more specific"? The 'SqlConnection' class is marked
as 'NonInheritable', you cannot derive a class from it.
connection class object in vb.net and i want to call on of
get property from this connection class object and store
in local sqlclient.sqlconnection variable object and use
it.

?!?
 
Back
Top