Visual Basic .NET Language
कनेक्शन संभालना
खोज…
सार्वजनिक कनेक्शन संपत्ति
Imports System.Data.OleDb
Private WithEvents _connection As OleDbConnection
Private _connectionString As String = "myConnectionString"
Public ReadOnly Property Connection As OleDbConnection
Get
If _connection Is Nothing Then
_connection = New OleDbConnection(_connectionString)
_connection.Open()
Else
If _connection.State <> ConnectionState.Open Then
_connection.Open()
End If
End If
Return _connection
End Get
End Property
Modified text is an extract of the original Stack Overflow Documentation
के तहत लाइसेंस प्राप्त है CC BY-SA 3.0
से संबद्ध नहीं है Stack Overflow