Class FromQueryAttribute
Used to indicate that a service endpoint parameter is to be obtained by parsing a request URI query parameter.
Namespace: Neon.ModelGen
Assembly: Neon.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Parameter)]
public class FromQueryAttribute : 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
FromQueryAttribute(string)
Constructor.
Declaration
public FromQueryAttribute(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 |