Namespace: Nefarius.Utilities.DeviceManagement.PnP
Describes an instance of a PNP device.
public interface IPnPDevice
The instance ID of the device.
public abstract string InstanceId { get; }
The device ID.
public abstract string DeviceId { get; }
Attempts to restart this device.
void Restart()
Attempts to remove this device node.
void Remove()
Returns a device instance property identified by DevicePropertyKey.
T GetProperty<T>(DevicePropertyKey propertyKey)
T
The managed type of the fetched property value.
propertyKey
DevicePropertyKey
The to query for.
T
On success, the value of the queried property.
Creates or updates an existing property with a given value.
void SetProperty<T>(DevicePropertyKey propertyKey, T propertyValue)
T
The type of the property.
propertyKey
DevicePropertyKey
The to update.
propertyValue
T
The value to set.