Table of Contents

Class FormWidget

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(FormWidget.JsonConverter))]
[Serializable]
public class FormWidget
Inheritance
FormWidget
Inherited Members
Extension Methods

Properties

Type

Type discriminator

[JsonIgnore]
public string Type { get; }

Property Value

string

Value

Union value

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

AsFormWidgetAuth0VerifiableCredentials()

Returns the value as a FormWidgetAuth0VerifiableCredentials if Type is 'formWidgetAuth0VerifiableCredentials', otherwise throws an exception.

public FormWidgetAuth0VerifiableCredentials AsFormWidgetAuth0VerifiableCredentials()

Returns

FormWidgetAuth0VerifiableCredentials

Exceptions

ManagementException

Thrown when Type is not 'formWidgetAuth0VerifiableCredentials'.

AsFormWidgetGMapsAddress()

Returns the value as a FormWidgetGMapsAddress if Type is 'formWidgetGMapsAddress', otherwise throws an exception.

public FormWidgetGMapsAddress AsFormWidgetGMapsAddress()

Returns

FormWidgetGMapsAddress

Exceptions

ManagementException

Thrown when Type is not 'formWidgetGMapsAddress'.

AsFormWidgetRecaptcha()

Returns the value as a FormWidgetRecaptcha if Type is 'formWidgetRecaptcha', otherwise throws an exception.

public FormWidgetRecaptcha AsFormWidgetRecaptcha()

Returns

FormWidgetRecaptcha

Exceptions

ManagementException

Thrown when Type is not 'formWidgetRecaptcha'.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FromFormWidgetAuth0VerifiableCredentials(FormWidgetAuth0VerifiableCredentials)

Factory method to create a union from a Auth0.ManagementApi.FormWidgetAuth0VerifiableCredentials value.

public static FormWidget FromFormWidgetAuth0VerifiableCredentials(FormWidgetAuth0VerifiableCredentials value)

Parameters

value FormWidgetAuth0VerifiableCredentials

Returns

FormWidget

FromFormWidgetGMapsAddress(FormWidgetGMapsAddress)

Factory method to create a union from a Auth0.ManagementApi.FormWidgetGMapsAddress value.

public static FormWidget FromFormWidgetGMapsAddress(FormWidgetGMapsAddress value)

Parameters

value FormWidgetGMapsAddress

Returns

FormWidget

FromFormWidgetRecaptcha(FormWidgetRecaptcha)

Factory method to create a union from a Auth0.ManagementApi.FormWidgetRecaptcha value.

public static FormWidget FromFormWidgetRecaptcha(FormWidgetRecaptcha value)

Parameters

value FormWidgetRecaptcha

Returns

FormWidget

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsFormWidgetAuth0VerifiableCredentials()

Returns true if Type is "formWidgetAuth0VerifiableCredentials"

public bool IsFormWidgetAuth0VerifiableCredentials()

Returns

bool

IsFormWidgetGMapsAddress()

Returns true if Type is "formWidgetGMapsAddress"

public bool IsFormWidgetGMapsAddress()

Returns

bool

IsFormWidgetRecaptcha()

Returns true if Type is "formWidgetRecaptcha"

public bool IsFormWidgetRecaptcha()

Returns

bool

Match<T>(Func<FormWidgetAuth0VerifiableCredentials, T>, Func<FormWidgetGMapsAddress, T>, Func<FormWidgetRecaptcha, T>)

public T Match<T>(Func<FormWidgetAuth0VerifiableCredentials, T> onFormWidgetAuth0VerifiableCredentials, Func<FormWidgetGMapsAddress, T> onFormWidgetGMapsAddress, Func<FormWidgetRecaptcha, T> onFormWidgetRecaptcha)

Parameters

onFormWidgetAuth0VerifiableCredentials Func<FormWidgetAuth0VerifiableCredentials, T>
onFormWidgetGMapsAddress Func<FormWidgetGMapsAddress, T>
onFormWidgetRecaptcha Func<FormWidgetRecaptcha, T>

Returns

T

Type Parameters

T

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryGetFormWidgetAuth0VerifiableCredentials(out FormWidgetAuth0VerifiableCredentials?)

Attempts to cast the value to a FormWidgetAuth0VerifiableCredentials and returns true if successful.

public bool TryGetFormWidgetAuth0VerifiableCredentials(out FormWidgetAuth0VerifiableCredentials? value)

Parameters

value FormWidgetAuth0VerifiableCredentials

Returns

bool

TryGetFormWidgetGMapsAddress(out FormWidgetGMapsAddress?)

Attempts to cast the value to a FormWidgetGMapsAddress and returns true if successful.

public bool TryGetFormWidgetGMapsAddress(out FormWidgetGMapsAddress? value)

Parameters

value FormWidgetGMapsAddress

Returns

bool

TryGetFormWidgetRecaptcha(out FormWidgetRecaptcha?)

Attempts to cast the value to a FormWidgetRecaptcha and returns true if successful.

public bool TryGetFormWidgetRecaptcha(out FormWidgetRecaptcha? value)

Parameters

value FormWidgetRecaptcha

Returns

bool

Visit(Action<FormWidgetAuth0VerifiableCredentials>, Action<FormWidgetGMapsAddress>, Action<FormWidgetRecaptcha>)

public void Visit(Action<FormWidgetAuth0VerifiableCredentials> onFormWidgetAuth0VerifiableCredentials, Action<FormWidgetGMapsAddress> onFormWidgetGMapsAddress, Action<FormWidgetRecaptcha> onFormWidgetRecaptcha)

Parameters

onFormWidgetAuth0VerifiableCredentials Action<FormWidgetAuth0VerifiableCredentials>
onFormWidgetGMapsAddress Action<FormWidgetGMapsAddress>
onFormWidgetRecaptcha Action<FormWidgetRecaptcha>

Operators

implicit operator FormWidget(FormWidgetAuth0VerifiableCredentials)

public static implicit operator FormWidget(FormWidgetAuth0VerifiableCredentials value)

Parameters

value FormWidgetAuth0VerifiableCredentials

Returns

FormWidget

implicit operator FormWidget(FormWidgetGMapsAddress)

public static implicit operator FormWidget(FormWidgetGMapsAddress value)

Parameters

value FormWidgetGMapsAddress

Returns

FormWidget

implicit operator FormWidget(FormWidgetRecaptcha)

public static implicit operator FormWidget(FormWidgetRecaptcha value)

Parameters

value FormWidgetRecaptcha

Returns

FormWidget