IUrlHelper.Content(String) Method

Definition

Converts a virtual (relative, starting with ~/) path to an application absolute path.

public:
 System::String ^ Content(System::String ^ contentPath);
public string Content (string contentPath);
public string? Content (string? contentPath);
abstract member Content : string -> string
Public Function Content (contentPath As String) As String

Parameters

contentPath
String

The virtual path of the content.

Returns

The application absolute path.

Remarks

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

Applies to