Partilhar via


Propriedade Name

Gets or sets the name of the object.

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

Sintaxe

'Declaração
<SfcKeyAttribute()> _
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Overridable Property Name As String
    Get
    Set
'Uso
Dim instance As NamedSmoObject
Dim value As String

value = instance.Name

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

Valor da propriedade

Tipo: System. . :: . .String
A String value that specifies the name of the object.

Comentários

ObservaçãoObservação

If the index is based on a UserDefinedTableType object, the name is always automatically system-generated regardless of the Name property value.