Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Extensions Property
Collapse the table of content
Expand the table of content

FileExtensionsAttribute::Extensions Property

.NET Framework 4.6 and 4.5

Gets or sets the file name extensions.

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

public:
property String^ Extensions {
	String^ get ();
	void set (String^ value);
}

Property Value

Type: System::String
The file name extensions, or the default file extensions (".png", ".jpg", ".jpeg", and ".gif") if the property is not set.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft