Share via


Default Propiedad

Obtiene o establece el valor predeterminado enlazado con la columna.

Esta API no es compatible con CLS. 

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

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

value = instance.Default

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

Valor de la propiedad

Tipo: System. . :: . .String
Objeto Default que especifica el valor predeterminado enlazado con la columna.

Comentarios

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