Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FileExtensionsAttribute.IsValid Method

.NET Framework 4.6 and 4.5

Checks that the specified file name extension or extensions is valid.

Namespace:  System.ComponentModel.DataAnnotations
Assemblies:   System.ComponentModel.Annotations (in System.ComponentModel.Annotations.dll)
  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

Public Overrides Function IsValid ( _
	value As Object _
) As Boolean


Type: System.Object

A comma delimited list of valid file extensions.

Return Value

Type: System.Boolean
true if the file name extension is valid; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft