Class DeviceUnavailableEventArgs
Event arguments for the DeviceUnavailable event.
Inheritance
System.Object
System.EventArgs
DeviceUnavailableEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Rssdp
Assembly: cs.temp.dll.dll
Syntax
public sealed class DeviceUnavailableEventArgs : EventArgs
Constructors
DeviceUnavailableEventArgs(DiscoveredSsdpDevice, Boolean)
Full constructor.
Declaration
public DeviceUnavailableEventArgs(DiscoveredSsdpDevice discoveredDevice, bool expired)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscoveredSsdpDevice | discoveredDevice | A DiscoveredSsdpDevice instance representing the device that has become unavailable. |
| System.Boolean | expired | A boolean value indicating whether this device is unavailable because it expired, or because it explicitly sent a byebye notification.. See Expired for more detail. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if the |
Properties
DiscoveredDevice
A reference to a DiscoveredSsdpDevice instance containing the discovery details of the removed device.
Declaration
public DiscoveredSsdpDevice DiscoveredDevice { get; }
Property Value
| Type | Description |
|---|---|
| DiscoveredSsdpDevice |
Expired
Returns true if the device is considered unavailable because it's cached information expired before a new alive notification or search result was received. Returns false if the device is unavailable because it sent an explicit notification of it's unavailability.
Declaration
public bool Expired { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |