WebPageRenderingBase.Href Method
When overridden in a derived class, builds a URL using the specified parameters.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Overridable Function Href ( _
path As String, _
ParamArray pathParts As Object() _
) As String
'Usage
Dim instance As WebPageRenderingBase
Dim path As String
Dim pathParts As Object()
Dim returnValue As String
returnValue = instance.Href(path, pathParts)
public virtual string Href(
string path,
params Object[] pathParts
)
public:
virtual String^ Href(
String^ path,
... array<Object^>^ pathParts
)
public function Href(
path : String,
... pathParts : Object[]
) : String
Parameters
- path
Type: System.String
The path to include in the URL.
- pathParts
Type: array<System.Object[]
Additional path information.
Return Value
Type: System.String
A URL.
Permissions
- Medium trust for the immediate caller. This member can be used by partially trusted code.