Share via


IConstraintFactory.CreatePrimaryKeyConstraint Method (IRelationalIndex)

Note: This API is now obsolete.

Creates an IPrimaryKeyConstraint object that is associated with the specified IRelationalIndex object.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
<ObsoleteAttribute("This method is not longer supported.", True)> _
Function CreatePrimaryKeyConstraint ( _
    index As IRelationalIndex _
) As IPrimaryKeyConstraint
'Usage
Dim instance As IConstraintFactory
Dim index As IRelationalIndex
Dim returnValue As IPrimaryKeyConstraint

returnValue = instance.CreatePrimaryKeyConstraint(index)
[ObsoleteAttribute("This method is not longer supported.", true)]
IPrimaryKeyConstraint CreatePrimaryKeyConstraint(
    IRelationalIndex index
)
[ObsoleteAttribute(L"This method is not longer supported.", true)]
IPrimaryKeyConstraint^ CreatePrimaryKeyConstraint(
    IRelationalIndex^ index
)
[<ObsoleteAttribute("This method is not longer supported.", true)>]
abstract CreatePrimaryKeyConstraint : 
        index:IRelationalIndex -> IPrimaryKeyConstraint 
function CreatePrimaryKeyConstraint(
    index : IRelationalIndex
) : IPrimaryKeyConstraint

Parameters

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IPrimaryKeyConstraint
An IPrimaryKeyConstraint object that is associated with the specified IRelationalIndex object.