addEnclosure method: FeedEntry class

Syntax

addEnclosure(URL, type, length)

Description

Use this method to add an enclosure attribute to the feed entry.

Note:

This is an abstract method.

Parameters

Parameter Description

URL

Specifies the URL for the enclosure as a string.

type

Specifies the type of the enclosure as a string.

length

Specifies the length for the enclosure in bytes as a number.

Returns

A Boolean value: True if the add was successful, False otherwise.