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
- entityType
Type: Microsoft.CommerceServer.Catalog..::.ExtensibleEntityType
Entity definition to add the property.
- propertyName
Type: System..::.String
Property to add.
Remarks
The entityType is an Inventory Catalog, Inventory SKU, Catalogs, or Properties.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.