Table of Contents

Class SidebarComponent

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(SidebarComponent.JsonConverter))]
[Serializable]
public record SidebarComponent : IEquatable<SidebarComponent>
Inheritance
SidebarComponent
Implements
Inherited Members
Extension Methods

Constructors

Create an instance of SidebarComponent with SidebarComponent.SidebarComponentAuth0ExternalLink.

public SidebarComponent(SidebarComponent.SidebarComponentAuth0ExternalLink value)

Parameters

value SidebarComponent.SidebarComponentAuth0ExternalLink

SidebarComponent(SidebarComponentAuth0ExternalLinkV2)

Create an instance of SidebarComponent with SidebarComponent.SidebarComponentAuth0ExternalLinkV2.

public SidebarComponent(SidebarComponent.SidebarComponentAuth0ExternalLinkV2 value)

Parameters

value SidebarComponent.SidebarComponentAuth0ExternalLinkV2

Create an instance of SidebarComponent with SidebarComponent.SidebarComponentAuth0InternalLink.

public SidebarComponent(SidebarComponent.SidebarComponentAuth0InternalLink value)

Parameters

value SidebarComponent.SidebarComponentAuth0InternalLink

SidebarComponent(SidebarComponentAuth0InternalLinkV2)

Create an instance of SidebarComponent with SidebarComponent.SidebarComponentAuth0InternalLinkV2.

public SidebarComponent(SidebarComponent.SidebarComponentAuth0InternalLinkV2 value)

Parameters

value SidebarComponent.SidebarComponentAuth0InternalLinkV2

Properties

Returns true if Type is "sidebar:component:auth0:external_link"

public bool IsSidebarComponentAuth0ExternalLink { get; }

Property Value

bool

IsSidebarComponentAuth0ExternalLinkV2

Returns true if Type is "sidebar:component:auth0:external_link:v2"

public bool IsSidebarComponentAuth0ExternalLinkV2 { get; }

Property Value

bool

Returns true if Type is "sidebar:component:auth0:internal_link"

public bool IsSidebarComponentAuth0InternalLink { get; }

Property Value

bool

IsSidebarComponentAuth0InternalLinkV2

Returns true if Type is "sidebar:component:auth0:internal_link:v2"

public bool IsSidebarComponentAuth0InternalLinkV2 { get; }

Property Value

bool

Type

Discriminant value

[JsonPropertyName("type")]
public string Type { get; }

Property Value

string

Value

Discriminated union value

public object? Value { get; }

Property Value

object

Methods

Returns the value as a SidebarComponentAuth0ExternalLink if Type is 'sidebar:component:auth0:external_link', otherwise throws an exception.

public SidebarComponentAuth0ExternalLink AsSidebarComponentAuth0ExternalLink()

Returns

SidebarComponentAuth0ExternalLink

Exceptions

Exception

Thrown when Type is not 'sidebar:component:auth0:external_link'.

AsSidebarComponentAuth0ExternalLinkV2()

Returns the value as a SidebarComponentAuth0ExternalLinkV2 if Type is 'sidebar:component:auth0:external_link:v2', otherwise throws an exception.

public SidebarComponentAuth0ExternalLinkV2 AsSidebarComponentAuth0ExternalLinkV2()

Returns

SidebarComponentAuth0ExternalLinkV2

Exceptions

Exception

Thrown when Type is not 'sidebar:component:auth0:external_link:v2'.

Returns the value as a SidebarComponentAuth0InternalLink if Type is 'sidebar:component:auth0:internal_link', otherwise throws an exception.

public SidebarComponentAuth0InternalLink AsSidebarComponentAuth0InternalLink()

Returns

SidebarComponentAuth0InternalLink

Exceptions

Exception

Thrown when Type is not 'sidebar:component:auth0:internal_link'.

AsSidebarComponentAuth0InternalLinkV2()

Returns the value as a SidebarComponentAuth0InternalLinkV2 if Type is 'sidebar:component:auth0:internal_link:v2', otherwise throws an exception.

public SidebarComponentAuth0InternalLinkV2 AsSidebarComponentAuth0InternalLinkV2()

Returns

SidebarComponentAuth0InternalLinkV2

Exceptions

Exception

Thrown when Type is not 'sidebar:component:auth0:internal_link:v2'.

public T Match<T>(Func<SidebarComponentAuth0ExternalLink, T> onSidebarComponentAuth0ExternalLink, Func<SidebarComponentAuth0InternalLink, T> onSidebarComponentAuth0InternalLink, Func<SidebarComponentAuth0ExternalLinkV2, T> onSidebarComponentAuth0ExternalLinkV2, Func<SidebarComponentAuth0InternalLinkV2, T> onSidebarComponentAuth0InternalLinkV2, Func<string, object?, T> onUnknown_)

Parameters

onSidebarComponentAuth0ExternalLink Func<SidebarComponentAuth0ExternalLink, T>
onSidebarComponentAuth0InternalLink Func<SidebarComponentAuth0InternalLink, T>
onSidebarComponentAuth0ExternalLinkV2 Func<SidebarComponentAuth0ExternalLinkV2, T>
onSidebarComponentAuth0InternalLinkV2 Func<SidebarComponentAuth0InternalLinkV2, T>
onUnknown_ Func<string, object, 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.

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

public bool TryAsSidebarComponentAuth0ExternalLink(out SidebarComponentAuth0ExternalLink? value)

Parameters

value SidebarComponentAuth0ExternalLink

Returns

bool

TryAsSidebarComponentAuth0ExternalLinkV2(out SidebarComponentAuth0ExternalLinkV2?)

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

public bool TryAsSidebarComponentAuth0ExternalLinkV2(out SidebarComponentAuth0ExternalLinkV2? value)

Parameters

value SidebarComponentAuth0ExternalLinkV2

Returns

bool

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

public bool TryAsSidebarComponentAuth0InternalLink(out SidebarComponentAuth0InternalLink? value)

Parameters

value SidebarComponentAuth0InternalLink

Returns

bool

TryAsSidebarComponentAuth0InternalLinkV2(out SidebarComponentAuth0InternalLinkV2?)

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

public bool TryAsSidebarComponentAuth0InternalLinkV2(out SidebarComponentAuth0InternalLinkV2? value)

Parameters

value SidebarComponentAuth0InternalLinkV2

Returns

bool
public void Visit(Action<SidebarComponentAuth0ExternalLink> onSidebarComponentAuth0ExternalLink, Action<SidebarComponentAuth0InternalLink> onSidebarComponentAuth0InternalLink, Action<SidebarComponentAuth0ExternalLinkV2> onSidebarComponentAuth0ExternalLinkV2, Action<SidebarComponentAuth0InternalLinkV2> onSidebarComponentAuth0InternalLinkV2, Action<string, object?> onUnknown_)

Parameters

onSidebarComponentAuth0ExternalLink Action<SidebarComponentAuth0ExternalLink>
onSidebarComponentAuth0InternalLink Action<SidebarComponentAuth0InternalLink>
onSidebarComponentAuth0ExternalLinkV2 Action<SidebarComponentAuth0ExternalLinkV2>
onSidebarComponentAuth0InternalLinkV2 Action<SidebarComponentAuth0InternalLinkV2>
onUnknown_ Action<string, object>

Operators

public static implicit operator SidebarComponent(SidebarComponent.SidebarComponentAuth0ExternalLink value)

Parameters

value SidebarComponent.SidebarComponentAuth0ExternalLink

Returns

SidebarComponent

implicit operator SidebarComponent(SidebarComponentAuth0ExternalLinkV2)

public static implicit operator SidebarComponent(SidebarComponent.SidebarComponentAuth0ExternalLinkV2 value)

Parameters

value SidebarComponent.SidebarComponentAuth0ExternalLinkV2

Returns

SidebarComponent
public static implicit operator SidebarComponent(SidebarComponent.SidebarComponentAuth0InternalLink value)

Parameters

value SidebarComponent.SidebarComponentAuth0InternalLink

Returns

SidebarComponent

implicit operator SidebarComponent(SidebarComponentAuth0InternalLinkV2)

public static implicit operator SidebarComponent(SidebarComponent.SidebarComponentAuth0InternalLinkV2 value)

Parameters

value SidebarComponent.SidebarComponentAuth0InternalLinkV2

Returns

SidebarComponent