Condividi tramite


Classe ForeignKeyCollection

The ForeignKeyCollection class represents a collection of ForeignKey objects that represent all the foreign keys defined on the parent object.

Spazio dei nomi:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class ForeignKeyCollection _
    Inherits SimpleObjectCollectionBase
'Utilizzo
Dim instance As ForeignKeyCollection
public sealed class ForeignKeyCollection : SimpleObjectCollectionBase
public ref class ForeignKeyCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type ForeignKeyCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class ForeignKeyCollection extends SimpleObjectCollectionBase

Osservazioni

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.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Thread Safety

Tutti i membri pubblici static (Shared in Visual Basic) di questo tipo sono thread safe. I membri di istanza non hanno garanzia di essere thread safe.