Update nach EDK-Read
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>HelpPageSampleGenerator.GetSample Method</title>
|
||||
<title>HelpPageSampleGenerator.SampleObjectFactories Property</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">HelpPageSampleGenerator.GetSample Method</h1>
|
||||
<h1 class="title">HelpPageSampleGenerator.SampleObjectFactories Property</h1>
|
||||
|
||||
<div class="metadata">
|
||||
Namespace:
|
||||
<a href="topic_00000000000002F6.html">EDOKAAPI_NetFramework.Areas.HelpPage</a>
|
||||
<a href="topic_00000000000002F9.html">EDOKAAPI_NetFramework.Areas.HelpPage</a>
|
||||
|
||||
|
||||
|
||||
@@ -89,7 +89,8 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
|
||||
|
||||
|
||||
<summary-info>Gets the request or response body samples.</summary-info>
|
||||
<summary-info>Gets factories for the objects that the supported formatters will serialize as samples. Processed in order,
|
||||
stopping when the factory successfully returns a non-<a target="_top" href="topic_00000000000004A8.html" onclick="this.target='';return true;"><default></a> object.</summary-info>
|
||||
|
||||
|
||||
|
||||
@@ -139,7 +140,8 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
<div class="codeSnippetCode codeVB">
|
||||
<pre xml:space="preserve" class="brush: vb">Public Overridable Function GetSample( _ <br /> ByVal <i>api</i> As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.description.apidescription">ApiDescription</a>, _ <br /> ByVal <i>sampleDirection</i> As <a target="_top" href="topic_0000000000000376.html" onclick="this.target='';return true;">SampleDirection</a> _ <br />) As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a>(Of <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a>, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">Object</a>)</pre>
|
||||
<pre xml:space="preserve" class="brush: vb"><SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures",
|
||||
Justification = "This is an appropriate nesting of generic types")> _ <br />Public Property SampleObjectFactories() As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ilist-1">IList</a>(Of <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.func-3">Func</a>(Of <a target="_top" href="topic_0000000000000350.html" onclick="this.target='';return true;">HelpPageSampleGenerator</a>, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a>, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">Object</a>)) <br /> Get <br /> </pre>
|
||||
</div>
|
||||
<div class="codeSnippetCode codeNA">
|
||||
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
|
||||
@@ -178,7 +180,8 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
<div class="codeSnippetCode codeCsharp">
|
||||
<pre xml:space="preserve" class="brush: csharp">public virtual <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a><<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a>, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>> GetSample( <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.description.apidescription">ApiDescription</a> <i>api</i>, <br /> <a target="_top" href="topic_0000000000000376.html" onclick="this.target='';return true;">SampleDirection</a> <i>sampleDirection</i> <br />)</pre>
|
||||
<pre xml:space="preserve" class="brush: csharp">[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures",
|
||||
Justification = "This is an appropriate nesting of generic types")] <br />public <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ilist-1">IList</a><<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.func-3">Func</a><<a target="_top" href="topic_0000000000000350.html" onclick="this.target='';return true;">HelpPageSampleGenerator</a>, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a>, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>>> SampleObjectFactories {get;}</pre>
|
||||
</div>
|
||||
<div class="codeSnippetCode codeNA">
|
||||
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
|
||||
@@ -218,7 +221,8 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
<div class="codeSnippetCode codeCpp">
|
||||
<pre xml:space="preserve" class="brush: cpp">public: <br />virtual <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a><<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a>^, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>^>^ GetSample( <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.description.apidescription">ApiDescription</a>^ <i>api</i>, <br /> <a target="_top" href="topic_0000000000000376.html" onclick="this.target='';return true;">SampleDirection</a> <i>sampleDirection</i> <br />) </pre>
|
||||
<pre xml:space="preserve" class="brush: cpp">[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures",
|
||||
Justification = "This is an appropriate nesting of generic types")] <br />public: <br />property <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ilist-1">IList</a><<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.func-3">Func</a><<a target="_top" href="topic_0000000000000350.html" onclick="this.target='';return true;">HelpPageSampleGenerator</a>^, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a>^, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>^>^>^ SampleObjectFactories { <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ilist-1">IList</a><<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.func-3">Func</a><<a target="_top" href="topic_0000000000000350.html" onclick="this.target='';return true;">HelpPageSampleGenerator</a>^, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a>^, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>^>^>^ get( ); <br />}</pre>
|
||||
</div>
|
||||
<div class="codeSnippetCode codeNA">
|
||||
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
|
||||
@@ -268,42 +272,10 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
|
||||
<h4 class="subHeading">
|
||||
Parameters</h4><dl paramName="api" class="parameterList">
|
||||
<dt>
|
||||
<span class="parameter">
|
||||
api
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.description.apidescription">ApiDescription</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>
|
||||
The <a target="_top" href=".html" onclick="this.target='';return true;">ApiDescription</a>.
|
||||
</p>
|
||||
<dl paramName="sampleDirection" class="parameterList">
|
||||
<dt>
|
||||
<span class="parameter">
|
||||
sampleDirection
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<a target="_top" href="topic_0000000000000376.html" onclick="this.target='';return true;">SampleDirection</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>
|
||||
The value indicating whether the sample is for a request or for a response.
|
||||
</p>
|
||||
|
||||
<p />
|
||||
|
||||
<h4 class="subHeading">
|
||||
Return Value</h4>
|
||||
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a><<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.headers.mediatypeheadervalue">MediaTypeHeaderValue</a>, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>>
|
||||
<p>
|
||||
The samples keyed by media type.
|
||||
</p>
|
||||
Property Value</h4>
|
||||
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ilist-1">IList</a><<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.func-3">Func</a><<a target="_top" href="topic_0000000000000350.html" onclick="this.target='';return true;">HelpPageSampleGenerator</a>, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a>, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>>>
|
||||
|
||||
|
||||
|
||||
@@ -326,6 +298,34 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
|
||||
|
||||
|
||||
<div class="section_container">
|
||||
<div class="section_heading">
|
||||
<span><a href="javascript:void(0)" title="Collapse" onclick="toggleSection(this);">Remarks</a></span>
|
||||
<div> </div>
|
||||
</div>
|
||||
|
||||
<div id="remarksSection" class="section">
|
||||
Collection includes just <a target="_top" href=".html" onclick="this.target='';return true;">GenerateObject</a> initially. Use
|
||||
<div class="codeSnippetCodeCollection">
|
||||
<div class="codeSnippetToolbar">
|
||||
<a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a>
|
||||
</div>
|
||||
|
||||
<div class="codeSnippetCode">
|
||||
<pre xml:space="preserve">SampleObjectFactories.Insert(0, func) </pre>
|
||||
</div>
|
||||
</div> to provide an override and
|
||||
<div class="codeSnippetCodeCollection">
|
||||
<div class="codeSnippetToolbar">
|
||||
<a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a>
|
||||
</div>
|
||||
|
||||
<div class="codeSnippetCode">
|
||||
<pre xml:space="preserve">SampleObjectFactories.Add(func) </pre>
|
||||
</div>
|
||||
</div> to provide a fallback.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -392,11 +392,11 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
|
||||
<div id="seeAlsoSection" class="section">
|
||||
<div>
|
||||
<a href="topic_000000000000034D.html">HelpPageSampleGenerator Class</a><br />
|
||||
<a href="topic_0000000000000350.html">HelpPageSampleGenerator Class</a><br />
|
||||
|
||||
|
||||
|
||||
<a href="topic_00000000000002F6.html">EDOKAAPI_NetFramework.Areas.HelpPage Namespace</a><br />
|
||||
<a href="topic_00000000000002F9.html">EDOKAAPI_NetFramework.Areas.HelpPage Namespace</a><br />
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user