OutputCacheAttribute Constructor (OutputCacheLocation, Int32)
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Initializes a new instance of the OutputCacheAttribute class with the specified OutputCacheLocation and duration.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Sub New ( _
location As OutputCacheLocation, _
duration As Integer _
)
'Usage
Dim location As OutputCacheLocation
Dim duration As Integer
Dim instance As New OutputCacheAttribute(location, _
duration)
public OutputCacheAttribute(
OutputCacheLocation location,
int duration
)
public:
OutputCacheAttribute(
OutputCacheLocation location,
int duration
)
new :
location:OutputCacheLocation *
duration:int -> OutputCacheAttribute
public function OutputCacheAttribute(
location : OutputCacheLocation,
duration : int
)
Parameters
- location
Type: System.ServiceModel.DomainServices.Server.OutputCacheLocation
The location where caching can be applied.
- duration
Type: System.Int32
The duration in seconds for which the response should be cached.