ILoginOptions.DefaultDatabase 屬性
Gets or sets the database that the login uses by default.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<DisplayNameKeyAttribute("Login_DefaultDatabaseName")> _
<DisplayDescriptionKeyAttribute("Login_DefaultDatabaseDesc")> _
Property DefaultDatabase As String
Get
Set
'用途
Dim instance As ILoginOptions
Dim value As String
value = instance.DefaultDatabase
instance.DefaultDatabase = value
[DisplayNameKeyAttribute("Login_DefaultDatabaseName")]
[DisplayDescriptionKeyAttribute("Login_DefaultDatabaseDesc")]
string DefaultDatabase { get; set; }
[DisplayNameKeyAttribute(L"Login_DefaultDatabaseName")]
[DisplayDescriptionKeyAttribute(L"Login_DefaultDatabaseDesc")]
property String^ DefaultDatabase {
String^ get ();
void set (String^ value);
}
[<DisplayNameKeyAttribute("Login_DefaultDatabaseName")>]
[<DisplayDescriptionKeyAttribute("Login_DefaultDatabaseDesc")>]
abstract DefaultDatabase : string with get, set
function get DefaultDatabase () : String
function set DefaultDatabase (value : String)
屬性值
型別:System.String
A String value that contains the database that the login uses by default.