IDataConnectionProperties.Contains Method (String)

 

Tests whether a given set of connection properties contains a specified property.

Namespace:   Microsoft.Data.ConnectionUI
Assembly:  Microsoft.Data.ConnectionUI (in Microsoft.Data.ConnectionUI.dll)

Syntax

bool Contains(
    string propertyName
)
bool Contains(
    String^ propertyName
)
abstract Contains : 
        propertyName:string -> bool
Function Contains (
    propertyName As String
) As Boolean

Parameters

  • propertyName
    Type: System.String

    Name of the property whose presence is being tested.

Return Value

Type: System.Boolean

true if the set of connection properties contains the specified property; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is null.

See Also

IDataConnectionProperties Interface
Microsoft.Data.ConnectionUI Namespace

Return to top