Show / Hide Table of Contents

Class DTEnumValueInfo

Class DTEnumValueInfo corresponds to an element of type EnumValue in a DTDL model.

Inheritance
object
DTEntityInfo
DTNamedEntityInfo
DTEnumValueInfo
Implements
IEquatable<DTEntityInfo>
IEquatable<DTNamedEntityInfo>
IEquatable<DTEnumValueInfo>
Inherited Members
DTNamedEntityInfo.Name
DTEntityInfo.EntityKind
DTEntityInfo.ChildOf
DTEntityInfo.DefinedIn
DTEntityInfo.Id
DTEntityInfo.UndefinedProperties
DTEntityInfo.LanguageMajorVersion
DTEntityInfo.UndefinedTypes
DTEntityInfo.Description
DTEntityInfo.DisplayName
DTEntityInfo.Comment
DTEntityInfo.ValidateInstance(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DTDLParser.Models
Assembly: DTDLParser.dll
Syntax
public class DTEnumValueInfo : DTNamedEntityInfo, IEquatable<DTEntityInfo>, IEquatable<DTNamedEntityInfo>, IEquatable<DTEnumValueInfo>

Properties

| Edit this page View Source

ClassId

Get the DTMI that identifies type EnumValue in the version of DTDL used to define this element.

Declaration
public override Dtmi ClassId { get; }
Property Value
Type Description
Dtmi

The DTMI for the DTDL type EnumValue.

Overrides
DTNamedEntityInfo.ClassId
| Edit this page View Source

EnumValue

Gets the value of the 'enumValue' property of the DTDL element that corresponds to this object.

Declaration
public object EnumValue { get; }
Property Value
Type Description
object

The 'enumValue' property of the DTDL element.

| Edit this page View Source

SupplementalProperties

Gets the supplemantal properties of the DTDL element that corresponds to this object.

Declaration
public override IDictionary<string, object> SupplementalProperties { get; }
Property Value
Type Description
IDictionary<string, object>

A dictionary that maps each string-valued property name to an object that holds the value of the property with the given name.

Overrides
DTNamedEntityInfo.SupplementalProperties
Remarks

If the property is a literal in the DTDL model, the object holds a literal value. If the property is another DTDL element in the model, the object is the C# object that corresponds to this element.

| Edit this page View Source

SupplementalTypes

Gets a collection of identifiers, each of which is a Dtmi that indicates a supplemental type that applies to the DTDL element that corresponds to this object.

Declaration
public override IReadOnlyCollection<Dtmi> SupplementalTypes { get; }
Property Value
Type Description
IReadOnlyCollection<Dtmi>

A collection of DTMIs indicating the supplemental types that apply to the DTDL element.

Overrides
DTNamedEntityInfo.SupplementalTypes

Methods

| Edit this page View Source

DeepEquals(DTEntityInfo)

Compares to another DTEntityInfo object, recursing through the entire subtree of object properties.

Declaration
public override bool DeepEquals(DTEntityInfo other)
Parameters
Type Name Description
DTEntityInfo other

The other DTEntityInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNamedEntityInfo.DeepEquals(DTEntityInfo)
| Edit this page View Source

DeepEquals(DTEnumValueInfo)

Compares to another DTEnumValueInfo object, recursing through the entire subtree of object properties.

Declaration
public virtual bool DeepEquals(DTEnumValueInfo other)
Parameters
Type Name Description
DTEnumValueInfo other

The other DTEnumValueInfo object to compare to.

Returns
Type Description
bool

True if equal.

| Edit this page View Source

DeepEquals(DTNamedEntityInfo)

Compares to another DTNamedEntityInfo object, recursing through the entire subtree of object properties.

Declaration
public override bool DeepEquals(DTNamedEntityInfo other)
Parameters
Type Name Description
DTNamedEntityInfo other

The other DTNamedEntityInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNamedEntityInfo.DeepEquals(DTNamedEntityInfo)
| Edit this page View Source

Equals(DTEntityInfo)

Compares to another DTEntityInfo object.

Declaration
public override bool Equals(DTEntityInfo other)
Parameters
Type Name Description
DTEntityInfo other

The other DTEntityInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNamedEntityInfo.Equals(DTEntityInfo)
| Edit this page View Source

Equals(DTEnumValueInfo)

Compares to another DTEnumValueInfo object.

Declaration
public virtual bool Equals(DTEnumValueInfo other)
Parameters
Type Name Description
DTEnumValueInfo other

The other DTEnumValueInfo object to compare to.

Returns
Type Description
bool

True if equal.

| Edit this page View Source

Equals(DTNamedEntityInfo)

Compares to another DTNamedEntityInfo object.

Declaration
public override bool Equals(DTNamedEntityInfo other)
Parameters
Type Name Description
DTNamedEntityInfo other

The other DTNamedEntityInfo object to compare to.

Returns
Type Description
bool

True if equal.

Overrides
DTNamedEntityInfo.Equals(DTNamedEntityInfo)
| Edit this page View Source

ValidateInstance(JsonElement)

Validate a JsonElement to determine whether it conforms to the specific EnumValue element defined in the model.

Declaration
public override IReadOnlyCollection<string> ValidateInstance(JsonElement instanceElt)
Parameters
Type Name Description
JsonElement instanceElt

The JsonElement to validate.

Returns
Type Description
IReadOnlyCollection<string>

A list of strings that each indicate a validation failure; the list is empty if the JsonElement conforms.

Overrides
DTEntityInfo.ValidateInstance(JsonElement)

Operators

| Edit this page View Source

operator ==(DTEnumValueInfo, DTEnumValueInfo)

Determines whether two DTEnumValueInfo objects are equal.

Declaration
public static bool operator ==(DTEnumValueInfo x, DTEnumValueInfo y)
Parameters
Type Name Description
DTEnumValueInfo x

One DTEnumValueInfo object to compare.

DTEnumValueInfo y

Another DTEnumValueInfo object to compare to the first.

Returns
Type Description
bool

True if equal.

| Edit this page View Source

operator !=(DTEnumValueInfo, DTEnumValueInfo)

Determines whether two DTEnumValueInfo objects are not equal.

Declaration
public static bool operator !=(DTEnumValueInfo x, DTEnumValueInfo y)
Parameters
Type Name Description
DTEnumValueInfo x

One DTEnumValueInfo object to compare.

DTEnumValueInfo y

Another DTEnumValueInfo object to compare to the first.

Returns
Type Description
bool

True if not equal.

Implements

IEquatable<T>
IEquatable<T>
IEquatable<T>
  • Edit this page
  • View Source
In this article
  • Properties
    • ClassId
    • EnumValue
    • SupplementalProperties
    • SupplementalTypes
  • Methods
    • DeepEquals(DTEntityInfo)
    • DeepEquals(DTEnumValueInfo)
    • DeepEquals(DTNamedEntityInfo)
    • Equals(DTEntityInfo)
    • Equals(DTEnumValueInfo)
    • Equals(DTNamedEntityInfo)
    • ValidateInstance(JsonElement)
  • Operators
    • operator ==(DTEnumValueInfo, DTEnumValueInfo)
    • operator !=(DTEnumValueInfo, DTEnumValueInfo)
  • Implements
Back to top Generated by DocFX