Freigeben über


IDTSConnections100.Contains-Methode

Diese API unterstützt die SQL Server 2012-Infrastruktur und ist nicht zur direkten Verwendung im Code bestimmt.

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

Namespace:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly:  Microsoft.SqlServer.DTSRuntimeWrap (in Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntax

'Declaration
Function Contains ( _
    Key As Object _
) As Boolean
'Usage
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

Parameter

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

Rückgabewert

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

Hinweise

For more information, see Connections.

Siehe auch

Verweis

IDTSConnections100 Schnittstelle

Microsoft.SqlServer.Dts.Runtime.Wrapper-Namespace