Show / Hide Table of Contents

Class FilterDeviceDefinition

Inheritance
System.Object
FilterDeviceDefinition
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Device.Net
Assembly: Device.Net.dll
Syntax
public sealed class FilterDeviceDefinition

Constructors

FilterDeviceDefinition(Nullable<UInt32>, Nullable<UInt32>, Nullable<UInt16>, String, Nullable<Guid>)

Declaration
public FilterDeviceDefinition(uint? vendorId = null, uint? productId = null, ushort? usagePage = null, string label = null, Guid? classGuid = null)
Parameters
Type Name Description
System.Nullable<System.UInt32> vendorId
System.Nullable<System.UInt32> productId
System.Nullable<System.UInt16> usagePage
System.String label
System.Nullable<System.Guid> classGuid

Properties

ClassGuid

Declaration
public Guid? ClassGuid { get; }
Property Value
Type Description
System.Nullable<System.Guid>

Label

Not used for filtering. Only used to give a meaningful name to the filter that is carried on to the device definition

Declaration
public string Label { get; }
Property Value
Type Description
System.String

ProductId

Product Id

Declaration
public uint? ProductId { get; }
Property Value
Type Description
System.Nullable<System.UInt32>

UsagePage

Used to further filter down device definitions on some platforms

Declaration
public ushort? UsagePage { get; }
Property Value
Type Description
System.Nullable<System.UInt16>

VendorId

Declaration
public uint? VendorId { get; }
Property Value
Type Description
System.Nullable<System.UInt32>

Extension Methods

UwpUsbDeviceFactoryExtensions.CreateUwpUsbDeviceFactory(FilterDeviceDefinition, ILoggerFactory, GetConnectedDeviceDefinitionsAsync, GetUsbInterfaceManager, Nullable<UInt16>, Nullable<UInt16>)
WindowsHidDeviceFactoryExtensions.CreateWindowsHidDeviceFactory(FilterDeviceDefinition, ILoggerFactory, IHidApiService, Nullable<Guid>, Nullable<UInt16>, Nullable<UInt16>, GetConnectedDeviceDefinitionsAsync, Func<Report, TransferResult>, Func<TransferResult, Report>, Func<Byte[], Byte, Byte[]>, WriteReportTransform)
AndroidUsbFactoryExtensions.CreateAndroidUsbDeviceFactory(FilterDeviceDefinition, UsbManager, Context, ILoggerFactory, GetConnectedDeviceDefinitionsAsync, GetUsbInterfaceManager, Nullable<UInt16>, Nullable<UInt16>, IAndroidFactory, Func<UsbDevice, IUsbPermissionBroadcastReceiver>)
WindowsUsbDeviceFactoryExtensions.CreateWindowsUsbDeviceFactory(FilterDeviceDefinition, ILoggerFactory, GetConnectedDeviceDefinitionsAsync, GetUsbInterfaceManager, Nullable<Guid>, Nullable<UInt16>, Nullable<UInt16>)
UwpHidDeviceFactoryExtensions.CreateUwpHidDeviceFactory(FilterDeviceDefinition, ILoggerFactory, GetConnectedDeviceDefinitionsAsync, GetDeviceAsync, Nullable<Guid>, Func<DeviceInformation, Boolean>, IDataReceiver, Nullable<UInt16>, Nullable<UInt16>, Func<Report, TransferResult>, Func<TransferResult, Report>, Func<Byte[], Byte, Byte[]>, WriteReportTransform)
DeviceExtensions.IsDefinitionMatch(FilterDeviceDefinition, ConnectedDeviceDefinition, DeviceType)
LibUsbFactoryExtensions.CreateLibUsbDeviceFactory(FilterDeviceDefinition, ILoggerFactory, Nullable<Int32>, Nullable<UInt16>, Nullable<UInt16>, Func<ConnectedDeviceDefinition, CancellationToken, Task<Boolean>>)
In This Article
Back to top Generated by DocFX