RequireWhenAttribute Constructor (Boolean, Type) |
Constructor.
Namespace:
MFiles.VAF.Configuration.Validation
Assembly:
MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
Syntaxpublic RequireWhenAttribute(
bool hideWhenNotRequired,
params Type[] conditionTypes
)
Public Sub New (
hideWhenNotRequired As Boolean,
ParamArray conditionTypes As Type()
)
public:
RequireWhenAttribute(
bool hideWhenNotRequired,
... array<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