Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Tests whether a specified property is a member of the current set of connection properties.
Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Overrides Function Contains ( _
    propertyName As String _
) As Boolean
public override bool Contains(
    string propertyName
)
public:
virtual bool Contains(
    String^ propertyName
) override
abstract Contains : 
        propertyName:string -> bool 
override Contains : 
        propertyName:string -> bool 
public override function Contains(
    propertyName : String
) : boolean
Parameters
- propertyName
 Type: System.String
 Name of the property whose presence is being tested.
Return Value
Type: System.Boolean
Returns true if the specified property is a member of the connection properties collection; otherwise returns false.
Implements
IDataConnectionProperties.Contains(String)
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | The propertyName parameter is null. | 
Remarks
Overrides the Contains method.
.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.