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
SidebarComponent(SidebarComponentAuth0ExternalLink)
Create an instance of SidebarComponent with SidebarComponent.SidebarComponentAuth0ExternalLink.
public SidebarComponent(SidebarComponent.SidebarComponentAuth0ExternalLink value)
Parameters
SidebarComponent(SidebarComponentAuth0ExternalLinkV2)
Create an instance of SidebarComponent with SidebarComponent.SidebarComponentAuth0ExternalLinkV2.
public SidebarComponent(SidebarComponent.SidebarComponentAuth0ExternalLinkV2 value)
Parameters
SidebarComponent(SidebarComponentAuth0InternalLink)
Create an instance of SidebarComponent with SidebarComponent.SidebarComponentAuth0InternalLink.
public SidebarComponent(SidebarComponent.SidebarComponentAuth0InternalLink value)
Parameters
SidebarComponent(SidebarComponentAuth0InternalLinkV2)
Create an instance of SidebarComponent with SidebarComponent.SidebarComponentAuth0InternalLinkV2.
public SidebarComponent(SidebarComponent.SidebarComponentAuth0InternalLinkV2 value)
Parameters
Properties
IsSidebarComponentAuth0ExternalLink
Returns true if Type is "sidebar:component:auth0:external_link"
public bool IsSidebarComponentAuth0ExternalLink { get; }
Property Value
IsSidebarComponentAuth0ExternalLinkV2
Returns true if Type is "sidebar:component:auth0:external_link:v2"
public bool IsSidebarComponentAuth0ExternalLinkV2 { get; }
Property Value
IsSidebarComponentAuth0InternalLink
Returns true if Type is "sidebar:component:auth0:internal_link"
public bool IsSidebarComponentAuth0InternalLink { get; }
Property Value
IsSidebarComponentAuth0InternalLinkV2
Returns true if Type is "sidebar:component:auth0:internal_link:v2"
public bool IsSidebarComponentAuth0InternalLinkV2 { get; }
Property Value
Type
Discriminant value
[JsonPropertyName("type")]
public string Type { get; }
Property Value
Value
Discriminated union value
public object? Value { get; }
Property Value
Methods
AsSidebarComponentAuth0ExternalLink()
Returns the value as a SidebarComponentAuth0ExternalLink if Type is 'sidebar:component:auth0:external_link', otherwise throws an exception.
public SidebarComponentAuth0ExternalLink AsSidebarComponentAuth0ExternalLink()
Returns
Exceptions
AsSidebarComponentAuth0ExternalLinkV2()
Returns the value as a SidebarComponentAuth0ExternalLinkV2 if Type is 'sidebar:component:auth0:external_link:v2', otherwise throws an exception.
public SidebarComponentAuth0ExternalLinkV2 AsSidebarComponentAuth0ExternalLinkV2()
Returns
Exceptions
AsSidebarComponentAuth0InternalLink()
Returns the value as a SidebarComponentAuth0InternalLink if Type is 'sidebar:component:auth0:internal_link', otherwise throws an exception.
public SidebarComponentAuth0InternalLink AsSidebarComponentAuth0InternalLink()
Returns
Exceptions
AsSidebarComponentAuth0InternalLinkV2()
Returns the value as a SidebarComponentAuth0InternalLinkV2 if Type is 'sidebar:component:auth0:internal_link:v2', otherwise throws an exception.
public SidebarComponentAuth0InternalLinkV2 AsSidebarComponentAuth0InternalLinkV2()
Returns
Exceptions
Match<T>(Func<SidebarComponentAuth0ExternalLink, T>, Func<SidebarComponentAuth0InternalLink, T>, Func<SidebarComponentAuth0ExternalLinkV2, T>, Func<SidebarComponentAuth0InternalLinkV2, T>, Func<string, object?, T>)
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
onSidebarComponentAuth0ExternalLinkFunc<SidebarComponentAuth0ExternalLink, T>onSidebarComponentAuth0InternalLinkFunc<SidebarComponentAuth0InternalLink, T>onSidebarComponentAuth0ExternalLinkV2Func<SidebarComponentAuth0ExternalLinkV2, T>onSidebarComponentAuth0InternalLinkV2Func<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.
TryAsSidebarComponentAuth0ExternalLink(out SidebarComponentAuth0ExternalLink?)
Attempts to cast the value to a SidebarComponentAuth0ExternalLink and returns true if successful.
public bool TryAsSidebarComponentAuth0ExternalLink(out SidebarComponentAuth0ExternalLink? value)
Parameters
Returns
TryAsSidebarComponentAuth0ExternalLinkV2(out SidebarComponentAuth0ExternalLinkV2?)
Attempts to cast the value to a SidebarComponentAuth0ExternalLinkV2 and returns true if successful.
public bool TryAsSidebarComponentAuth0ExternalLinkV2(out SidebarComponentAuth0ExternalLinkV2? value)
Parameters
Returns
TryAsSidebarComponentAuth0InternalLink(out SidebarComponentAuth0InternalLink?)
Attempts to cast the value to a SidebarComponentAuth0InternalLink and returns true if successful.
public bool TryAsSidebarComponentAuth0InternalLink(out SidebarComponentAuth0InternalLink? value)
Parameters
Returns
TryAsSidebarComponentAuth0InternalLinkV2(out SidebarComponentAuth0InternalLinkV2?)
Attempts to cast the value to a SidebarComponentAuth0InternalLinkV2 and returns true if successful.
public bool TryAsSidebarComponentAuth0InternalLinkV2(out SidebarComponentAuth0InternalLinkV2? value)
Parameters
Returns
Visit(Action<SidebarComponentAuth0ExternalLink>, Action<SidebarComponentAuth0InternalLink>, Action<SidebarComponentAuth0ExternalLinkV2>, Action<SidebarComponentAuth0InternalLinkV2>, Action<string, object?>)
public void Visit(Action<SidebarComponentAuth0ExternalLink> onSidebarComponentAuth0ExternalLink, Action<SidebarComponentAuth0InternalLink> onSidebarComponentAuth0InternalLink, Action<SidebarComponentAuth0ExternalLinkV2> onSidebarComponentAuth0ExternalLinkV2, Action<SidebarComponentAuth0InternalLinkV2> onSidebarComponentAuth0InternalLinkV2, Action<string, object?> onUnknown_)
Parameters
onSidebarComponentAuth0ExternalLinkAction<SidebarComponentAuth0ExternalLink>onSidebarComponentAuth0InternalLinkAction<SidebarComponentAuth0InternalLink>onSidebarComponentAuth0ExternalLinkV2Action<SidebarComponentAuth0ExternalLinkV2>onSidebarComponentAuth0InternalLinkV2Action<SidebarComponentAuth0InternalLinkV2>onUnknown_Action<string, object>
Operators
implicit operator SidebarComponent(SidebarComponentAuth0ExternalLink)
public static implicit operator SidebarComponent(SidebarComponent.SidebarComponentAuth0ExternalLink value)
Parameters
Returns
implicit operator SidebarComponent(SidebarComponentAuth0ExternalLinkV2)
public static implicit operator SidebarComponent(SidebarComponent.SidebarComponentAuth0ExternalLinkV2 value)
Parameters
Returns
implicit operator SidebarComponent(SidebarComponentAuth0InternalLink)
public static implicit operator SidebarComponent(SidebarComponent.SidebarComponentAuth0InternalLink value)
Parameters
Returns
implicit operator SidebarComponent(SidebarComponentAuth0InternalLinkV2)
public static implicit operator SidebarComponent(SidebarComponent.SidebarComponentAuth0InternalLinkV2 value)