EntityConnection.State 属性

定义

如果 ConnectionState 打开,则获取基础提供程序的 EntityConnection 属性。 否则返回 Closed

public:
 virtual property System::Data::ConnectionState State { System::Data::ConnectionState get(); };
public override System.Data.ConnectionState State { get; }
member this.State : System.Data.ConnectionState
Public Overrides ReadOnly Property State As ConnectionState

属性值

Open,前提是且仅当 EntityConnection的内部状态和基础提供程序的 ConnectionState 均处于打开状态时。 EntityConnection如果 的状态为打开,但提供程序的 ConnectionState 已关闭,则此属性返回 Broken。 否则,将返回 Closed

适用于