CacheProfile.Location 属性

定义

获取或设置必须缓存特定 URL 中的数据的位置。 如果此属性设置为非 null 值,则会在 中 Response设置“Cache-control”标头。

public:
 property Nullable<Microsoft::AspNetCore::Mvc::ResponseCacheLocation> Location { Nullable<Microsoft::AspNetCore::Mvc::ResponseCacheLocation> get(); void set(Nullable<Microsoft::AspNetCore::Mvc::ResponseCacheLocation> value); };
public Microsoft.AspNetCore.Mvc.ResponseCacheLocation? Location { get; set; }
member this.Location : Nullable<Microsoft.AspNetCore.Mvc.ResponseCacheLocation> with get, set
Public Property Location As Nullable(Of ResponseCacheLocation)

属性值

适用于