Export (0) Print
Expand All

UrlHelper.Content Method

.NET Framework 4

Converts a virtual (relative) path to an application absolute path.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public string Content(
	string contentPath
)

Parameters

contentPath
Type: System.String
The virtual path of the content.

Return Value

Type: System.String
The application absolute path.

If the specified content path does not start with the tilde (~) character, this method returns contentPath unchanged.

Community Additions

ADD
Show:
© 2014 Microsoft