Class PropertyLongString
A property representing a string value of undetermined length.
Inheritance
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class PropertyLongString : PropertyData, IReadOnly<PropertyData>, IReadOnly, ILazyProperty
Constructors
PropertyLongString()
Initializes a new instance of the PropertyLongString class.
Declaration
public PropertyLongString()
PropertyLongString(String)
Initializes a new instance of the PropertyLongString class.
Declaration
public PropertyLongString(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value for the new PropertyLongString. |
Properties
IsNull
Check for null property (no value has been set).
Declaration
public override bool IsNull { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
LongString
Gets or sets the value of the property typed as a System.String.
Declaration
protected virtual string LongString { get; set; }
Property Value
Type | Description |
---|---|
System.String | The value of the property typed as a System.String. |
PageLink
Gets or sets the PageReference to the current page.
Declaration
public virtual PageReference PageLink { get; set; }
Property Value
Type | Description |
---|---|
PageReference | The PageReference to the current page. |
PropertyValueType
Gets the System.Type for this property.
Declaration
public override Type PropertyValueType { get; }
Property Value
Type | Description |
---|---|
System.Type | The System.Type of the property value. |
Overrides
Type
Property type as defined by enum PropertyDataType.
Declaration
public override PropertyDataType Type { get; }
Property Value
Type | Description |
---|---|
PropertyDataType | The type as defined by enum PropertyDataType. |
Overrides
Value
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
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
Parse(String)
Create a new PropertyLongString with the value passed to the method.
Declaration
public static PropertyLongString Parse(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value for the new PropertyLongString. |
Returns
Type | Description |
---|---|
PropertyLongString | A new instance of PropertyLongString with the value passed to the method. |
Remarks
As PropertyLongString stores its value as a string no parsing is necessary.
ParseToSelf(String)
Parses a string and assigns it to the value of this instance.
Declaration
public override void ParseToSelf(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The new value for the property. |
Overrides
Remarks
As PropertyLongString stores its value as a string no parsing is necessary.
SetDefaultValue()
Sets the default value for this property.
Declaration
protected override void SetDefaultValue()
Overrides
Explicit Interface Implementations
ILazyProperty.AssignValueFactory(Func<Object>)
Assigns a factory method that can provide a property with the value.
Declaration
void ILazyProperty.AssignValueFactory(Func<object> valueFactory)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Object> | valueFactory | The value factory method. |
ILazyProperty.HasLazyValue
Declaration
bool ILazyProperty.HasLazyValue { get; }
Returns
Type | Description |
---|---|
System.Boolean |