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
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsFormWidgetAuth0VerifiableCredentials()
Returns the value as a FormWidgetAuth0VerifiableCredentials if Type is 'formWidgetAuth0VerifiableCredentials', otherwise throws an exception.
public FormWidgetAuth0VerifiableCredentials AsFormWidgetAuth0VerifiableCredentials()
Returns
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
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
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
objobjectThe 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
Returns
FromFormWidgetGMapsAddress(FormWidgetGMapsAddress)
Factory method to create a union from a Auth0.ManagementApi.FormWidgetGMapsAddress value.
public static FormWidget FromFormWidgetGMapsAddress(FormWidgetGMapsAddress value)
Parameters
valueFormWidgetGMapsAddress
Returns
FromFormWidgetRecaptcha(FormWidgetRecaptcha)
Factory method to create a union from a Auth0.ManagementApi.FormWidgetRecaptcha value.
public static FormWidget FromFormWidgetRecaptcha(FormWidgetRecaptcha value)
Parameters
valueFormWidgetRecaptcha
Returns
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
IsFormWidgetGMapsAddress()
Returns true if Type is "formWidgetGMapsAddress"
public bool IsFormWidgetGMapsAddress()
Returns
IsFormWidgetRecaptcha()
Returns true if Type is "formWidgetRecaptcha"
public bool IsFormWidgetRecaptcha()
Returns
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
onFormWidgetAuth0VerifiableCredentialsFunc<FormWidgetAuth0VerifiableCredentials, T>onFormWidgetGMapsAddressFunc<FormWidgetGMapsAddress, T>onFormWidgetRecaptchaFunc<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
Returns
TryGetFormWidgetGMapsAddress(out FormWidgetGMapsAddress?)
Attempts to cast the value to a FormWidgetGMapsAddress and returns true if successful.
public bool TryGetFormWidgetGMapsAddress(out FormWidgetGMapsAddress? value)
Parameters
valueFormWidgetGMapsAddress
Returns
TryGetFormWidgetRecaptcha(out FormWidgetRecaptcha?)
Attempts to cast the value to a FormWidgetRecaptcha and returns true if successful.
public bool TryGetFormWidgetRecaptcha(out FormWidgetRecaptcha? value)
Parameters
valueFormWidgetRecaptcha
Returns
Visit(Action<FormWidgetAuth0VerifiableCredentials>, Action<FormWidgetGMapsAddress>, Action<FormWidgetRecaptcha>)
public void Visit(Action<FormWidgetAuth0VerifiableCredentials> onFormWidgetAuth0VerifiableCredentials, Action<FormWidgetGMapsAddress> onFormWidgetGMapsAddress, Action<FormWidgetRecaptcha> onFormWidgetRecaptcha)
Parameters
onFormWidgetAuth0VerifiableCredentialsAction<FormWidgetAuth0VerifiableCredentials>onFormWidgetGMapsAddressAction<FormWidgetGMapsAddress>onFormWidgetRecaptchaAction<FormWidgetRecaptcha>
Operators
implicit operator FormWidget(FormWidgetAuth0VerifiableCredentials)
public static implicit operator FormWidget(FormWidgetAuth0VerifiableCredentials value)
Parameters
Returns
implicit operator FormWidget(FormWidgetGMapsAddress)
public static implicit operator FormWidget(FormWidgetGMapsAddress value)
Parameters
valueFormWidgetGMapsAddress
Returns
implicit operator FormWidget(FormWidgetRecaptcha)
public static implicit operator FormWidget(FormWidgetRecaptcha value)
Parameters
valueFormWidgetRecaptcha