update 20240812
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="GENERATOR" content="VSdocman - documentation generator; https://www.helixoft.com" />
|
||||
<link rel="icon" href="favicon.ico">
|
||||
<title>HelpPageConfigurationExtensions.SetSampleForMediaType Method</title>
|
||||
<title>WebApiConfig Class</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="msdn2019/toc.css" />
|
||||
<script src="msdn2019/toc.js"></script>
|
||||
@@ -74,11 +74,11 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
<div id="mainBody">
|
||||
<h1 class="title">HelpPageConfigurationExtensions.SetSampleForMediaType Method</h1>
|
||||
<h1 class="title">WebApiConfig Class</h1>
|
||||
|
||||
<div class="metadata">
|
||||
Namespace:
|
||||
<a href="topic_000000000000033B.html">API_NetFramework.Areas.HelpPage</a>
|
||||
<a href="topic_0000000000000349.html">API_NetFramework</a>
|
||||
|
||||
|
||||
|
||||
@@ -89,7 +89,6 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
|
||||
|
||||
|
||||
<summary-info>Sets the sample directly for all actions with the specified media type.</summary-info>
|
||||
|
||||
|
||||
|
||||
@@ -139,7 +138,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
<div class="codeSnippetCode codeVB">
|
||||
<pre xml:space="preserve" class="brush: vb"><Extension()> _ <br />Public Shared Sub SetSampleForMediaType( _ <br /> ByVal <i>config</i> As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.httpconfiguration">HttpConfiguration</a>, _ <br /> ByVal <i>sample</i> As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">Object</a>, _ <br /> ByVal <i>mediaType</i> As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a> _ <br />)</pre>
|
||||
<pre xml:space="preserve" class="brush: vb">Public Class WebApiConfig</pre>
|
||||
</div>
|
||||
<div class="codeSnippetCode codeNA">
|
||||
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
|
||||
@@ -178,7 +177,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
<div class="codeSnippetCode codeCsharp">
|
||||
<pre xml:space="preserve" class="brush: csharp">public static <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.void">void</a> SetSampleForMediaType( <br /> this <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.httpconfiguration">HttpConfiguration</a> <i>config</i>, <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a> <i>sample</i>, <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a> <i>mediaType</i> <br />)</pre>
|
||||
<pre xml:space="preserve" class="brush: csharp">public static class WebApiConfig</pre>
|
||||
</div>
|
||||
<div class="codeSnippetCode codeNA">
|
||||
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
|
||||
@@ -218,7 +217,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
<div class="codeSnippetCode codeCpp">
|
||||
<pre xml:space="preserve" class="brush: cpp">[Extension()] <br />public: <br />static <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.void">void</a> SetSampleForMediaType( <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.httpconfiguration">HttpConfiguration</a>^ <i>config</i>, <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>^ <i>sample</i>, <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a>^ <i>mediaType</i> <br />) </pre>
|
||||
<pre xml:space="preserve" class="brush: cpp">public ref class WebApiConfig </pre>
|
||||
</div>
|
||||
<div class="codeSnippetCode codeNA">
|
||||
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
|
||||
@@ -257,7 +256,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
<div class="codeSnippetCode codeJScript">
|
||||
<pre xml:space="preserve" class="brush: js">public <br /> Extension() <br />static function SetSampleForMediaType( <br /> <i>config</i> : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.httpconfiguration">HttpConfiguration</a>, <br /> <i>sample</i> : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>, <br /> <i>mediaType</i> : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a> <br />);</pre>
|
||||
<pre xml:space="preserve" class="brush: js">public class WebApiConfig</pre>
|
||||
</div>
|
||||
<div class="codeSnippetCode codeNA">
|
||||
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
|
||||
@@ -268,49 +267,6 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
|
||||
<h4 class="subHeading">
|
||||
Parameters</h4><dl paramName="config" class="parameterList">
|
||||
<dt>
|
||||
<span class="parameter">
|
||||
config
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.httpconfiguration">HttpConfiguration</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>
|
||||
The <a target="_top" href=".html" onclick="this.target='';return true;">HttpConfiguration</a>.
|
||||
</p>
|
||||
<dl paramName="sample" class="parameterList">
|
||||
<dt>
|
||||
<span class="parameter">
|
||||
sample
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>
|
||||
The sample.
|
||||
</p>
|
||||
<dl paramName="mediaType" class="parameterList">
|
||||
<dt>
|
||||
<span class="parameter">
|
||||
mediaType
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>
|
||||
The media type.
|
||||
</p>
|
||||
|
||||
<p />
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -337,6 +293,150 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
|
||||
|
||||
|
||||
<div class="section_container">
|
||||
<div class="section_heading">
|
||||
<span><a href="javascript:void(0)" title="Collapse" onclick="toggleSection(this);">Methods</a></span>
|
||||
<div> </div>
|
||||
</div>
|
||||
|
||||
<div id="MethodsSection" class="section">
|
||||
<table class="memberListTable">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>
|
||||
Name
|
||||
</th>
|
||||
<th>
|
||||
Description
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr class="
|
||||
|
||||
|
||||
">
|
||||
<td>
|
||||
<img alt="Public method" title="Public method" src="msdn2019/pubmethod.png"></img>
|
||||
|
||||
<img alt="Static" title="Static" src="msdn2019/static.png"></img>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<a href="topic_0000000000000353.html">Register(HttpConfiguration)</a>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<a href="#mainBody">
|
||||
Top
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section_container">
|
||||
<div class="section_heading">
|
||||
<span><a href="javascript:void(0)" title="Collapse" onclick="toggleSection(this);">Extension Methods</a></span>
|
||||
<div> </div>
|
||||
</div>
|
||||
|
||||
<div id="ExtensionMethodsSection" class="section">
|
||||
<table class="memberListTable">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>
|
||||
Name
|
||||
</th>
|
||||
<th>
|
||||
Description
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr class="
|
||||
inheritedMember
|
||||
|
||||
|
||||
">
|
||||
<td>
|
||||
<img alt="Public extension method" title="Public extension method" src="msdn2019/pubextensionmethod.png"></img>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<a href="topic_000000000000033D.html">NameOf(this object)</a>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
(Defined by <a target="_top" href="topic_000000000000033B.html" onclick="this.target='';return true;">NLogHelper</a>).
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<a href="#mainBody">
|
||||
Top
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Classes -->
|
||||
|
||||
<!-- Classes End -->
|
||||
|
||||
<!-- Standard Modules -->
|
||||
|
||||
<!-- Standard Modules End -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -390,6 +490,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="section_container">
|
||||
<div class="section_heading">
|
||||
<span><a href="javascript:void(0)" title="Collapse" onclick="toggleSection(this);">See Also</a></span>
|
||||
@@ -398,14 +499,10 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
|
||||
<div id="seeAlsoSection" class="section">
|
||||
<div>
|
||||
<a href="topic_000000000000034B.html">HelpPageConfigurationExtensions Class</a><br />
|
||||
<a href="topic_0000000000000349.html">API_NetFramework Namespace</a><br />
|
||||
|
||||
|
||||
|
||||
<a href="topic_000000000000033B.html">API_NetFramework.Areas.HelpPage Namespace</a><br />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user