Api Microsoft AspNetCore Components RouteAttribute
class

RouteAttribute

public class RouteAttribute : Attribute

Constructors

RouteAttribute(String url)

Properties

Name Type Description
Url String The full url of this route (ie "/home/section/page")
Parts String[] The url split into parts (ie "home" "section" "page" )

Methods

static ValueTuple<TypeDescription, RouteAttribute>> FindValidTarget(String url, String parentUrl)

Given a URL, check out TypeLibrary and find a valid target

Boolean IsUrl(String url)

True if this matches the passed in url. Queries are trimmed and ignored ( ?query=fff ) Variables are tested (but not type matched or anything)

ValueTuple<String, String>> ExtractProperties(String url)

Given a Url, check for {properties} and convert them to key values

Assembly: Sandbox.Engine Namespace: Microsoft.AspNetCore.Components Full Name: Microsoft.AspNetCore.Components.RouteAttribute