Dela via


IPageRouteModelProvider.Order Property

Definition

Gets the order value for determining the order of execution of providers. Providers execute in ascending numeric value of the Order property.

public:
 property int Order { int get(); };
public int Order { get; }
member this.Order : int
Public ReadOnly Property Order As Integer

Property Value

Remarks

Providers are executed in an ordering determined by an ascending sort of the Order property. A provider with a lower numeric value of Order will have its OnProvidersExecuting(PageRouteModelProviderContext) called before that of a provider with a higher numeric value of Order. The OnProvidersExecuted(PageRouteModelProviderContext) method is called in the reverse ordering after all calls to OnProvidersExecuting(PageRouteModelProviderContext). A provider with a lower numeric value of Order will have its OnProvidersExecuted(PageRouteModelProviderContext) method called after that of a provider with a higher numeric value of Order.

If two providers have the same numeric value of Order, then their relative execution order is undefined.

Applies to