AttachmentsValidationRole class properties

MaxFiles property

Gets or sets how many files maximum is allowed.

Syntax

public int? MaxFiles { get; set; }

Property Value

Type:                    System.Nullable<System.Int32>

Default value:   null

If null the maximum of files is unlimited. Otherwise the count of attachments is limited even if the total maximum size would be lesser then allowed total maximum size of attachments.

 

MinFiles property

Gets or sets how many files at least are needed.

Syntax

public int? MinFiles { get; set; }

Property Value

Type:                    System.Nullable<System.Int32>

Default value:   null

If null the minimum of files is not defined. Otherwise at least MinFiles files must be added to the assigned Attachments control.