-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathOutputCacheSection.xml
More file actions
400 lines (363 loc) · 26.8 KB
/
Copy pathOutputCacheSection.xml
File metadata and controls
400 lines (363 loc) · 26.8 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
<Type Name="OutputCacheSection" FullName="System.Web.Configuration.OutputCacheSection">
<TypeSignature Language="C#" Value="public sealed class OutputCacheSection : System.Configuration.ConfigurationSection" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed OutputCacheSection extends System.Configuration.ConfigurationSection" />
<TypeSignature Language="DocId" Value="T:System.Web.Configuration.OutputCacheSection" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class OutputCacheSection
Inherits ConfigurationSection" />
<TypeSignature Language="F#" Value="type OutputCacheSection = class
 inherit ConfigurationSection" />
<TypeSignature Language="C++ CLI" Value="public ref class OutputCacheSection sealed : System::Configuration::ConfigurationSection" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Configuration.ConfigurationSection</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Configures the output cache for a Web application. This class cannot be inherited.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
> [!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.Configuration.OutputCacheSection> class allows you to programmatically access and modify the `OutputCache` section.
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.CacheSection" />
<altmember cref="T:System.Web.Configuration.OutputCacheSettingsSection" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/xsbfdd8c(v=vs.100)">ASP.NET Caching</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/6hbbsfk6(v=vs.100)">Caching Application Data</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/w9s3a17d(v=vs.100)">Setting the Cacheability of a Page</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public OutputCacheSection ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Configuration.OutputCacheSection.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 OutputCacheSection();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.Configuration.OutputCacheSection" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.Configuration.OutputCacheSection.%23ctor%2A> constructor is not intended to be used directly from your code. It is called by the ASP.NET configuration system. You obtain an instance of the <xref:System.Web.Configuration.OutputCacheSection> class by using the <xref:System.Configuration.Configuration.GetSection%2A> method.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DefaultProviderName">
<MemberSignature Language="C#" Value="public string DefaultProviderName { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string DefaultProviderName" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.OutputCacheSection.DefaultProviderName" />
<MemberSignature Language="VB.NET" Value="Public Property DefaultProviderName As String" />
<MemberSignature Language="F#" Value="member this.DefaultProviderName : string with get, set" Usage="System.Web.Configuration.OutputCacheSection.DefaultProviderName" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ DefaultProviderName { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("defaultProvider", DefaultValue="AspNetInternalProvider")]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("defaultProvider", DefaultValue="AspNetInternalProvider")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Configuration.StringValidator(MinLength=1)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.StringValidator(MinLength=1)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the name of the ASP.NET default output-cache provider that is stored in the <see cref="T:System.Web.Configuration.OutputCacheSection" /> element of a configuration file.</summary>
<value>The name of the default provider.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The default output-cache provider for ASP.NET is not a provider of type <xref:System.Web.Caching.OutputCacheProvider>. It is the original, in-memory provider that is used by ASP.NET for output caching. The default value is `AspNetInternalProvider`.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="EnableFragmentCache">
<MemberSignature Language="C#" Value="public bool EnableFragmentCache { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool EnableFragmentCache" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.OutputCacheSection.EnableFragmentCache" />
<MemberSignature Language="VB.NET" Value="Public Property EnableFragmentCache As Boolean" />
<MemberSignature Language="F#" Value="member this.EnableFragmentCache : bool with get, set" Usage="System.Web.Configuration.OutputCacheSection.EnableFragmentCache" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool EnableFragmentCache { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("enableFragmentCache", DefaultValue=true)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("enableFragmentCache", DefaultValue=true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the fragment cache is enabled.</summary>
<value>
<see langword="true" /> if the fragment cache is enabled; otherwise, <see langword="false" />. The default is <see langword="true" />.</value>
<remarks>
<format type="text/markdown"><) directive or caching profile used. For more information, see <xref:System.Web.Configuration.OutputCacheSettingsSection> and <xref:System.Web.Configuration.OutputCacheProfile>.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.OutputCacheSection.EnableFragmentCache%2A> property.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.OutputCacheSection/CS/OutputCacheSection.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.OutputCacheSection/VB/OutputCacheSection.vb" id="Snippet4":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.OutputCacheSettingsSection" />
<altmember cref="T:System.Web.Configuration.OutputCacheProfile" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/6hbbsfk6(v=vs.100)">Caching Application Data</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/w9s3a17d(v=vs.100)">Setting the Cacheability of a Page</related>
</Docs>
</Member>
<Member MemberName="EnableKernelCacheForVaryByStar">
<MemberSignature Language="C#" Value="public bool EnableKernelCacheForVaryByStar { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool EnableKernelCacheForVaryByStar" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.OutputCacheSection.EnableKernelCacheForVaryByStar" />
<MemberSignature Language="VB.NET" Value="Public Property EnableKernelCacheForVaryByStar As Boolean" />
<MemberSignature Language="F#" Value="member this.EnableKernelCacheForVaryByStar : bool with get, set" Usage="System.Web.Configuration.OutputCacheSection.EnableKernelCacheForVaryByStar" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool EnableKernelCacheForVaryByStar { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("enableKernelCacheForVaryByStar", DefaultValue=false)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("enableKernelCacheForVaryByStar", DefaultValue=false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether kernel caching is enabled.</summary>
<value>
<see langword="true" /> if kernel caching is enabled; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><.
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.OutputCacheSettingsSection" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/6hbbsfk6(v=vs.100)">Caching Application Data</related>
</Docs>
</Member>
<Member MemberName="EnableOutputCache">
<MemberSignature Language="C#" Value="public bool EnableOutputCache { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool EnableOutputCache" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.OutputCacheSection.EnableOutputCache" />
<MemberSignature Language="VB.NET" Value="Public Property EnableOutputCache As Boolean" />
<MemberSignature Language="F#" Value="member this.EnableOutputCache : bool with get, set" Usage="System.Web.Configuration.OutputCacheSection.EnableOutputCache" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool EnableOutputCache { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("enableOutputCache", DefaultValue=true)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("enableOutputCache", DefaultValue=true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the output cache is enabled.</summary>
<value>
<see langword="true" /> if the output cache is enabled; otherwise, <see langword="false" />. The default is <see langword="true" />.</value>
<remarks>
<format type="text/markdown"><) directive or caching profile used by the page. For more information, see <xref:System.Web.Configuration.OutputCacheSettingsSection> and <xref:System.Web.Configuration.OutputCacheProfile>.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.OutputCacheSection.EnableOutputCache%2A> property.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.OutputCacheSection/CS/OutputCacheSection.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.OutputCacheSection/VB/OutputCacheSection.vb" id="Snippet3":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.OutputCacheSettingsSection" />
<altmember cref="T:System.Web.Configuration.OutputCacheProfile" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/6hbbsfk6(v=vs.100)">Caching Application Data</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/w9s3a17d(v=vs.100)">Setting the Cacheability of a Page</related>
</Docs>
</Member>
<Member MemberName="OmitVaryStar">
<MemberSignature Language="C#" Value="public bool OmitVaryStar { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool OmitVaryStar" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.OutputCacheSection.OmitVaryStar" />
<MemberSignature Language="VB.NET" Value="Public Property OmitVaryStar As Boolean" />
<MemberSignature Language="F#" Value="member this.OmitVaryStar : bool with get, set" Usage="System.Web.Configuration.OutputCacheSection.OmitVaryStar" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool OmitVaryStar { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("omitVaryStar", DefaultValue=false)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("omitVaryStar", DefaultValue=false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the <see langword="vary" /> header is enabled.</summary>
<value>
<see langword="true" /> if the <see langword="vary" /> header is enabled; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The `vary` header indicates the request-header fields that the server uses to determine which of multiple cached responses are sent in response to a client request. The default for the <xref:System.Web.Configuration.OutputCacheSection.OmitVaryStar%2A> property is `false`. By default, ASP.NET sends the `vary` header in all `POST` requests, as well as in all GET-request query strings. If the <xref:System.Web.Configuration.OutputCacheSection.OmitVaryStar%2A> is `true`, ASP.NET omits the `vary` header when returning the response for cached pages, provided that the `GET` request to a response is cached with no `VaryByCustom` property and the `POST` request to a response is cached with no `VaryByParam` property and no `VaryByCustom` property.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.OutputCacheSection.OmitVaryStar%2A> property.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.OutputCacheSection/CS/OutputCacheSection.cs" id="Snippet5":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.OutputCacheSection/VB/OutputCacheSection.vb" id="Snippet5":::
]]></format>
</remarks>
<altmember cref="M:System.Web.HttpCachePolicy.SetOmitVaryStar(System.Boolean)" />
<altmember cref="T:System.Web.Configuration.OutputCacheSettingsSection" />
<altmember cref="T:System.Web.Configuration.OutputCacheProfile" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/6hbbsfk6(v=vs.100)">Caching Application Data</related>
</Docs>
</Member>
<Member MemberName="Properties">
<MemberSignature Language="C#" Value="protected override System.Configuration.ConfigurationPropertyCollection Properties { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.ConfigurationPropertyCollection Properties" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.OutputCacheSection.Properties" />
<MemberSignature Language="VB.NET" Value="Protected Overrides ReadOnly Property Properties As ConfigurationPropertyCollection" />
<MemberSignature Language="F#" Value="member this.Properties : System.Configuration.ConfigurationPropertyCollection" Usage="System.Web.Configuration.OutputCacheSection.Properties" />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual property System::Configuration::ConfigurationPropertyCollection ^ Properties { System::Configuration::ConfigurationPropertyCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Configuration.ConfigurationPropertyCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Providers">
<MemberSignature Language="C#" Value="public System.Configuration.ProviderSettingsCollection Providers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.ProviderSettingsCollection Providers" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.OutputCacheSection.Providers" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Providers As ProviderSettingsCollection" />
<MemberSignature Language="F#" Value="member this.Providers : System.Configuration.ProviderSettingsCollection" Usage="System.Web.Configuration.OutputCacheSection.Providers" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Configuration::ProviderSettingsCollection ^ Providers { System::Configuration::ProviderSettingsCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("providers")]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("providers")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Configuration.ProviderSettingsCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the collection of output-cache providers that are stored in the <see cref="T:System.Web.Configuration.OutputCacheSection" /> element of a configuration file.</summary>
<value>The collection of providers.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SendCacheControlHeader">
<MemberSignature Language="C#" Value="public bool SendCacheControlHeader { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool SendCacheControlHeader" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.OutputCacheSection.SendCacheControlHeader" />
<MemberSignature Language="VB.NET" Value="Public Property SendCacheControlHeader As Boolean" />
<MemberSignature Language="F#" Value="member this.SendCacheControlHeader : bool with get, set" Usage="System.Web.Configuration.OutputCacheSection.SendCacheControlHeader" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool SendCacheControlHeader { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("sendCacheControlHeader", DefaultValue=true)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("sendCacheControlHeader", DefaultValue=true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the <see langword="cache-control:private" /> header is sent by the output cache module by default.</summary>
<value>
<see langword="true" /> if the sending of <see langword="cache-control:private" /> header is enabled; otherwise, <see langword="false" />. The default is <see langword="true" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.Configuration.OutputCacheSection.SendCacheControlHeader%2A> applies to content with no output caching specified. When it is set to `false`, the `cache-control:private` header is not sent by default.
> [!NOTE]
> This setting enables the content to be cached on the client by default.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.OutputCacheSection.SendCacheControlHeader%2A> property.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.OutputCacheSection/CS/OutputCacheSection.cs" id="Snippet6":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.OutputCacheSection/VB/OutputCacheSection.vb" id="Snippet6":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.OutputCacheSettingsSection" />
<altmember cref="T:System.Web.Configuration.OutputCacheProfile" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/6hbbsfk6(v=vs.100)">Caching Application Data</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/w9s3a17d(v=vs.100)">Setting the Cacheability of a Page</related>
</Docs>
</Member>
</Members>
</Type>