Share via


DataConnectionProperties.Contains Method

Tests whether a specified property is a member of the current set of connection properties.

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

Syntax

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

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data Namespace