Class PropertyContentReferenceList
Property for storing multiple ContentReference instances. Supports content properties of type System.Collections.Generic.IList<T>, System.Collections.Generic.ICollection<T> or System.Collections.Generic.IEnumerable<T>
Inheritance
Inherited Members
Namespace: EPiServer.SpecializedProperties
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[PropertyDefinitionTypePlugIn]
public class PropertyContentReferenceList : PropertyList<ContentReference>, IReadOnly<PropertyData>, IReadOnly, ILazyPropertyConstructors
PropertyContentReferenceList()
Initializes a new instance of the PropertyContentReferenceList class.
Declaration
public PropertyContentReferenceList()PropertyContentReferenceList(IEnumerable<ContentReference>)
Initializes a new instance of the PropertyContentReferenceList class with the provided list.
Declaration
public PropertyContentReferenceList(IEnumerable<ContentReference> list)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<ContentReference> | list | 
Methods
CreatePropertyControl()
Creates an IPropertyControl that is used to display a user interface for the property.
Declaration
[Obsolete("Use IPropertyControlFactory to create property controls")]
public override IPropertyControl CreatePropertyControl()Returns
| Type | Description | 
|---|---|
| IPropertyControl | An IPropertyControl that is used to display a user interface for the property. | 
Overrides
Remarks
It is possible to change which control should be used by registering a different IPropertyControl for the PropertyData class in PropertyControlClassFactory.
ParseItem(String)
Declaration
protected override ContentReference ParseItem(string value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | value | 
Returns
| Type | Description | 
|---|---|
| ContentReference | 
Overrides
ParseToObject(String)
Creates a new instance of PropertyData with the given value, ie reversed ToString().
Declaration
public override PropertyData ParseToObject(string value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | value | The string value to parse. | 
Returns
| Type | Description | 
|---|---|
| PropertyData | A new instance of PropertyData with the given value. | 
Overrides
ToRawString()
Declaration
public override string ToRawString()Returns
| Type | Description | 
|---|---|
| System.String | 
