Interface IValueConnector2
Namespace: Umbraco.Cms.Core.Deploy
Assembly: Umbraco.Core.dll
Syntax
public interface IValueConnector2 : IValueConnector
  Remarks
This interface will be merged back into IValueConnector and removed in Umbraco 13.
Methods
View SourceFromArtifact(String, IPropertyType, Object, IContextCache)
Gets the content property value corresponding to a deploy property value.
Declaration
object FromArtifact(string value, IPropertyType propertyType, object currentValue, IContextCache contextCache)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | value | The deploy property value.  | 
      
| IPropertyType | propertyType | The value property type  | 
      
| System.Object | currentValue | The current content property value.  | 
      
| IContextCache | contextCache | The context cache.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Object | The content property value.  | 
      
ToArtifact(Object, IPropertyType, ICollection<ArtifactDependency>, IContextCache)
Gets the deploy property value corresponding to a content property value, and gather dependencies.
Declaration
string ToArtifact(object value, IPropertyType propertyType, ICollection<ArtifactDependency> dependencies, IContextCache contextCache)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | value | The content property value.  | 
      
| IPropertyType | propertyType | The value property type  | 
      
| ICollection<ArtifactDependency> | dependencies | The content dependencies.  | 
      
| IContextCache | contextCache | The context cache.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The deploy property value.  | 
      
Explicit Interface Implementations
View SourceIValueConnector.FromArtifact(String, IPropertyType, Object)
Gets the content property value corresponding to a deploy property value.
Declaration
object IValueConnector.FromArtifact(string value, IPropertyType propertyType, object currentValue)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | value | The deploy property value.  | 
      
| IPropertyType | propertyType | The value property type  | 
      
| System.Object | currentValue | The current content property value.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Object | The content property value.  | 
      
IValueConnector.ToArtifact(Object, IPropertyType, ICollection<ArtifactDependency>)
Gets the deploy property value corresponding to a content property value, and gather dependencies.
Declaration
string IValueConnector.ToArtifact(object value, IPropertyType propertyType, ICollection<ArtifactDependency> dependencies)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | value | The content property value.  | 
      
| IPropertyType | propertyType | The value property type  | 
      
| ICollection<ArtifactDependency> | dependencies | The content dependencies.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The deploy property value.  |