当实现由选件类,获取数据连接的状态。
命名空间: Microsoft.VisualStudio.Data.Services.SupportEntities
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
ReadOnly Property State As DataConnectionState
DataConnectionState State { get; }
property DataConnectionState State {
DataConnectionState get ();
}
abstract State : DataConnectionState
function get State () : DataConnectionState
属性值
类型:Microsoft.VisualStudio.Data.Services.DataConnectionState
数据连接状态,根据 DataConnectionState 枚举。
备注
DataConnectionState 枚举标识三个允许的状态: Closed、 Open和 Broken。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。