Redigera

Dela via


RouteCollection.Item[String] Property

Definition

Gets the route in the collection that has the specified name.

public:
 property System::Web::Routing::RouteBase ^ default[System::String ^] { System::Web::Routing::RouteBase ^ get(System::String ^ name); };
public System.Web.Routing.RouteBase this[string name] { get; }
member this.Item(string) : System.Web.Routing.RouteBase
Default Public ReadOnly Property Item(name As String) As RouteBase

Parameters

name
String

The value that identifies the route to get.

Property Value

An object that has the specified name, or null if name is null, is an empty string, or does not match any route in the collection.

Remarks

Use the GetReadLock method and the GetWriteLock method to make sure that you interact with the collection without conflicts from other processes.

Applies to

See also