Aracılığıyla paylaş


HttpCachePolicyWrapper.SetCacheability Yöntem

Tanım

Cache-Control Üst bilgiyi değerlerden birine HttpCacheability ayarlar.

Aşırı Yüklemeler

SetCacheability(HttpCacheability)

Cache-Control Üst bilgiyi belirtilen HttpCacheability değere ayarlar.

SetCacheability(HttpCacheability, String)

Cache-Control Üst bilgiyi belirtilen HttpCacheability değere ayarlar ve yönergesine bir uzantı ekler.

SetCacheability(HttpCacheability)

Cache-Control Üst bilgiyi belirtilen HttpCacheability değere ayarlar.

public:
 override void SetCacheability(System::Web::HttpCacheability cacheability);
public override void SetCacheability (System.Web.HttpCacheability cacheability);
override this.SetCacheability : System.Web.HttpCacheability -> unit
Public Overrides Sub SetCacheability (cacheability As HttpCacheability)

Parametreler

cacheability
HttpCacheability

HttpCacheability Üst bilginin ayarlanacağı numaralandırma değeri.

Özel durumlar

cacheability sabit listesi değerlerinden biri değildir.

Şunlara uygulanır

SetCacheability(HttpCacheability, String)

Cache-Control Üst bilgiyi belirtilen HttpCacheability değere ayarlar ve yönergesine bir uzantı ekler.

public:
 override void SetCacheability(System::Web::HttpCacheability cacheability, System::String ^ field);
public override void SetCacheability (System.Web.HttpCacheability cacheability, string field);
override this.SetCacheability : System.Web.HttpCacheability * string -> unit
Public Overrides Sub SetCacheability (cacheability As HttpCacheability, field As String)

Parametreler

cacheability
HttpCacheability

HttpCacheability Üst bilginin ayarlanacağı numaralandırma değeri.

field
String

Üst bilgisine eklenecek önbellek denetimi uzantısı.

Özel durumlar

field, null değeridir.

cacheabilityveya NoCachedeğildirPrivate.

Şunlara uygulanır