Aracılığıyla paylaş


SqlConnectionStringBuilder.ContextConnection Özellik

Tanım

Dikkat

ContextConnection has been deprecated. SqlConnection will ignore the 'Context Connection' keyword.

Kullanımdan kalktı. SQL Server için bir istemci/sunucu veya işlem içi bağlantı yapılması gerekip gerekmediğini belirten bir değer alır veya ayarlar.

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

Özellik Değeri

özelliğinin ContextConnection değeri veya False sağlanmamışsa.

Öznitelikler

Açıklamalar

Bu özellik, bağlantı dizesi içindeki "Bağlam Bağlantısı" anahtarına karşılık gelir.

Not

DataSource özelliği, için SqlConnection bağlantı dizesi "context connection=true" ise döndürürnull.

Şunlara uygulanır