Class CostFilter
Filters a property by its cost to query its value.
Inherited Members
Namespace:FubarDev.WebDavServer.Props.Filters
Assembly:FubarDev.WebDavServer.dll
Syntax
public class CostFilter : IPropertyFilter
              Constructors
| Improve this Doc View SourceCostFilter(Int32)
Initializes a new instance of the CostFilter class.
Declaration
public CostFilter(int maximumCost)
              Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | maximumCost | The maximum allowed cost  | 
                  
CostFilter(Int32, IPropertyFilter)
Initializes a new instance of the CostFilter class.
Declaration
public CostFilter(int maximumCost, IPropertyFilter exceptionFilter)
              Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | maximumCost | The maximum allowed cost  | 
                  
| IPropertyFilter | exceptionFilter | A filter that allows an exception to this rule  | 
                  
Methods
| Improve this Doc View SourceGetMissingProperties()
Gets the properties that weren't selected
Declaration
public IEnumerable<MissingProperty> GetMissingProperties()
              Returns
| Type | Description | 
|---|---|
| IEnumerable<MissingProperty> | The list of properties that weren't selected  | 
                  
Implements
| Improve this Doc View SourceIsAllowed(IProperty)
Does this property pass the conditions of this filter?
Declaration
public bool IsAllowed(IProperty property)
              Parameters
| Type | Name | Description | 
|---|---|---|
| IProperty | property | The property to test  | 
                  
Returns
| Type | Description | 
|---|---|
| Boolean | true when the property passes this filters condition(s)  | 
                  
Implements
| Improve this Doc View SourceNotifyOfSelection(IProperty)
Notify this filter when this property was selected
Declaration
public void NotifyOfSelection(IProperty property)
              Parameters
| Type | Name | Description | 
|---|---|---|
| IProperty | property | The property that was selected  | 
                  
Implements
| Improve this Doc View SourceReset()
Reset the status of the filter
Declaration
public void Reset()