URLShortenerHelper IsURLShortenerAvailable Method Kentico 8.1 API Reference
Provides information about availability of the URL shortener. If specified shortener is configured for given site, true is returned. False otherwise. If shortener is URLShortenerTypeEnum.None, true is returned as this shortener is always available.

Namespace: CMS.SocialMarketing
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

shortener
Type: CMS.SocialMarketing URLShortenerTypeEnum
Shortener whose availability you're interested in.
siteIdentifier
Type: CMS.DataEngine SiteInfoIdentifier
Determines which site's URL shortener settings are used. Provide null to use global settings.

Return Value

Type: OnlineBoolean
If specified shortener is configured for given site, true is returned. False otherwise. If shortener is URLShortenerTypeEnum.None, true is returned as this shortener is always available.
See Also