Condividi tramite


Proprietà Column.Default

Gets or sets the default bound to the column.

Questa API non è conforme a CLS. 

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcReferenceAttribute(GetType(Default), "Server[@Name = '{0}']/Database[@Name = '{1}']/Default[@Name='{2}' and @Schema='{3}']",  _
    )> _
<CLSCompliantAttribute(False)> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property Default As String 
    Get 
    Set
'Utilizzo
Dim instance As Column 
Dim value As String 

value = instance.Default

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

Valore proprietà

Tipo: System.String
A Default object that specifies the default bound to the column.

Osservazioni

The Default property specifies a default. This can be bound to the column by using the BindToColumn method.

Esempi

Utilizzo degli oggetti di database

Vedere anche

Riferimento

Column Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

CREATE TABLE (Transact-SQL)

Creazione, modifica e rimozione di valori predefiniti