AddCatalogDefinitionProperty Method (Int32, String, Int32, Int32, String, Int32)
Add a Definition to this enumeration and return a CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionProperty.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function AddCatalogDefinitionProperty ( _
DefinitionId As Integer, _
PropertyName As String, _
PropertyType As Integer, _
PropertyOrder As Integer, _
DefinitionName As String, _
DefinitionType As Integer _
) As CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionProperty
'Usage
Dim instance As CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionPropertiesDataTable
Dim DefinitionId As Integer
Dim PropertyName As String
Dim PropertyType As Integer
Dim PropertyOrder As Integer
Dim DefinitionName As String
Dim DefinitionType As Integer
Dim returnValue As CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionProperty
returnValue = instance.AddCatalogDefinitionProperty(DefinitionId, _
PropertyName, PropertyType, PropertyOrder, _
DefinitionName, DefinitionType)
public CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionProperty AddCatalogDefinitionProperty(
int DefinitionId,
string PropertyName,
int PropertyType,
int PropertyOrder,
string DefinitionName,
int DefinitionType
)
public:
CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionProperty^ AddCatalogDefinitionProperty(
int DefinitionId,
String^ PropertyName,
int PropertyType,
int PropertyOrder,
String^ DefinitionName,
int DefinitionType
)
public function AddCatalogDefinitionProperty(
DefinitionId : int,
PropertyName : String,
PropertyType : int,
PropertyOrder : int,
DefinitionName : String,
DefinitionType : int
) : CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionProperty
Parameters
- DefinitionId
Type: System..::.Int32
The identifier for this Catalog definition property.
- PropertyName
Type: System..::.String
The name of the property.
- PropertyType
Type: System..::.Int32
The type of this Catalog definition property.
- PropertyOrder
Type: System..::.Int32
The ranking order of this property.
- DefinitionName
Type: System..::.String
Definition to use for this property
- DefinitionType
Type: System..::.Int32
The type of catalog definition.
Return Value
Type: Microsoft.CommerceServer.Catalog..::.CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionProperty
A CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionProperty containing the added CatalogDefinitionProperty.
Remarks
The enumeration object must be saved before these changes will be persisted to the database.
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.
See Also
Reference
CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionPropertiesDataTable Class
CatalogDefinitionPropertiesDataSet..::.CatalogDefinitionPropertiesDataTable Members