URLShortenerHelperGetDefaultURLShortenerForSocialNetworkInternal Method |
Retrieves the URL shortener for the specified social network posts, and returns it.
Namespace: CMS.SocialMarketingAssembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 13.0.131
Syntax protected virtual URLShortenerTypeEnum GetDefaultURLShortenerForSocialNetworkInternal(
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