Delen via


ScriptSchemaObjectBase.Schema Property

Gets or sets the schema.

This API is not CLS-compliant. 

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Design)> _
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(Schema), GetType(SchemaCustomResolver),  _
    "Resolve", )> _
<SfcKeyAttribute()> _
Public Overridable Property Schema As String
    Get
    Set
'Usage
Dim instance As ScriptSchemaObjectBase
Dim value As String

value = instance.Schema

instance.Schema = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.Design)]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(Schema), typeof(SchemaCustomResolver), 
    "Resolve", )]
[SfcKeyAttribute()]
public virtual string Schema { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::Design)]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(Schema), typeof(SchemaCustomResolver), 
    L"Resolve", )]
[SfcKeyAttribute()]
public:
virtual property String^ Schema {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.Design)>]
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(Schema), typeof(SchemaCustomResolver), 
    "Resolve", )>]
[<SfcKeyAttribute()>]
abstract Schema : string with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.Design)>]
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(Schema), typeof(SchemaCustomResolver), 
    "Resolve", )>]
[<SfcKeyAttribute()>]
override Schema : string with get, set
function get Schema () : String
function set Schema (value : String)

Property Value

Type: System.String
A String value that specifies the schema.

Examples

Scripting