ForeignKeyCollection Class
The ForeignKeyCollection class represents a collection of ForeignKey objects that represent all the foreign keys defined on the parent object.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Microsoft.SqlServer.Management.Smo Namespace
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
A ForeignKeyCollection object can be used to gain access to a set of foreign keys. You can use the Item property to return a specific ForeignKey object.
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
System.Object
Microsoft.SqlServer.Management.Smo.AbstractCollectionBase
Microsoft.SqlServer.Management.Smo.SmoCollectionBase
Microsoft.SqlServer.Management.Smo.SortedListCollectionBase
Microsoft.SqlServer.Management.Smo.SimpleObjectCollectionBase
Microsoft.SqlServer.Management.Smo.ForeignKeyCollection
Microsoft.SqlServer.Management.Smo.AbstractCollectionBase
Microsoft.SqlServer.Management.Smo.SmoCollectionBase
Microsoft.SqlServer.Management.Smo.SortedListCollectionBase
Microsoft.SqlServer.Management.Smo.SimpleObjectCollectionBase
Microsoft.SqlServer.Management.Smo.ForeignKeyCollection
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Reference
ForeignKeyCollection MembersMicrosoft.SqlServer.Management.Smo Namespace