Export (0) Print
Expand All

OutputCacheAttribute Constructor (OutputCacheLocation, Int32)

WCF RIA Services

[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)

public OutputCacheAttribute(
	OutputCacheLocation location,
	int duration


Type: System.ServiceModel.DomainServices.Server.OutputCacheLocation
The location where caching can be applied.
Type: System.Int32
The duration in seconds for which the response should be cached.
© 2014 Microsoft