OAuthPrompt Constructor
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.
Initializes a new instance of the OAuthPrompt class.
public OAuthPrompt (string dialogId, Microsoft.Bot.Builder.Dialogs.OAuthPromptSettings settings, Microsoft.Bot.Builder.Dialogs.PromptValidator<Microsoft.Bot.Schema.TokenResponse> validator = default);
new Microsoft.Bot.Builder.Dialogs.OAuthPrompt : string * Microsoft.Bot.Builder.Dialogs.OAuthPromptSettings * Microsoft.Bot.Builder.Dialogs.PromptValidator<Microsoft.Bot.Schema.TokenResponse> -> Microsoft.Bot.Builder.Dialogs.OAuthPrompt
Public Sub New (dialogId As String, settings As OAuthPromptSettings, Optional validator As PromptValidator(Of TokenResponse) = Nothing)
Parameters
- dialogId
- String
The ID to assign to this prompt.
- settings
- OAuthPromptSettings
Additional OAuth settings to use with this instance of the prompt.
- validator
- PromptValidator<TokenResponse>
Optional, a PromptValidator<T> that contains additional, custom validation for this prompt.
Remarks
The value of dialogId
must be unique within the DialogSet or ComponentDialog to which the prompt is added.