Share via


HasProperty Method

Returns true if the underlying dataset contains the specified property.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Overrides Function HasProperty ( _
    propertyName As String _
) As Boolean
'Usage
Dim instance As ProductCatalog
Dim propertyName As String
Dim returnValue As Boolean

returnValue = instance.HasProperty(propertyName)
public override bool HasProperty(
    string propertyName
)
public:
virtual bool HasProperty(
    String^ propertyName
) override
public override function HasProperty(
    propertyName : String
) : boolean

Parameters

Return Value

Type: System..::.Boolean
Returns true if the underlying dataset contains the specified property; otherwise returns false.

Remarks

Performs a query of the underlying database to determine if there is a column for the specified propertyName. Using this method allows you to determine if there is the specified property without using the indexer and possibly throwing an exception. The returned value is true if the underlying dataset contains the specified property; otherwise false is returned.

Permissions

See Also

Reference

ProductCatalog Class

ProductCatalog Members

Microsoft.CommerceServer.Catalog Namespace