Generic method for strongly typed url removal.

Namespace: MonoSoftware.Web
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static string Remove<T>(
	this string url,
	UrlParam<T> urlParam
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function Remove(Of T) ( 
	url As String,
	urlParam As UrlParam(Of T)
) As String
Visual C++
public:
[ExtensionAttribute]
generic<typename T>
static String^ Remove(
	String^ url, 
	UrlParam<T>^ urlParam
)
F#
static member Remove : 
        url : string * 
        urlParam : UrlParam<'T> -> string 

Parameters

url
Type: System..::..String
Url string
urlParam
Type: MonoSoftware.Web..::..UrlParam<(Of <(<'T>)>)>
Url parameter

Type Parameters

T
Type of UrlParam

Return Value

Type: String
A string with removed url parameter.

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).

See Also