Class NamedObjectDictionary<T\>
Last update: 16.07.2025Namespace: VM.Managed.Collections
Assembly: VMObjBase.dll
This class is to represent dictionary of [named object].
public class NamedObjectDictionary<t> : Container, IObservableObject, IDisposableObject, ILinkable, IObject, IEventProvider, ILinkContainerEvent, IVerifiable, IContainer, ILinkContainer, IOwned, IHasID, ICunstomLink, IPostDeserialized, ILinkCollection where T : ObjectBase, INamed
Type Parameters
T
T has name
Inheritance
object ←
ObservableObject ←
LinkableBase ←
LinkContainer ←
Container ←
NamedObjectDictionary
Implements
IObservableObject, IDisposableObject, ILinkable, IObject, IEventProvider, ILinkContainerEvent, IVerifiable, IContainer, ILinkContainer, IOwned, IHasID, ICunstomLink, IPostDeserialized, ILinkCollection
Inherited Members
Container.Find(string), Container.FindLocal(string), Container.GetUnnamedObjectName(object), Container.GetNewEntityName(string, bool, int, int), Container.GetNewEntityName(string, bool, int), Container.GetNewEntityName(string), LinkContainer.SetModified(), LinkContainer.raise_OnUpdating(object, LinkEventArgs), LinkContainer.raise_OnUpdate(object, LinkEventArgs), LinkContainer.raise_OnDestroying(object, LinkEventArgs), LinkContainer.raise_OnDestroy(object, LinkEventArgs), LinkContainer.raise_OnAdded(object, AddToDocEventArgs), LinkContainer.raise_OnRemoved(object, RemoveFromDocEventArgs), LinkContainer.GetTargetListForUpdate(), LinkContainer.SkipUpdateObjectImpl(), LinkContainer.Initialize(Unit.ConvertFactor), LinkContainer.SetFlagWhenXMLFile(string, bool), LinkContainer.IsSerializableEvent(Delegate), LinkContainer.CustomGetObjectData(SerializationInfo, StreamingContext), LinkContainer.GetSerializedData(SerializationInfo, StreamingContext), LinkContainer.LinkRequestUpdating(object, LinkEventArgs), LinkContainer.LinkRequestUpdate(object, LinkEventArgs), LinkContainer.LinkRequestDestroying(object, LinkEventArgs), LinkContainer.LinkRequestDestroy(object, LinkEventArgs), LinkContainer.LinkAddedToDocument(object, AddToDocEventArgs), LinkContainer.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), LinkContainer.OnLinkReserved(ILink, object, EventArgs), LinkContainer.CanBeDestroy(object), LinkContainer.DisposeManagedResources(), LinkContainer.SetContainer(IOwned, bool), LinkContainer.OnChildUpdated(object, LinkEventArgs), LinkContainer.OnContainerDestroy(object, LinkEventArgs), LinkContainer.OnDeserialization(object), LinkContainer.Verify(VerifiedResult), LinkContainer.GetCopy(object), LinkContainer.Dispose(bool), LinkContainer.ClearChildInfoBeforeDeserialize, LinkContainer.Container, LinkContainer.Owner, LinkContainer.Document, LinkContainer.ID, LinkContainer.IsChildExternable, LinkContainer.IsExternable, LinkContainer.OnRemoved, LinkContainer.OnAdded, LinkContainer.OnDestroy, LinkContainer.OnDestroying, LinkContainer.OnUpdate, LinkContainer.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
NamedObjectDictionary()
Initializes a new instance of the
public NamedObjectDictionary()
NamedObjectDictionary(IOwned)
Initializes a new instance of the
public NamedObjectDictionary(IOwned obParent)
Parameters
obParent IOwned
The parent object.
Properties
Count
Gets the number of elements contained in the
public int Count { get; }
Property Value
IsExternable
Gets a value indicating whether this instance is externable.
public override bool IsExternable { get; }
Property Value
IsReadOnly
Gets a value indicating whether the
public bool IsReadOnly { get; }
Property Value
this[string]
Gets the T with the specified name.
public T this[string strName] { get; }
Property Value
T
Methods
Add(T)
Adds an item to the
public void Add(T item)
Parameters
item T
The object to add to the
Exceptions
The
ChangeName(string, T)
Changes the name.
public void ChangeName(string strOldName, T obj)
Parameters
strOldName string
The old name.
obj T
The new object.
Clear()
Removes all items from the
public void Clear()
Exceptions
The
Contains(T)
Determines whether the
public bool Contains(T item)
Parameters
item T
The object to locate in the
Returns
true if item is found in the
CopyTo(T[], int)
Copies the elements of the
public void CopyTo(T[] array, int arrayIndex)
Parameters
array T[]
The one-dimensional
arrayIndex int
The zero-based index in array at which copying begins.
FindLocal(string)
Finds an object that matches a specified name in local.
public override IObjectBase FindLocal(string strName)
Parameters
strName string
Name to search for.
Returns
IObjectBase
An object that matches a specified name.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<t> GetEnumerator()
Returns
A
GetSchema()
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the
public XmlSchema GetSchema()
Returns
An
GetSortedEntity()
Gets the sorted entity.
public SortedList<string t> GetSortedEntity()
Returns
SortedListstring, T>
IsSerializableEvent(Delegate)
Determines whether [is serializable event] [the specified del].
protected override bool IsSerializableEvent(Delegate del)
Parameters
del Delegate
The del.
Returns
true if [is serializable event] [the specified del]; otherwise, false.
LinkRequestUpdate(object, LinkEventArgs)
Request for update the linked object.
protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)
Parameters
objNotifier object
The linked object.
arg LinkEventArgs
The
OnChildUpdated(object, LinkEventArgs)
Called when [child updated].
protected override void OnChildUpdated(object obj, LinkEventArgs args)
Parameters
obj object
The object.
args LinkEventArgs
The
ReadXml(XmlReader)
Generates an object from its XML representation.
public void ReadXml(XmlReader reader)
Parameters
reader XmlReader
The
Remove(string)
Removes the specified name.
public bool Remove(string strName)
Parameters
strName string
The Name.
Returns
true if success; otherwise, false.
Remove(T)
Removes the first occurrence of a specific object from the
public bool Remove(T item)
Parameters
item T
The object to remove from the
Returns
true if item was successfully removed from the item is not found in the original
Exceptions
The
WriteXml(XmlWriter)
Converts an object into its XML representation.
public void WriteXml(XmlWriter writer)
Parameters
writer XmlWriter
The