Class GetUniversalLoginTemplateResponseContent
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(GetUniversalLoginTemplateResponseContent.JsonConverter))]
[Serializable]
public class GetUniversalLoginTemplateResponseContent
- Inheritance
-
GetUniversalLoginTemplateResponseContent
- 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
AsGetUniversalLoginTemplate()
Returns the value as a GetUniversalLoginTemplate if Type is 'getUniversalLoginTemplate', otherwise throws an exception.
public GetUniversalLoginTemplate AsGetUniversalLoginTemplate()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'getUniversalLoginTemplate'.
AsString()
public string AsString()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'string'.
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.
FromGetUniversalLoginTemplate(GetUniversalLoginTemplate)
Factory method to create a union from a Auth0.ManagementApi.GetUniversalLoginTemplate value.
public static GetUniversalLoginTemplateResponseContent FromGetUniversalLoginTemplate(GetUniversalLoginTemplate value)
Parameters
Returns
FromString(string)
Factory method to create a union from a string value.
public static GetUniversalLoginTemplateResponseContent FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsGetUniversalLoginTemplate()
Returns true if Type is "getUniversalLoginTemplate"
public bool IsGetUniversalLoginTemplate()
Returns
IsString()
Returns true if Type is "string"
public bool IsString()
Returns
Match<T>(Func<GetUniversalLoginTemplate, T>, Func<string, T>)
public T Match<T>(Func<GetUniversalLoginTemplate, T> onGetUniversalLoginTemplate, Func<string, T> onString)
Parameters
onGetUniversalLoginTemplateFunc<GetUniversalLoginTemplate, T>onStringFunc<string, 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.
TryGetGetUniversalLoginTemplate(out GetUniversalLoginTemplate?)
Attempts to cast the value to a GetUniversalLoginTemplate and returns true if successful.
public bool TryGetGetUniversalLoginTemplate(out GetUniversalLoginTemplate? value)
Parameters
Returns
TryGetString(out string?)
Attempts to cast the value to a string and returns true if successful.
public bool TryGetString(out string? value)
Parameters
valuestring
Returns
Visit(Action<GetUniversalLoginTemplate>, Action<string>)
public void Visit(Action<GetUniversalLoginTemplate> onGetUniversalLoginTemplate, Action<string> onString)
Parameters
onGetUniversalLoginTemplateAction<GetUniversalLoginTemplate>onStringAction<string>
Operators
implicit operator GetUniversalLoginTemplateResponseContent(GetUniversalLoginTemplate)
public static implicit operator GetUniversalLoginTemplateResponseContent(GetUniversalLoginTemplate value)
Parameters
Returns
implicit operator GetUniversalLoginTemplateResponseContent(string)
public static implicit operator GetUniversalLoginTemplateResponseContent(string value)
Parameters
valuestring