Obtain a Fields collection with a subset of this collection's
IField objects. The criteria for
determining which fields to include in the subset is specified using
FieldSubsetType:
- AttributeIsSet - Get the subset of fields where any of the specified set of FieldAttrs, provided in criteria, is set.
- ByCellType - Find all fields whose CellTypes matches the criteria.
- RowKeys - Get the subset of fields comprising the RowKeys for the mapper (criteria ignored).
- PropSet - Get the subset of fields where the specified property value, provided as a string in criteria, is not null/blank.
- Visible - Get the subset of fields with the specified Visible value, provided as a boolean in criteria.
- Dirty - Get the subset of fields with the specified Dirty value, provided as a boolean in criteria..
Namespace:
NetQuarry.Data
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public Fields Subset(
FieldSubsetType options,
Object criteria
)
Public Function Subset (
options As FieldSubsetType,
criteria As Object
) As Fields
Parameters
- options
- Type: NetQuarry.DataFieldSubsetType
The type of criteria to use. - criteria
- Type: SystemObject
FieldSubsetType-specific criteria for obtaining subset.
Return Value
Type:
FieldsThe collection of matching fields, or an empty collection (but not null) if no items match.
Remarks
This method always returns a
Fields collection even when no matching fields are found.
See Also