Share via


SocialPostCreationData.ContentText property

Gets or sets the plain text of the post, which may include positional insertion tokens (for example, "Today is {0}'s birthday!").

Namespace:  Microsoft.SharePoint.Client.Social
Assembly:  Microsoft.SharePoint.Client.UserProfiles (in Microsoft.SharePoint.Client.UserProfiles.dll)

Syntax

'Declaration
Public Property ContentText As String
    Get
    Set
'Usage
Dim instance As SocialPostCreationData
Dim value As String

value = instance.ContentText

instance.ContentText = value
public string ContentText { get; set; }

Property value

Type: System.String

Remarks

Positional insertion tokens are replaced by the items in the ContentItems property. HTML tags are not accepted. The maximum length of a post is 512 characters.

See How to: Create and delete posts and retrieve the social feed by using the .NET client object model in SharePoint 2013.

See also

Reference

SocialPostCreationData class

SocialPostCreationData members

Microsoft.SharePoint.Client.Social namespace