Kentico 10 API Reference
Kentico 10 API Reference
Namespaces
CMS.SocialMarketing Namespaces
CMS.SocialMarketing.URLShortening
IURLShortener Interface
IURLShortener Methods
IsAvailable Method
Shorten Method
IURLShortener
Shorten Method
Shortens the given URL via an URLShortener
Namespace:
CMS.SocialMarketing.URLShortening
Assembly:
CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 10.0.0
Syntax
C#
Copy
string
Shorten
(
string
url
,
SiteInfoIdentifier
site
)
Parameters
url
Type:
System
String
URL to be shortened
site
Type:
CMS.DataEngine
SiteInfoIdentifier
Context to get settings for
Return Value
Type:
String
Shortened URL on succes,
url
otherwise.
See Also
Reference
IURLShortener Interface
CMS.SocialMarketing.URLShortening Namespace
Copyright (c) 2016 Kentico Software
Send comments on this topic to
support@kentico.com