Table of Contents

Class ModelRepository.ModelRepositoryModelCollection

Namespace
NMF.Models.Repository
Assembly
NMF.Models.dll

Denotes a class to store models in the repository

protected class ModelRepository.ModelRepositoryModelCollection : ModelCollection, IDictionary<Uri, Model>, ICollection<KeyValuePair<Uri, Model>>, IEnumerable<KeyValuePair<Uri, Model>>, IEnumerable
Inheritance
ModelRepository.ModelRepositoryModelCollection
Implements
Inherited Members

Constructors

ModelRepositoryModelCollection(ModelRepository)

Creates a new instance

public ModelRepositoryModelCollection(ModelRepository repo)

Parameters

repo ModelRepository

the parent repository

Properties

AllowOverride

true, if elements in the model collection may be overridden, otherwise false

protected override bool AllowOverride { get; }

Property Value

bool

Methods

Add(Uri, Model)

Adds an element with the provided key and value to the IDictionary<TKey, TValue>.

public override void Add(Uri key, Model value)

Parameters

key Uri

The object to use as the key of the element to add.

value Model

The object to use as the value of the element to add.

Exceptions

ArgumentNullException

key is null.

ArgumentException

An element with the same key already exists in the IDictionary<TKey, TValue>.

NotSupportedException

The IDictionary<TKey, TValue> is read-only.

RegisterChangeHandlers()

Registers the change handlers for all models

public void RegisterChangeHandlers()

UnregisterChangeHandlers()

Unregisters the change handlers for all models

public void UnregisterChangeHandlers()