AddCatalogDefinition Method (String, Int32, String)
Add a Definition to this CatalogDefinitionsDataSet..::.CatalogDefinitionsDataTable and return a CatalogDefinitionsDataSet..::.CatalogDefinition.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function AddCatalogDefinition ( _
DefinitionName As String, _
DefinitionType As Integer, _
Description As String _
) As CatalogDefinitionsDataSet..::.CatalogDefinition
'Usage
Dim instance As CatalogDefinitionsDataSet..::.CatalogDefinitionsDataTable
Dim DefinitionName As String
Dim DefinitionType As Integer
Dim Description As String
Dim returnValue As CatalogDefinitionsDataSet..::.CatalogDefinition
returnValue = instance.AddCatalogDefinition(DefinitionName, _
DefinitionType, Description)
public CatalogDefinitionsDataSet..::.CatalogDefinition AddCatalogDefinition(
string DefinitionName,
int DefinitionType,
string Description
)
public:
CatalogDefinitionsDataSet..::.CatalogDefinition^ AddCatalogDefinition(
String^ DefinitionName,
int DefinitionType,
String^ Description
)
public function AddCatalogDefinition(
DefinitionName : String,
DefinitionType : int,
Description : String
) : CatalogDefinitionsDataSet..::.CatalogDefinition
Parameters
- DefinitionName
Type: System..::.String
Definition to use for this property
- DefinitionType
Type: System..::.Int32
The type of catalog definition.
- Description
Type: System..::.String
Description of the property.
Return Value
Type: Microsoft.CommerceServer.Catalog..::.CatalogDefinitionsDataSet..::.CatalogDefinition
A CatalogDefinitionsDataSet..::.CatalogDefinition containing the added Definition
Remarks
The CatalogDefinitionsDataSet..::.CatalogDefinitionsDataTable 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
CatalogDefinitionsDataSet..::.CatalogDefinitionsDataTable Class
CatalogDefinitionsDataSet..::.CatalogDefinitionsDataTable Members