Class DuplicateDeviceException
Exception thrown when a device already exists in the system when attempting to add.
Inheritance
Implements
Inherited Members
Namespace: Phoenix.Devices
Assembly: Phoenix.Abstractions.Devices.dll
Syntax
[Serializable]
public class DuplicateDeviceException : Exception, ISerializable
Constructors
View SourceDuplicateDeviceException()
Initializes a new instance of the DuplicateDeviceException class.
Declaration
public DuplicateDeviceException()
DuplicateDeviceException(IPAddress)
Initializes a new instance of the DuplicateDeviceException class.
Declaration
public DuplicateDeviceException(IPAddress duplicateIP)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | duplicateIP | The IP address of the device. |
DuplicateDeviceException(SerializationInfo, StreamingContext)
Initializes a new instance of the DuplicateDeviceException class.
Declaration
protected DuplicateDeviceException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
DuplicateDeviceException(String)
Initializes a new instance of the DuplicateDeviceException class.
Declaration
public DuplicateDeviceException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
DuplicateDeviceException(String, Exception)
Initializes a new instance of the DuplicateDeviceException class.
Declaration
public DuplicateDeviceException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
Properties
View SourceIPAddress
Gets the IP address of the device.
Declaration
public IPAddress IPAddress { get; }
Property Value
Type | Description |
---|---|
System.Net.IPAddress |
Methods
View SourceGetObjectData(SerializationInfo, StreamingContext)
Transfers the object data into serialization information.
Declaration
[SecurityCritical]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The serialization info to store data in. |
System.Runtime.Serialization.StreamingContext | context | The serialization context. |