Click or drag to resize
URLShortenerHelperGetDefaultURLShortenerForSocialNetworkInternal Method
Retrieves the URL shortener for the specified social network posts, and returns it.

Namespace: CMS.SocialMarketing
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 8.2.23
Syntax
C#
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: URLShortenerTypeEnum
The 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