IParsedRouteSegment interface
And individual segment of the route (fixed text or a parameter)
Properties
is |
Whether the parameter is required in order for the URL to be valid. |
is |
For parameters, whether or not this parameter is a wildcard (*) parameter, which means it allows multiple path segments (i.e. don't escape "/") |
param |
If present, the name of the route value parameter to substitute for this segment. Either text or paramName will be defined for a segment, never both. |
text | If present, the fixed text for this segement. Either text or paramName will be defined for a segment, never both. |
Property Details
isRequiredParam
Whether the parameter is required in order for the URL to be valid.
isRequiredParam?: boolean
Property Value
boolean
isWildCardParam
For parameters, whether or not this parameter is a wildcard (*) parameter, which means it allows multiple path segments (i.e. don't escape "/")
isWildCardParam?: boolean
Property Value
boolean
paramName
If present, the name of the route value parameter to substitute for this segment. Either text or paramName will be defined for a segment, never both.
paramName?: string
Property Value
string
text
If present, the fixed text for this segement. Either text or paramName will be defined for a segment, never both.
text?: string
Property Value
string
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應