AttributeRouteModel.IsOverridePattern(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if a template pattern can be used to override a prefix.
public:
static bool IsOverridePattern(System::String ^ template);
public static bool IsOverridePattern (string template);
public static bool IsOverridePattern (string? template);
static member IsOverridePattern : string -> bool
Public Shared Function IsOverridePattern (template As String) As Boolean
Parameters
- template
- String
The template.
Returns
true
if this is an overriding template, false
otherwise.
Remarks
Route templates starting with "~/" or "/" can be used to override the prefix.