Partager via


Méthode IDTSConnections100.Contains

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

Determines whether the collection contains the connection manager with the specified key.

Espace de noms :  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly :  Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntaxe

'Déclaration
Function Contains ( _
    Key As Object _
) As Boolean
'Utilisation
Dim instance As IDTSConnections100 
Dim Key As Object 
Dim returnValue As Boolean 

returnValue = instance.Contains(Key)
bool Contains(
    Object Key
)
bool Contains(
    [InAttribute] Object^ Key
)
abstract Contains : 
        Key:Object -> bool
function Contains(
    Key : Object
) : boolean

Paramètres

  • Key
    Type : System.Object
    The name, identity, ID, or index of the connection manager to locate in the collection.

Valeur de retour

Type : System.Boolean
true if the connection manager is found in the collection; otherwise, false.

Notes

For more information, see Connections.

Voir aussi

Référence

IDTSConnections100 Interface

Espace de noms Microsoft.SqlServer.Dts.Runtime.Wrapper