Share via


AdoDotNetDataSourceInformation.Contains Method

Retrieves a Boolean value indicating whether the specified property is contained in this data source information instance.

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

    The name of a data source information property.

Return Value

Type: System.Boolean
Returns true if the specified property is contained in this data source information instance; otherwise returns false.

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is null.

Remarks

If a given property is not contained in the current data source information instance (i.e., the method returns false), it delegates to the ADO.NET DataSourceInformation property's data table.

It is recommended that clients call this method before actually retrieving a value, as this may save retrieval of a value until it is actually needed.

.NET Framework Security

See Also

Reference

AdoDotNetDataSourceInformation Class

Microsoft.VisualStudio.Data.AdoDotNet Namespace