Class FromRouteAttribute
Used to indicate that a service endpoint parameter is to be obtained by extracting it from the URI route template.
Namespace: Neon.ModelGen
Assembly: Neon.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Parameter)]
public class FromRouteAttribute : Attribute
Remarks
By default, this option will look for the query parameter with the same name as the tagged endpoint parameter. This can be overriden by setting the Name property.
Constructors
FromRouteAttribute(string)
Constructor.
Declaration
public FromRouteAttribute(string name = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Optionally specifies URI query parameter name. This defaults to the actual parameter name. |
Properties
Name
Optionally overrides the tagged service endpoint method property name when generating the client code.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |