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)

abstract IsValid : 
        value:Object -> bool  
override IsValid : 
        value:Object -> bool


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