| URLShortenerHelperShortenURLsInText Method | 
            Shortens URLs in given text using selected URL shortener. Throws an exception if shortener is not available for the given site.
            
 
Namespace: CMS.SocialMarketingAssembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 10.0.0
 Syntax
Syntaxpublic static string ShortenURLsInText(
	string text,
	URLShortenerTypeEnum shortener,
	SiteInfoIdentifier siteIdentifier
)
Parameters
- text
- Type: SystemString
 Text in that all URLs will be shortened.
- shortener
- Type: CMS.SocialMarketingURLShortenerTypeEnum
 Shortener that will be used for shortening.
- siteIdentifier
- Type: CMS.DataEngineSiteInfoIdentifier
 Determines which site's URL shortener settings are used. Provide null to use global settings.
Return Value
Type: 
StringText with shortened URLs.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| Exception | Shortener is not available for the given site. | 
 See Also
See Also