Class PersonalizedContentFragment
Represents a personalized content in a string.
Inheritance
Implements
Namespace: EPiServer.Core.Html.StringParsing
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class PersonalizedContentFragment : Object, INestedStringFragment, IStringFragment, IReferenceMap, ISecurable, IContentGroup, IPersonalizedRolesConstructors
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<> 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<> of permanent link ids that are referenced from this property. | 
Methods
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. | 
