Share via


Field<T>.SetOptional(Boolean) Method

Definition

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>.

Applies to