.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

IFileData Interface

Declares members implemented by the classes that can be represented in a UI using the FileDataPropertyEditor.

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.Persistent.Base.v21.2.dll

Declaration

public interface IFileData

Remarks

You can create your own IFileData implementation when required. To see an example, refer to the FileData class sources at %PROGRAMFILES(x86)%\DevExpress 21.2\Components\Sources\DevExpress.Persistent\DevExpress.Persistent.BaseImpl\FileData.cs, or to the following articles: How to: Store file attachments in the file system instead of the database | How to: Store file attachments in Dropbox instead of the database(video).

When the File Attachments module is added to the application, business object properties of the IFileData type are visualized using the FileDataPropertyEditor in WinForms and ASP.NET Web Forms applications.

WinForms:

FileDataEdit_Transparent

ASP.NET Web Forms:

FileDataEdit_FileDataPropertyEditor_Transparent

Note

If you want to access the full path to a file, implement the ISupportFullName interface in your class in addition to IFileData.

See Also