Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents an attribute route that may contain custom constraints.
Namespace: System.Web.Http.Routing
Assembly: System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
System.Attribute
System.Web.Http.Routing.RouteFactoryAttribute
Syntax
[AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Method,
Inherited = false, AllowMultiple = true)]
public abstract class RouteFactoryAttribute : Attribute, IDirectRouteFactory
[AttributeUsageAttribute(AttributeTargets::Class | AttributeTargets::Method,
Inherited = false, AllowMultiple = true)]
public ref class RouteFactoryAttribute abstract : Attribute,
IDirectRouteFactory
[<AbstractClass>]
[<AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Method,
Inherited = false, AllowMultiple = true)>]
type RouteFactoryAttribute =
class
inherit Attribute
interface IDirectRouteFactory
end
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method,
Inherited := False, AllowMultiple := True)>
Public MustInherit Class RouteFactoryAttribute
Inherits Attribute
Implements IDirectRouteFactory
Constructors
Name | Description | |
---|---|---|
![]() |
RouteFactoryAttribute(String) | Initializes a new instance of the RouteFactoryAttribute class. |
Properties
Name | Description | |
---|---|---|
![]() |
Constraints | Gets the route constraints, if any; otherwise null. |
![]() |
DataTokens | Gets the route data tokens, if any; otherwise null. |
![]() |
Defaults | Gets the route defaults, if any; otherwise null. |
![]() |
Name | Gets or sets the route name, if any; otherwise null. |
![]() |
Order | Gets or sets the route order. |
![]() |
Template | Gets the route template. |
![]() |
TypeId | (Inherited from Attribute.) |
Methods
Name | Description | |
---|---|---|
![]() |
CreateRoute(DirectRouteFactoryContext) | Creates the route entry |
![]() |
Equals(Object) | (Inherited from Attribute.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetHashCode() | (Inherited from Attribute.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
IsDefaultAttribute() | (Inherited from Attribute.) |
![]() |
Match(Object) | (Inherited from Attribute.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
ToString() | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() |
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() |
_Attribute.GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() |
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
System.Web.Http.Routing Namespace
Return to top