RequireWhenAttribute(Boolean, Type) Constructor
Constructor.
Namespace: MFiles.VAF.Configuration.ValidationAssembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
public RequireWhenAttribute(
bool hideWhenNotRequired,
params Type[] conditionTypes
)
Parameters
- hideWhenNotRequired Boolean
-
Indicates whether the decorated member should be hidden from the property grid when it is not required.
- conditionTypes Type
-
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.