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>DocumentController.GetDocumentJSONBody Method</title>
<title>ObjectGenerator.GenerateObject 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">DocumentController.GetDocumentJSONBody Method</h1>
<h1 class="title">ObjectGenerator.GenerateObject Method</h1>
<div class="metadata">
Namespace:
<a href="topic_00000000000003CC.html">API_NetFramework.Controllers</a>
<a href="topic_0000000000000354.html">API_NetFramework.Areas.HelpPage</a>
@@ -89,6 +89,16 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
<summary-info>Generates an object for a given type. The type needs to be public, have a public default constructor and settable public properties/fields. Currently it supports the following types:
Simple types: <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.int32">int</a>, <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">string</a>, <a target="_top" href=".html" onclick="this.target='';return true;">Enum</a>, <a target="_top" href=".html" onclick="this.target='';return true;">DateTime</a>, <a target="_top" href=".html" onclick="this.target='';return true;">Uri</a>, etc.
Complex types: POCO types.
Nullables: <a target="_top" href=".html" onclick="this.target='';return true;">Nullable&lt;T&gt;</a>.
Arrays: arrays of simple types or complex types.
Key value pairs: <a target="_top" href=".html" onclick="this.target='';return true;">KeyValuePair&lt;TKey,TValue&gt;</a>
Tuples: <a target="_top" href=".html" onclick="this.target='';return true;">Tuple&lt;T1&gt;</a>, <a target="_top" href=".html" onclick="this.target='';return true;">Tuple&lt;T1,T2&gt;</a>, etc
Dictionaries: <a target="_top" href=".html" onclick="this.target='';return true;">IDictionary&lt;TKey,TValue&gt;</a> or anything deriving from <a target="_top" href=".html" onclick="this.target='';return true;">IDictionary&lt;TKey,TValue&gt;</a>.
Collections: <a target="_top" href=".html" onclick="this.target='';return true;">IList&lt;T&gt;</a>, <a target="_top" href=".html" onclick="this.target='';return true;">IEnumerable&lt;T&gt;</a>, <a target="_top" href=".html" onclick="this.target='';return true;">ICollection&lt;T&gt;</a>, <a target="_top" href=".html" onclick="this.target='';return true;">IList</a>, <a target="_top" href=".html" onclick="this.target='';return true;">IEnumerable</a>, <a target="_top" href=".html" onclick="this.target='';return true;">ICollection</a> or anything deriving from <a target="_top" href=".html" onclick="this.target='';return true;">ICollection&lt;T&gt;</a> or <a target="_top" href=".html" onclick="this.target='';return true;">IList</a>.
Queryables: <a target="_top" href=".html" onclick="this.target='';return true;">IQueryable</a>, <a target="_top" href=".html" onclick="this.target='';return true;">IQueryable&lt;T&gt;</a>.</summary-info>
@@ -138,7 +148,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
</div>
<div class="codeSnippetCode codeVB">
<pre xml:space="preserve" class="brush: vb">&lt;HttpPost()&gt; _&nbsp;<br />&lt;Route(&quot;API/GetDocumentJSONBody&quot;)&gt; _&nbsp;<br />Public Function GetDocumentJSONBody( _&nbsp;<br /> &lt;FromBody()&gt; _&nbsp;<br /> ByVal <i>tp</i> As <a target="_top" href="topic_00000000000003CD.html" onclick="this.target='';return true;">TestParam</a> _&nbsp;<br />) As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.ihttpactionresult">IHttpActionResult</a></pre>
<pre xml:space="preserve" class="brush: vb">Public Function GenerateObject( _&nbsp;<br /> ByVal <i>type</i> As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a> _&nbsp;<br />) As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">Object</a></pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
@@ -177,7 +187,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
</div>
<div class="codeSnippetCode codeCsharp">
<pre xml:space="preserve" class="brush: csharp">[HttpPost()]&nbsp;<br />[Route(&quot;API/GetDocumentJSONBody&quot;)]&nbsp;<br />public <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.ihttpactionresult">IHttpActionResult</a> GetDocumentJSONBody(&nbsp;<br /> [FromBody()]&nbsp;<br /> <a target="_top" href="topic_00000000000003CD.html" onclick="this.target='';return true;">TestParam</a> <i>tp</i>&nbsp;<br />)</pre>
<pre xml:space="preserve" class="brush: csharp">public <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a> GenerateObject(&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a> <i>type</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 +227,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
</div>
<div class="codeSnippetCode codeCpp">
<pre xml:space="preserve" class="brush: cpp">[HttpPost()]&nbsp;<br />[Route(&quot;API/GetDocumentJSONBody&quot;)]&nbsp;<br />public: &nbsp;<br /><a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.ihttpactionresult">IHttpActionResult</a>^ GetDocumentJSONBody(&nbsp;<br /> [FromBody()]&nbsp;<br /> <a target="_top" href="topic_00000000000003CD.html" onclick="this.target='';return true;">TestParam</a>^ <i>tp</i>&nbsp;<br />) </pre>
<pre xml:space="preserve" class="brush: cpp">public: &nbsp;<br /><a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>^ GenerateObject(&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a>^ <i>type</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 +266,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
</div>
<div class="codeSnippetCode codeJScript">
<pre xml:space="preserve" class="brush: js">public &nbsp;<br /> HttpPost()&nbsp;<br /> Route(&quot;API/GetDocumentJSONBody&quot;)&nbsp;<br />function GetDocumentJSONBody(&nbsp;<br /> FromBody()&nbsp;<br /> <i>tp</i> : <a target="_top" href="topic_00000000000003CD.html" onclick="this.target='';return true;">TestParam</a>&nbsp;<br />) : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.ihttpactionresult">IHttpActionResult</a>;</pre>
<pre xml:space="preserve" class="brush: js">public function GenerateObject(&nbsp;<br /> <i>type</i> : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a>&nbsp;<br />) : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>;</pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
@@ -268,25 +278,28 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
<h4 class="subHeading">
Parameters</h4><dl paramName="tp" class="parameterList">
Parameters</h4><dl paramName="type" class="parameterList">
<dt>
<span class="parameter">
tp
type
</span>
</dt>
<dd>
<a target="_top" href="topic_00000000000003CD.html" onclick="this.target='';return true;">TestParam</a>
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a>
</dd>
</dl>
<p>
The type.
</p>
<p />
<h4 class="subHeading">
Return Value</h4>
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.ihttpactionresult">IHttpActionResult</a>
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>
<p>
An object of the given type.
</p>
@@ -375,11 +388,11 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
<div id="seeAlsoSection" class="section">
<div>
<a href="topic_00000000000003D0.html">DocumentController Class</a><br />
<a href="topic_00000000000003D2.html">ObjectGenerator Class</a><br />
<a href="topic_00000000000003CC.html">API_NetFramework.Controllers Namespace</a><br />
<a href="topic_0000000000000354.html">API_NetFramework.Areas.HelpPage Namespace</a><br />