Share via


AdoDotNetSourceInformation.IVsDataSourceInformation.Contains Method

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

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

Syntax

'Declaration
Private Function Contains ( _
    propertyName As String _
) As Boolean Implements IVsDataSourceInformation.Contains
bool IVsDataSourceInformation.Contains(
    string propertyName
)
private:
virtual bool Contains(
    String^ propertyName
) sealed = IVsDataSourceInformation::Contains
private abstract Contains : 
        propertyName:string -> bool  
private override Contains : 
        propertyName:string -> bool
JScript does not support explicit interface implementations.

Parameters

  • propertyName
    Type: System.String

    The name of a data source information property.

Return Value

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

Implements

IVsDataSourceInformation.Contains(String)

Remarks

If a given property is not contained in the current data source information instance (that is, the method returns false), this method delegates to the ADO.NET SourceInformation 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

AdoDotNetSourceInformation Class

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace