共用方式為


IDatabasePerformanceFacet.Status 屬性

Gets the database status.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<DisplayNameKeyAttribute("Database_StatusName")> _
<DisplayDescriptionKeyAttribute("Database_StatusDesc")> _
ReadOnly Property Status As DatabaseStatus 
    Get
'用途
Dim instance As IDatabasePerformanceFacet 
Dim value As DatabaseStatus 

value = instance.Status
[DisplayNameKeyAttribute("Database_StatusName")]
[DisplayDescriptionKeyAttribute("Database_StatusDesc")]
DatabaseStatus Status { get; }
[DisplayNameKeyAttribute(L"Database_StatusName")]
[DisplayDescriptionKeyAttribute(L"Database_StatusDesc")]
property DatabaseStatus Status {
    DatabaseStatus get ();
}
[<DisplayNameKeyAttribute("Database_StatusName")>]
[<DisplayDescriptionKeyAttribute("Database_StatusDesc")>]
abstract Status : DatabaseStatus
function get Status () : DatabaseStatus

屬性值

型別:Microsoft.SqlServer.Management.Smo.DatabaseStatus
A DatabaseStatus value that indicates the current database status.

請參閱

參考

IDatabasePerformanceFacet 介面

Microsoft.SqlServer.Management.Smo 命名空間