-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
ConfigurationLocation.xml
135 lines (122 loc) · 7.4 KB
/
ConfigurationLocation.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
<Type Name="ConfigurationLocation" FullName="System.Configuration.ConfigurationLocation">
<TypeSignature Language="C#" Value="public class ConfigurationLocation" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ConfigurationLocation extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Configuration.ConfigurationLocation" />
<TypeSignature Language="VB.NET" Value="Public Class ConfigurationLocation" />
<TypeSignature Language="F#" Value="type ConfigurationLocation = class" />
<TypeSignature Language="C++ CLI" Value="public ref class ConfigurationLocation" />
<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>
</AssemblyInfo>
<TypeForwardingChain>
<TypeForwarding From="System.Configuration.ConfigurationManager" FromVersion="9.0.0.0" To="System.Configuration" ToVersion="4.0.0.0" FrameworkAlternate="netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
</TypeForwardingChain>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Represents a <see langword="location" /> element within a configuration file.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
An instance of the <xref:System.Configuration.ConfigurationLocation> class represents a single `location` element within a configuration file. Locations are used to specify configuration settings that apply only to a specified resource, such as a specific page, file, or subdirectory, within your Web application. Use the <xref:System.Configuration.ConfigurationLocation> class to obtain the path and the <xref:System.Configuration.Configuration> object that applies to the specified resource.
## Examples
In the following code example, the Web configuration for the application `MySampleApp` is loaded, and then the locations defined in the configuration are displayed.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/ConfigurationLocationCollection/CS/sample.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/ConfigurationLocationCollection/VB/sample.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="OpenConfiguration">
<MemberSignature Language="C#" Value="public System.Configuration.Configuration OpenConfiguration ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Configuration.Configuration OpenConfiguration() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Configuration.ConfigurationLocation.OpenConfiguration" />
<MemberSignature Language="VB.NET" Value="Public Function OpenConfiguration () As Configuration" />
<MemberSignature Language="F#" Value="member this.OpenConfiguration : unit -> System.Configuration.Configuration" Usage="configurationLocation.OpenConfiguration " />
<MemberSignature Language="C++ CLI" Value="public:
 System::Configuration::Configuration ^ OpenConfiguration();" />
<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>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Configuration.Configuration</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates an instance of a Configuration object.</summary>
<returns>A Configuration object.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Path">
<MemberSignature Language="C#" Value="public string Path { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Path" />
<MemberSignature Language="DocId" Value="P:System.Configuration.ConfigurationLocation.Path" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Path As String" />
<MemberSignature Language="F#" Value="member this.Path : string" Usage="System.Configuration.ConfigurationLocation.Path" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ Path { 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>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the relative path to the resource whose configuration settings are represented by this <see cref="T:System.Configuration.ConfigurationLocation" /> object.</summary>
<value>The relative path to the resource whose configuration settings are represented by this <see cref="T:System.Configuration.ConfigurationLocation" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The path that is returned by the <xref:System.Configuration.ConfigurationLocation.Path%2A> property is relative to the root of your Web site.
> [!NOTE]
> The <xref:System.Configuration.ConfigurationLocation.Path%2A> property might contain a comma-delimited list of paths to which the configuration setting applies.
## Examples
The following code example shows how to access the <xref:System.Configuration.ConfigurationLocation.Path%2A> property and display the value returned to the console.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/ConfigurationLocationCollection/CS/sample.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/ConfigurationLocationCollection/VB/sample.vb" id="Snippet2":::
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>