RequireWhenAttribute Constructor (Boolean, Type) |
Constructor.
Namespace:
MFiles.VAF.Configuration.Validation
Assembly:
MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 2.1.0.1 (2.1.0.1)
Syntaxpublic RequireWhenAttribute(
bool hideWhenNotRequired,
params Type[] conditionTypes
)
Parameters
- hideWhenNotRequired
- Type: SystemBoolean
Indicates whether the decorated member should be hidden from the property grid when it is not required.
- conditionTypes
- Type: SystemType
The types of condition that should be used to determine whether the decorated member is required or not.
Each type must implement IConditionalRequirement to work correctly.
See Also