Share via


AddinSettings.MetaTagPagePropertyMappings property

Gets or sets the <meta> tag and page property mappings for the Addin Settings.

Namespace:  Microsoft.SharePoint.Client.Publishing
Assembly:  Microsoft.SharePoint.Client.Publishing (in Microsoft.SharePoint.Client.Publishing.dll)

Syntax

'Declaration
Public Property MetaTagPagePropertyMappings As IDictionary(Of String, String)
    Get
    Set
'Usage
Dim instance As AddinSettings
Dim value As IDictionary(Of String, String)

value = instance.MetaTagPagePropertyMappings

instance.MetaTagPagePropertyMappings = value
public IDictionary<string, string> MetaTagPagePropertyMappings { get; set; }

Property value

Type: System.Collections.Generic.IDictionary<String, String>
The [T:System.Collection.Generic.Dictionary<string,string>] that contains the mappings between the <meta> tags and page properties as defined in the Addin Settings.

Remarks

The MetaTagPagePropertyMappings property is a dictionary that stores the <meta> tag and page property mappings. Mappings are generated and inserted into the <meta> tags which are located right after the <head> tag on all site pages and list view pages.

For example, a key value pair, {"tag:newTag", "Title"} in the MetaTagPagePropertyMappings property adds the <meta> tag <meta property=”tag:newTag” content=”[Value] ”/> after the <head> tag. “Title” in {"tag:newTag", "Title"} refers to the name of the page property. [Value] is replaced with the value of the page property called “Title”.

See also

Reference

AddinSettings class

AddinSettings members

Microsoft.SharePoint.Client.Publishing namespace