共用方式為


Database.IsDbManager 屬性

Gets a value that specifies whether the current login is a database manager in SQL 資料庫.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Expensive Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property IsDbManager As Boolean 
    Get
'用途
Dim instance As Database 
Dim value As Boolean 

value = instance.IsDbManager
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.SqlAzureDatabase)]
public bool IsDbManager { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Expensive|SfcPropertyFlags::SqlAzureDatabase)]
public:
property bool IsDbManager {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.SqlAzureDatabase)>]
member IsDbManager : bool
function get IsDbManager () : boolean

屬性值

型別:System.Boolean
true if the current login is a database manager in SQL 資料庫; otherwise, false.

請參閱

參考

Database 類別

Microsoft.SqlServer.Management.Smo 命名空間