다음을 통해 공유


DeleteItems Method (String, CatalogClassTypes)

Delete items from this catalog matching a search clause.

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

Syntax

'Declaration
Public Function DeleteItems ( _
    searchClause As String, _
    classTypes As CatalogClassTypes _
) As Integer
'Usage
Dim instance As ProductCatalog
Dim searchClause As String
Dim classTypes As CatalogClassTypes
Dim returnValue As Integer

returnValue = instance.DeleteItems(searchClause, _
    classTypes)
public int DeleteItems(
    string searchClause,
    CatalogClassTypes classTypes
)
public:
int DeleteItems(
    String^ searchClause, 
    CatalogClassTypes classTypes
)
public function DeleteItems(
    searchClause : String, 
    classTypes : CatalogClassTypes
) : int

Parameters

  • searchClause
    Type: System..::.String
    A search clause specifying the items to delete.

Return Value

Type: System..::.Int32
Number of items deleted.

Remarks

Bulk delete all items matching this search clause and class types. Returns the number of items deleted. This method will only delete concrete items declared in this catalog.

Permissions

See Also

Reference

ProductCatalog Class

ProductCatalog Members

DeleteItems Overload

Microsoft.CommerceServer.Catalog Namespace