OrderGroupManager.SimpleDelete Method (PIA)

Use this method to delete all entries that meet the search criteria as specified by the supplied SimpleFindSearchInfo and SimpleFindResultInfo objects.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Sub SimpleDelete(sfSearchInfo As ISimpleFindSearchInfo,
  sfResultInfo As ISimpleFindResultInfo) 

[C#]

using Microsoft.CommerceServer.Interop.Orders;
…
public object SimpleDelete(ISimpleFindSearchInfosfSearchInfo,
  ISimpleFindResultInfosfResultInfo,
);

Parameters

[Visual Basic .NET]

  • sfSearchInfo
    An object that implements the ISimpleFindSearchInfo interface containing the search criteria.
  • sfResultInfo
    An object that implements the ISimpleFindResultInfo interface containing the search results.

[C#]

  • sfSearchInfo
    The ISimpleFindSearchInfo interface of a SimpleFindSearchInfo object that contains the search criteria.
  • sfResultInfo
    The ISimpleFindResultInfo interface of a SimpleFindResultInfo object that contains the search results.

Return Values

An object containing the number of entries deleted.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

[Visual Basic .NET]

Example

' oSimpleFindSearchInfo is a Commerce SimpleFindSearchInfo object
' oSimpleFindResultInfo is a Commerce SimpleFindResultInfo object
' oOrderGroupManager is a Commerce OrderGroupManager object
oOrderGroupManager.SimpleDelete(oSimpleFindSearchInfo, _
    oSimpleFindResultInfo)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Orders

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Interop.Orders.Requisition.dll

See Also

OrderGroupManager Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.