Class ContentDataValueProvider

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. System.Web.Mvc.IValueProvider that extracts the current ContentReference or IContentData instance from the current request.

Inheritance
System.Object
ContentDataValueProvider
Implements
System.Web.Mvc.IValueProvider
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.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class ContentDataValueProvider : IValueProvider

Constructors

ContentDataValueProvider(RequestContext, IViewContentRetriever)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ContentDataValueProvider class.

Declaration
public ContentDataValueProvider(RequestContext requestContext, IViewContentRetriever contentRetriever)
Parameters
Type Name Description
System.Web.Routing.RequestContext requestContext

The request context.

IViewContentRetriever contentRetriever

The content loader.

Exceptions
Type Condition
System.ArgumentNullException

requestContext

Properties

CurrentBlockKey

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets or sets the argument key that is associated with the current block.

Declaration
public virtual string CurrentBlockKey { get; set; }
Property Value
Type Description
System.String

The key associated with the current block.

CurrentContentKey

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets or sets the argument key that is associated with the current IContentData instance.

Declaration
public virtual string CurrentContentKey { get; set; }
Property Value
Type Description
System.String

The key associated with the current content data instance.

CurrentPageKey

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets or sets the argument key that is associated with the current page.

Declaration
public virtual string CurrentPageKey { get; set; }
Property Value
Type Description
System.String

The key associated with the current page.

Methods

ContainsPrefix(String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines whether the current provider contains the given prefix.

Declaration
public bool ContainsPrefix(string prefix)
Parameters
Type Name Description
System.String prefix

The prefix to check for.

Returns
Type Description
System.Boolean

true if the current provider contains the prefix; otherwise, false.

GetValue(String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the value that is associated with the given key.

Declaration
public ValueProviderResult GetValue(string key)
Parameters
Type Name Description
System.String key

The key associated with the value.

Returns
Type Description
System.Web.Mvc.ValueProviderResult

A System.Web.Mvc.ValueProviderResult or null if no value was found for the given key.

Implements

System.Web.Mvc.IValueProvider

Extension Methods