Class DeviceInfo
Contains information about a device.
Implements
Namespace: Colore.Data
Assembly: Colore.dll
Syntax
public sealed class DeviceInfo : ValueType
Properties
Connected
Gets a value indicating whether the device is currently connected.
Declaration
public bool Connected { get; }
Property Value
Type | Description |
---|---|
Boolean |
Description
Gets a description of the device.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
String |
Id
Gets the unique ID of the device.
Declaration
public Guid Id { get; }
Property Value
Type | Description |
---|---|
Guid |
Name
Gets the device name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Type
Gets the type of the device.
Declaration
public DeviceType Type { get; }
Property Value
Type | Description |
---|---|
DeviceType |
Methods
Equals(DeviceInfo)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(DeviceInfo other)
Parameters
Type | Name | Description |
---|---|---|
DeviceInfo | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
Boolean |
|
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
Boolean |
|
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer that is the hash code for this instance. |
Operators
Equality(DeviceInfo, Object)
Compares an instance of DeviceInfo with another object for equality.
Declaration
public static bool operator ==(DeviceInfo left, object right)
Parameters
Type | Name | Description |
---|---|---|
DeviceInfo | left | The left operand, an instance of DeviceInfo. |
Object | right | The right operand, any type of object. |
Returns
Type | Description |
---|---|
Boolean |
|
Inequality(DeviceInfo, Object)
Compares an instance of DeviceInfo with another object for inequality.
Declaration
public static bool operator !=(DeviceInfo left, object right)
Parameters
Type | Name | Description |
---|---|---|
DeviceInfo | left | The left operand, an instance of DeviceInfo. |
Object | right | The right operand, any type of object. |
Returns
Type | Description |
---|---|
Boolean |
|