Share via


FileExtensionValidator.FireIfSecondary property

Gets or sets whether the file name extension validator should be raised if other validators have already been raised.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Property FireIfSecondary As Boolean
    Get
    Set
'Usage
Dim instance As FileExtensionValidator
Dim value As Boolean

value = instance.FireIfSecondary

instance.FireIfSecondary = value
public bool FireIfSecondary { get; set; }

Property value

Type: System.Boolean
This property is useful if there are multiple validators (such as a required field validator) and you do not want more than one error message returned.

See also

Reference

FileExtensionValidator class

FileExtensionValidator members

Microsoft.SharePoint.Publishing.WebControls namespace