Share via


AttributeRouteModel.IsOverridePattern(String) Method

Definition

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.

Applies to