Skip to main content

AbsoluteUriAttribute Class

Abblix.Oidc.Server

Abblix.Oidc.Server.DeclarativeBinding

AbsoluteUriAttribute Class

Marks a System.Uri-typed property, field, or parameter as having to be an absolute URI. Relative URIs and values that do not parse as absolute are treated as invalid by validators that honor this attribute; null values are not flagged here, leave that to System.ComponentModel.DataAnnotations.RequiredAttribute.

public class AbsoluteUriAttribute : System.Attribute

Inheritance System.ObjectSystem.Attribute → AbsoluteUriAttribute

Constructors

AbsoluteUriAttribute(string) Constructor

Creates an AbsoluteUriAttribute optionally constrained to a specific scheme.

public AbsoluteUriAttribute(string? requireScheme=null);

Parameters

requireScheme System.String

When provided, validation additionally requires the URI scheme (e.g. "https") to match this value.

Properties

AbsoluteUriAttribute.RequireScheme Property

The required URI scheme (e.g. "https"), or null when any scheme is acceptable as long as the URI is absolute.

public string? RequireScheme { get; init; }

Property Value

System.String