Skip to content

Commit 418da19

Browse files
committed
delete C++ snippet refs from System.Net
1 parent 9647393 commit 418da19

File tree

115 files changed

+5816
-6682
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+5816
-6682
lines changed

xml/System.Net.Cache/HttpCacheAgeControl.xml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,18 @@
4242
<Docs>
4343
<summary>Specifies the meaning of time values that control caching behavior for resources obtained using <see cref="T:System.Net.HttpWebRequest" /> objects.</summary>
4444
<remarks>
45-
<format type="text/markdown"><![CDATA[
46-
47-
## Remarks
48-
This enumeration is used by members of the <xref:System.Net.Cache.HttpRequestCachePolicy> class to configure the time values for cache policies.
49-
50-
51-
52-
## Examples
53-
The following code example creates a policy based on MaxAgeAndMinFresh.
54-
55-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Remoting/NCLSimpleCache/CPP/NCLSimpleCache.cpp" id="Snippet9":::
56-
:::code language="csharp" source="~/snippets/csharp/System.Net/WebRequest/CachePolicy/example.cs" id="Snippet9":::
45+
<format type="text/markdown"><![CDATA[
46+
47+
## Remarks
48+
This enumeration is used by members of the <xref:System.Net.Cache.HttpRequestCachePolicy> class to configure the time values for cache policies.
49+
50+
51+
52+
## Examples
53+
The following code example creates a policy based on MaxAgeAndMinFresh.
5754
55+
:::code language="csharp" source="~/snippets/csharp/System.Net/WebRequest/CachePolicy/example.cs" id="Snippet9":::
56+
5857
]]></format>
5958
</remarks>
6059
<related type="Article" href="/dotnet/framework/network-programming/cache-management-for-network-applications">Cache Management for Network Applications</related>

xml/System.Net.Cache/HttpRequestCacheLevel.xml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,24 @@
4242
<Docs>
4343
<summary>Specifies caching behavior for resources obtained using the Hypertext Transfer protocol (HTTP).</summary>
4444
<remarks>
45-
<format type="text/markdown"><![CDATA[
46-
47-
## Remarks
48-
This enumeration is used to set the cache level specified by <xref:System.Net.Cache.HttpRequestCachePolicy> objects.
49-
50-
This `BypassCache` value is the default cache behavior specified in the machine configuration file that ships with the .NET Framework. No entries are taken from caches, added to caches, or removed from caches between the client and server.
51-
52-
The <xref:System.Net.HttpWebRequest.DefaultCachePolicy%2A?displayProperty=nameWithType> property is used to get or set the default cache policy for <xref:System.Net.HttpWebRequest> instances. The <xref:System.Net.WebRequest.DefaultCachePolicy%2A?displayProperty=nameWithType> property is used to get or set the default cache policy for a <xref:System.Net.WebRequest> instance. The <xref:System.Net.WebRequest.CachePolicy%2A> property is used to get or set the cache policy for a specific request.
53-
54-
A copy of a resource is only added to the cache if the response stream for the resource is retrieved and read to the end of the stream. So another request for the same resource could use a cached copy, depending on the default cache policy level for this request.
55-
56-
57-
58-
## Examples
59-
The following code example sets the application domain's caching policy to Default.
60-
61-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Remoting/NCLSimpleCache/CPP/NCLSimpleCache.cpp" id="Snippet2":::
62-
:::code language="csharp" source="~/snippets/csharp/System.Net/WebRequest/CachePolicy/example.cs" id="Snippet2":::
45+
<format type="text/markdown"><![CDATA[
46+
47+
## Remarks
48+
This enumeration is used to set the cache level specified by <xref:System.Net.Cache.HttpRequestCachePolicy> objects.
49+
50+
This `BypassCache` value is the default cache behavior specified in the machine configuration file that ships with the .NET Framework. No entries are taken from caches, added to caches, or removed from caches between the client and server.
51+
52+
The <xref:System.Net.HttpWebRequest.DefaultCachePolicy%2A?displayProperty=nameWithType> property is used to get or set the default cache policy for <xref:System.Net.HttpWebRequest> instances. The <xref:System.Net.WebRequest.DefaultCachePolicy%2A?displayProperty=nameWithType> property is used to get or set the default cache policy for a <xref:System.Net.WebRequest> instance. The <xref:System.Net.WebRequest.CachePolicy%2A> property is used to get or set the cache policy for a specific request.
53+
54+
A copy of a resource is only added to the cache if the response stream for the resource is retrieved and read to the end of the stream. So another request for the same resource could use a cached copy, depending on the default cache policy level for this request.
55+
56+
57+
58+
## Examples
59+
The following code example sets the application domain's caching policy to Default.
6360
61+
:::code language="csharp" source="~/snippets/csharp/System.Net/WebRequest/CachePolicy/example.cs" id="Snippet2":::
62+
6463
]]></format>
6564
</remarks>
6665
<altmember cref="P:System.Net.HttpWebRequest.DefaultCachePolicy" />

0 commit comments

Comments
 (0)