Share via


CachedModelMetadata<TPrototypeCache>.ComputeOrder Method

This method is protected and therefore cannot be called directly. This method was designed to be overridden in a deriving class such as CachedDataAnnotationsModelMetadata.

Gets or sets a cached value that represents order of the current metadata.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Protected Overridable Function ComputeOrder As Integer
'Usage
Dim returnValue As Integer 

returnValue = Me.ComputeOrder()
protected virtual int ComputeOrder()
protected:
virtual int ComputeOrder()
abstract ComputeOrder : unit -> int  
override ComputeOrder : unit -> int
protected function ComputeOrder() : int

Return Value

Type: System.Int32
A cached value that represents order of the current metadata.

See Also

Reference

CachedModelMetadata<TPrototypeCache> Class

System.Web.Mvc Namespace