Export (0) Print
Expand All

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
)

Parameters

table
Type: Microsoft.SqlServer.Management.Smo.Table
A Table object value that specifies the table on which to create the foreign key.
name
Type: String
A String value that specifies the name of the foreign key.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft