UrlHelper.Content Method (String)

 

Creates an absolute URL using the specified path.

Namespace:   System.Web.Http.Routing
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

public virtual string Content(
    string path
)
public:
virtual String^ Content(
    String^ path
)
abstract Content : 
        path:string -> string
override Content : 
        path:string -> string
Public Overridable Function Content (
    path As String
) As String

Parameters

  • path
    Type: System.String

    The URL path, which may be a relative URL, a rooted URL, or a virtual path.

Return Value

Type: System.String

The generated URL.

See Also

UrlHelper Class
System.Web.Http.Routing Namespace

Return to top