Click or drag to resize
KenticoAttachmentsDialogControllerGetAttachments Method
Gets page attachments.

Namespace: Kentico.Components.Web.Mvc.Dialogs.Internal
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public ActionResult GetAttachments(
	int pageId,
	string allowedExtensions
)

Parameters

pageId
Type: SystemInt32
ID of a page for which the attachments should be retrieved.
allowedExtensions
Type: SystemString
Semicolon separated list of allowed file extensions.

Return Value

Type: ActionResult
Exceptions
ExceptionCondition
ArgumentExceptionThrows when pageId is not positive number.
See Also