Class NameAndSizeFilter
NameAndSizeFilter filters based on name and file size.
Implements
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: ICSharpCode.SharpZipLib.Core
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
[Obsolete("Use ExtendedPathFilter instead")]
public class NameAndSizeFilter : PathFilter, IScanFilter
Remarks
A sample showing how filters might be extended.
Constructors
| Improve this Doc View SourceNameAndSizeFilter(String, Int64, Int64)
Initialise a new instance of NameAndSizeFilter.
Declaration
public NameAndSizeFilter(string filter, long minSize, long maxSize)
Parameters
Type | Name | Description |
---|---|---|
System.String | filter | The filter to apply. |
System.Int64 | minSize | The minimum file size to include. |
System.Int64 | maxSize | The maximum file size to include. |
Properties
| Improve this Doc View SourceMaxSize
Get/set the maximum size for a file that will match this filter.
Declaration
public long MaxSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
MinSize
Get/set the minimum size for a file that will match this filter.
Declaration
public long MinSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceIsMatch(String)
Test a filename to see if it matches the filter.
Declaration
public override bool IsMatch(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The filename to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if the filter matches, false otherwise. |