SqlConnectionStringBuilder.ContextConnection Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Perhatian
ContextConnection has been deprecated. SqlConnection will ignore the 'Context Connection' keyword.
Kedaluwarsa. Mendapatkan atau menetapkan nilai yang menunjukkan apakah klien/server atau koneksi dalam proses ke SQL Server harus dibuat.
public:
property bool ContextConnection { bool get(); void set(bool value); };
public bool ContextConnection { get; set; }
[System.Obsolete("ContextConnection has been deprecated. SqlConnection will ignore the 'Context Connection' keyword.")]
public bool ContextConnection { get; set; }
member this.ContextConnection : bool with get, set
[<System.Obsolete("ContextConnection has been deprecated. SqlConnection will ignore the 'Context Connection' keyword.")>]
member this.ContextConnection : bool with get, set
Public Property ContextConnection As Boolean
Nilai Properti
Nilai ContextConnection properti , atau False
jika tidak ada yang disediakan.
- Atribut
Keterangan
Properti ini sesuai dengan kunci "Koneksi Konteks" dalam string koneksi.
Catatan
Properti DataSource mengembalikan null
jika string koneksi untuk SqlConnection adalah "context connection=true".