Table of Contents

Class ScanDevice

Namespace
NAPS2.Scan
Assembly
NAPS2.Sdk.dll

The representation of a scanning device and its corresponding driver.

public sealed record ScanDevice : IEquatable<ScanDevice>
Inheritance
ScanDevice
Implements
Inherited Members

Constructors

ScanDevice(Driver, string, string, string?)

The representation of a scanning device and its corresponding driver.

public ScanDevice(Driver Driver, string ID, string Name, string? IconUri = null)

Parameters

Driver Driver
ID string
Name string
IconUri string

Properties

Driver

public Driver Driver { get; init; }

Property Value

Driver

ID

public string ID { get; init; }

Property Value

string

IconUri

public string? IconUri { get; init; }

Property Value

string

Name

public string Name { get; init; }

Property Value

string

Methods

Equals(ScanDevice?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ScanDevice? other)

Parameters

other ScanDevice

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.