Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables the creation of service routes over HTTP for WCF Services with support for extension-less base addresses.
public ref class ServiceRoute : System::Web::Routing::Route
public class ServiceRoute : System.Web.Routing.Route
type ServiceRoute = class inherit Route
Public Class ServiceRoute Inherits Route
ServiceRoute is derived from Route. When the ServiceRoute constructor is called, WCF will add the corresponding route prefix (url pattern) and a (hidden) route handler to the ASP.NET RouteCollection, and cache the corresponding route prefix, service host factory and service type info into an internal hash table for future service activation.Note: if developers directly manipulate the route collection on a ServiceRoute which has been added to the collection, the change may not be granted by WCF. For more information about changing elements in a route collection, see RouteCollection. It is recommended that developers define all ServiceRoute in the global.asax file and do not remove a ServiceRoute from the RouteCollection dynamically.
|ServiceRoute(String, ServiceHostFactoryBase, Type)||
Initializes a new instance of the ServiceRoute class with the specified route prefix, service host factory, and service type.
Gets or sets a dictionary of expressions that specify valid values for a URL parameter.(Inherited from Route)
Gets or sets custom values that are passed to the route handler, but which are not used to determine whether the route matches a URL pattern.(Inherited from Route)
Gets or sets the values to use if the URL does not contain all the parameters.(Inherited from Route)
Gets or sets a value that indicates whether ASP.NET routing should handle URLs that match an existing file.(Inherited from RouteBase)
Gets or sets the object that processes requests for the route.(Inherited from Route)
Gets or sets the URL pattern for the route.(Inherited from Route)
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Returns information about the requested route.(Inherited from Route)
Gets the Type of the current instance.(Inherited from Object)
Returns information about the URL that is associated with the route.(Inherited from Route)
Creates a shallow copy of the current Object.(Inherited from Object)
|ProcessConstraint(HttpContextBase, Object, String, RouteValueDictionary, RouteDirection)||
Determines whether a parameter value matches the constraint for that parameter.(Inherited from Route)
Returns a string that represents the current object.(Inherited from Object)