Namespace: Json.Schema
Inheritance: VocabularyRegistry
🡒 object
A registry for vocabularies.
Methods
Get(Uri vocabularyId)
Retrieves the vocabulary associated with the URI ID, if known.
Declaration
1
public static Vocabulary Get(Uri vocabularyId)
Parameter | Type | Description |
---|---|---|
vocabularyId | Uri | The URI ID. |
Returns
The vocabulary, if known; otherwise null.
IsKnown(Uri vocabularyId)
Indicates whether a vocabulary is known by URI ID and/or anchor.
Declaration
1
public static bool IsKnown(Uri vocabularyId)
Parameter | Type | Description |
---|---|---|
vocabularyId | Uri | The URI ID. |
Returns
true
, if registered in either this or the global registry; false
otherwise.
Register(Vocabulary vocabulary)
Registers a vocabulary. This does not register the vocabulary’s keywords. This must be done separately.
Declaration
1
public static void Register(Vocabulary vocabulary)
Parameter | Type | Description |
---|---|---|
vocabulary | Vocabulary |
Unregister(Vocabulary vocabulary)
Removes a vocabulary from the registry.
Declaration
1
public static void Unregister(Vocabulary vocabulary)
Parameter | Type | Description |
---|---|---|
vocabulary | Vocabulary |