Home DialectRegistry Class
DialectRegistry Class
Cancel

DialectRegistry Class

Namespace: Json.Schema

Inheritance: DialectRegistry 🡒 object

Provides a registry for managing and retrieving JSON Schema dialects by their unique identifiers.

Remarks

The registry allows registration and unregistration of custom dialects. A global singleton instance is available via the Json.Schema.DialectRegistry.Global property for application-wide access. Getting dialects via

Properties

NameTypeSummary
GlobalDialectRegistryGets the global registry of JSON Schema dialects used throughout the application.

Methods

Register(Dialect dialect)

Registers a custom dialect for use in the system.

Declaration

1
public void Register(Dialect dialect)
ParameterTypeDescription
dialectDialectThe dialect to register. The dialect must have a non-null identifier and must not conflict with any official

Remarks

Registering a dialect allows it to be used in subsequent operations. Official dialects cannot be

Unregister(Uri dialectId)

Unregisters a dialect identified by the specified URI, removing it from the collection of available dialects.

Declaration

1
public void Unregister(Uri dialectId)
ParameterTypeDescription
dialectIdUriThe URI that uniquely identifies the dialect to unregister. Cannot be an official dialect.
Contents