Language

ArmCdnModelFactory.CacheExpirationActionProperties Method

Definition

Defines the parameters for the cache expiration action.

public static Azure.ResourceManager.Cdn.Models.CacheExpirationActionProperties CacheExpirationActionProperties(Azure.ResourceManager.Cdn.Models.CacheBehaviorSetting cacheBehavior = default, Azure.ResourceManager.Cdn.Models.CdnCacheLevel cacheType = default, TimeSpan? cacheDuration = default);
static member CacheExpirationActionProperties : Azure.ResourceManager.Cdn.Models.CacheBehaviorSetting * Azure.ResourceManager.Cdn.Models.CdnCacheLevel * Nullable<TimeSpan> -> Azure.ResourceManager.Cdn.Models.CacheExpirationActionProperties
Public Shared Function CacheExpirationActionProperties (Optional cacheBehavior As CacheBehaviorSetting = Nothing, Optional cacheType As CdnCacheLevel = Nothing, Optional cacheDuration As Nullable(Of TimeSpan) = Nothing) As CacheExpirationActionProperties

Parameters

cacheBehavior
CacheBehaviorSetting

Caching behavior for the requests.

cacheType
CdnCacheLevel

The level at which the content needs to be cached.

cacheDuration
Nullable<TimeSpan>

The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss.

Returns

A new CacheExpirationActionProperties instance for mocking.

Applies to