Class PropertyMediaList<T>
Base class for PropertyMediaList types
Namespace: ImageVault.EPiServer
Assembly: ImageVault.EPiServer.dll
Syntax
public abstract class PropertyMediaList<T> : PropertyData where T : MediaReference, new()
Type Parameters
Name | Description |
---|---|
T |
Constructors
PropertyMediaList()
Initializes a new instance of the PropertyMediaList class.
Declaration
protected PropertyMediaList()
PropertyMediaList(MediaReferenceList<T>)
Initializes a new instance of the PropertyMediaList class.
Declaration
protected PropertyMediaList(MediaReferenceList<T> list)
Parameters
Type | Name | Description |
---|---|---|
MediaReferenceList<T> | list |
Properties
IsModified
Get/Sets the IsModified of the PropertyMedia
Declaration
public override bool IsModified { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsNull
Gets the IsNull of the PropertyMediaList
Declaration
public override bool IsNull { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MediaReferenceList
Get/Sets the MediaReferenceList of the PropertyMediaList
Declaration
public MediaReferenceList<T> MediaReferenceList { get; set; }
Property Value
Type | Description |
---|---|
MediaReferenceList<T> |
PropertyValueType
Gets the PropertyValueType of the PropertyMediaList
Declaration
public override Type PropertyValueType { get; }
Property Value
Type | Description |
---|---|
System.Type | Is always a System.Collections.Generic.List<T> of |
Type
Gets the Type of the PropertyMediaList
Declaration
public override PropertyDataType Type { get; }
Property Value
Type | Description |
---|---|
EPiServer.Core.PropertyDataType | Is always a EPiServer.Core.PropertyDataType.LongString. Will serialize its value as a Json string. |
Value
Get/Sets the Value of the PropertyMediaList
Declaration
public override object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object | Is always of the type |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If the value passed to the setter isn't of the correct type or a non parseable string. |
System.NotSupportedException | If setter is called and the property is EPiServer.Core.PropertyData.IsReadOnly |
Methods
Copy()
Creates a copy of the current PropertyData object
Declaration
public override PropertyData Copy()
Returns
Type | Description |
---|---|
EPiServer.Core.PropertyData | A copy of the current instance |
CreateWritableClone()
Creates a new object that is a copy of the current instance.
Declaration
public override PropertyData CreateWritableClone()
Returns
Type | Description |
---|---|
EPiServer.Core.PropertyData | A new object that is a copy of this instance. |
MakeReadOnly()
Declaration
public override void MakeReadOnly()
ParseToSelf(String)
Declaration
public override void ParseToSelf(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
SaveData(PropertyDataCollection)
Declaration
public override object SaveData(PropertyDataCollection properties)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.PropertyDataCollection | properties |
Returns
Type | Description |
---|---|
System.Object |
SetDefaultValue()
Declaration
protected override void SetDefaultValue()