共用方式為


IUserOptions.DefaultSchema 屬性

Gets the default database schema.

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

語法

'宣告
<DisplayNameKeyAttribute("User_DefaultSchemaName")> _
<DisplayDescriptionKeyAttribute("User_DefaultSchemaDesc")> _
Property DefaultSchema As String 
    Get 
    Set
'用途
Dim instance As IUserOptions 
Dim value As String 

value = instance.DefaultSchema

instance.DefaultSchema = value
[DisplayNameKeyAttribute("User_DefaultSchemaName")]
[DisplayDescriptionKeyAttribute("User_DefaultSchemaDesc")]
string DefaultSchema { get; set; }
[DisplayNameKeyAttribute(L"User_DefaultSchemaName")]
[DisplayDescriptionKeyAttribute(L"User_DefaultSchemaDesc")]
property String^ DefaultSchema {
    String^ get ();
    void set (String^ value);
}
[<DisplayNameKeyAttribute("User_DefaultSchemaName")>]
[<DisplayDescriptionKeyAttribute("User_DefaultSchemaDesc")>]
abstract DefaultSchema : string with get, set
function get DefaultSchema () : String 
function set DefaultSchema (value : String)

屬性值

型別:System.String
A string that contains the default schema.

請參閱

參考

IUserOptions 介面

Microsoft.SqlServer.Management.Smo 命名空間