SimpleTemplateFormat SimpleTemplateFormat SimpleTemplateFormat Class


This object, member, or enumeration is deprecated and is not intended to be used in your code. SharePoint 2013 includes the following APIs for working with feeds: .NET client, JavaScript, REST, and server. See Work with social feeds in SharePoint 2013 to choose the API for your specific feed-related programming tasks. Supports an array of tags one level deep (no tags within tags).

public ref class SimpleTemplateFormat
public class SimpleTemplateFormat
Public Class SimpleTemplateFormat


Each tag is identified by the contents within a pair of braces ({}). These braces cannot be escaped and therefore cannot be in string literals. Each tag can be substituted with a value from the TemplateVariable property of an ActivityEvent object by a feed generator. Tags that are not understood by a generator can be passed on to another generator in a pipeline until there are no tags remain to be substituted. A list tag is supported, but the contents of a list must be of the same type in a TemplateVariable.


SimpleTemplateFormat() SimpleTemplateFormat() SimpleTemplateFormat()

Creates an instance of a SimpleTemplateFormat object.


TemplateTagBegin TemplateTagBegin TemplateTagBegin

Specifies the string value that opens a tag ({).

TemplateTagEnd TemplateTagEnd TemplateTagEnd

Specifies the string value that closes a tag (}).


Literal Literal Literal

Gets or sets the literal string value stored inside a correctly formatted tag.

Tag Tag Tag

Gets or sets a string value representing a correctly formatted tag.


SimpleParse(String) SimpleParse(String) SimpleParse(String)

Static method that parses out and stores the tags and literal strings inside a formatted string.

Extension Methods

ToJson(Object) ToJson(Object) ToJson(Object)

Applies to