/
ProfilePropertySettings.xml
532 lines (466 loc) · 38 KB
/
ProfilePropertySettings.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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
<Type Name="ProfilePropertySettings" FullName="System.Web.Configuration.ProfilePropertySettings">
<TypeSignature Language="C#" Value="public sealed class ProfilePropertySettings : System.Configuration.ConfigurationElement" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed ProfilePropertySettings extends System.Configuration.ConfigurationElement" />
<TypeSignature Language="DocId" Value="T:System.Web.Configuration.ProfilePropertySettings" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class ProfilePropertySettings
Inherits ConfigurationElement" />
<TypeSignature Language="F#" Value="type ProfilePropertySettings = class
 inherit ConfigurationElement" />
<TypeSignature Language="C++ CLI" Value="public ref class ProfilePropertySettings sealed : System::Configuration::ConfigurationElement" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Configuration.ConfigurationElement</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>The <see cref="T:System.Web.Configuration.ProfilePropertySettings" /> class provides a way to programmatically access and modify the <see langword="profiles" /> section of a configuration file. This class cannot be inherited.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.Configuration.ProfilePropertySettings> class provides a way to programmatically create, access, and modify the definition of an individual property added to the `properties` subsection of the `profile` section of a configuration file.
The `profile` section of the configuration file specifies a schema for user profiles. At run time, the ASP.NET compilation system uses the information specified in the `profile` section to generate a class called `ProfileCommon`, which is derived from <xref:System.Web.Profile.ProfileBase>. The `ProfileCommon` class definition is based on the properties defined in the `properties` subsection of the `profile` section of the configuration file. An instance of this class is created for each user profile, and you can access the individual profile values in your code through the <xref:System.Web.HttpContext.Profile%2A?displayProperty=nameWithType> property. For more information about profile properties, see [ASP.NET Profile Properties Overview](https://docs.microsoft.com/previous-versions/aspnet/2y3fs9xs(v=vs.100)). For more information about the profile features added to ASP.NET 2.0, see [ASP.NET Profile Properties Overview](https://docs.microsoft.com/previous-versions/aspnet/2y3fs9xs(v=vs.100)).
## Examples
The following code example shows how to access the <xref:System.Web.Configuration.ProfileSection.PropertySettings%2A> property value, which contains a collection of <xref:System.Web.Configuration.ProfilePropertySettings> objects. This code example is part of a larger example provided for the <xref:System.Web.Configuration.ProfileSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/CS/profilesection.cs" id="Snippet10":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/VB/profilesection.vb" id="Snippet10":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
<altmember cref="P:System.Web.Configuration.ProfileSection.PropertySettings" />
<altmember cref="T:System.Web.Configuration.ProfilePropertySettingsCollection" />
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.Configuration.ProfilePropertySettings" /> class.</summary>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
<altmember cref="P:System.Web.Configuration.ProfileSection.PropertySettings" />
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ProfilePropertySettings (string name);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Configuration.ProfilePropertySettings.#ctor(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String)" />
<MemberSignature Language="F#" Value="new System.Web.Configuration.ProfilePropertySettings : string -> System.Web.Configuration.ProfilePropertySettings" Usage="new System.Web.Configuration.ProfilePropertySettings name" />
<MemberSignature Language="C++ CLI" Value="public:
 ProfilePropertySettings(System::String ^ name);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<param name="name">A unique name for the <see cref="T:System.Web.Configuration.ProfilePropertySettings" /> object.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.Configuration.ProfilePropertySettings" /> class with the specified name.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The following table shows the default settings that are used for this constructor.
|Setting|Default Value|
|-------------|-------------------|
|<xref:System.Web.Configuration.ProfilePropertySettings.AllowAnonymous%2A>|`false`.|
|<xref:System.Web.Configuration.ProfilePropertySettings.DefaultValue%2A>|An empty string ("").|
|<xref:System.Web.Configuration.ProfilePropertySettings.ReadOnly%2A>|`false`.|
|<xref:System.Web.Configuration.ProfilePropertySettings.SerializeAs%2A>|<xref:System.Web.Configuration.SerializationMode.ProviderSpecific>.|
|<xref:System.Web.Configuration.ProfilePropertySettings.Type%2A>|An empty string ("").|
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
<altmember cref="P:System.Web.Configuration.ProfileSection.PropertySettings" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ProfilePropertySettings (string name, bool readOnly, System.Web.Configuration.SerializationMode serializeAs, string providerName, string defaultValue, string profileType, bool allowAnonymous, string customProviderData);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, bool readOnly, valuetype System.Web.Configuration.SerializationMode serializeAs, string providerName, string defaultValue, string profileType, bool allowAnonymous, string customProviderData) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Configuration.ProfilePropertySettings.#ctor(System.String,System.Boolean,System.Web.Configuration.SerializationMode,System.String,System.String,System.String,System.Boolean,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, readOnly As Boolean, serializeAs As SerializationMode, providerName As String, defaultValue As String, profileType As String, allowAnonymous As Boolean, customProviderData As String)" />
<MemberSignature Language="F#" Value="new System.Web.Configuration.ProfilePropertySettings : string * bool * System.Web.Configuration.SerializationMode * string * string * string * bool * string -> System.Web.Configuration.ProfilePropertySettings" Usage="new System.Web.Configuration.ProfilePropertySettings (name, readOnly, serializeAs, providerName, defaultValue, profileType, allowAnonymous, customProviderData)" />
<MemberSignature Language="C++ CLI" Value="public:
 ProfilePropertySettings(System::String ^ name, bool readOnly, System::Web::Configuration::SerializationMode serializeAs, System::String ^ providerName, System::String ^ defaultValue, System::String ^ profileType, bool allowAnonymous, System::String ^ customProviderData);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="readOnly" Type="System.Boolean" />
<Parameter Name="serializeAs" Type="System.Web.Configuration.SerializationMode" />
<Parameter Name="providerName" Type="System.String" />
<Parameter Name="defaultValue" Type="System.String" />
<Parameter Name="profileType" Type="System.String" />
<Parameter Name="allowAnonymous" Type="System.Boolean" />
<Parameter Name="customProviderData" Type="System.String" />
</Parameters>
<Docs>
<param name="name">A unique name for the <see cref="T:System.Web.Configuration.ProfilePropertySettings" /> object.</param>
<param name="readOnly">
<see langword="true" /> to indicate that the associated property in the dynamically generated <see langword="ProfileCommon" /> class should be read-only; otherwise, <see langword="false" />.</param>
<param name="serializeAs">One of the <see cref="T:System.Web.Configuration.SerializationMode" /> values.</param>
<param name="providerName">The name of a provider from the <see cref="P:System.Web.Configuration.ProfileSection.Providers" /> property, or an empty string ("").</param>
<param name="defaultValue">A string containing the default value used for the named property in the generated page Profile class.</param>
<param name="profileType">A valid type reference or an empty string.</param>
<param name="allowAnonymous">
<see langword="true" /> to indicate associated property in the dynamically generated <see langword="ProfileCommon" /> class should support anonymous users; otherwise, <see langword="false" />, to indicate that anonymous users cannot change the named property.</param>
<param name="customProviderData">A string containing provider-specific information used by the provider associated with the property.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.Configuration.ProfilePropertySettings" /> class with the specified name and settings.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
At run time, the ASP.NET compilation system uses the information specified in the `profile` section of the configuration file to generate a class called `ProfileCommon`, which is derived from <xref:System.Web.Profile.ProfileBase>. The class allows you to access and modify the values for individual user profiles.
The `ProfileCommon` class definition is based on the properties defined in the `properties` subsection of the `profile` section of the configuration file. The parameter values that you specify when you create an instance of the <xref:System.Web.Configuration.ProfilePropertySettings> class will be used to define an associated property in the `ProfileCommon` class.
For more information about profile properties, see [ASP.NET Profile Properties Overview](https://docs.microsoft.com/previous-versions/aspnet/2y3fs9xs(v=vs.100)).
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
<altmember cref="P:System.Web.Configuration.ProfileSection.PropertySettings" />
<altmember cref="T:System.Web.Configuration.SerializationMode" />
</Docs>
</Member>
<Member MemberName="AllowAnonymous">
<MemberSignature Language="C#" Value="public bool AllowAnonymous { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AllowAnonymous" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ProfilePropertySettings.AllowAnonymous" />
<MemberSignature Language="VB.NET" Value="Public Property AllowAnonymous As Boolean" />
<MemberSignature Language="F#" Value="member this.AllowAnonymous : bool with get, set" Usage="System.Web.Configuration.ProfilePropertySettings.AllowAnonymous" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool AllowAnonymous { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("allowAnonymous", DefaultValue=false)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("allowAnonymous", DefaultValue=false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the associated property in the dynamically generated <see langword="ProfileCommon" /> class can be set by anonymous users.</summary>
<value>
<see langword="true" /> if the associated property in the <see langword="ProfileCommon" /> class can be set by anonymous users; otherwise, <see langword="false" />, indicating that anonymous users cannot change the property value. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
At run time, the ASP.NET compilation system uses the information specified in the `profile` section of the configuration file to generate a class called `ProfileCommon`, which is derived from <xref:System.Web.Profile.ProfileBase>. The class allows you to access and modify the values for individual user profiles.
The `ProfileCommon` class definition is based on the properties defined in the `properties` subsection of the `profile` section of the configuration file. The property values that you specify for an instance of the <xref:System.Web.Configuration.ProfilePropertySettings> class will be used to define an associated property in the `ProfileCommon` class.
An exception is thrown if a property in the `ProfileCommon` class is changed by an anonymous user when the <xref:System.Web.Configuration.ProfilePropertySettings.AllowAnonymous%2A> property value is `false`.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.ProfilePropertySettings.AllowAnonymous%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.ProfileSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/CS/profilesection.cs" id="Snippet16":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/VB/profilesection.vb" id="Snippet16":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
</Docs>
</Member>
<Member MemberName="CustomProviderData">
<MemberSignature Language="C#" Value="public string CustomProviderData { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string CustomProviderData" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ProfilePropertySettings.CustomProviderData" />
<MemberSignature Language="VB.NET" Value="Public Property CustomProviderData As String" />
<MemberSignature Language="F#" Value="member this.CustomProviderData : string with get, set" Usage="System.Web.Configuration.ProfilePropertySettings.CustomProviderData" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ CustomProviderData { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("customProviderData", DefaultValue="")]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("customProviderData", DefaultValue="")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a string of custom data for the profile property provider.</summary>
<value>A string of custom data for the profile property provider. The default is <see langword="null" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DefaultValue">
<MemberSignature Language="C#" Value="public string DefaultValue { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string DefaultValue" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ProfilePropertySettings.DefaultValue" />
<MemberSignature Language="VB.NET" Value="Public Property DefaultValue As String" />
<MemberSignature Language="F#" Value="member this.DefaultValue : string with get, set" Usage="System.Web.Configuration.ProfilePropertySettings.DefaultValue" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ DefaultValue { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("defaultValue", DefaultValue="")]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("defaultValue", DefaultValue="")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the default value used for the associated property in the dynamically generated <see langword="ProfileCommon" /> class.</summary>
<value>A string containing the default value used for the associated property in the dynamically generated <see langword="ProfileCommon" /> class. The default is an empty string ("").</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
At run time, the ASP.NET compilation system uses the information specified in the `profile` section of the configuration file to generate a class called `ProfileCommon`, which is derived from <xref:System.Web.Profile.ProfileBase>. The class allows you to access and modify the values for individual user profiles.
The `ProfileCommon` class definition is based on the properties defined in the `properties` subsection of the `profile` section of the configuration file. The property values that you specify for an instance of the <xref:System.Web.Configuration.ProfilePropertySettings> class will be used to define an associated property in the `ProfileCommon` class.
The default value is used as the initial value for the associated `ProfileCommon` class property when an individual user profile does not contain a value for the property. The <xref:System.Web.Configuration.ProfilePropertySettings.DefaultValue%2A> property may be a string value, an XML-encoded value (serialization mode for the property is XML serialization) or a base-64-encoded binary string (if the serialization mode for the property is binary serialization).
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.ProfilePropertySettings.DefaultValue%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.ProfileSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/CS/profilesection.cs" id="Snippet19":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/VB/profilesection.vb" id="Snippet19":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
</Docs>
</Member>
<Member MemberName="Name">
<MemberSignature Language="C#" Value="public string Name { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Name" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ProfilePropertySettings.Name" />
<MemberSignature Language="VB.NET" Value="Public Property Name As String" />
<MemberSignature Language="F#" Value="member this.Name : string with get, set" Usage="System.Web.Configuration.ProfilePropertySettings.Name" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("name", IsKey=true, IsRequired=true)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("name", IsKey=true, IsRequired=true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the name of the <see cref="T:System.Web.Configuration.ProfilePropertySettings" /> object and the associated property in the dynamically generated <see langword="ProfileCommon" /> class.</summary>
<value>A string containing the name of the <see cref="T:System.Web.Configuration.ProfilePropertySettings" /> object. The default is <see langword="null" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
At run time, the ASP.NET compilation system uses the information specified in the `profile` section of the configuration file to generate a class called `ProfileCommon`, which is derived from <xref:System.Web.Profile.ProfileBase>. The class allows you to access and modify the values for individual user profiles.
The `ProfileCommon` class definition is based on the properties defined in the `properties` subsection of the `profile` section of the configuration file. The property values that you specify for an instance of the <xref:System.Web.Configuration.ProfilePropertySettings> class will be used to define an associated property in the `ProfileCommon` class.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.ProfilePropertySettings.Name%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.ProfileSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/CS/profilesection.cs" id="Snippet21":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/VB/profilesection.vb" id="Snippet21":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
</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.ProfilePropertySettings.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.ProfilePropertySettings.Properties" />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual property System::Configuration::ConfigurationPropertyCollection ^ Properties { System::Configuration::ConfigurationPropertyCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.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="Provider">
<MemberSignature Language="C#" Value="public string Provider { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Provider" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ProfilePropertySettings.Provider" />
<MemberSignature Language="VB.NET" Value="Public Property Provider As String" />
<MemberSignature Language="F#" Value="member this.Provider : string with get, set" Usage="System.Web.Configuration.ProfilePropertySettings.Provider" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ Provider { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("provider", DefaultValue="")]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("provider", DefaultValue="")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the name of a provider to use when serializing the named property.</summary>
<value>The name of a provider from the <see cref="P:System.Web.Configuration.ProfileSection.Providers" /> property, or an empty string (""). The default is an empty string.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Profile providers are data sources in which user-profile values are stored. You can specify profile providers in the `providers` subsection of the `profile` section of a configuration file.
If the value of this property is an empty string, the default provider specified in the <xref:System.Web.Configuration.ProfileSection.DefaultProvider%2A?displayProperty=nameWithType> property is used.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.ProfilePropertySettings.Provider%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.ProfileSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/CS/profilesection.cs" id="Snippet20":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/VB/profilesection.vb" id="Snippet20":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
</Docs>
</Member>
<Member MemberName="ReadOnly">
<MemberSignature Language="C#" Value="public bool ReadOnly { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool ReadOnly" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ProfilePropertySettings.ReadOnly" />
<MemberSignature Language="VB.NET" Value="Public Property ReadOnly As Boolean" />
<MemberSignature Language="F#" Value="member this.ReadOnly : bool with get, set" Usage="System.Web.Configuration.ProfilePropertySettings.ReadOnly" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool ReadOnly { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("readOnly", DefaultValue=false)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("readOnly", DefaultValue=false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value that determines whether the associated property in the dynamically generated <see langword="ProfileCommon" /> class is read-only.</summary>
<value>
<see langword="true" /> if the associated property in the <see langword="ProfileCommon" /> class is read-only; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
At run time, the ASP.NET compilation system uses the information specified in the `profile` section of the configuration file to generate a class called `ProfileCommon`, which is derived from <xref:System.Web.Profile.ProfileBase>. The class allows you to access and modify the values for individual user profiles.
The `ProfileCommon` class definition is based on the properties defined in the `properties` subsection of the `profile` section of the configuration file. The property values that you specify for an instance of the <xref:System.Web.Configuration.ProfilePropertySettings> class will be used to define an associated property in the `ProfileCommon` class.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.ProfilePropertySettings.ReadOnly%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.ProfileSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/CS/profilesection.cs" id="Snippet15":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/VB/profilesection.vb" id="Snippet15":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
</Docs>
</Member>
<Member MemberName="SerializeAs">
<MemberSignature Language="C#" Value="public System.Web.Configuration.SerializationMode SerializeAs { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Web.Configuration.SerializationMode SerializeAs" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ProfilePropertySettings.SerializeAs" />
<MemberSignature Language="VB.NET" Value="Public Property SerializeAs As SerializationMode" />
<MemberSignature Language="F#" Value="member this.SerializeAs : System.Web.Configuration.SerializationMode with get, set" Usage="System.Web.Configuration.ProfilePropertySettings.SerializeAs" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Web::Configuration::SerializationMode SerializeAs { System::Web::Configuration::SerializationMode get(); void set(System::Web::Configuration::SerializationMode value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("serializeAs", DefaultValue=System.Web.Configuration.SerializationMode.ProviderSpecific)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("serializeAs", DefaultValue=System.Web.Configuration.SerializationMode.ProviderSpecific)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.Configuration.SerializationMode</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the serialization method used for the associated property in the dynamically generated <see langword="ProfileCommon" /> class.</summary>
<value>One of the <see cref="T:System.Web.Configuration.SerializationMode" /> values. The default is <see cref="F:System.Web.Configuration.SerializationMode.ProviderSpecific" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about profile properties, see [ASP.NET Profile Properties Overview](https://docs.microsoft.com/previous-versions/aspnet/2y3fs9xs(v=vs.100)).
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.ProfilePropertySettings.SerializeAs%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.ProfileSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/CS/profilesection.cs" id="Snippet17":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/VB/profilesection.vb" id="Snippet17":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
<altmember cref="T:System.Web.Configuration.SerializationMode" />
</Docs>
</Member>
<Member MemberName="Type">
<MemberSignature Language="C#" Value="public string Type { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Type" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.ProfilePropertySettings.Type" />
<MemberSignature Language="VB.NET" Value="Public Property Type As String" />
<MemberSignature Language="F#" Value="member this.Type : string with get, set" Usage="System.Web.Configuration.ProfilePropertySettings.Type" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ Type { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("type", DefaultValue="string")]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("type", DefaultValue="string")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the name of the type of the associated property in the dynamically generated <see langword="ProfileCommon" /> class.</summary>
<value>A valid, fully qualified type reference, or an empty string (""). The default is an empty string.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When set to a valid type reference, this type is used for the named property in the generated `ProfileCommon` class.
The type reference is formed as follows (items in brackets are not required): `Namespace.Typename, Assemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z]`
For example:
`"ExampleNameSpace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, Culture=neutral, PublicKeyToken=%MICROSOFT_PUBLICKEY%"`
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.ProfilePropertySettings.Type%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.ProfileSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/CS/profilesection.cs" id="Snippet18":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.ProfileSection/VB/profilesection.vb" id="Snippet18":::
]]></format>
</remarks>
<altmember cref="T:System.Web.Configuration.ProfileSection" />
</Docs>
</Member>
</Members>
</Type>