Class DeviceId
The identifier of a single IDevice.
Inheritance
System.Object
DeviceId
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Jabra.NET.Sdk.Core
Assembly: Jabra.NET.Sdk.dll
Syntax
public sealed class DeviceId : IDeviceId, IEquatable<DeviceId>
Properties
Id
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String | The ID of the device. |
Methods
Equals(DeviceId)
Compares two IDs to verify whether or not they point at the same device.
Declaration
public bool Equals(DeviceId other)
Parameters
Type | Name | Description |
---|---|---|
DeviceId | other | The other DeviceId that you want to compare this one to. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Remarks
In certain cases, the Id property differs but the two objects will point at the same device. For this reason, you must use Equals(Object) instead of manually comparing Id.
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
ToString()
Returns a string representation of the device ID.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The device ID as a string. |
Overrides
System.Object.ToString()
Operators
Equality(DeviceId, DeviceId)
Declaration
public static bool operator ==(DeviceId a, DeviceId b)
Parameters
Type | Name | Description |
---|---|---|
DeviceId | a | |
DeviceId | b |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(DeviceId, DeviceId)
Declaration
public static bool operator !=(DeviceId a, DeviceId b)
Parameters
Type | Name | Description |
---|---|---|
DeviceId | a | |
DeviceId | b |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IEquatable<T>