다음을 통해 공유


AddDefaultConstraint 메서드 (String)

Adds a default constraint to the column.

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

구문

‘선언
Public Function AddDefaultConstraint ( _
    name As String _
) As DefaultConstraint
‘사용 방법
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

매개 변수

반환 값

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