IConstraintFactory.CreateForeignKeyConstraint 메서드

Creates an IMutableForeignKeyConstraint object that belongs to the specified ITable and has the specified name.

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

구문

‘선언
Function CreateForeignKeyConstraint ( _
    parent As ITable, _
    name As String _
) As IMutableForeignKeyConstraint
‘사용 방법
Dim instance As IConstraintFactory 
Dim parent As ITable 
Dim name As String 
Dim returnValue As IMutableForeignKeyConstraint 

returnValue = instance.CreateForeignKeyConstraint(parent, _
    name)
IMutableForeignKeyConstraint CreateForeignKeyConstraint(
    ITable parent,
    string name
)
IMutableForeignKeyConstraint^ CreateForeignKeyConstraint(
    ITable^ parent, 
    String^ name
)
abstract CreateForeignKeyConstraint : 
        parent:ITable * 
        name:string -> IMutableForeignKeyConstraint
function CreateForeignKeyConstraint(
    parent : ITable, 
    name : String
) : IMutableForeignKeyConstraint

매개 변수

  • name
    유형: System.String
    The name of the primary key to create.

반환 값

유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableForeignKeyConstraint
An IMutableForeignKeyConstraint object that belongs to the specified ITable and has the specified name.

참고 항목

참조

IConstraintFactory 인터페이스

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