Class DTCommandInfo
Class DTCommandInfo corresponds to an element of type Command in a DTDL model.
Implements
Inherited Members
Namespace: DTDLParser.Models
Assembly: DTDLParser.dll
Syntax
public class DTCommandInfo : DTContentInfo, IEquatable<DTEntityInfo>, IEquatable<DTNamedEntityInfo>, IEquatable<DTContentInfo>, IEquatable<DTCommandInfo>
Properties
| Edit this page View SourceClassId
Get the DTMI that identifies type Command 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 Command. |
Overrides
| Edit this page View SourceCommandType
Gets the value of the 'commandType' property of the DTDL element that corresponds to this object.
Declaration
public DTCommandTypeInfo CommandType { get; }
Property Value
| Type | Description |
|---|---|
| DTCommandTypeInfo | The 'commandType' property of the DTDL element. |
Request
Gets the value of the 'request' property of the DTDL element that corresponds to this object.
Declaration
public DTCommandPayloadInfo Request { get; }
Property Value
| Type | Description |
|---|---|
| DTCommandPayloadInfo | The 'request' property of the DTDL element. |
Response
Gets the value of the 'response' property of the DTDL element that corresponds to this object.
Declaration
public DTCommandPayloadInfo Response { get; }
Property Value
| Type | Description |
|---|---|
| DTCommandPayloadInfo | The 'response' property of the DTDL element. |
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
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.
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
Methods
| Edit this page View SourceDeepEquals(DTCommandInfo)
Compares to another DTCommandInfo object, recursing through the entire subtree of object properties.
Declaration
public virtual bool DeepEquals(DTCommandInfo other)
Parameters
| Type | Name | Description |
|---|---|---|
| DTCommandInfo | other | The other |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
DeepEquals(DTContentInfo)
Compares to another DTContentInfo object, recursing through the entire subtree of object properties.
Declaration
public override bool DeepEquals(DTContentInfo other)
Parameters
| Type | Name | Description |
|---|---|---|
| DTContentInfo | other | The other |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
Overrides
| Edit this page View SourceDeepEquals(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 |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
Overrides
| Edit this page View SourceDeepEquals(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 |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
Overrides
| Edit this page View SourceEquals(DTCommandInfo)
Compares to another DTCommandInfo object.
Declaration
public virtual bool Equals(DTCommandInfo other)
Parameters
| Type | Name | Description |
|---|---|---|
| DTCommandInfo | other | The other |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
Equals(DTContentInfo)
Compares to another DTContentInfo object.
Declaration
public override bool Equals(DTContentInfo other)
Parameters
| Type | Name | Description |
|---|---|---|
| DTContentInfo | other | The other |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
Overrides
| Edit this page View SourceEquals(DTEntityInfo)
Compares to another DTEntityInfo object.
Declaration
public override bool Equals(DTEntityInfo other)
Parameters
| Type | Name | Description |
|---|---|---|
| DTEntityInfo | other | The other |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
Overrides
| Edit this page View SourceEquals(DTNamedEntityInfo)
Compares to another DTNamedEntityInfo object.
Declaration
public override bool Equals(DTNamedEntityInfo other)
Parameters
| Type | Name | Description |
|---|---|---|
| DTNamedEntityInfo | other | The other |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
Overrides
Operators
| Edit this page View Sourceoperator ==(DTCommandInfo, DTCommandInfo)
Determines whether two DTCommandInfo objects are equal.
Declaration
public static bool operator ==(DTCommandInfo x, DTCommandInfo y)
Parameters
| Type | Name | Description |
|---|---|---|
| DTCommandInfo | x | One |
| DTCommandInfo | y | Another |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
operator !=(DTCommandInfo, DTCommandInfo)
Determines whether two DTCommandInfo objects are not equal.
Declaration
public static bool operator !=(DTCommandInfo x, DTCommandInfo y)
Parameters
| Type | Name | Description |
|---|---|---|
| DTCommandInfo | x | One |
| DTCommandInfo | y | Another |
Returns
| Type | Description |
|---|---|
| bool | True if not equal. |