Udostępnij za pośrednictwem


Właściwość ApplicationRole.DefaultSchema

Pobiera lub ustawia domyślny schemat dla rola aplikacji.

Ten interfejs API nie jest zgodny ze specyfikacją CLS. 

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(Schema), "Server[@Name = '{0}']/Database[@Name = '{1}']/Schema[@Name = '{2}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property DefaultSchema As String
    Get
    Set
'Użycie
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)

Wartość właściwości

Typ: System.String
A String wartość, która określa nazwę domyślnego schematu.