Click or drag to resize
LinkedInHelperPublishShareOnLinkedInCompanyProfileInternal Method
Publishes a new share on company profile identified by LinkedIn's company ID.

Namespace: CMS.SocialMarketing
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 11.0.0
Syntax
C#
protected virtual string PublishShareOnLinkedInCompanyProfileInternal(
	LinkedInAuthorization authorization,
	string companyId,
	string comment
)

Parameters

authorization
Type: CMS.SocialMarketing.LinkedInInternalLinkedInAuthorization
Authorization to be used for the publishing request.
companyId
Type: SystemString
Identifier of the company used by LinkedIn.
comment
Type: SystemString
Comment text.

Return Value

Type: String
Update key of the published share.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when authorization, companyId or comment is null.
ArgumentOutOfRangeExceptionThrown when comment is longer than COMPANY_SHARE_COMMENT_MAX_LENGTH
LinkedInApiUnauthorizedExceptionThrown when protocol error occurs because the request is not authorized properly.
LinkedInApiExceptionThrown when protocol error occurs.
See Also