PartyExtensionsGetCustomer Method |
Finds a Customer with the specified Party, which is valid for the specified Enterprise company. If more than one Customers are found,
they are ordered by Enterprise Company in a descending order.
Namespace:
Aloe.EnterpriseOne.Model.Crm
Assembly:
Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntaxpublic static Customer GetCustomer(
this Party party,
EnterpriseCompany enterpriseCompany
)
<ExtensionAttribute>
Public Shared Function GetCustomer (
party As Party,
enterpriseCompany As EnterpriseCompany
) As Customer
public:
[ExtensionAttribute]
static Customer^ GetCustomer(
Party^ party,
EnterpriseCompany^ enterpriseCompany
)
[<ExtensionAttribute>]
static member GetCustomer :
party : Party *
enterpriseCompany : EnterpriseCompany -> Customer
Parameters
- party
- Type: Aloe.EnterpriseOne.Model.General.ContactsParty
The party. - enterpriseCompany
- Type: Aloe.EnterpriseOne.Model.GeneralEnterpriseCompany
The enterprise company.
Return Value
Type:
CustomerThe first customer from the result.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Party. 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).
See Also