ForeignKey Constructor (Table, String)
Collapse the table of content
Expand the table of content

ForeignKey Constructor (Table, String)


Initializes a new instance of the ForeignKey class on the specified table with the specified name.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public ForeignKey(
	Table table,
	string name


Type: Microsoft.SqlServer.Management.Smo.Table

A Table object value that specifies the table on which to create the foreign key.

Type: System.String

A String value that specifies the name of the foreign key.

Return to top
© 2016 Microsoft