Table of Contents

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

string

Value

Union value

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

AsAculContextEnum()

Returns the value as a AculContextEnum if Type is 'aculContextEnum', otherwise throws an exception.

public AculContextEnum AsAculContextEnum()

Returns

AculContextEnum

Exceptions

ManagementException

Thrown when Type is not 'aculContextEnum'.

AsString()

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

public string AsString()

Returns

string

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

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.

FromAculContextEnum(AculContextEnum)

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

public static AculContextConfigurationItem FromAculContextEnum(AculContextEnum value)

Parameters

value AculContextEnum

Returns

AculContextConfigurationItem

FromString(string)

Factory method to create a union from a string value.

public static AculContextConfigurationItem FromString(string value)

Parameters

value string

Returns

AculContextConfigurationItem

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

bool

IsString()

Returns true if Type is "string"

public bool IsString()

Returns

bool

Match<T>(Func<AculContextEnum, T>, Func<string, T>)

public T Match<T>(Func<AculContextEnum, T> onAculContextEnum, Func<string, T> onString)

Parameters

onAculContextEnum Func<AculContextEnum, T>
onString Func<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

value AculContextEnum?

Returns

bool

TryGetString(out string?)

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

public bool TryGetString(out string? value)

Parameters

value string

Returns

bool

Visit(Action<AculContextEnum>, Action<string>)

public void Visit(Action<AculContextEnum> onAculContextEnum, Action<string> onString)

Parameters

onAculContextEnum Action<AculContextEnum>
onString Action<string>

Operators

implicit operator AculContextConfigurationItem(AculContextEnum)

public static implicit operator AculContextConfigurationItem(AculContextEnum value)

Parameters

value AculContextEnum

Returns

AculContextConfigurationItem

implicit operator AculContextConfigurationItem(string)

public static implicit operator AculContextConfigurationItem(string value)

Parameters

value string

Returns

AculContextConfigurationItem