다음을 통해 공유


AddDefaultConstraint 메서드

Adds a default constraint to the column.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
Public Function AddDefaultConstraint As DefaultConstraint
‘사용 방법
Dim instance As Column
Dim returnValue As DefaultConstraint

returnValue = instance.AddDefaultConstraint()
public DefaultConstraint AddDefaultConstraint()
public:
DefaultConstraint^ AddDefaultConstraint()
member AddDefaultConstraint : unit -> DefaultConstraint 
public function AddDefaultConstraint() : DefaultConstraint

반환 값

형식: Microsoft.SqlServer.Management.Smo. . :: . .DefaultConstraint
A DefaultConstraint object that specifies the default constraint bound to the column.