-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathOutputCache.xml
More file actions
165 lines (151 loc) · 9.77 KB
/
Copy pathOutputCache.xml
File metadata and controls
165 lines (151 loc) · 9.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<Type Name="OutputCache" FullName="System.Web.Caching.OutputCache">
<TypeSignature Language="C#" Value="public static class OutputCache" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit OutputCache extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Web.Caching.OutputCache" />
<TypeSignature Language="VB.NET" Value="Public Class OutputCache" />
<TypeSignature Language="F#" Value="type OutputCache = class" />
<TypeSignature Language="C++ CLI" Value="public ref class OutputCache abstract sealed" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Provides programmatic access to the output-cache providers that are specified in the configuration file for a Web site.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Output caching stores the generated output of pages, controls, and HTTP responses in memory. Output caching enables you to cache alternate representations of content depending on the query string and form-post parameters to a page, on browser type, or on the language of the user. You can configure ASP.NET to cache an output-cache entry for a specific period. You can also configure ASP.NET to evict a cache entry automatically based on an external event such as changes in the database that the cache depends on.
> [!IMPORTANT]
> Output caching is a performance optimization feature. The `VaryBy` settings are designed to cache alternate representations of a resource based on request characteristics; they are not designed to isolate audiences or classes of content. Do not rely on cache variation to separate personalized, tenant-specific, authorization-dependent, or otherwise sensitive responses. Enforce any required isolation between request contexts independently of the cache configuration.
The <xref:System.Web.Caching.OutputCache> class enables you to extend output caching. For example, you can configure one or more custom output-cache providers that target other storage devices such as local or remote disks, databases, cloud storage, and distributed cache engines.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="DefaultProviderName">
<MemberSignature Language="C#" Value="public static string DefaultProviderName { get; }" />
<MemberSignature Language="ILAsm" Value=".property string DefaultProviderName" />
<MemberSignature Language="DocId" Value="P:System.Web.Caching.OutputCache.DefaultProviderName" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property DefaultProviderName As String" />
<MemberSignature Language="F#" Value="static member DefaultProviderName : string" Usage="System.Web.Caching.OutputCache.DefaultProviderName" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::String ^ DefaultProviderName { System::String ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the name of the default provider that is configured for the output cache.</summary>
<value>The name of the default provider.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
By default, all HTTP responses, rendered pages, and controls use `AspNetInternalProvider`, the in-memory output cache provider. To use a different provider, set the `defaultProvider` attribute to the name of the alternative provider.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Deserialize">
<MemberSignature Language="C#" Value="public static object Deserialize (System.IO.Stream stream);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig object Deserialize(class System.IO.Stream stream) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Caching.OutputCache.Deserialize(System.IO.Stream)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function Deserialize (stream As Stream) As Object" />
<MemberSignature Language="F#" Value="static member Deserialize : System.IO.Stream -> obj" Usage="System.Web.Caching.OutputCache.Deserialize stream" />
<MemberSignature Language="C++ CLI" Value="public:
 static System::Object ^ Deserialize(System::IO::Stream ^ stream);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="stream" Type="System.IO.Stream" />
</Parameters>
<Docs>
<param name="stream">The data to deserialize.</param>
<summary>Deserializes a binary object into output-cache data.</summary>
<returns>An object that contains the deserialized data.</returns>
<remarks>
<format type="text/markdown"><]
This method is used by output-cache providers that are operating under partial trust.
]]></format>
</remarks>
<exception cref="T:System.ArgumentException">The deserialized object that is returned by the method is not a valid output-cache type.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="stream" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Providers">
<MemberSignature Language="C#" Value="public static System.Web.Caching.OutputCacheProviderCollection Providers { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Web.Caching.OutputCacheProviderCollection Providers" />
<MemberSignature Language="DocId" Value="P:System.Web.Caching.OutputCache.Providers" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property Providers As OutputCacheProviderCollection" />
<MemberSignature Language="F#" Value="static member Providers : System.Web.Caching.OutputCacheProviderCollection" Usage="System.Web.Caching.OutputCache.Providers" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::Web::Caching::OutputCacheProviderCollection ^ Providers { System::Web::Caching::OutputCacheProviderCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.Caching.OutputCacheProviderCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a collection of the output-cache providers that are specified in the configuration file for a Web site.</summary>
<value>The collection of configured providers.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
You configure one or more custom output-cache providers that target other storage devices, such as local or remote disks, databases, cloud storage, and distributed cache engines. To configure custom output-cache providers, you add a provider to the collection that is represented by the <xref:System.Web.Caching.OutputCache.Providers%2A> property.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Serialize">
<MemberSignature Language="C#" Value="public static void Serialize (System.IO.Stream stream, object data);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void Serialize(class System.IO.Stream stream, object data) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Caching.OutputCache.Serialize(System.IO.Stream,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub Serialize (stream As Stream, data As Object)" />
<MemberSignature Language="F#" Value="static member Serialize : System.IO.Stream * obj -> unit" Usage="System.Web.Caching.OutputCache.Serialize (stream, data)" />
<MemberSignature Language="C++ CLI" Value="public:
 static void Serialize(System::IO::Stream ^ stream, System::Object ^ data);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="stream" Type="System.IO.Stream" />
<Parameter Name="data" Type="System.Object" />
</Parameters>
<Docs>
<param name="stream">The object to contain the serialized binary data.</param>
<param name="data">The output-cache data to serialize.</param>
<summary>Serializes output-cache data into binary data.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is used by output-cache providers that are operating under partial trust.
]]></format>
</remarks>
<exception cref="T:System.ArgumentException">
<paramref name="data" /> is not one of the specified output-cache types.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="data" /> is <see langword="null" /> or <paramref name="stream" /> is <see langword="null" />.</exception>
</Docs>
</Member>
</Members>
</Type>