Class DeviceEnumeratorExtensions
Inheritance
Inherited Members
Namespace: Snowflake.Orchestration.Extensibility.Extensions
Assembly: Snowflake.Framework.dll
Syntax
public static class DeviceEnumeratorExtensions
Methods
GetPortDevice(IDeviceEnumerator, IEmulatedPortDeviceEntry)
Gets the IInputDevice specifid by the given IEmulatedPortDeviceEntry if it is connected to the system, or null if it does not.
Declaration
public static IInputDevice GetPortDevice(this IDeviceEnumerator this, IEmulatedPortDeviceEntry portDevice)
Parameters
| Type | Name | Description |
|---|---|---|
| IDeviceEnumerator | this | The IDeviceEnumerator to use. |
| IEmulatedPortDeviceEntry | portDevice | The IEmulatedPortDeviceEntry to check if connected. |
Returns
| Type | Description |
|---|---|
| IInputDevice | The IInputDevice specifid by the given IEmulatedPortDeviceEntry if it is connected to the system, or null if it does not. |
GetPortDeviceInstance(IDeviceEnumerator, IEmulatedPortDeviceEntry)
Gets the IInputDeviceInstance specifid by the given IEmulatedPortDeviceEntry if it is connected to the system, or null if it does not.
Declaration
public static IInputDeviceInstance GetPortDeviceInstance(this IDeviceEnumerator this, IEmulatedPortDeviceEntry portDevice)
Parameters
| Type | Name | Description |
|---|---|---|
| IDeviceEnumerator | this | The IDeviceEnumerator to use. |
| IEmulatedPortDeviceEntry | portDevice | The IEmulatedPortDeviceEntry to check if connected. |
Returns
| Type | Description |
|---|---|
| IInputDeviceInstance | The IInputDeviceInstance specifid by the given IEmulatedPortDeviceEntry if it is connected to the system, or null if it does not. |
IsPortDeviceConnected(IDeviceEnumerator, IEmulatedPortDeviceEntry)
Checks if the IInputDeviceInstance specified by the given IEmulatedPortDeviceEntry is connected to the system.
Declaration
public static bool IsPortDeviceConnected(this IDeviceEnumerator this, IEmulatedPortDeviceEntry portDevice)
Parameters
| Type | Name | Description |
|---|---|---|
| IDeviceEnumerator | this | The IDeviceEnumerator to use. |
| IEmulatedPortDeviceEntry | portDevice | The IEmulatedPortDeviceEntry to check if connected. |
Returns
| Type | Description |
|---|---|
| System.Boolean | Whether or not the given IEmulatedPortDeviceEntry is connected. |