Export (0) Print
Expand All

FileExtensionsAttribute.IsValid Method

.NET Framework 4.5

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

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

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

Parameters

value
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
Show:
© 2015 Microsoft