CreateConversationOptionsBuilder.WithAudience(String) Method
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.
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.