Class DeviceAvailableEventArgs
Event arguments for the DeviceAvailable event.
Inheritance
System.Object
System.EventArgs
DeviceAvailableEventArgs
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 DeviceAvailableEventArgs : EventArgs
Constructors
DeviceAvailableEventArgs(DiscoveredSsdpDevice, Boolean)
Full constructor.
Declaration
public DeviceAvailableEventArgs(DiscoveredSsdpDevice discoveredDevice, bool isNewlyDiscovered)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscoveredSsdpDevice | discoveredDevice | A DiscoveredSsdpDevice instance representing the available device. |
| System.Boolean | isNewlyDiscovered | A boolean value indicating whether or not this device came from the cache. See IsNewlyDiscovered for more detail. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if the |
Properties
DiscoveredDevice
A reference to a DiscoveredSsdpDevice instance containing the discovered details and allowing access to the full device description.
Declaration
public DiscoveredSsdpDevice DiscoveredDevice { get; }
Property Value
| Type | Description |
|---|---|
| DiscoveredSsdpDevice |
IsNewlyDiscovered
Returns true if the device was discovered due to an alive notification, or a search and was not already in the cache. Returns false if the item came from the cache but matched the current search request.
Declaration
public bool IsNewlyDiscovered { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |