共用方式為


Name 屬性

Gets or sets the name of the Schema Object Base.

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

語法

'宣告
<SfcKeyAttribute()> _
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Overrides Property Name As String
    Get
    Set
'用途
Dim instance As ScriptSchemaObjectBase
Dim value As String

value = instance.Name

instance.Name = value
[SfcKeyAttribute()]
[SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)]
public override string Name { get; set; }
[SfcKeyAttribute()]
[SfcPropertyAttribute(SfcPropertyFlags::ReadOnlyAfterCreation)]
public:
virtual property String^ Name {
    String^ get () override;
    void set (String^ value) override;
}
[<SfcKeyAttribute()>]
[<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)>]
abstract Name : string with get, set
[<SfcKeyAttribute()>]
[<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)>]
override Name : string with get, set
override function get Name () : String
override function set Name (value : String)

屬性值

型別:System. . :: . .String
A String value that specifies the schema

範例

指令碼