Share via


ForeignKey Constructor

Initializes a new instance of the ForeignKey class.

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

Syntax

'Declaration
Public Sub New
'Usage
Dim instance As New ForeignKey()
public ForeignKey()
public:
ForeignKey()
new : unit -> ForeignKey
public function ForeignKey()

Remarks

The default constructor initializes any fields to their default values.

Examples

Creating, Altering, and Removing Foreign Keys

How to: Create, Alter, and Remove a Foreign Key in Visual Basic .NET

See Also

Reference

ForeignKey Class

ForeignKey Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Creating and Modifying FOREIGN KEY Constraints

CREATE TABLE (Transact-SQL)