Share via


OutputCacheAttribute Constructor (String)

[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 cache profile.

Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

'Declaration
Public Sub New ( _
    cacheProfile As String _
)
'Usage
Dim cacheProfile As String

Dim instance As New OutputCacheAttribute(cacheProfile)
public OutputCacheAttribute(
    string cacheProfile
)
public:
OutputCacheAttribute(
    String^ cacheProfile
)
new : 
        cacheProfile:string -> OutputCacheAttribute
public function OutputCacheAttribute(
    cacheProfile : String
)

Parameters

  • cacheProfile
    Type: System.String
    The name of the cache settings.

See Also

Reference

OutputCacheAttribute Class

OutputCacheAttribute Overload

System.ServiceModel.DomainServices.Server Namespace