Table of Contents

AddHttpCacheableOptions Method

Definition

AddHttpCacheableOptions(IMvcBuilder, Action<HttpCacheableOptions>)

Registers the specified setup to configure HttpCacheableOptions in the underlying service collection of builder.

public static IMvcBuilder AddHttpCacheableOptions(this IMvcBuilder builder, Action<HttpCacheableOptions> setup = null)

Parameters

builder IMvcBuilder

The IMvcBuilder to extend.

setup Action<HttpCacheableOptions>

The HttpCacheableOptions which may be configured.

Returns

IMvcBuilder

A reference to builder so that additional configuration calls can be chained.

Exceptions

ArgumentNullException

builder cannot be null.

ArgumentException

setup failed to configure an instance of HttpCacheableOptions in a valid state.