/
RouteTable.xml
130 lines (116 loc) · 9.04 KB
/
RouteTable.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
<Type Name="RouteTable" FullName="System.Web.Routing.RouteTable">
<TypeSignature Language="C#" Value="public class RouteTable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit RouteTable extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Web.Routing.RouteTable" />
<TypeSignature Language="VB.NET" Value="Public Class RouteTable" />
<TypeSignature Language="F#" Value="type RouteTable = class" />
<TypeSignature Language="C++ CLI" Value="public ref class RouteTable" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Web.Routing</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeForwardingChain>
<TypeForwarding From="System.Web.Routing" FromVersion="4.0.0.0" To="System.Web" ToVersion="4.0.0.0" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;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 />
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Runtime.CompilerServices.TypeForwardedFrom("System.Web.Routing, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.TypeForwardedFrom("System.Web.Routing, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Stores the URL routes for an application.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Routes are URL patterns that are used for processing requests and that can be used to construct URLs dynamically. The <xref:System.Web.Routing.RouteTable.Routes%2A> property is a `static` property (`Shared` in Visual Basic) that contains all the routes in an application that are used to specify how a URL request is matched to a class that handles the request. To specify a route, you add the route definition to the <xref:System.Web.Routing.RouteTable.Routes%2A> property. Typically, you add routes to the <xref:System.Web.Routing.RouteTable.Routes%2A> property from an event handler for the `Application_Start` event in the Global.asax file.
When an ASP.NET application handles a request, the application iterates through the collection of routes in the <xref:System.Web.Routing.RouteTable.Routes%2A> property to find the route that matches the format of the URL request. The order of the routes that you add to the <xref:System.Web.Routing.RouteTable.Routes%2A> property is significant, because the application uses the first route that it finds in the collection that matches the URL.
## Examples
The following example shows how to add a <xref:System.Web.Routing.Route> object to the <xref:System.Web.Routing.RouteTable.Routes%2A> property.
[!code-csharp[System.Web.Routing.RouteTable.Routes#1](~/snippets/csharp/VS_Snippets_WebNet/System.Web.Routing.RouteTable.Routes/cs/Global.asax#1)]
[!code-vb[System.Web.Routing.RouteTable.Routes#1](~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Routing.RouteTable.Routes/vb/Global.asax#1)]
]]></format>
</remarks>
<related type="Article" href="https://docs.microsoft.com/previous-versions/aspnet/cc668201(v=vs.100)">ASP.NET Routing</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public RouteTable ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Routing.RouteTable.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 RouteTable();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Web.Routing</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.Routing.RouteTable" /> class.</summary>
<remarks>To be added.</remarks>
<related type="Article" href="https://docs.microsoft.com/previous-versions/aspnet/cc668201(v=vs.100)">ASP.NET Routing</related>
</Docs>
</Member>
<Member MemberName="Routes">
<MemberSignature Language="C#" Value="public static System.Web.Routing.RouteCollection Routes { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Web.Routing.RouteCollection Routes" />
<MemberSignature Language="DocId" Value="P:System.Web.Routing.RouteTable.Routes" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property Routes As RouteCollection" />
<MemberSignature Language="F#" Value="static member Routes : System.Web.Routing.RouteCollection" Usage="System.Web.Routing.RouteTable.Routes" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::Web::Routing::RouteCollection ^ Routes { System::Web::Routing::RouteCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Web.Routing</AssemblyName>
<AssemblyVersion>3.5.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.Web.Routing.RouteCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a collection of objects that derive from the <see cref="T:System.Web.Routing.RouteBase" /> class.</summary>
<value>An object that contains all the routes in the collection.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Routes are URL patterns that are used for processing requests and that can be used to construct URLs dynamically. The <xref:System.Web.Routing.RouteTable.Routes%2A> property is a `static` property (`Shared` in Visual Basic) that represents all the objects that are used to specify how a URL request is matched to a class that handles the request. To specify a route, you add the route definition to the <xref:System.Web.Routing.RouteTable.Routes%2A> property. Typically, you add routes to the <xref:System.Web.Routing.RouteTable.Routes%2A> property from an event handler for the `Application_Start` event in the Global.asax file.
When an ASP.NET application handles a request, the application iterates through the collection of routes in the <xref:System.Web.Routing.RouteTable.Routes%2A> property to find the route that matches the format of the URL request. The order of the routes that you add to the <xref:System.Web.Routing.RouteTable.Routes%2A> property is significant, because the application uses the first route in the collection that matches the URL.
## Examples
The following example shows how to add a <xref:System.Web.Routing.Route> object to the <xref:System.Web.Routing.RouteTable.Routes%2A> property.
[!code-csharp[System.Web.Routing.RouteTable.Routes#1](~/snippets/csharp/VS_Snippets_WebNet/System.Web.Routing.RouteTable.Routes/cs/Global.asax#1)]
[!code-vb[System.Web.Routing.RouteTable.Routes#1](~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Routing.RouteTable.Routes/vb/Global.asax#1)]
]]></format>
</remarks>
<related type="Article" href="https://docs.microsoft.com/previous-versions/aspnet/cc668201(v=vs.100)">ASP.NET Routing</related>
</Docs>
</Member>
</Members>
</Type>