SP.Social.SocialAttachment object (sp.userprofiles)

Represents an image, video, or document in a microblog post.

Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.Social.SocialAttachment()

Members

The SocialAttachment object has the following members.

Constructor

The SocialAttachment object has the following constructor.

Constructor

Description

SocialAttachment

Initializes a new instance of a SocialAttachment object.

Methods

The SocialAttachment object has the following methods.

Method

Description

initPropertiesFromJson

This member is reserved for internal use and is not intended to be used directly from your code.

writeToXml

This member is reserved for internal use and is not intended to be used directly from your code.

Properties

The SocialAttachment object has the following properties.

Property

Description

attachmentKind

Gets or sets the type of attachment.

clickAction

Gets or sets the action to perform on a click event.

contentUri

Gets or sets the URI to the attachment file.

description

Gets or sets the attachment's description.

height

Gets or sets the height of the attachment or its preview.

length

Gets or sets the length of the attachment, in seconds.

name

Gets or sets the attachment's name.

previewUri

Gets or sets the URI for the attachment's preview image.

typeId

This member is reserved for internal use and is not intended to be used directly from your code.

uri

Gets or sets the URI to the list item for the attachment.

width

Gets or sets the width of the attachment or its preview.

See also

Other resources

SP.Social namespace

Work with social feeds in SharePoint 2013

How to: Embed images, videos, and documents in posts in SharePoint Server 2013