RequireWhenAttribute(Boolean, Type) Constructor

Constructor.

Definition

Namespace: MFiles.VAF.Configuration.Validation
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
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.

See Also