Udostępnij za pośrednictwem


SqlConnectionStringBuilder.ContextConnection Właściwość

Definicja

Przestroga

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

Nieaktualne. Pobiera lub ustawia wartość wskazującą, czy należy nawiązać połączenie klienta/serwera, czy w procesie z SQL Server.

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

Wartość właściwości

Wartość ContextConnection właściwości lub False jeśli żadna z nich nie została dostarczona.

Atrybuty

Uwagi

Ta właściwość odpowiada kluczowi "Połączenie kontekstowe" w parametrach połączenia.

Uwaga

Właściwość DataSource zwraca wartość null , jeśli parametry połączenia dla elementu SqlConnection to "context connection=true".

Dotyczy