Class GridCellValueConnectorExtensions
Extension methods adding backwards-compatability between IGridCellValueConnector and IGridCellValueConnector2.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Deploy
Assembly: Umbraco.Infrastructure.dll
Syntax
public static class GridCellValueConnectorExtensions
Remarks
These extension methods will be removed in Umbraco 13.
Methods
View SourceGetValue(IGridCellValueConnector, GridValue.GridControl, ICollection<ArtifactDependency>, IContextCache)
Gets the value.
Declaration
public static string GetValue(this IGridCellValueConnector connector, GridValue.GridControl gridControl, ICollection<ArtifactDependency> dependencies, IContextCache contextCache)
Parameters
Type | Name | Description |
---|---|---|
IGridCellValueConnector | connector | The connector. |
GridValue.GridControl | gridControl | The grid control. |
ICollection<ArtifactDependency> | dependencies | The dependencies. |
IContextCache | contextCache | The context cache. |
Returns
Type | Description |
---|---|
System.String | The value. |
Remarks
This extension method tries to make use of the IContextCache on types also implementing IGridCellValueConnector2.
SetValue(IGridCellValueConnector, GridValue.GridControl, IContextCache)
Sets the value.
Declaration
public static void SetValue(this IGridCellValueConnector connector, GridValue.GridControl gridControl, IContextCache contextCache)
Parameters
Type | Name | Description |
---|---|---|
IGridCellValueConnector | connector | The connector. |
GridValue.GridControl | gridControl | The grid control. |
IContextCache | contextCache | The context cache. |
Remarks
This extension method tries to make use of the IContextCache on types also implementing IGridCellValueConnector2.