URLShortenerHelperGetDefaultURLShortenerForSocialNetwork Method |
Retrieves the URL shortener for the specified social network posts, and returns it.
Namespace: CMS.SocialMarketingAssembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 9.0.0
Syntaxpublic static URLShortenerTypeEnum GetDefaultURLShortenerForSocialNetwork(
SocialNetworkTypeEnum socialNetwork,
SiteInfoIdentifier siteIdentifier
)
Parameters
- socialNetwork
- Type: CMS.SocialMarketingSocialNetworkTypeEnum
The type of the social network. - siteIdentifier
- Type: CMS.DataEngineSiteInfoIdentifier
Determines which site's settings are used. Provide null to use global settings.
Return Value
Type:
URLShortenerTypeEnumThe URL shortener for the specified social network posts.
Remarks
If the URL shortener is not set or the value in the settings is not valid or the social network with the specified name does not exist,
a special value URLShortenerTypeEnum.None is returned.
See Also