CustomerEntity Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CustomerEntity() |
Initializes a new instance of the CustomerEntity class. |
CustomerEntity(String, Object, String, Boolean, String) |
Initializes a new instance of the CustomerEntity class. |
CustomerEntity(String, Object, String, Boolean, String, String) |
Initializes a new instance of the CustomerEntity class. |
CustomerEntity()
Initializes a new instance of the CustomerEntity class.
public:
CustomerEntity();
public CustomerEntity ();
Public Sub New ()
Applies to
CustomerEntity(String, Object, String, Boolean, String)
Initializes a new instance of the CustomerEntity class.
public:
CustomerEntity(System::String ^ customerId, System::Object ^ customer, System::String ^ serializedCustomer, bool newCustomer, System::String ^ originatingSearchControl);
public CustomerEntity (string customerId, object customer, string serializedCustomer, bool newCustomer, string originatingSearchControl);
new Microsoft.Uii.Desktop.Core.CustomerEntity : string * obj * string * bool * string -> Microsoft.Uii.Desktop.Core.CustomerEntity
Public Sub New (customerId As String, customer As Object, serializedCustomer As String, newCustomer As Boolean, originatingSearchControl As String)
Parameters
- customerId
- String
Specifies the customer id
- customer
- Object
Specifies the customer object. This must be a serilazable object.
- serializedCustomer
- String
Specifies the name of the hosted control that created the customer record.
- newCustomer
- Boolean
Specifies the serialized version of the new customer record.
- originatingSearchControl
- String
Flag that indicates if this is a new customer
Remarks
This control must implement the IContextManager interface.
The customer object allows developers to create their own customer record type and process that record type within the desktop. The developer is required to handle serialization of the customer record into the serialized customer object parameter of the constructor.
Customer ID - The customer id is utilized by the session manager to identify a given session’s customer object. In the situation where customer search request is raised, this is the key element used to determine if the customer attached to the inbound search request is the same as a customer that is attached to a given session.
Originating Search Control - In this constructor, the originating search control is the name of the control that implements the ICustomerSearch interface AND also implements the IContextManager interface.
Applies to
CustomerEntity(String, Object, String, Boolean, String, String)
Initializes a new instance of the CustomerEntity class.
public:
CustomerEntity(System::String ^ customerId, System::Object ^ customer, System::String ^ serializedCustomer, bool newCustomer, System::String ^ originatingSearchControl, System::String ^ targetContextControl);
public CustomerEntity (string customerId, object customer, string serializedCustomer, bool newCustomer, string originatingSearchControl, string targetContextControl);
new Microsoft.Uii.Desktop.Core.CustomerEntity : string * obj * string * bool * string * string -> Microsoft.Uii.Desktop.Core.CustomerEntity
Public Sub New (customerId As String, customer As Object, serializedCustomer As String, newCustomer As Boolean, originatingSearchControl As String, targetContextControl As String)
Parameters
- customerId
- String
Specifies the customer id
- customer
- Object
Specifies the customer object. This must be a serilazable object.
- serializedCustomer
- String
Specifies the name of the hosted control that created the customer record.
- newCustomer
- Boolean
Specifies the serialized version of the new customer record.
- originatingSearchControl
- String
Flag that indicates if this is a new customer
- targetContextControl
- String
Flag that indicates if this is a new customer
Remarks
The customer object allows a developer to create their own customer record type and process that record type within desktop. The developer is required to handle serialization of the customer record into the serialized customer object parameter of the constructor.
Customer ID- The customer id is utilized by the session manager to identify a given session’s customer object. In the situation where customer search request is raised, this is the key element used to determine if the customer attached to the inbound search request is the same as a customer that is attached to a given session.
Originating Search Control - The originating search control is the name of the control that implements the ICustomerSearch interface.
Target Context Control- The target Context Control is the name of the control that implements the IContextManager interface