TypeGetFields Method (BindingFlags) |
When overridden in a derived class, searches for the fields defined for the current
Type, using the specified binding constraints.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public abstract FieldInfo[] GetFields(
BindingFlags bindingAttr
)
Parameters
- bindingAttr
- Type: System.ReflectionBindingFlags
A bitmask comprised of one or more BindingFlags that specify how the search is conducted.-or- Zero, to return null.
Return Value
Type:
FieldInfoAn array of
FieldInfo objects representing all fields defined for the current
Type that match the specified binding constraints.-or- An empty array of type
FieldInfo, if no fields are defined for the current
Type, or if none of the defined fields match the binding constraints.
Implements
IReflectGetFields(BindingFlags)See Also