AddCatalogSet Method (Guid, String, String, String)
Add a Catalog Set to this CatalogSetsDataSet..::.CatalogSetsDataTable and return a CatalogSetsDataSet.CatalogSet.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function AddCatalogSet ( _
CatalogSetId As Guid, _
CatalogSetName As String, _
CatalogSetDescription As String, _
Expression As String _
) As CatalogSetsDataSet..::.CatalogSet
'Usage
Dim instance As CatalogSetsDataSet..::.CatalogSetsDataTable
Dim CatalogSetId As Guid
Dim CatalogSetName As String
Dim CatalogSetDescription As String
Dim Expression As String
Dim returnValue As CatalogSetsDataSet..::.CatalogSet
returnValue = instance.AddCatalogSet(CatalogSetId, _
CatalogSetName, CatalogSetDescription, _
Expression)
public CatalogSetsDataSet..::.CatalogSet AddCatalogSet(
Guid CatalogSetId,
string CatalogSetName,
string CatalogSetDescription,
string Expression
)
public:
CatalogSetsDataSet..::.CatalogSet^ AddCatalogSet(
Guid CatalogSetId,
String^ CatalogSetName,
String^ CatalogSetDescription,
String^ Expression
)
public function AddCatalogSet(
CatalogSetId : Guid,
CatalogSetName : String,
CatalogSetDescription : String,
Expression : String
) : CatalogSetsDataSet..::.CatalogSet
Parameters
- CatalogSetId
Type: System..::.Guid
The identifier for the CatalogSet.
- CatalogSetName
Type: System..::.String
The Catalog Set name.
- CatalogSetDescription
Type: System..::.String
The Catalog Set description
- Expression
Type: System..::.String
The expression is a second “RefiningClause” used for additional search criteria.
Return Value
Type: Microsoft.CommerceServer.Catalog..::.CatalogSetsDataSet..::.CatalogSet
A CatalogSetsDataSet..::.CatalogSet containing the added set.
Remarks
The CatalogSetsDataset 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
CatalogSetsDataSet..::.CatalogSetsDataTable Class