Home VocabularyRegistry Class
VocabularyRegistry Class
Cancel

VocabularyRegistry Class

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)
ParameterTypeDescription
vocabularyIdUriThe 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)
ParameterTypeDescription
vocabularyIdUriThe 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)
ParameterTypeDescription
vocabularyVocabulary 

Unregister(Vocabulary vocabulary)

Removes a vocabulary from the registry.

Declaration

1
public static void Unregister(Vocabulary vocabulary)
ParameterTypeDescription
vocabularyVocabulary 
Contents