-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
ScriptingJsonSerializationSection.xml
209 lines (195 loc) · 13.3 KB
/
ScriptingJsonSerializationSection.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<Type Name="ScriptingJsonSerializationSection" FullName="System.Web.Configuration.ScriptingJsonSerializationSection">
<TypeSignature Language="C#" Value="public sealed class ScriptingJsonSerializationSection : System.Configuration.ConfigurationSection" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit ScriptingJsonSerializationSection extends System.Configuration.ConfigurationSection" />
<TypeSignature Language="DocId" Value="T:System.Web.Configuration.ScriptingJsonSerializationSection" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class ScriptingJsonSerializationSection
Inherits ConfigurationSection" />
<TypeSignature Language="F#" Value="type ScriptingJsonSerializationSection = class
 inherit ConfigurationSection" />
<TypeSignature Language="C++ CLI" Value="public ref class ScriptingJsonSerializationSection sealed : System::Configuration::ConfigurationSection" />
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Configuration.ConfigurationSection</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Represents a <see langword="jsonSerialization" /> configuration section in the <see langword="scripting" /> element of the configuration file. This class cannot be inherited.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.Configuration.ScriptingJsonSerializationSection> class enables you to programmatically access and modify the `jsonSerialization` element of the configuration section for using AJAX functionality in ASP.NET.
Use this type to set serialization and deserialization configuration values for AJAX-enabled applications.
## Examples
The following configuration file excerpt shows how to declaratively specify values for properties of the <xref:System.Web.Configuration.ScriptingJsonSerializationSection> class.
```
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="1000" />
</webServices>
</scripting>
</system.web.extensions>
```
The following example demonstrates how to access <xref:System.Web.Configuration.ScriptingJsonSerializationSection> programmatically.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_Atlas/System.Web.Configuration/CS/App_Code/ConfigSectionSample.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Atlas/System.Web.Configuration/VB/App_Code/ConfigSectionSample.vb" id="Snippet3":::
]]></format>
</remarks>
<altmember cref="T:System.Configuration.ConfigurationSection" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/bb763183(v=vs.100)">How to: Configure ASP.NET Services in ASP.NET AJAX</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ScriptingJsonSerializationSection ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Configuration.ScriptingJsonSerializationSection.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 ScriptingJsonSerializationSection();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.Configuration.ScriptingJsonSerializationSection" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Converters">
<MemberSignature Language="C#" Value="public System.Web.Configuration.ConvertersCollection Converters { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Web.Configuration.ConvertersCollection Converters" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ScriptingJsonSerializationSection.Converters" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Converters As ConvertersCollection" />
<MemberSignature Language="F#" Value="member this.Converters : System.Web.Configuration.ConvertersCollection" Usage="System.Web.Configuration.ScriptingJsonSerializationSection.Converters" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Web::Configuration::ConvertersCollection ^ Converters { System::Web::Configuration::ConvertersCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("converters", DefaultValue="", IsKey=true)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("converters", DefaultValue="", IsKey=true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.Configuration.ConvertersCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a <see cref="T:System.Web.Configuration.ConvertersCollection" /> object that contains a collection of <see cref="T:System.Web.Configuration.Converter" /> objects.</summary>
<value>A <see cref="T:System.Web.Configuration.ConvertersCollection" /> object.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MaxJsonLength">
<MemberSignature Language="C#" Value="public int MaxJsonLength { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 MaxJsonLength" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ScriptingJsonSerializationSection.MaxJsonLength" />
<MemberSignature Language="VB.NET" Value="Public Property MaxJsonLength As Integer" />
<MemberSignature Language="F#" Value="member this.MaxJsonLength : int with get, set" Usage="System.Web.Configuration.ScriptingJsonSerializationSection.MaxJsonLength" />
<MemberSignature Language="C++ CLI" Value="public:
 property int MaxJsonLength { int get(); void set(int value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("maxJsonLength", DefaultValue=102400)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("maxJsonLength", DefaultValue=102400)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the maximum length that is accepted by the <see cref="T:System.Web.Script.Serialization.JavaScriptSerializer" /> object for JavaScript Object Notation (JSON) strings.</summary>
<value>An integer that represents the maximum length for JSON strings. The default is 102400 characters.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The value of the <xref:System.Web.Configuration.ScriptingJsonSerializationSection.MaxJsonLength%2A> property applies only to the internal <xref:System.Web.Script.Serialization.JavaScriptSerializer> instance that is used by the asynchronous communication layer to invoke Web services methods.
]]></format>
</remarks>
<related type="Article" href="https://msdn.microsoft.com/library/8290e543-7eff-47a4-aace-681f3c07229b">Web Services in ASP.NET AJAX</related>
</Docs>
</Member>
<Member MemberName="Properties">
<MemberSignature Language="C#" Value="protected override System.Configuration.ConfigurationPropertyCollection Properties { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.ConfigurationPropertyCollection Properties" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ScriptingJsonSerializationSection.Properties" />
<MemberSignature Language="VB.NET" Value="Protected Overrides ReadOnly Property Properties As ConfigurationPropertyCollection" />
<MemberSignature Language="F#" Value="member this.Properties : System.Configuration.ConfigurationPropertyCollection" Usage="System.Web.Configuration.ScriptingJsonSerializationSection.Properties" />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual property System::Configuration::ConfigurationPropertyCollection ^ Properties { System::Configuration::ConfigurationPropertyCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Configuration.ConfigurationPropertyCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="RecursionLimit">
<MemberSignature Language="C#" Value="public int RecursionLimit { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 RecursionLimit" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ScriptingJsonSerializationSection.RecursionLimit" />
<MemberSignature Language="VB.NET" Value="Public Property RecursionLimit As Integer" />
<MemberSignature Language="F#" Value="member this.RecursionLimit : int with get, set" Usage="System.Web.Configuration.ScriptingJsonSerializationSection.RecursionLimit" />
<MemberSignature Language="C++ CLI" Value="public:
 property int RecursionLimit { int get(); void set(int value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("recursionLimit", DefaultValue=100)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("recursionLimit", DefaultValue=100)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the limit for constraining the number of object levels to process.</summary>
<value>The number of object levels. The default is 100.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.Configuration.ScriptingJsonSerializationSection.RecursionLimit%2A> property refers to the maximum level of an object hierarchy that <xref:System.Web.Script.Serialization.JavaScriptSerializer> will process when deserializing a JavaScript Object Notation (JSON) string or when serializing an object.
The value of <xref:System.Web.Configuration.ScriptingJsonSerializationSection.RecursionLimit%2A> applies only to the internal <xref:System.Web.Script.Serialization.JavaScriptSerializer> instance that is used by the asynchronous communication layer to invoke Web services methods.
]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">The property is being set to a value that is less than one.</exception>
<related type="Article" href="https://msdn.microsoft.com/library/8290e543-7eff-47a4-aace-681f3c07229b">Web Services in ASP.NET AJAX</related>
</Docs>
</Member>
</Members>
</Type>