Edit

Share via


Conversation.Impersonate(String, String, String) Method

Definition

Impersonate as a different user.

public:
 void Impersonate(System::String ^ uri, System::String ^ phoneUri, System::String ^ displayName);
public void Impersonate (string uri, string phoneUri, string displayName);
member this.Impersonate : string * string * string -> unit
Public Sub Impersonate (uri As String, phoneUri As String, displayName As String)

Parameters

uri
String

The URI of the user to impersonate. Required.

phoneUri
String

The tel URI of the user to impersonate. Optional.

displayName
String

The display name of the user to impersonate. Optional.

Exceptions

Thrown when the phoneUri parameter value is invalid.

Thrown when this method is invoked on a UserEndpoint or if the current state of the conversation is neither Idle nor Incoming.

Remarks

This is allowed only when using an ApplicationEndpoint. The method can only be called when the conversation state is Idle or Incoming.

Applies to