dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Attributes

ConditionallyRequiredPropertyAttribute Class

Add this property to any property on any subclass of MapComponent, and if the user sets the dependent property, this property will be required. If the user forgets to set this property when the dependent property is set, this will throw a MissingConditionallyRequiredChildElementException.

public class ConditionallyRequiredPropertyAttribute : System.Attribute

Inheritance System.Object 🡒 System.Attribute 🡒 ConditionallyRequiredPropertyAttribute

Constructors

ConditionallyRequiredPropertyAttribute(string) Constructor

public ConditionallyRequiredPropertyAttribute(string dependentOn);

Parameters

dependentOn System.String

The name of the property that, when assigned, makes this property required.

Properties

ConditionallyRequiredPropertyAttribute.DependentOn Property

The name of the property that, when assigned, makes this property required.

public string DependentOn { get; }

Property Value

System.String