Click or drag to resize
AddressInfoProviderExtensionsGetByCustomer Method
Returns query for all addresses matching the specified parameters.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
public static ObjectQuery<AddressInfo> GetByCustomer(
	this IAddressInfoProvider addressInfoProvider,
	int customerId
)

Parameters

addressInfoProvider
Type: CMS.EcommerceIAddressInfoProvider
Provider for AddressInfo management.
customerId
Type: SystemInt32
ID of the customer the address belongs to

Return Value

Type: ObjectQueryAddressInfo

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAddressInfoProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when addressInfoProvider is null.
See Also