Delen via


IUserOptions.DefaultSchema Property

Gets the default database schema.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<DisplayDescriptionKeyAttribute("User_DefaultSchemaDesc")> _
<DisplayNameKeyAttribute("User_DefaultSchemaName")> _
Property DefaultSchema As String
    Get
    Set
'Usage
Dim instance As IUserOptions
Dim value As String

value = instance.DefaultSchema

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

Property Value

Type: System.String
A string that contains the default schema.