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>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<T></a>.
|
||||
Arrays: arrays of simple types or complex types.
|
||||
Key value pairs: <a target="_top" href=".html" onclick="this.target='';return true;">KeyValuePair<TKey,TValue></a>
|
||||
Tuples: <a target="_top" href=".html" onclick="this.target='';return true;">Tuple<T1></a>, <a target="_top" href=".html" onclick="this.target='';return true;">Tuple<T1,T2></a>, etc
|
||||
Dictionaries: <a target="_top" href=".html" onclick="this.target='';return true;">IDictionary<TKey,TValue></a> or anything deriving from <a target="_top" href=".html" onclick="this.target='';return true;">IDictionary<TKey,TValue></a>.
|
||||
Collections: <a target="_top" href=".html" onclick="this.target='';return true;">IList<T></a>, <a target="_top" href=".html" onclick="this.target='';return true;">IEnumerable<T></a>, <a target="_top" href=".html" onclick="this.target='';return true;">ICollection<T></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<T></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<T></a>.</summary-info>
|
||||
|
||||
|
||||
|
||||
@@ -138,7 +148,7 @@ document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
|
||||
</div>
|
||||
|
||||
<div class="codeSnippetCode codeVB">
|
||||
<pre xml:space="preserve" class="brush: vb"><HttpPost()> _ <br /><Route("API/GetDocumentJSONBody")> _ <br />Public Function GetDocumentJSONBody( _ <br /> <FromBody()> _ <br /> ByVal <i>tp</i> As <a target="_top" href="topic_00000000000003CD.html" onclick="this.target='';return true;">TestParam</a> _ <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( _ <br /> ByVal <i>type</i> As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a> _ <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()] <br />[Route("API/GetDocumentJSONBody")] <br />public <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.ihttpactionresult">IHttpActionResult</a> GetDocumentJSONBody( <br /> [FromBody()] <br /> <a target="_top" href="topic_00000000000003CD.html" onclick="this.target='';return true;">TestParam</a> <i>tp</i> <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( <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a> <i>type</i> <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()] <br />[Route("API/GetDocumentJSONBody")] <br />public: <br /><a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.web.http.ihttpactionresult">IHttpActionResult</a>^ GetDocumentJSONBody( <br /> [FromBody()] <br /> <a target="_top" href="topic_00000000000003CD.html" onclick="this.target='';return true;">TestParam</a>^ <i>tp</i> <br />) </pre>
|
||||
<pre xml:space="preserve" class="brush: cpp">public: <br /><a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.object">object</a>^ GenerateObject( <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a>^ <i>type</i> <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 <br /> HttpPost() <br /> Route("API/GetDocumentJSONBody") <br />function GetDocumentJSONBody( <br /> FromBody() <br /> <i>tp</i> : <a target="_top" href="topic_00000000000003CD.html" onclick="this.target='';return true;">TestParam</a> <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( <br /> <i>type</i> : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.type">Type</a> <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 />
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user