C# Class URSA.Web.Mapping.FromUrlAttribute

Marks the parameter to be bound to the URL.
Inheritance: ParameterSourceAttribute, IUrlTemplateParameterSourceAttribute
Mostrar archivo Open project: alien-mcl/URSA Class Usage Examples

Public Properties

Property Type Description
Default string

Private Properties

Property Type Description
FromUrlAttribute System
IUrlTemplateParameterSourceAttribute ParameterSourceAttribute
ToString string

Public Methods

Method Description
For ( ParameterInfo parameter ) : FromUrlAttribute

Creates an instance of the FromUrlAttribute for given parameter .

FromUrlAttribute ( string url ) : System

Initializes a new instance of the FromUrlAttribute class.

Private Methods

Method Description
FromUrlAttribute ( ) : System
IUrlTemplateParameterSourceAttribute ( ParameterInfo parameter ) : ParameterSourceAttribute
ToString ( ) : string

Method Details

For() public static method

Creates an instance of the FromUrlAttribute for given parameter .
public static For ( ParameterInfo parameter ) : FromUrlAttribute
parameter System.Reflection.ParameterInfo Parameter for which the attribute needs to be created.
return FromUrlAttribute

FromUrlAttribute() public method

Initializes a new instance of the FromUrlAttribute class.
public FromUrlAttribute ( string url ) : System
url string Template of the URL for this parameter mapping.
return System

Property Details

Default public_oe static_oe property

Defines a default URL pattern.
public static string Default
return string