AddDefaultConstraint méthode (String)
Adds a default constraint to the column.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Function AddDefaultConstraint ( _
name As String _
) As DefaultConstraint
'Utilisation
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
Paramètres
- name
Type : System. . :: . .String
A String value that specifies the default constraint to add to the column.
Valeur de retour
Type : Microsoft.SqlServer.Management.Smo. . :: . .DefaultConstraint
A DefaultConstraint object that specifies the default constraint added to the column.
Voir aussi