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

Defines the fluent API for configuring the ChatFileAttachmentRestrictionsSettings settings.

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

C#
public ChatFileAttachmentRestrictionsSettingsBuilder(ChatFileAttachmentRestrictionsSettings settings)
Parameters:settingsChatFileAttachmentRestrictionsSettings

The ChatFileAttachmentRestrictionsSettings

Methods

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

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

The value that configures the allowedextensions.

Returns:

ChatFileAttachmentRestrictionsSettingsBuilder

Maximum allowed file size in bytes.

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

The value that configures the maxfilesize.

Returns:

ChatFileAttachmentRestrictionsSettingsBuilder

Minimum allowed file size in bytes.

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

The value that configures the minfilesize.

Returns:

ChatFileAttachmentRestrictionsSettingsBuilder