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.
- classTypes
Type: Microsoft.CommerceServer.Catalog..::.CatalogClassTypes
Only delete item types specified in CatalogClassTypes.
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
- 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.