OptionalRouteConstraint Class

 

Constrains a route by an inner constraint that doesn't fail when an optional parameter is set to its default value.

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

System::Object
  System.Web.Http.Routing.Constraints::OptionalRouteConstraint

public ref class OptionalRouteConstraint : IHttpRouteConstraint

NameDescription
System_CAPS_pubmethodOptionalRouteConstraint(IHttpRouteConstraint^)

Initializes a new instance of the OptionalRouteConstraint class.

NameDescription
System_CAPS_pubpropertyInnerConstraint

Gets the inner constraint to match if the parameter is not an optional parameter without a value.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodMatch(HttpRequestMessage^, IHttpRoute^, String^, IDictionary<String^, Object^>^, HttpRouteDirection)

Determines whether this instance equals a specified route.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: