Freigeben über


DefaultViewLocationCache Konstruktoren

Definition

Überlädt

DefaultViewLocationCache()

Initialisiert eine neue Instanz der DefaultViewLocationCache-Klasse.

DefaultViewLocationCache(TimeSpan)

Initialisiert eine neue instance der DefaultViewLocationCache -Klasse unter Verwendung der angegebenen Cachezeit.

DefaultViewLocationCache()

Initialisiert eine neue Instanz der DefaultViewLocationCache-Klasse.

public DefaultViewLocationCache();
Public Sub New ()

Gilt für:

DefaultViewLocationCache(TimeSpan)

Initialisiert eine neue instance der DefaultViewLocationCache -Klasse unter Verwendung der angegebenen Cachezeit.

public DefaultViewLocationCache(TimeSpan timeSpan);
new System.Web.Mvc.DefaultViewLocationCache : TimeSpan -> System.Web.Mvc.DefaultViewLocationCache
Public Sub New (timeSpan As TimeSpan)

Parameter

timeSpan
TimeSpan

Die Cachezeitspanne.

Ausnahmen

Das Ticks-Attribut des timeSpan Parameters ist auf eine negative Zahl festgelegt.

Gilt für: