Publishes a new share on company profile identified by LinkedInAccountID.
The share is visible to anyone.
Namespace: CMS.SocialMarketingAssembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- accountId
- Type: System Int32
Identifier of the account info object (company profile).
- comment
- Type: System String
Comment text.
Return Value
Type: StringUpdate key of the published share.
Exceptions
Exception | Condition |
---|---|
System ArgumentException | Thrown when authorization or LinkedIn's company ID resulting from accountId is null, or when comment is null. |
System ArgumentOutOfRangeException | Thrown when comment is longer than COMPANY_SHARE_COMMENT_MAX_LENGTH |
CMS.SocialMarketing LinkedInApiUnauthorizedException | Thrown when protocol error occurs because the request is not authorized properly. |
CMS.SocialMarketing LinkedInApiException | Thrown when protocol error occurs. |
See Also