Generic method for strongly typed url creation.
Namespace: MonoSoftware.WebAssembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)
Syntax
C# |
---|
public static string Append<T>( this string url, UrlParam<T> urlParam, T value ) |
Visual Basic |
---|
<ExtensionAttribute> Public Shared Function Append(Of T) ( url As String, urlParam As UrlParam(Of T), value As T ) As String |
Visual C++ |
---|
public: [ExtensionAttribute] generic<typename T> static String^ Append( String^ url, UrlParam<T>^ urlParam, T value ) |
F# |
---|
static member Append : url : string * urlParam : UrlParam<'T> * value : 'T -> string |
Parameters
- url
- Type: System..::..String
Url string
- urlParam
- Type: MonoSoftware.Web..::..UrlParam<(Of <(<'T>)>)>
Url parameter
- value
- Type: T
Url parameter's value
Type Parameters
- T
- Type of UrlParam
Return Value
Type: StringA string with appended url parameter and its value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
If param is already present in the url, it's overriden with the new value.