Partager via


AddPropertyToEntity Method

Adds a property to one of the built-in entity definitions.

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

Syntax

'Declaration
Public Sub AddPropertyToEntity ( _
    entityType As ExtensibleEntityType, _
    propertyName As String _
)
'Usage
Dim instance As CatalogContext
Dim entityType As ExtensibleEntityType
Dim propertyName As String

instance.AddPropertyToEntity(entityType, _
    propertyName)
public void AddPropertyToEntity(
    ExtensibleEntityType entityType,
    string propertyName
)
public:
void AddPropertyToEntity(
    ExtensibleEntityType entityType, 
    String^ propertyName
)
public function AddPropertyToEntity(
    entityType : ExtensibleEntityType, 
    propertyName : String
)

Parameters

Remarks

The entityType is an Inventory Catalog, Inventory SKU, Catalogs, or Properties.

Permissions

See Also

Reference

CatalogContext Class

CatalogContext Members

Microsoft.CommerceServer.Catalog Namespace