Table of Contents

Class FormNode

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(FormNode.JsonConverter))]
[Serializable]
public class FormNode
Inheritance
FormNode
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

AsFormFlow()

Returns the value as a FormFlow if Type is 'formFlow', otherwise throws an exception.

public FormFlow AsFormFlow()

Returns

FormFlow

Exceptions

ManagementException

Thrown when Type is not 'formFlow'.

AsFormRouter()

Returns the value as a FormRouter if Type is 'formRouter', otherwise throws an exception.

public FormRouter AsFormRouter()

Returns

FormRouter

Exceptions

ManagementException

Thrown when Type is not 'formRouter'.

AsFormStep()

Returns the value as a FormStep if Type is 'formStep', otherwise throws an exception.

public FormStep AsFormStep()

Returns

FormStep

Exceptions

ManagementException

Thrown when Type is not 'formStep'.

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.

FromFormFlow(FormFlow)

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

public static FormNode FromFormFlow(FormFlow value)

Parameters

value FormFlow

Returns

FormNode

FromFormRouter(FormRouter)

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

public static FormNode FromFormRouter(FormRouter value)

Parameters

value FormRouter

Returns

FormNode

FromFormStep(FormStep)

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

public static FormNode FromFormStep(FormStep value)

Parameters

value FormStep

Returns

FormNode

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsFormFlow()

Returns true if Type is "formFlow"

public bool IsFormFlow()

Returns

bool

IsFormRouter()

Returns true if Type is "formRouter"

public bool IsFormRouter()

Returns

bool

IsFormStep()

Returns true if Type is "formStep"

public bool IsFormStep()

Returns

bool

Match<T>(Func<FormFlow, T>, Func<FormRouter, T>, Func<FormStep, T>)

public T Match<T>(Func<FormFlow, T> onFormFlow, Func<FormRouter, T> onFormRouter, Func<FormStep, T> onFormStep)

Parameters

onFormFlow Func<FormFlow, T>
onFormRouter Func<FormRouter, T>
onFormStep Func<FormStep, 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.

TryGetFormFlow(out FormFlow?)

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

public bool TryGetFormFlow(out FormFlow? value)

Parameters

value FormFlow

Returns

bool

TryGetFormRouter(out FormRouter?)

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

public bool TryGetFormRouter(out FormRouter? value)

Parameters

value FormRouter

Returns

bool

TryGetFormStep(out FormStep?)

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

public bool TryGetFormStep(out FormStep? value)

Parameters

value FormStep

Returns

bool

Visit(Action<FormFlow>, Action<FormRouter>, Action<FormStep>)

public void Visit(Action<FormFlow> onFormFlow, Action<FormRouter> onFormRouter, Action<FormStep> onFormStep)

Parameters

onFormFlow Action<FormFlow>
onFormRouter Action<FormRouter>
onFormStep Action<FormStep>

Operators

implicit operator FormNode(FormFlow)

public static implicit operator FormNode(FormFlow value)

Parameters

value FormFlow

Returns

FormNode

implicit operator FormNode(FormRouter)

public static implicit operator FormNode(FormRouter value)

Parameters

value FormRouter

Returns

FormNode

implicit operator FormNode(FormStep)

public static implicit operator FormNode(FormStep value)

Parameters

value FormStep

Returns

FormNode