IConstraintFactory.CreateForeignKeyConstraint Method
Creates an IMutableForeignKeyConstraint object that belongs to the specified ITable and has the specified name.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function CreateForeignKeyConstraint ( _
parent As ITable, _
name As String _
) As IMutableForeignKeyConstraint
'Usage
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
Parameters
- name
Type: System.String
The name of the primary key to create.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableForeignKeyConstraint
An IMutableForeignKeyConstraint object that belongs to the specified ITable and has the specified name.