NameAndSizeFilter filters based on name and file size.
More...
|
| long | MinSize [get, set] |
| | Get/set the minimum size for a file that will match this filter.
|
| long | MaxSize [get, set] |
| | Get/set the maximum size for a file that will match this filter.
|
NameAndSizeFilter filters based on name and file size.
A sample showing how filters might be extended.
◆ NameAndSizeFilter()
| ICSharpCode.SharpZipLib.Core.NameAndSizeFilter.NameAndSizeFilter |
( |
string | filter, |
|
|
long | minSize, |
|
|
long | maxSize ) |
Initialise a new instance of NameAndSizeFilter.
- Parameters
-
| filter | The filter to apply. |
| minSize | The minimum file size to include. |
| maxSize | The maximum file size to include. |
◆ IsMatch()
| override bool ICSharpCode.SharpZipLib.Core.NameAndSizeFilter.IsMatch |
( |
string | name | ) |
|
|
virtual |
Test a filename to see if it matches the filter.
- Parameters
-
| name | The filename to test. |
- Returns
- True if the filter matches, false otherwise.
Reimplemented from ICSharpCode.SharpZipLib.Core.PathFilter.
◆ maxSize_
| long ICSharpCode.SharpZipLib.Core.NameAndSizeFilter.maxSize_ = long.MaxValue |
|
private |
◆ minSize_
| long ICSharpCode.SharpZipLib.Core.NameAndSizeFilter.minSize_ |
|
private |
◆ MaxSize
| long ICSharpCode.SharpZipLib.Core.NameAndSizeFilter.MaxSize |
|
getset |
Get/set the maximum size for a file that will match this filter.
◆ MinSize
| long ICSharpCode.SharpZipLib.Core.NameAndSizeFilter.MinSize |
|
getset |
Get/set the minimum size for a file that will match this filter.
The documentation for this class was generated from the following file: