Skip to content

Latest commit

 

History

History
97 lines (59 loc) · 1.65 KB

nefarius.utilities.devicemanagement.pnp.ipnpdevice.md

File metadata and controls

97 lines (59 loc) · 1.65 KB

IPnPDevice

Namespace: Nefarius.Utilities.DeviceManagement.PnP

Describes an instance of a PNP device.

public interface IPnPDevice

Properties

InstanceId

The instance ID of the device.

public abstract string InstanceId { get; }

Property Value

String

DeviceId

The device ID.

public abstract string DeviceId { get; }

Property Value

String

Methods

Restart()

Attempts to restart this device.

void Restart()

Remove()

Attempts to remove this device node.

void Remove()

GetProperty<T>(DevicePropertyKey)

Returns a device instance property identified by DevicePropertyKey.

T GetProperty<T>(DevicePropertyKey propertyKey)

Type Parameters

T
The managed type of the fetched property value.

Parameters

propertyKey DevicePropertyKey
The to query for.

Returns

T
On success, the value of the queried property.

SetProperty<T>(DevicePropertyKey, T)

Creates or updates an existing property with a given value.

void SetProperty<T>(DevicePropertyKey propertyKey, T propertyValue)

Type Parameters

T
The type of the property.

Parameters

propertyKey DevicePropertyKey
The to update.

propertyValue T
The value to set.