Class DriverFeatureScore
Stores driver feature score.
For more information, see driver feature score documentation
Inheritance
System.Object
DriverFeatureScore
Implements
System.IComparable
Namespace: Microsoft.PackageGraph.MicrosoftUpdate.Metadata.Drivers
Assembly: package-graph-microsoft-update.dll
Syntax
public class DriverFeatureScore : IComparable
Fields
| Improve this Doc View SourceOperatingSystem
Operating system
Declaration
public string OperatingSystem
Field Value
Type | Description |
---|---|
System.String | Operating system or processor architecture |
Score
FeatureScore; higher is better when comparing two drivers that match the same HW ID
Declaration
public byte Score
Field Value
Type | Description |
---|---|
System.Byte | Value between 0 and 255; lower is better |
Methods
| Improve this Doc View SourceCompareTo(Object)
Compare two driver feature scores
A smaller feature score is better; if sorting feature scores, take the smaller value as the better driver
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Other object |
Returns
Type | Description |
---|---|
System.Int32 | -1 if other feature score is lower (better), 0 if equal and 1 if higher (worse) |
Implements
System.IComparable