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.StringName 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.