Share via


packages__Layout_cshtml.Href Method

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Builds an absolute URL from an application-relative URL by using the specified parameters.

Namespace:  System.Web.WebPages.Administration.PackageManager
Assembly:  System.Web.WebPages.Administration (in System.Web.WebPages.Administration.dll)

Syntax

'Declaration
Public Overrides Function Href ( _
    virtualPath As String, _
    ParamArray pathParts As Object() _
) As String
'Usage
Dim instance As packages__Layout_cshtml 
Dim virtualPath As String 
Dim pathParts As Object()
Dim returnValue As String 

returnValue = instance.Href(virtualPath, _
    pathParts)
public override string Href(
    string virtualPath,
    params Object[] pathParts
)
public:
virtual String^ Href(
    String^ virtualPath, 
    ... array<Object^>^ pathParts
) override
abstract Href : 
        virtualPath:string * 
        pathParts:Object[] -> string  
override Href : 
        virtualPath:string * 
        pathParts:Object[] -> string
public override function Href(
    virtualPath : String, 
    ... pathParts : Object[]
) : String

Parameters

  • virtualPath
    Type: System.String
    The initial path to use in the URL.
  • pathParts
    Type: System.Object[]
    Additional path information, such as folders and subfolders.

Return Value

Type: System.String
The absolute URL.

See Also

Reference

packages__Layout_cshtml Class

System.Web.WebPages.Administration.PackageManager Namespace