Class PropertyBlob
Property that is used to store a binary large object.
Inherited Members
Namespace: EPiServer.SpecializedProperties
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[PropertyDefinitionTypePlugIn]
public class PropertyBlob : PropertyString, IReadOnly<PropertyData>, IReadOnlyConstructors
PropertyBlob()
Initializes a new instance of the PropertyBlob class.
Declaration
public PropertyBlob()PropertyBlob(IBlobFactory)
Initializes a new instance of the PropertyBlob class.
Declaration
public PropertyBlob(IBlobFactory blobFactory)Parameters
| Type | Name | Description | 
|---|---|---|
| IBlobFactory | blobFactory | 
Properties
BinaryData
Gets or sets the binary data.
Declaration
public Blob BinaryData { get; set; }Property Value
| Type | Description | 
|---|---|
| Blob | The binary data. | 
PropertyValueType
Gets the System.Type of the property value.
Declaration
public override Type PropertyValueType { get; }Property Value
| Type | Description | 
|---|---|
| System.Type | The System.Type of the property value. | 
Overrides
Value
Gets or sets the value of the property.
Declaration
public override object Value { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Object | The value of the property. | 
Overrides
Remarks
Value returns null if the property has no value defined.
Methods
Clear()
Clear value and set as null/undefined.
Declaration
public override void Clear()Overrides
Remarks
If the property is a required property, calling the Clear method will throw a RequiredPropertyValueException exception. Check IsRequired to see if this a required property.
IsEmptyValue(Object)
Called to determine if current value is considered empty.
Declaration
protected override bool IsEmptyValue(object value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | value | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
Remarks
Default implementation returns true for System.String.Empty
SaveData(PropertyDataCollection)
Return any internal data that will be stored to the database. "Serialize".
Declaration
public override object SaveData(PropertyDataCollection properties)Parameters
| Type | Name | Description | 
|---|---|---|
| PropertyDataCollection | properties | Current property collection. | 
Returns
| Type | Description | 
|---|---|
| System.Object | The "serializable" value of the property. | 
