Compartir a través de


AddDefaultConstraint Método (String)

Adds a default constraint to the column.

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

Sintaxis

'Declaración
Public Function AddDefaultConstraint ( _
    name As String _
) As DefaultConstraint
'Uso
Dim instance As Column
Dim name As String
Dim returnValue As DefaultConstraint

returnValue = instance.AddDefaultConstraint(name)
public DefaultConstraint AddDefaultConstraint(
    string name
)
public:
DefaultConstraint^ AddDefaultConstraint(
    String^ name
)
member AddDefaultConstraint : 
        name:string -> DefaultConstraint 
public function AddDefaultConstraint(
    name : String
) : DefaultConstraint

Parámetros

Valor devuelto

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .DefaultConstraint
A DefaultConstraint object that specifies the default constraint added to the column.