Struct PackageSearchQuery ​
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
The text of a package search and how it matches.
csharp
public readonly record struct PackageSearchQuery : IEquatable<PackageSearchQuery>Implements ​
IEquatable<PackageSearchQuery>
Constructors ​
PackageSearchQuery(string, PackageSearchType, bool, bool, bool) ​
The text of a package search and how it matches.
csharp
public PackageSearchQuery(string Text, PackageSearchType Type, bool MatchCase = false, bool WholeWord = false, bool UseRegex = false)Parameters ​
Text string
The text, hex bytes or regular expression to find.
Type PackageSearchType
What the text is matched against.
MatchCase bool
Whether letter case has to match.
WholeWord bool
Whether the match has to be a whole word.
UseRegex bool
Whether Text is a regular expression.
Properties ​
MatchCase ​
Whether letter case has to match.
csharp
public bool MatchCase { get; init; }Property Value ​
bool
Text ​
The text, hex bytes or regular expression to find.
csharp
public string Text { get; init; }Property Value ​
string
Type ​
What the text is matched against.
csharp
public PackageSearchType Type { get; init; }Property Value ​
UseRegex ​
Whether Text is a regular expression.
csharp
public bool UseRegex { get; init; }Property Value ​
bool
WholeWord ​
Whether the match has to be a whole word.
csharp
public bool WholeWord { get; init; }Property Value ​
bool

