Class PersonalizedContentFragment

Represents a personalized content in a string.

Inheritance
System.Object
PersonalizedContentFragment
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core.Html.StringParsing
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class PersonalizedContentFragment : INestedStringFragment, IStringFragment, IReferenceMap, ISecurable, IContentGroup, IPersonalizedRoles

Constructors

PersonalizedContentFragment(IPersonalizedContentFactory, ISecuredFragmentMarkupGenerator)

Initializes a new instance of the PersonalizedContentFragment class.

Declaration
public PersonalizedContentFragment(IPersonalizedContentFactory personalizationFactory, ISecuredFragmentMarkupGenerator securedFragmentMarkupGenerator)
Parameters
Type Name Description
IPersonalizedContentFactory personalizationFactory

The personalization factory.

ISecuredFragmentMarkupGenerator securedFragmentMarkupGenerator

The secured fragment markup generator.

Properties

ContentGroup

Gets or sets the content group.

Declaration
public string ContentGroup { get; set; }
Property Value
Type Description
System.String

The content group.

Fragments

Gets or sets the inner fragments that contain the actual content.

Declaration
public StringFragmentCollection Fragments { get; }
Property Value
Type Description
StringFragmentCollection

The inner fragments.

InternalFormat

Gets the internal format of the fragment through the factory

Declaration
public string InternalFormat { get; }
Property Value
Type Description
System.String

The internal format.

ReferencedPermanentLinkIds

Gets an System.Collections.Generic.IList<T> of permanent link ids that are referenced from this property.

Declaration
public IList<Guid> ReferencedPermanentLinkIds { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.Guid>

An System.Collections.Generic.IList<T> of permanent link ids that are referenced from this property.

Methods

GetControl(TemplateControl)

Gets the control that can be placed in the Page control collection.

Declaration
public Control GetControl(TemplateControl hostPage)
Parameters
Type Name Description
System.Web.UI.TemplateControl hostPage

The current page.

Returns
Type Description
System.Web.UI.Control

A control collection with the inner fragments as child controls.

GetEditFormat()

Gets the format for edit mode through the factory

Declaration
public string GetEditFormat()
Returns
Type Description
System.String

GetRoles()

Gets all used personalized content roles from fragments

Declaration
public IEnumerable<string> GetRoles()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

GetSecurityDescriptor()

Gets the security descriptor.

Declaration
public ISecurityDescriptor GetSecurityDescriptor()
Returns
Type Description
ISecurityDescriptor

An implementation of ISecurityDescriptor.

GetViewFormat()

Gets the format for view mode through the factory

Declaration
public string GetViewFormat()
Returns
Type Description
System.String

RemapPermanentLinkReferences(IDictionary<Guid, Guid>)

Remaps permanent links according to the provided link mapping.

Declaration
public void RemapPermanentLinkReferences(IDictionary<Guid, Guid> idMap)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.Guid, System.Guid> idMap

The link mapping.

Implements

Extension Methods