Partager via


HttpRoute.Constraints Property

Gets the constraints for the route parameters.

Namespace:  System.Web.Http.Routing
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public ReadOnly Property Constraints As IDictionary(Of String, Object)
    Get
'Usage
Dim instance As HttpRoute
Dim value As IDictionary(Of String, Object)

value = instance.Constraints
public IDictionary<string, Object> Constraints { get; }
public:
virtual property IDictionary<String^, Object^>^ Constraints {
    IDictionary<String^, Object^>^ get () sealed;
}
abstract Constraints : IDictionary<string, Object>
override Constraints : IDictionary<string, Object>
final function get Constraints () : IDictionary<String, Object>

Property Value

Type: System.Collections.Generic.IDictionary<String, Object>
The constraints for the route parameters.

Implements

IHttpRoute.Constraints

See Also

Reference

HttpRoute Class

System.Web.Http.Routing Namespace