다음을 통해 공유


IConstraintFactory.CreateCheckConstraint 메서드

Creates an IMutableCheckConstraint object that has the specified name.

네임스페이스:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
어셈블리:  Microsoft.SqlServer.Management.SqlParser(Microsoft.SqlServer.Management.SqlParser.dll)

구문

‘선언
Function CreateCheckConstraint ( _
    parent As ITabular, _
    name As String _
) As IMutableCheckConstraint
‘사용 방법
Dim instance As IConstraintFactory 
Dim parent As ITabular 
Dim name As String 
Dim returnValue As IMutableCheckConstraint 

returnValue = instance.CreateCheckConstraint(parent, _
    name)
IMutableCheckConstraint CreateCheckConstraint(
    ITabular parent,
    string name
)
IMutableCheckConstraint^ CreateCheckConstraint(
    ITabular^ parent, 
    String^ name
)
abstract CreateCheckConstraint : 
        parent:ITabular * 
        name:string -> IMutableCheckConstraint
function CreateCheckConstraint(
    parent : ITabular, 
    name : String
) : IMutableCheckConstraint

매개 변수

  • name
    유형: System.String
    The name of the CHECK constraint to create.

반환 값

유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableCheckConstraint
An IMutableCheckConstraint object.

참고 항목

참조

IConstraintFactory 인터페이스

Microsoft.SqlServer.Management.SqlParser.MetadataProvider 네임스페이스