November Happy Hour will be moved to Thursday December 5th.

Class EditHintCollection<TViewModel, TContentData>

Collection of connections between view model properties and content data properties

Inheritance
System.Object
EditHintCollection<TViewModel, TContentData>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class EditHintCollection<TViewModel, TContentData> : FullRefreshEditHintCollection<TContentData> where TContentData : IContentData
Type Parameters
Name Description
TViewModel

The type of the view model.

TContentData

The type of the content data.

Constructors

EditHintCollection(IList<EditHint>, IList<String>)

Initializes a new instance of the EditHintCollection<TViewModel, TContentData> class.

Declaration
public EditHintCollection(IList<EditHint> backingPropertyHints, IList<string> fullRefreshEditHints)
Parameters
Type Name Description
System.Collections.Generic.IList<EditHint> backingPropertyHints

The backing property hints.

System.Collections.Generic.IList<System.String> fullRefreshEditHints

The full refresh edit hints.

Properties

Connections

Gets the property connections between the view model and IContent.

Declaration
public IEnumerable<EditHint> Connections { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<EditHint>

Methods

AddConnection<TResult>(Expression<Func<TViewModel, TResult>>, Expression<Func<TContentData, TResult>>)

Adds a connection between a view model property and a content data property.

Declaration
public EditHintCollection<TViewModel, TContentData> AddConnection<TResult>(Expression<Func<TViewModel, TResult>> viewModelProperty, Expression<Func<TContentData, TResult>> contentDataProperty)
Parameters
Type Name Description
System.Linq.Expressions.Expression<System.Func<TViewModel, TResult>> viewModelProperty

The property on the view model.

System.Linq.Expressions.Expression<System.Func<TContentData, TResult>> contentDataProperty

The property on the content data object.

Returns
Type Description
EditHintCollection<TViewModel, TContentData>
Type Parameters
Name Description
TResult

The type of the result.

Extension Methods