New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents an attached file in the RadPromptInput.

Definition

Namespace:Telerik.Maui.Controls.PromptInput

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class PromptInputAttachedFile : NotifyPropertyChangedBase, INotifyPropertyChanged

Inheritance: objectNotifyPropertyChangedBasePromptInputAttachedFile

Derived Classes: ChatAttachedFile

Implements: INotifyPropertyChanged

Inherited Members NotifyPropertyChangedBase.OnPropertyChanged(string)NotifyPropertyChangedBase.UpdateValue<T>(ref T, T, string)NotifyPropertyChangedBase.UpdateValue<T>(ref T, T, Action<T>, string)NotifyPropertyChangedBase.PropertyChanged

Constructors

Initializes a new instance of the class.

C#
public PromptInputAttachedFile()

Initializes a new instance of the class with a IFileInfo.

C#
public PromptInputAttachedFile(IFileInfo file)
Parameters:fileIFileInfo

Properties

Gets or sets some custom information about the particular item. The RadPromptInput does not use this property anywhere, use this to carry a payload of information for your convenience.

C#
public object Data { get; set; }

Gets or sets the short file name of the attachment that will be displayed in the message.

C#
public string FileName { get; set; }

Gets or sets the size of the attachment in bytes.

C#
public long FileSize { get; set; }

Gets or sets the func that provides a stream of the attachment.

C#
public Func<Task<Stream>> GetFileStream { get; set; }