Class AculContextConfigurationItem
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(AculContextConfigurationItem.JsonConverter))]
[Serializable]
public class AculContextConfigurationItem
- Inheritance
-
AculContextConfigurationItem
- 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
AsAculContextEnum()
Returns the value as a AculContextEnum if Type is 'aculContextEnum', otherwise throws an exception.
public AculContextEnum AsAculContextEnum()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'aculContextEnum'.
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.
FromAculContextEnum(AculContextEnum)
Factory method to create a union from a Auth0.ManagementApi.AculContextEnum value.
public static AculContextConfigurationItem FromAculContextEnum(AculContextEnum value)
Parameters
valueAculContextEnum
Returns
FromString(string)
Factory method to create a union from a string value.
public static AculContextConfigurationItem 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.
IsAculContextEnum()
Returns true if Type is "aculContextEnum"
public bool IsAculContextEnum()
Returns
IsString()
Returns true if Type is "string"
public bool IsString()
Returns
Match<T>(Func<AculContextEnum, T>, Func<string, T>)
public T Match<T>(Func<AculContextEnum, T> onAculContextEnum, Func<string, T> onString)
Parameters
onAculContextEnumFunc<AculContextEnum, 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.
TryGetAculContextEnum(out AculContextEnum?)
Attempts to cast the value to a AculContextEnum and returns true if successful.
public bool TryGetAculContextEnum(out AculContextEnum? value)
Parameters
valueAculContextEnum?
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<AculContextEnum>, Action<string>)
public void Visit(Action<AculContextEnum> onAculContextEnum, Action<string> onString)
Parameters
onAculContextEnumAction<AculContextEnum>onStringAction<string>
Operators
implicit operator AculContextConfigurationItem(AculContextEnum)
public static implicit operator AculContextConfigurationItem(AculContextEnum value)
Parameters
valueAculContextEnum
Returns
implicit operator AculContextConfigurationItem(string)
public static implicit operator AculContextConfigurationItem(string value)
Parameters
valuestring