Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ForeignKey Constructor

 

Applies To: SQL Server 2016 Preview

Initializes a new instance of the ForeignKey class.

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

NameDescription
System_CAPS_pubmethodForeignKey()

Initializes a new instance of the ForeignKey class.

System_CAPS_pubmethodForeignKey(Table, String)

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

Return to top

ForeignKey Constructor ()

Initializes a new instance of the ForeignKey class.

public ForeignKey()

The default constructor initializes any fields to their default values.

Return to top

ForeignKey Constructor (Table, String)

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

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: System.String

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

Return to top
Show:
© 2015 Microsoft