Share via


ApplicationRole.DefaultSchema Property

Gets or sets the default schema for the application role.

This API is not CLS-compliant. 

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(Schema), "Server[@Name = '{0}']/Database[@Name = '{1}']/Schema[@Name = '{2}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property DefaultSchema As String 
    Get 
    Set
'Usage
Dim instance As ApplicationRole 
Dim value As String 

value = instance.DefaultSchema

instance.DefaultSchema = value
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(Schema), "Server[@Name = '{0}']/Database[@Name = '{1}']/Schema[@Name = '{2}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string DefaultSchema { get; set; }
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(Schema), L"Server[@Name = '{0}']/Database[@Name = '{1}']/Schema[@Name = '{2}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ DefaultSchema {
    String^ get ();
    void set (String^ value);
}
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(Schema), "Server[@Name = '{0}']/Database[@Name = '{1}']/Schema[@Name = '{2}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member DefaultSchema : string with get, set
function get DefaultSchema () : String 
function set DefaultSchema (value : String)

Property Value

Type: System.String
A String value that specifies the name of the default schema.

Examples

Setting Properties

See Also

Reference

ApplicationRole Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

User-Schema Separation