Compartilhar via


Classe ForeignKeyCollection

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 (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public NotInheritable Class ForeignKeyCollection _
    Inherits SimpleObjectCollectionBase
'Uso
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

Comentários

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

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

Segurança de thread

Quaisquer membros static (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.