Field<T>.SetOptional(Boolean) 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.
Set whether or not a field is optional.
public Microsoft.Bot.Builder.FormFlow.Advanced.Field<T> SetOptional (bool optional = true);
member this.SetOptional : bool -> Microsoft.Bot.Builder.FormFlow.Advanced.Field<'T (requires 'T : null)>
Public Function SetOptional (Optional optional As Boolean = true) As Field(Of T)
Parameters
- optional
- Boolean
True if field is optional.
Returns
A Field<T>.