Condividi tramite


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 MustOverride Function HasProperty ( _
    propertyName As String _
) As Boolean
'Usage
Dim instance As CatalogObject
Dim propertyName As String
Dim returnValue As Boolean

returnValue = instance.HasProperty(propertyName)
public abstract bool HasProperty(
    string propertyName
)
public:
virtual bool HasProperty(
    String^ propertyName
) abstract
public abstract 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

CatalogObject Class

CatalogObject Members

Microsoft.CommerceServer.Catalog Namespace