![]() |
VOOZH | about |
DialectRegistry Class
Namespace: Json.Schema
Inheritance: DialectRegistry 🡒 object
Provides a registry for managing and retrieving JSON Schema dialects by their unique identifiers.
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
| Name | Type | Summary |
|---|---|---|
| Global | DialectRegistry | Gets the global registry of JSON Schema dialects used throughout the application. |
Registers a custom dialect for use in the system.
1
public void Register(Dialect dialect)
| Parameter | Type | Description |
|---|---|---|
| dialect | Dialect | The dialect to register. The dialect must have a non-null identifier and must not conflict with any official |
Registering a dialect allows it to be used in subsequent operations. Official dialects cannot be
Unregisters a dialect identified by the specified URI, removing it from the collection of available dialects.
1
public void Unregister(Uri dialectId)
| Parameter | Type | Description |
|---|---|---|
| dialectId | Uri | The URI that uniquely identifies the dialect to unregister. Cannot be an official dialect. |
A new version of content is available.