FileTypeFilterAttribute.GetExtensions() Method

Returns the list of file extensions associated with the current file type filter.

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.Persistent.Base.v18.1.dll

Declaration

public List<string> GetExtensions()
Public Function GetExtensions As List(Of String)

Returns

Type Description
System.Collections.Generic.List<String>

A List<String> object which specifies file extensions associated with the current file type filter.

By default, this method returns a list of strings, sorted using the List<T>.Sort method. To disable this and preserve the initial order of items, set the DevExpress.ExpressApp.FileAttachments.Win.FileTypeFiltersLogic.AllowSortExtensions static property to false. You can initialize this property before the XafApplication.Setup method is called in the Program.cs (Program.vb) file.

See Also