Interface IValueConnector
Defines methods that can convert a property value to / from an environment-agnostic string.
Namespace: Umbraco.Core.Deploy
Assembly: Umbraco.Core.dll
Syntax
public interface IValueConnector
Remarks
Property values may contain values such as content identifiers, that would be local to one environment, and need to be converted in order to be deployed. Connectors also deal with serializing to / from string.
Properties
View SourcePropertyEditorAliases
Gets the property editor aliases that the value converter supports by default.
Declaration
IEnumerable<string> PropertyEditorAliases { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Methods
View SourceFromArtifact(String, PropertyType, Object)
Declaration
object FromArtifact(string value, PropertyType propertyType, object currentValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | |
PropertyType | propertyType | |
System.Object | currentValue |
Returns
Type | Description |
---|---|
System.Object |
ToArtifact(Object, PropertyType, ICollection<ArtifactDependency>)
Gets the deploy property value corresponding to a content property value, and gather dependencies.
Declaration
string ToArtifact(object value, PropertyType propertyType, ICollection<ArtifactDependency> dependencies)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The content property value. |
PropertyType | propertyType | The value property type |
System.Collections.Generic.ICollection<ArtifactDependency> | dependencies | The content dependencies. |
Returns
Type | Description |
---|---|
System.String | The deploy property value. |