Struct CommandReference
Contains command information that is returned when a command is registered.
Implements
System.IEquatable<CommandReference>
Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Phoenix.DeviceCommands
Assembly: Phoenix.Abstractions.Devices.dll
Syntax
public struct CommandReference : IEquatable<CommandReference>
Properties
View SourceCategoryId
Gets or sets the category id.
Declaration
public int CategoryId { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
CommandId
Gets or sets the id of the command.
Declaration
public Guid CommandId { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Label
Gets or sets the label for the command.
Declaration
public string Label { readonly get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceEquals(CommandReference)
Declaration
public bool Equals(CommandReference other)
Parameters
Type | Name | Description |
---|---|---|
CommandReference | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
Operators
View SourceEquality(CommandReference, CommandReference)
Determines if an item is equal to another.
Declaration
public static bool operator ==(CommandReference left, CommandReference right)
Parameters
Type | Name | Description |
---|---|---|
CommandReference | left | The item to compare. |
CommandReference | right | The other item. |
Returns
Type | Description |
---|---|
System.Boolean | The comparison result. |
Inequality(CommandReference, CommandReference)
Determines if an item is equal to another.
Declaration
public static bool operator !=(CommandReference left, CommandReference right)
Parameters
Type | Name | Description |
---|---|---|
CommandReference | left | The item to compare. |
CommandReference | right | The other item. |
Returns
Type | Description |
---|---|
System.Boolean | The comparison result. |
Implements
System.IEquatable<T>