Class Property.PropertyValue
Represents a property value.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class Property.PropertyValue : IPropertyValue, IDeepCloneable
Constructors
View SourcePropertyValue()
Declaration
public PropertyValue()
Properties
View SourceCulture
Gets or sets the culture of the property.
Declaration
public string? Culture { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The culture is either null (invariant) or a non-empty string. If the property is set with an empty or whitespace value, its value is converted to null.
EditedValue
Gets or sets the edited value of the property.
Declaration
public object? EditedValue { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
PublishedValue
Gets or sets the published value of the property.
Declaration
public object? PublishedValue { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Segment
Gets or sets the segment of the property.
Declaration
public string? Segment { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The segment is either null (neutral) or a non-empty string. If the property is set with an empty or whitespace value, its value is converted to null.
Methods
View SourceClone()
Clones the property value.
Declaration
public IPropertyValue Clone()
Returns
| Type | Description |
|---|---|
| IPropertyValue |
DeepClone()
Creates a deep clone of the current object.
Declaration
public object DeepClone()
Returns
| Type | Description |
|---|---|
| object | A deep clone of the current object. |
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Equals(PropertyValue?)
Declaration
public bool Equals(Property.PropertyValue? other)
Parameters
| Type | Name | Description |
|---|---|---|
| Property.PropertyValue | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |