CustomerEntity Constructor (String, Object, String, Boolean, String, String)
Initializes a new instance of the CustomerEntity class.
Namespace: Microsoft.Uii.Desktop.Core
Assembly: Microsoft.Uii.Desktop.Core (in Microsoft.Uii.Desktop.Core.dll)
Usage
'Usage
Dim customerId As String
Dim customer As Object
Dim serializedCustomer As String
Dim newCustomer As Boolean
Dim originatingSearchControl As String
Dim targetContextControl As String
Dim instance As New CustomerEntity(customerId, customer, serializedCustomer, newCustomer, originatingSearchControl, targetContextControl)
Syntax
'Declaration
Public Sub New ( _
customerId As String, _
customer As Object, _
serializedCustomer As String, _
newCustomer As Boolean, _
originatingSearchControl As String, _
targetContextControl As String _
)
public CustomerEntity (
string customerId,
Object customer,
string serializedCustomer,
bool newCustomer,
string originatingSearchControl,
string targetContextControl
)
public:
CustomerEntity (
String^ customerId,
Object^ customer,
String^ serializedCustomer,
bool newCustomer,
String^ originatingSearchControl,
String^ targetContextControl
)
public CustomerEntity (
String customerId,
Object customer,
String serializedCustomer,
boolean newCustomer,
String originatingSearchControl,
String targetContextControl
)
public function CustomerEntity (
customerId : String,
customer : Object,
serializedCustomer : String,
newCustomer : boolean,
originatingSearchControl : String,
targetContextControl : String
)
Parameters
- customerId
Specifies the customer id
- customer
Specifies the customer object. This must be a serilazable object.
- serializedCustomer
Specifies the name of the hosted control that created the customer record.
- newCustomer
Specifies the serialized version of the new customer record.
- originatingSearchControl
Flag that indicates if this is a new customer
- targetContextControl
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
Platforms
See Also
Reference
CustomerEntity Class
CustomerEntity Members
Microsoft.Uii.Desktop.Core Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.