Inheriting Sqlconnection In Vb.net
Jan 9 2012, 11:28 AM
Joined: 18-May 04
Is there a way to inherit the "SqlConnection" object ? The code I have written as below generates the error "Inherits System.Data.SqlClient.SqlConnection"
==========The sample Code ================
Public Class ConClass
"Thanks in advance!
Jan 9 2012, 02:03 PM
Joined: 4-December 03
From: Northern Virginia, USA
Since the SqlConnection class can not be inherited, the direct answer to your question is "no".
However, you could pass in an SqlConnection object in your classes' constructor, then you have access to the SqlConnection class through your class and a property.
|Search Top Lo-Fi||1st October 2016 - 01:58 AM|