Class
PromptInputAttachedFile

Represents a file attachment displayed in the RadPromptInput attachments area. Provides properties for the file name, size, custom data, and a stream provider.

Definition

Constructors

PromptInputAttachedFile()

Initializes a new instance of the PromptInputAttachedFile class.

Declaration

cs-api-definition
public PromptInputAttachedFile()

PromptInputAttachedFile(FileInfo)

Initializes a new instance of the PromptInputAttachedFile class with a FileInfo.

Declaration

cs-api-definition
public PromptInputAttachedFile(FileInfo file)

Parameters

file

FileInfo

Properties

Data

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.

Declaration

cs-api-definition
public object Data { get; set; }

Property Value

object

FileName

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

Declaration

cs-api-definition
public string FileName { get; set; }

Property Value

string

FileSize

Gets or sets the size of the attachment in bytes.

Declaration

cs-api-definition
public long FileSize { get; set; }

Property Value

long

GetFileStream

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

Declaration

cs-api-definition
public Func<Stream> GetFileStream { get; set; }

Property Value

Func<Stream>

IsDownloading

Gets or sets a boolean value indicating that the file is currently being downloaded.

Declaration

cs-api-definition
public bool IsDownloading { get; set; }

Property Value

bool