Class Property.PropertyValue
Represents a property value.
Inheritance
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class Property.PropertyValue : IPropertyValue, IDeepCloneable
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()
Declaration
public object DeepClone()
Returns
| Type | Description |
|---|---|
| object |
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Equals(PropertyValue?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Property.PropertyValue? other)
Parameters
| Type | Name | Description |
|---|---|---|
| Property.PropertyValue | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |