Click or drag to resize

RequireWhenAttribute Class

An attribute that can be used to mark a configuration value as being conditionally required, based on other values within the configuration.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    MFiles.VAF.Configuration.ValidationRequireWhenAttribute

Namespace:  MFiles.VAF.Configuration.Validation
Assembly:  MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 2.2.0.9
Syntax
C#
public class RequireWhenAttribute : Attribute

The RequireWhenAttribute type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyConditionTypes
The type that should be used to determine whether the decorated member is required or not.
Public propertyHideWhenNotRequired
Indicates whether the decorated member should be hidden from the property grid when it is not required.
Top
Methods
  NameDescription
Public methodGetConditions
The conditions the member was declared with.
Top
See Also