CreateConversationOptionsBuilder.WithAudience(String) Method

Definition

Sets the audience for the conversation being created.

public Microsoft.Agents.Builder.App.Proactive.CreateConversationOptionsBuilder WithAudience(string audience);
member this.WithAudience : string -> Microsoft.Agents.Builder.App.Proactive.CreateConversationOptionsBuilder
Public Function WithAudience (audience As String) As CreateConversationOptionsBuilder

Parameters

audience
String

The audience value to associate with the conversation. If null the default Azure Bot Service audience is used.

Returns

The current CreateConversationOptionsBuilder instance with the updated audience.

Remarks

Use this method to specify a custom audience for the conversation. This does not normally need to be set for Azure Bot Channels.

Applies to