New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring ChatFileAttachmentRestrictionsSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChatFileAttachmentRestrictionsSettingsBuilder

Inheritance: objectChatFileAttachmentRestrictionsSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ChatFileAttachmentRestrictionsSettingsBuilder class.

C#
public ChatFileAttachmentRestrictionsSettingsBuilder(ChatFileAttachmentRestrictionsSettings container)
Parameters:containerChatFileAttachmentRestrictionsSettings

Properties

C#
protected ChatFileAttachmentRestrictionsSettings Container { get; }

Methods

Array of allowed file extensions (e.g., [".jpg", ".png", ".pdf"]).

C#
public ChatFileAttachmentRestrictionsSettingsBuilder AllowedExtensions(params string[] value)
Parameters:valuestring[]

The value for AllowedExtensions

Returns:

ChatFileAttachmentRestrictionsSettingsBuilder

Returns the current ChatFileAttachmentRestrictionsSettingsBuilder instance.

Maximum allowed file size in bytes.

C#
public ChatFileAttachmentRestrictionsSettingsBuilder MaxFileSize(double value)
Parameters:valuedouble

The value for MaxFileSize

Returns:

ChatFileAttachmentRestrictionsSettingsBuilder

Returns the current ChatFileAttachmentRestrictionsSettingsBuilder instance.

Minimum allowed file size in bytes.

C#
public ChatFileAttachmentRestrictionsSettingsBuilder MinFileSize(double value)
Parameters:valuedouble

The value for MinFileSize

Returns:

ChatFileAttachmentRestrictionsSettingsBuilder

Returns the current ChatFileAttachmentRestrictionsSettingsBuilder instance.