Share via


IDTSConnections100.Contains Method

This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.

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

Parameters

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

Return Value

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

Remarks

For more information, see Connections.

See Also

Reference

IDTSConnections100 Interface

Microsoft.SqlServer.Dts.Runtime.Wrapper Namespace