다음을 통해 공유


IConstraintFactory.CreateForeignKeyColumn 메서드

Creates an IForeignKeyColumn object that has the specified referencing and referenced IColumn objects.

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

구문

‘선언
Function CreateForeignKeyColumn ( _
    referencingColumn As IColumn, _
    referencedColumn As IColumn _
) As IForeignKeyColumn
‘사용 방법
Dim instance As IConstraintFactory 
Dim referencingColumn As IColumn 
Dim referencedColumn As IColumn 
Dim returnValue As IForeignKeyColumn 

returnValue = instance.CreateForeignKeyColumn(referencingColumn, _
    referencedColumn)
IForeignKeyColumn CreateForeignKeyColumn(
    IColumn referencingColumn,
    IColumn referencedColumn
)
IForeignKeyColumn^ CreateForeignKeyColumn(
    IColumn^ referencingColumn, 
    IColumn^ referencedColumn
)
abstract CreateForeignKeyColumn : 
        referencingColumn:IColumn * 
        referencedColumn:IColumn -> IForeignKeyColumn
function CreateForeignKeyColumn(
    referencingColumn : IColumn, 
    referencedColumn : IColumn
) : IForeignKeyColumn

매개 변수

반환 값

유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IForeignKeyColumn
An IForeignKeyColumn object that has the specified referencing and referenced IColumn objects.

참고 항목

참조

IConstraintFactory 인터페이스

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