Partager via


CustomerEntity Constructor (String, Object, String, Boolean, String)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

Initializes a new instance of the CustomerEntity class.

Namespace:   Microsoft.Uii.Desktop.Core
Assembly:  Microsoft.Uii.Desktop.Core (in Microsoft.Uii.Desktop.Core.dll)

Syntax

public CustomerEntity(
    string customerId,
    object customer,
    string serializedCustomer,
    bool newCustomer,
    string originatingSearchControl
)
Public Sub New (
    customerId As String,
    customer As Object,
    serializedCustomer As String,
    newCustomer As Boolean,
    originatingSearchControl As String
)

Parameters

  • customer
    Type: System.Object

    Specifies the customer object. This must be a serilazable object.

  • serializedCustomer
    Type: System.String

    Specifies the name of the hosted control that created the customer record.

  • newCustomer
    Type: System.Boolean

    Specifies the serialized version of the new customer record.

  • originatingSearchControl
    Type: System.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.

See Also

CustomerEntity Overload
CustomerEntity Class
Microsoft.Uii.Desktop.Core Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright