Table.ForeignKeys Property
Represents a collection of ForeignKey objects. Each ForeignKey object represents a foreign key defined on the table.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Deklaracja
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, GetType(ForeignKey))> _
Public ReadOnly Property ForeignKeys As ForeignKeyCollection
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, typeof(ForeignKey))]
public ForeignKeyCollection ForeignKeys { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, typeof(ForeignKey))]
public:
property ForeignKeyCollection^ ForeignKeys {
ForeignKeyCollection^ get ();
}
/** @property */
public ForeignKeyCollection get_ForeignKeys ()
public function get ForeignKeys () : ForeignKeyCollection
Property Value
A ForeignKey object that represents all the foreign keys defined on the table.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
See Also