Struct AllocationStrategyEnum
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(AllocationStrategyEnum.AllocationStrategyEnumSerializer))]
[Serializable]
public readonly record struct AllocationStrategyEnum : IStringEnum, IEquatable<string>, IEquatable<AllocationStrategyEnum>
- Implements
- Inherited Members
Constructors
AllocationStrategyEnum(string)
public AllocationStrategyEnum(string value)
Parameters
valuestring
Fields
Percentage
public static readonly AllocationStrategyEnum Percentage
Field Value
Segment
public static readonly AllocationStrategyEnum Segment
Field Value
Properties
Value
The string value of the enum.
public string Value { get; }
Property Value
Methods
Equals(string?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(string? other)
Parameters
otherstringAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
FromCustom(string)
Create a string enum with the given value.
public static AllocationStrategyEnum FromCustom(string value)
Parameters
valuestring
Returns
ToString()
Returns the string value of the enum.
public override string ToString()
Returns
Operators
operator ==(AllocationStrategyEnum, string)
public static bool operator ==(AllocationStrategyEnum value1, string value2)
Parameters
value1AllocationStrategyEnumvalue2string
Returns
explicit operator string(AllocationStrategyEnum)
public static explicit operator string(AllocationStrategyEnum value)
Parameters
valueAllocationStrategyEnum
Returns
explicit operator AllocationStrategyEnum(string)
public static explicit operator AllocationStrategyEnum(string value)
Parameters
valuestring
Returns
operator !=(AllocationStrategyEnum, string)
public static bool operator !=(AllocationStrategyEnum value1, string value2)
Parameters
value1AllocationStrategyEnumvalue2string