Search Results for

    Show / Hide Table of Contents

    Class DeviceInfo

    Contains information about a device.

    Inheritance
    Object
    DeviceInfo
    Implements
    IEquatable<DeviceInfo>
    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

    true if the current object is equal to the other parameter; otherwise, false.

    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

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    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

    true if the two objects are equal, otherwise false.

    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

    true if the two objects are not equal, otherwise false.

    Implements

    System.IEquatable<T>
    In This Article
    Back to top Copyright © 2015-2022 by Adam Hellberg and Brandon Scott
    Generated by DocFX