update 20240812

This commit is contained in:
Stefan Hutter
2024-08-12 16:35:06 +02:00
parent 43c44e0aad
commit fc8811829d
7922 changed files with 205978 additions and 91947 deletions

View File

@@ -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>IModelDocumentationProvider.GetDocumentation (MemberInfo) Method</title>
<title>HelpPageConfigurationExtensions.SetSampleForMediaType Method</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">IModelDocumentationProvider.GetDocumentation (MemberInfo) Method</h1>
<h1 class="title">HelpPageConfigurationExtensions.SetSampleForMediaType Method</h1>
<div class="metadata">
Namespace:
<a href="topic_000000000000035C.html">API_NetFramework.Areas.HelpPage.ModelDescriptions</a>
<a href="topic_0000000000000354.html">API_NetFramework.Areas.HelpPage</a>
@@ -89,6 +89,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
<summary-info>Sets the sample directly for all actions with the specified media type.</summary-info>
@@ -138,7 +139,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
</div>
<div class="codeSnippetCode codeVB">
<pre xml:space="preserve" class="brush: vb">Function GetDocumentation( _&nbsp;<br /> ByVal <i>member</i> As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.reflection.memberinfo">MemberInfo</a> _&nbsp;<br />) As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">String</a></pre>
<pre xml:space="preserve" class="brush: vb">&lt;Extension()&gt; _&nbsp;<br />Public Shared Sub SetSampleForMediaType( _&nbsp;<br /> ByVal <i>config</i> As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.httpconfiguration">HttpConfiguration</a>, _&nbsp;<br /> ByVal <i>sample</i> As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">Object</a>, _&nbsp;<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> _&nbsp;<br />)</pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
@@ -177,7 +178,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
</div>
<div class="codeSnippetCode codeCsharp">
<pre xml:space="preserve" class="brush: csharp"><a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">string</a> GetDocumentation(&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.reflection.memberinfo">MemberInfo</a> <i>member</i>&nbsp;<br />)</pre>
<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(&nbsp;<br /> this <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.httpconfiguration">HttpConfiguration</a> <i>config</i>,&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a> <i>sample</i>,&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a> <i>mediaType</i>&nbsp;<br />)</pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
@@ -217,7 +218,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
</div>
<div class="codeSnippetCode codeCpp">
<pre xml:space="preserve" class="brush: cpp">&nbsp;<br /><a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">String</a>^ GetDocumentation(&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.reflection.memberinfo">MemberInfo</a>^ <i>member</i>&nbsp;<br />) </pre>
<pre xml:space="preserve" class="brush: cpp">[Extension()]&nbsp;<br />public: &nbsp;<br />static <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.void">void</a> SetSampleForMediaType(&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.httpconfiguration">HttpConfiguration</a>^ <i>config</i>,&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>^ <i>sample</i>,&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a>^ <i>mediaType</i>&nbsp;<br />) </pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
@@ -256,7 +257,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
</div>
<div class="codeSnippetCode codeJScript">
<pre xml:space="preserve" class="brush: js">function GetDocumentation(&nbsp;<br /> <i>member</i> : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.reflection.memberinfo">MemberInfo</a>&nbsp;<br />) : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">String</a>;</pre>
<pre xml:space="preserve" class="brush: js">public &nbsp;<br /> Extension()&nbsp;<br />static function SetSampleForMediaType(&nbsp;<br /> <i>config</i> : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.httpconfiguration">HttpConfiguration</a>,&nbsp;<br /> <i>sample</i> : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>,&nbsp;<br /> <i>mediaType</i> : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a>&nbsp;<br />);</pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
@@ -268,26 +269,48 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
<h4 class="subHeading">
Parameters</h4><dl paramName="member" class="parameterList">
Parameters</h4><dl paramName="config" class="parameterList">
<dt>
<span class="parameter">
member
config
</span>
</dt>
<dd>
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.reflection.memberinfo">MemberInfo</a>
<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 />
<h4 class="subHeading">
Return Value</h4>
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">string</a>
@@ -375,11 +398,11 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
<div id="seeAlsoSection" class="section">
<div>
<a href="topic_000000000000036A.html">IModelDocumentationProvider Interface</a><br />
<a href="topic_0000000000000364.html">HelpPageConfigurationExtensions Class</a><br />
<a href="topic_000000000000035C.html">API_NetFramework.Areas.HelpPage.ModelDescriptions Namespace</a><br />
<a href="topic_0000000000000354.html">API_NetFramework.Areas.HelpPage Namespace</a><br />