-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathConfiguration.xml
More file actions
1135 lines (1010 loc) · 69.6 KB
/
Copy pathConfiguration.xml
File metadata and controls
1135 lines (1010 loc) · 69.6 KB
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
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="Configuration" FullName="System.Configuration.Configuration">
<TypeSignature Language="C#" Value="public sealed class Configuration" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit Configuration extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Configuration.Configuration" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class Configuration" />
<TypeSignature Language="F#" Value="type Configuration = class" />
<TypeSignature Language="C++ CLI" Value="public ref class Configuration sealed" />
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeForwardingChain>
<TypeForwarding From="System.Configuration.ConfigurationManager" FromVersion="11.0.0.0" To="System.Configuration" ToVersion="4.0.0.0" FrameworkAlternate="netframework-4.6.2-pp;netframework-4.7.1-pp;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8.1-pp;netframework-4.8-pp" />
</TypeForwardingChain>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Represents a configuration file that is applicable to a particular computer, application, or resource. This class cannot be inherited.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Configuration settings are stored in a hierarchy of configuration files. The <xref:System.Configuration.Configuration> class instance represents the merged view of the configuration settings from all of the configuration files that apply to a specific physical entity, such as a computer, or to a logical entity, such as an application or a Web site. The logical entity can exist on the local computer or on a remote server.
When no configuration file exists for a specified entity, the <xref:System.Configuration.Configuration> object represents the default configuration settings as defined by the Machine.config file.
You can get a <xref:System.Configuration.Configuration> object by using the following classes:
- The <xref:System.Configuration.ConfigurationManager> class, if your entity is a client application.
- The <xref:System.Web.Configuration.WebConfigurationManager> class, if your entity is a Web application.
The names of the methods that return a <xref:System.Configuration.Configuration> object begin with "Open".
You can also generate a configuration file that represents the configuration settings in a <xref:System.Configuration.Configuration> object. To do this, use one of the following methods:
- Call the <xref:System.Configuration.Configuration.Save*> method to create a new configuration file.
- Call the <xref:System.Configuration.Configuration.SaveAs*> method to generate a new configuration file at another location.
The names of the methods that create configuration files begin with "Save".
> [!NOTE]
> To enable access to configuration settings on a remote computer, use the Aspnet_regiis command-line tool. For information about creating and accessing custom configuration settings other than the intrinsic sections included in .NET, see <xref:System.Configuration.ConfigurationSection>.
## Examples
The following code example demonstrates how to use the <xref:System.Configuration.Configuration> class to access configuration file elements.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Configuration.Configuration/CS/Configuration.cs" id="Snippet31":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Configuration.Configuration/VB/Configuration.vb" id="Snippet31":::
]]></format>
</remarks>
<block subset="none" type="overrides">
<para>The <see cref="T:System.Configuration.Configuration" /> class provides programmatic access for editing configuration files. You use one of the "Open" methods provided by the <see cref="T:System.Web.Configuration.WebConfigurationManager" /> class for Web applications or by the <see cref="T:System.Configuration.ConfigurationManager" /> class for client applications. These methods return a <see cref="T:System.Configuration.Configuration" /> object, which in turn provides the methods and properties that handle the underlying configuration files. You can access these files for reading or writing configuration information.
You use the <see cref="M:System.Configuration.Configuration.GetSection(System.String)" /> method or the <see cref="M:System.Configuration.Configuration.GetSectionGroup(System.String)" /> method to read configuration information. Note that the user or process that reads must have the following permissions:
- Read permission on the configuration file at the current configuration hierarchy level.
- Read permissions on all the parent configuration files.
If your application needs read-only access to its own configuration, it is recommended that you use the <see cref="Overload:System.Web.Configuration.WebConfigurationManager.GetSection" /> method overloads for Web applications. For client application, use the <see cref="M:System.Configuration.ConfigurationManager.GetSection(System.String)" /> method.
These methods provide access to the cached configuration values for the current application, which has better performance than the <see cref="T:System.Configuration.Configuration" /> class.
Note: If you use a static <see langword="GetSection" /> method that takes a path parameter, the path parameter must refer to the application in which the code is running, otherwise the parameter is ignored and configuration information for the currently running application is returned.
You use one of the <see cref="Overload:System.Configuration.Configuration.Save" /> methods to write configuration information. Note that the user or process that writes must have the following permissions:
- Write permission on the configuration file and directory at the current configuration hierarchy level.
- Read permissions on all the configuration files.</para>
</block>
<altmember cref="T:System.Configuration.ConfigurationSection" />
<altmember cref="T:System.Configuration.ConfigurationManager" />
</Docs>
<Members>
<Member MemberName="AppSettings">
<MemberSignature Language="C#" Value="public System.Configuration.AppSettingsSection AppSettings { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.AppSettingsSection AppSettings" />
<MemberSignature Language="DocId" Value="P:System.Configuration.Configuration.AppSettings" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property AppSettings As AppSettingsSection" />
<MemberSignature Language="F#" Value="member this.AppSettings : System.Configuration.AppSettingsSection" Usage="System.Configuration.Configuration.AppSettings" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Configuration::AppSettingsSection ^ AppSettings { System::Configuration::AppSettingsSection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Configuration.AppSettingsSection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the <see cref="T:System.Configuration.AppSettingsSection" /> object configuration section that applies to this <see cref="T:System.Configuration.Configuration" /> object.</summary>
<value>An <see cref="T:System.Configuration.AppSettingsSection" /> object representing the <see langword="appSettings" /> configuration section that applies to this <see cref="T:System.Configuration.Configuration" /> object.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Configuration.Configuration.AppSettings> property to access and change the `appSettings` configuration section defined by default in the open configuration file.
## Examples
The following code example demonstrates how to use the <xref:System.Configuration.Configuration.AppSettings> property.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Configuration.Configuration/CS/Configuration.cs" id="Snippet5":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Configuration.Configuration/VB/Configuration.vb" id="Snippet5":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="AssemblyStringTransformer">
<MemberSignature Language="C#" Value="public Func<string,string> AssemblyStringTransformer { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Func`2<string, string> AssemblyStringTransformer" />
<MemberSignature Language="DocId" Value="P:System.Configuration.Configuration.AssemblyStringTransformer" />
<MemberSignature Language="VB.NET" Value="Public Property AssemblyStringTransformer As Func(Of String, String)" />
<MemberSignature Language="F#" Value="member this.AssemblyStringTransformer : Func<string, string> with get, set" Usage="System.Configuration.Configuration.AssemblyStringTransformer" />
<MemberSignature Language="C++ CLI" Value="public:
 property Func<System::String ^, System::String ^> ^ AssemblyStringTransformer { Func<System::String ^, System::String ^> ^ get(); void set(Func<System::String ^, System::String ^> ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Func<System.String,System.String></ReturnType>
</ReturnValue>
<Docs>
<summary>Specifies a function delegate that is used to transform assembly strings in configuration files.</summary>
<value>A delegate that transforms type strings. The default value is <see langword="null" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property enables a consumer of the .NET configuration system to set a function delegate that is used to transform assembly strings found in configuration files. The function makes sure that assembly strings are formatted correctly for the targeted version of .NET when configuration files are updated.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ConnectionStrings">
<MemberSignature Language="C#" Value="public System.Configuration.ConnectionStringsSection ConnectionStrings { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.ConnectionStringsSection ConnectionStrings" />
<MemberSignature Language="DocId" Value="P:System.Configuration.Configuration.ConnectionStrings" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ConnectionStrings As ConnectionStringsSection" />
<MemberSignature Language="F#" Value="member this.ConnectionStrings : System.Configuration.ConnectionStringsSection" Usage="System.Configuration.Configuration.ConnectionStrings" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Configuration::ConnectionStringsSection ^ ConnectionStrings { System::Configuration::ConnectionStringsSection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Configuration.ConnectionStringsSection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a <see cref="T:System.Configuration.ConnectionStringsSection" /> configuration-section object that applies to this <see cref="T:System.Configuration.Configuration" /> object.</summary>
<value>A <see cref="T:System.Configuration.ConnectionStringsSection" /> configuration-section object representing the <see langword="connectionStrings" /> configuration section that applies to this <see cref="T:System.Configuration.Configuration" /> object.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Configuration.Configuration.ConnectionStrings> property to access and change the `connectionStrings` configuration section defined in the open configuration file.
## Examples
The following code example demonstrates how to use the <xref:System.Configuration.Configuration.ConnectionStrings> property.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Configuration.Configuration/CS/Configuration.cs" id="Snippet6":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Configuration.Configuration/VB/Configuration.vb" id="Snippet6":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="EvaluationContext">
<MemberSignature Language="C#" Value="public System.Configuration.ContextInformation EvaluationContext { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.ContextInformation EvaluationContext" />
<MemberSignature Language="DocId" Value="P:System.Configuration.Configuration.EvaluationContext" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property EvaluationContext As ContextInformation" />
<MemberSignature Language="F#" Value="member this.EvaluationContext : System.Configuration.ContextInformation" Usage="System.Configuration.Configuration.EvaluationContext" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Configuration::ContextInformation ^ EvaluationContext { System::Configuration::ContextInformation ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Configuration.ContextInformation</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the <see cref="T:System.Configuration.ContextInformation" /> object for the <see cref="T:System.Configuration.Configuration" /> object.</summary>
<value>The <see cref="T:System.Configuration.ContextInformation" /> object for the <see cref="T:System.Configuration.Configuration" /> object.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A <xref:System.Configuration.ContextInformation> object provides the context necessary for a <xref:System.Configuration.Configuration> object to respond based upon where it is being evaluated.
## Examples
The following code example demonstrates how to use the <xref:System.Configuration.Configuration.EvaluationContext> property.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Configuration.Configuration/CS/Configuration.cs" id="Snippet7":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Configuration.Configuration/VB/Configuration.vb" id="Snippet7":::
]]></format>
</remarks>
<altmember cref="T:System.Configuration.ContextInformation" />
</Docs>
</Member>
<Member MemberName="FilePath">
<MemberSignature Language="C#" Value="public string FilePath { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string FilePath" />
<MemberSignature Language="DocId" Value="P:System.Configuration.Configuration.FilePath" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property FilePath As String" />
<MemberSignature Language="F#" Value="member this.FilePath : string" Usage="System.Configuration.Configuration.FilePath" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ FilePath { System::String ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the physical path to the configuration file represented by this <see cref="T:System.Configuration.Configuration" /> object.</summary>
<value>The physical path to the configuration file represented by this <see cref="T:System.Configuration.Configuration" /> object.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If the value for this <xref:System.Configuration.Configuration.FilePath> property represents a merged view and no actual file exists for the application, the path to the parent configuration file is returned.
## Examples
The following code example demonstrates how to use the <xref:System.Configuration.Configuration.FilePath> property.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Configuration.Configuration/CS/Configuration.cs" id="Snippet8":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Configuration.Configuration/VB/Configuration.vb" id="Snippet8":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GetSection">
<MemberSignature Language="C#" Value="public System.Configuration.ConfigurationSection GetSection (string sectionName);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Configuration.ConfigurationSection GetSection(string sectionName) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Configuration.Configuration.GetSection(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function GetSection (sectionName As String) As ConfigurationSection" />
<MemberSignature Language="F#" Value="member this.GetSection : string -> System.Configuration.ConfigurationSection" Usage="configuration.GetSection sectionName" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Configuration::ConfigurationSection ^ GetSection(System::String ^ sectionName);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Configuration.ConfigurationSection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="sectionName" Type="System.String" />
</Parameters>
<Docs>
<param name="sectionName">The path to the section to be returned.</param>
<summary>Returns the specified <see cref="T:System.Configuration.ConfigurationSection" /> object.</summary>
<returns>The specified <see cref="T:System.Configuration.ConfigurationSection" /> object, or <see langword="null" /> if the requested section does not exist.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Configuration settings are contained within sections that group similar settings together for convenience. The <xref:System.Configuration.Configuration.GetSection*> method retrieves a configuration section by its name.
## Examples
The following example shows how to use the <xref:System.Configuration.Configuration.GetSection*> method to access a custom section. For the complete example code that defines a class that stores information for the `CustomSection` section, see the <xref:System.Configuration.Configuration> class overview.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Configuration.Configuration/CS/Configuration.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Configuration.Configuration/VB/Configuration.vb" id="Snippet3":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GetSectionGroup">
<MemberSignature Language="C#" Value="public System.Configuration.ConfigurationSectionGroup GetSectionGroup (string sectionGroupName);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Configuration.ConfigurationSectionGroup GetSectionGroup(string sectionGroupName) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Configuration.Configuration.GetSectionGroup(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function GetSectionGroup (sectionGroupName As String) As ConfigurationSectionGroup" />
<MemberSignature Language="F#" Value="member this.GetSectionGroup : string -> System.Configuration.ConfigurationSectionGroup" Usage="configuration.GetSectionGroup sectionGroupName" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Configuration::ConfigurationSectionGroup ^ GetSectionGroup(System::String ^ sectionGroupName);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Configuration.ConfigurationSectionGroup</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="sectionGroupName" Type="System.String" />
</Parameters>
<Docs>
<param name="sectionGroupName">The path name of the <see cref="T:System.Configuration.ConfigurationSectionGroup" /> to return.</param>
<summary>Gets the specified <see cref="T:System.Configuration.ConfigurationSectionGroup" /> object.</summary>
<returns>The <see cref="T:System.Configuration.ConfigurationSectionGroup" /> specified, or <see langword="null" /> if the requested section group does not exist.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Configuration.Configuration.GetSectionGroup*> method to obtain a specific <xref:System.Configuration.ConfigurationSectionGroup> from a <xref:System.Configuration.Configuration> object.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="HasFile">
<MemberSignature Language="C#" Value="public bool HasFile { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasFile" />
<MemberSignature Language="DocId" Value="P:System.Configuration.Configuration.HasFile" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property HasFile As Boolean" />
<MemberSignature Language="F#" Value="member this.HasFile : bool" Usage="System.Configuration.Configuration.HasFile" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool HasFile { bool get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value that indicates whether a file exists for the resource represented by this <see cref="T:System.Configuration.Configuration" /> object.</summary>
<value>
<see langword="true" /> if there is a configuration file; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Configuration.Configuration.HasFile> property returns `false` when this <xref:System.Configuration.Configuration> object represents a location-specific configuration.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Locations">
<MemberSignature Language="C#" Value="public System.Configuration.ConfigurationLocationCollection Locations { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.ConfigurationLocationCollection Locations" />
<MemberSignature Language="DocId" Value="P:System.Configuration.Configuration.Locations" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Locations As ConfigurationLocationCollection" />
<MemberSignature Language="F#" Value="member this.Locations : System.Configuration.ConfigurationLocationCollection" Usage="System.Configuration.Configuration.Locations" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Configuration::ConfigurationLocationCollection ^ Locations { System::Configuration::ConfigurationLocationCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Configuration.ConfigurationLocationCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the locations defined within this <see cref="T:System.Configuration.Configuration" /> object.</summary>
<value>A <see cref="T:System.Configuration.ConfigurationLocationCollection" /> containing the locations defined within this <see cref="T:System.Configuration.Configuration" /> object.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Configuration.Configuration.Locations> property applies only when the <xref:System.Configuration.Configuration.HasFile> property returns `true`. If this configuration inherits all of its settings, or no locations are defined, an empty collection is returned.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="NamespaceDeclared">
<MemberSignature Language="C#" Value="public bool NamespaceDeclared { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool NamespaceDeclared" />
<MemberSignature Language="DocId" Value="P:System.Configuration.Configuration.NamespaceDeclared" />
<MemberSignature Language="VB.NET" Value="Public Property NamespaceDeclared As Boolean" />
<MemberSignature Language="F#" Value="member this.NamespaceDeclared : bool with get, set" Usage="System.Configuration.Configuration.NamespaceDeclared" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool NamespaceDeclared { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the configuration file has an XML namespace.</summary>
<value>
<see langword="true" /> if the configuration file has an XML namespace; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Configuration files are formatted as XML files, but an XML namespace is not required. If this value is `true` after the <xref:System.Configuration.Configuration> object is opened, then the file contains a namespace reference. If it is set to `true` before the <xref:System.Configuration.Configuration> object is saved, then a namespace reference will be added to the file.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="RootSectionGroup">
<MemberSignature Language="C#" Value="public System.Configuration.ConfigurationSectionGroup RootSectionGroup { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.ConfigurationSectionGroup RootSectionGroup" />
<MemberSignature Language="DocId" Value="P:System.Configuration.Configuration.RootSectionGroup" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property RootSectionGroup As ConfigurationSectionGroup" />
<MemberSignature Language="F#" Value="member this.RootSectionGroup : System.Configuration.ConfigurationSectionGroup" Usage="System.Configuration.Configuration.RootSectionGroup" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Configuration::ConfigurationSectionGroup ^ RootSectionGroup { System::Configuration::ConfigurationSectionGroup ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Configuration.ConfigurationSectionGroup</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the root <see cref="T:System.Configuration.ConfigurationSectionGroup" /> for this <see cref="T:System.Configuration.Configuration" /> object.</summary>
<value>The root section group for this <see cref="T:System.Configuration.Configuration" /> object.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<MemberGroup MemberName="Save">
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Writes the configuration settings contained within this <see cref="T:System.Configuration.Configuration" /> object to the current XML configuration file.</summary>
</Docs>
</MemberGroup>
<Member MemberName="Save">
<MemberSignature Language="C#" Value="public void Save ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Save() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Configuration.Configuration.Save" />
<MemberSignature Language="VB.NET" Value="Public Sub Save ()" />
<MemberSignature Language="F#" Value="member this.Save : unit -> unit" Usage="configuration.Save " />
<MemberSignature Language="C++ CLI" Value="public:
 void Save();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Writes the configuration settings contained within this <see cref="T:System.Configuration.Configuration" /> object to the current XML configuration file.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Configuration.Configuration.Save*> method persists any configuration settings that have been modified since this <xref:System.Configuration.Configuration> object was created. If a configuration file does not exist at the physical location represented by the <xref:System.Configuration.Configuration.FilePath> property, a new configuration file will be created to contain any settings that are different from the inherited configuration.
If the configuration file has changed since this <xref:System.Configuration.Configuration> object was created, a run-time error occurs.
> [!NOTE]
> When 'Creator Owner' is listed in the ACL (Access Control List) of the directory containing the configuration file, the current user of <xref:System.Configuration.Configuration.Save*> becomes the new owner of the file and inherits the permissions granted to 'Creator Owner'. This results in an elevation of privileges for the current user and a removal of privileges for the previous owner.
]]></format>
</remarks>
<exception cref="T:System.Configuration.ConfigurationErrorsException">The configuration file could not be written to.
-or-
The configuration file has changed.</exception>
</Docs>
</Member>
<Member MemberName="Save">
<MemberSignature Language="C#" Value="public void Save (System.Configuration.ConfigurationSaveMode saveMode);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Save(valuetype System.Configuration.ConfigurationSaveMode saveMode) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Configuration.Configuration.Save(System.Configuration.ConfigurationSaveMode)" />
<MemberSignature Language="VB.NET" Value="Public Sub Save (saveMode As ConfigurationSaveMode)" />
<MemberSignature Language="F#" Value="member this.Save : System.Configuration.ConfigurationSaveMode -> unit" Usage="configuration.Save saveMode" />
<MemberSignature Language="C++ CLI" Value="public:
 void Save(System::Configuration::ConfigurationSaveMode saveMode);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="saveMode" Type="System.Configuration.ConfigurationSaveMode" />
</Parameters>
<Docs>
<param name="saveMode">A <see cref="T:System.Configuration.ConfigurationSaveMode" /> value that determines which property values to save.</param>
<summary>Writes the configuration settings contained within this <see cref="T:System.Configuration.Configuration" /> object to the current XML configuration file.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Configuration.Configuration.Save*> method persists configuration settings in the <xref:System.Configuration.Configuration> object based on the `saveMode` parameter.
If a configuration file does not exist at the physical location represented by the <xref:System.Configuration.Configuration.FilePath> property, a new configuration file will be created to contain any settings that are different from the inherited configuration.
If the configuration file has changed since this <xref:System.Configuration.Configuration> object was created, a run-time error occurs.
> [!NOTE]
> When 'Creator Owner' is listed in the ACL (Access Control List) of the directory containing the configuration file, the current user of <xref:System.Configuration.Configuration.Save*> becomes the new owner of the file and inherits the permissions granted to 'Creator Owner'. This results in an elevation of privileges for the current user and a removal of privileges for the previous owner.
## Examples
The following code example demonstrates how to use the <xref:System.Configuration.Configuration.Save*> method to save a custom section.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Configuration.Configuration/CS/Configuration.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Configuration.Configuration/VB/Configuration.vb" id="Snippet2":::
]]></format>
</remarks>
<exception cref="T:System.Configuration.ConfigurationErrorsException">The configuration file could not be written to.
-or-
The configuration file has changed.</exception>
</Docs>
</Member>
<Member MemberName="Save">
<MemberSignature Language="C#" Value="public void Save (System.Configuration.ConfigurationSaveMode saveMode, bool forceSaveAll);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Save(valuetype System.Configuration.ConfigurationSaveMode saveMode, bool forceSaveAll) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Configuration.Configuration.Save(System.Configuration.ConfigurationSaveMode,System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Sub Save (saveMode As ConfigurationSaveMode, forceSaveAll As Boolean)" />
<MemberSignature Language="F#" Value="member this.Save : System.Configuration.ConfigurationSaveMode * bool -> unit" Usage="configuration.Save (saveMode, forceSaveAll)" />
<MemberSignature Language="C++ CLI" Value="public:
 void Save(System::Configuration::ConfigurationSaveMode saveMode, bool forceSaveAll);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="saveMode" Type="System.Configuration.ConfigurationSaveMode" />
<Parameter Name="forceSaveAll" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="saveMode">A <see cref="T:System.Configuration.ConfigurationSaveMode" /> value that determines which property values to save.</param>
<param name="forceSaveAll">
<see langword="true" /> to save even if the configuration was not modified; otherwise, <see langword="false" />.</param>
<summary>Writes the configuration settings contained within this <see cref="T:System.Configuration.Configuration" /> object to the current XML configuration file.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Configuration.Configuration.Save*> method persists configuration settings in the <xref:System.Configuration.Configuration> object based on the `saveMode` and `forceSaveAll` parameters.
If a configuration file does not exist at the physical location represented by the <xref:System.Configuration.Configuration.FilePath> property, a new configuration file will be created to contain any settings that are different from the inherited configuration.
If the configuration file has changed since this <xref:System.Configuration.Configuration> object was created, a run-time error occurs.
> [!NOTE]
> When 'Creator Owner' is listed in the ACL (Access Control List) of the directory containing the configuration file, the current user of <xref:System.Configuration.Configuration.Save*> becomes the new owner of the file and inherits the permissions granted to 'Creator Owner'. This results in an elevation of privileges for the current user and a removal of privileges for the previous owner.
]]></format>
</remarks>
<exception cref="T:System.Configuration.ConfigurationErrorsException">The configuration file could not be written to.
-or-
The configuration file has changed.</exception>
</Docs>
</Member>
<MemberGroup MemberName="SaveAs">
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Writes the configuration settings contained within this <see cref="T:System.Configuration.Configuration" /> object to the specified XML configuration file.</summary>
</Docs>
</MemberGroup>
<Member MemberName="SaveAs">
<MemberSignature Language="C#" Value="public void SaveAs (string filename);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SaveAs(string filename) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Configuration.Configuration.SaveAs(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub SaveAs (filename As String)" />
<MemberSignature Language="F#" Value="member this.SaveAs : string -> unit" Usage="configuration.SaveAs filename" />
<MemberSignature Language="C++ CLI" Value="public:
 void SaveAs(System::String ^ filename);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="filename" Type="System.String" />
</Parameters>
<Docs>
<param name="filename">The path and file name to save the configuration file to.</param>
<summary>Writes the configuration settings contained within this <see cref="T:System.Configuration.Configuration" /> object to the specified XML configuration file.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Configuration.Configuration.SaveAs*> method persists any configuration settings that have been modified since this <xref:System.Configuration.Configuration> object was created to a new file.
If a configuration file does not exist at the physical location represented by the
<xref:System.Configuration.Configuration.FilePath> property, a new configuration file will be created to contain any settings that are different from the inherited configuration.
If the configuration file has changed since this <xref:System.Configuration.Configuration> object was created, a run-time error occurs.
]]></format>
</remarks>
<exception cref="T:System.Configuration.ConfigurationErrorsException">The configuration file could not be written to.
-or-
The configuration file has changed.</exception>
</Docs>
</Member>
<Member MemberName="SaveAs">
<MemberSignature Language="C#" Value="public void SaveAs (string filename, System.Configuration.ConfigurationSaveMode saveMode);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SaveAs(string filename, valuetype System.Configuration.ConfigurationSaveMode saveMode) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Configuration.Configuration.SaveAs(System.String,System.Configuration.ConfigurationSaveMode)" />
<MemberSignature Language="VB.NET" Value="Public Sub SaveAs (filename As String, saveMode As ConfigurationSaveMode)" />
<MemberSignature Language="F#" Value="member this.SaveAs : string * System.Configuration.ConfigurationSaveMode -> unit" Usage="configuration.SaveAs (filename, saveMode)" />
<MemberSignature Language="C++ CLI" Value="public:
 void SaveAs(System::String ^ filename, System::Configuration::ConfigurationSaveMode saveMode);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="filename" Type="System.String" />
<Parameter Name="saveMode" Type="System.Configuration.ConfigurationSaveMode" />
</Parameters>
<Docs>
<param name="filename">The path and file name to save the configuration file to.</param>
<param name="saveMode">A <see cref="T:System.Configuration.ConfigurationSaveMode" /> value that determines which property values to save.</param>
<summary>Writes the configuration settings contained within this <see cref="T:System.Configuration.Configuration" /> object to the specified XML configuration file.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Configuration.Configuration.SaveAs*> method persists configuration settings in the <xref:System.Configuration.Configuration> object to a new file based on the `saveMode` parameter.
If a configuration file does not exist at the physical location represented by the <xref:System.Configuration.Configuration.FilePath> property, a new configuration file will be created to contain any settings that are different from the inherited configuration.
If the configuration file has changed since this <xref:System.Configuration.Configuration> object was created, a run-time error occurs.
]]></format>
</remarks>
<exception cref="T:System.Configuration.ConfigurationErrorsException">The configuration file could not be written to.
-or-
The configuration file has changed.</exception>
</Docs>
</Member>
<Member MemberName="SaveAs">
<MemberSignature Language="C#" Value="public void SaveAs (string filename, System.Configuration.ConfigurationSaveMode saveMode, bool forceSaveAll);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SaveAs(string filename, valuetype System.Configuration.ConfigurationSaveMode saveMode, bool forceSaveAll) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Configuration.Configuration.SaveAs(System.String,System.Configuration.ConfigurationSaveMode,System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Sub SaveAs (filename As String, saveMode As ConfigurationSaveMode, forceSaveAll As Boolean)" />
<MemberSignature Language="F#" Value="member this.SaveAs : string * System.Configuration.ConfigurationSaveMode * bool -> unit" Usage="configuration.SaveAs (filename, saveMode, forceSaveAll)" />
<MemberSignature Language="C++ CLI" Value="public:
 void SaveAs(System::String ^ filename, System::Configuration::ConfigurationSaveMode saveMode, bool forceSaveAll);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="filename" Type="System.String" />
<Parameter Name="saveMode" Type="System.Configuration.ConfigurationSaveMode" />
<Parameter Name="forceSaveAll" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="filename">The path and file name to save the configuration file to.</param>
<param name="saveMode">A <see cref="T:System.Configuration.ConfigurationSaveMode" /> value that determines which property values to save.</param>
<param name="forceSaveAll">
<see langword="true" /> to save even if the configuration was not modified; otherwise, <see langword="false" />.</param>
<summary>Writes the configuration settings contained within this <see cref="T:System.Configuration.Configuration" /> object to the specified XML configuration file.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Configuration.Configuration.SaveAs*> method persists configuration settings in the <xref:System.Configuration.Configuration> object to a new file based on the `saveMode` and `forceSaveAll` parameters.
If a configuration file does not exist at the physical location represented by the <xref:System.Configuration.Configuration.FilePath> property, a new configuration file will be created to contain any settings that are different from the inherited configuration.
If the configuration file has changed since this <xref:System.Configuration.Configuration> object was created, a run-time error occurs.
## Examples
The following code example demonstrates how to use the <xref:System.Configuration.Configuration.SaveAs*> method.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Configuration.Configuration/CS/Configuration.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Configuration.Configuration/VB/Configuration.vb" id="Snippet4":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentException">
<paramref name="filename" /> is null or an empty string ("").</exception>
</Docs>
</Member>
<Member MemberName="SectionGroups">
<MemberSignature Language="C#" Value="public System.Configuration.ConfigurationSectionGroupCollection SectionGroups { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.ConfigurationSectionGroupCollection SectionGroups" />
<MemberSignature Language="DocId" Value="P:System.Configuration.Configuration.SectionGroups" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property SectionGroups As ConfigurationSectionGroupCollection" />
<MemberSignature Language="F#" Value="member this.SectionGroups : System.Configuration.ConfigurationSectionGroupCollection" Usage="System.Configuration.Configuration.SectionGroups" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Configuration::ConfigurationSectionGroupCollection ^ SectionGroups { System::Configuration::ConfigurationSectionGroupCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Configuration</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Configuration.ConfigurationManager</AssemblyName>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Configuration.ConfigurationSectionGroupCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a collection of the section groups defined by this configuration.</summary>
<value>A <see cref="T:System.Configuration.ConfigurationSectionGroupCollection" /> collection representing the collection of section groups for this <see cref="T:System.Configuration.Configuration" /> object.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Configuration sections can be combined into groups for convenience and added functionality. Access the <xref:System.Configuration.Configuration.SectionGroups> property to retrieve the <xref:System.Configuration.ConfigurationSectionGroupCollection> object representing the collection of section groups for this <xref:System.Configuration.Configuration> object. If this <xref:System.Configuration.Configuration> object represents an inherited view, the merged list of section groups will be returned.
## Examples
The following code example demonstrates how to use the <xref:System.Configuration.Configuration.SectionGroups> property.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Configuration.Configuration/CS/Configuration.cs" id="Snippet10":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Configuration.Configuration/VB/Configuration.vb" id="Snippet10":::
]]></format>
</remarks>