Class PaymentCollection
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a collection of payment objects
[Serializable]
[Obsolete]
public class PaymentCollection : Collection<Payment>, IList<Payment>, ICollection<Payment>, IReadOnlyList<Payment>, IReadOnlyCollection<Payment>, IEnumerable<Payment>, IList, ICollection, IEnumerable
- Inheritance
-
PaymentCollection
- Implements
- Inherited Members
- Extension Methods
Methods
Add(Payment)
Adds distinct payment to the collection
public void Add(Payment payment)
Parameters
paymentPayment
Remarks
If the payment already exists in the collection it is not added
AddRange(IEnumerable<Payment>)
Adds range of distinct payments to the collection
public void AddRange(IEnumerable<Payment> payments)
Parameters
paymentsIEnumerable<Payment>
Remarks
If the payment already exists in the collection it is not added
Contains(Payment)
Determines whether collection contains the given payment.
public bool Contains(Payment payment)
Parameters
paymentPayment- Payment reference.
Returns
- bool
- Value indicating whether collection contains the given payment.
get_Item(int)
Gets the element at the specified index.
[Obsolete("Do not use this.")]
public Payment get_Item(int index)
Parameters
indexint- The index.
Returns
Load(string)
Loads PaymentCollection using the specified query.
public void Load(string query)
Parameters
querystring- The query.
Examples
public ShippingCollection GetAllPaymethods()
{
String query = "SELECT * FROM EcomPayments WHERE PaymentLanguageID = '" + Context.LanguageID() + "' ORDER BY PaymentID";
PaymentCollection col = new PaymentCollection();
col.Load(query);
return col;
}