IConstraintFactory.CreatePrimaryKeyConstraint 메서드
Creates an IPrimaryKeyConstraint object that is associated with the specified IRelationalIndex object.
네임스페이스: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
어셈블리: Microsoft.SqlServer.Management.SqlParser(Microsoft.SqlServer.Management.SqlParser.dll)
구문
‘선언
Function CreatePrimaryKeyConstraint ( _
parent As ITabular, _
index As IRelationalIndex _
) As IPrimaryKeyConstraint
‘사용 방법
Dim instance As IConstraintFactory
Dim parent As ITabular
Dim index As IRelationalIndex
Dim returnValue As IPrimaryKeyConstraint
returnValue = instance.CreatePrimaryKeyConstraint(parent, _
index)
IPrimaryKeyConstraint CreatePrimaryKeyConstraint(
ITabular parent,
IRelationalIndex index
)
IPrimaryKeyConstraint^ CreatePrimaryKeyConstraint(
ITabular^ parent,
IRelationalIndex^ index
)
abstract CreatePrimaryKeyConstraint :
parent:ITabular *
index:IRelationalIndex -> IPrimaryKeyConstraint
function CreatePrimaryKeyConstraint(
parent : ITabular,
index : IRelationalIndex
) : IPrimaryKeyConstraint
매개 변수
- parent
유형: Microsoft.SqlServer.Management.SqlParser.Metadata.ITabular
The object that is the parent of the constraint.
- index
유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IRelationalIndex
The index object that is associated with the primary key to create.
반환 값
유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IPrimaryKeyConstraint
An IPrimaryKeyConstraint object.
참고 항목
참조
Microsoft.SqlServer.Management.SqlParser.MetadataProvider 네임스페이스