Compartir a través de


DataSourceInformation.Contains Method

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

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

Syntax

'Declaración
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
    The name of the property being tested.

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

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

DataSourceInformation Class

Microsoft.VisualStudio.Data Namespace