Search Results for

    Show / Hide Table of Contents

    Class CustomAttributeDictionary

    Represents a collection of custom attribute values.

    Inheritance
    object
    Dictionary<int, string>
    CustomAttributeDictionary
    Implements
    IDictionary<int, string>
    ICollection<KeyValuePair<int, string>>
    IDictionary
    ICollection
    IReadOnlyDictionary<int, string>
    IReadOnlyCollection<KeyValuePair<int, string>>
    IEnumerable<KeyValuePair<int, string>>
    IEnumerable
    ISerializable
    IDeserializationCallback
    Inherited Members
    Dictionary<int, string>.Add(int, string)
    Dictionary<int, string>.Clear()
    Dictionary<int, string>.ContainsKey(int)
    Dictionary<int, string>.ContainsValue(string)
    Dictionary<int, string>.GetEnumerator()
    Dictionary<int, string>.GetObjectData(SerializationInfo, StreamingContext)
    Dictionary<int, string>.OnDeserialization(object)
    Dictionary<int, string>.Remove(int)
    Dictionary<int, string>.TryGetValue(int, out string)
    Dictionary<int, string>.Comparer
    Dictionary<int, string>.Count
    Dictionary<int, string>.Keys
    Dictionary<int, string>.Values
    Dictionary<int, string>.this[int]
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Nevatech.Vsb.Repository.Entities
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    [CollectionDataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02", KeyName = "TypeId", ValueName = "Value")]
    public sealed class CustomAttributeDictionary : Dictionary<int, string>, IDictionary<int, string>, ICollection<KeyValuePair<int, string>>, IDictionary, ICollection, IReadOnlyDictionary<int, string>, IReadOnlyCollection<KeyValuePair<int, string>>, IEnumerable<KeyValuePair<int, string>>, IEnumerable, ISerializable, IDeserializationCallback

    Constructors

    CustomAttributeDictionary()

    Initializes an empty instance.

    Declaration
    public CustomAttributeDictionary()

    Methods

    IsEquivalent(CustomAttributeDictionary)

    Compares items in this dictionary with items in the provided dictionary using custom attribute specific comparison rules. For example, if attribute does not exist in the dictionary, it is assumed that its value is Null. If attribute is not provided in the other dictionary, it is assumed that its value is not changed.

    Declaration
    public bool IsEquivalent(CustomAttributeDictionary other)
    Parameters
    Type Name Description
    CustomAttributeDictionary other

    Custom attributes to compare with.

    Returns
    Type Description
    bool

    True if dictionaries are equivalent. Otherwise false.

    Remarks

    For accurate results this method should be called on the dictionary that belongs to an existing entity, and provided dictionary should belong to an updated entity.

    Validate(ICollection<CustomAttributeType>, bool)

    Checks if all items belongs to the provided collection of the allowed attributes and satisfy their type requirements.

    Declaration
    [SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
    public string Validate(ICollection<CustomAttributeType> attributeTypes, bool ensureRequired)
    Parameters
    Type Name Description
    ICollection<CustomAttributeType> attributeTypes

    Collection of attribute types defining the attributes that are allowed to be in this dictionary.

    bool ensureRequired

    Flag indicating that all required attributes must be present in this dictionary.

    Returns
    Type Description
    string

    Message explaining the found errors or Null, if no errors are found.

    Implements

    IDictionary<TKey, TValue>
    ICollection<T>
    IDictionary
    ICollection
    IReadOnlyDictionary<TKey, TValue>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    ISerializable
    IDeserializationCallback
    In This Article
    Back to top Nevatech Sentinet 6.7 Online Documentation