Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Content Method

UrlHelper.Content Method (String)

 

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

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

Public Overridable Function Content (
	contentPath As String
) As String

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.

Return to top
Show:
© 2015 Microsoft