Partager via


IDataConnectionProperties.Contains Method

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

'Declaration
Function Contains ( _
    propertyName As String _
) As Boolean
bool Contains(
    string propertyName
)
bool Contains(
    String^ propertyName
)
abstract Contains : 
        propertyName:string -> bool
function Contains(
    propertyName : String
) : 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.

.NET Framework Security

See Also

Reference

IDataConnectionProperties Interface

Microsoft.Data.ConnectionUI Namespace