EntityConnection.State-Eigenschaft
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Ruft den Zustand der EntityConnection ab, die zur Nachverfolgung des Zustands der zugrundeliegenden Datenbankverbindung eingerichtet wurde, die von dieser EntityConnection umschlossen wird.
Namespace: System.Data.Entity.Core.EntityClient
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")> _
Public Overrides ReadOnly Property State As ConnectionState
Get
'Usage
Dim instance As EntityConnection
Dim value As ConnectionState
value = instance.State
[SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
public override ConnectionState State { get; }
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
public:
virtual property ConnectionState State {
ConnectionState get () override;
}
[<SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")>]
abstract State : ConnectionState
[<SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")>]
override State : ConnectionState
override function get State () : ConnectionState
Eigenschaftswert
Typ: System.Data.ConnectionState