UrlHelperExtensions.CreateODataLink Method
Namespace: System.Web.OData.Extensions
Assembly: System.Web.OData (in System.Web.OData.dll)
Overload List
Name | Description | |
---|---|---|
CreateODataLink(UrlHelper, IList<ODataPathSegment>) | Generates an OData link using the request's OData route name and path handler and given segments. |
|
CreateODataLink(UrlHelper, ODataPathSegment[]) | Generates an OData link using the request's OData route name and path handler and given segments. |
|
CreateODataLink(UrlHelper, String, IODataPathHandler, IList<ODataPathSegment>) | Generates an OData link using the given OData route name, path handler, and segments. |
See Also
UrlHelperExtensions Class
System.Web.OData.Extensions Namespace
Return to top
UrlHelperExtensions.CreateODataLink Method (UrlHelper, IList<ODataPathSegment>)
Generates an OData link using the request's OData route name and path handler and given segments.
Syntax
public static string CreateODataLink(
this UrlHelper urlHelper,
IList<ODataPathSegment> segments
)
public:
[ExtensionAttribute]
static String^ CreateODataLink(
UrlHelper^ urlHelper,
IList<ODataPathSegment^>^ segments
)
static member CreateODataLink :
urlHelper:UrlHelper *
segments:IList<ODataPathSegment> -> string
<ExtensionAttribute>
Public Shared Function CreateODataLink (
urlHelper As UrlHelper,
segments As IList(Of ODataPathSegment)
) As String
Parameters
urlHelper
Type: System.Web.Http.Routing.UrlHelperThe URL helper.
segments
Type: System.Collections.Generic.IList<ODataPathSegment>The OData path segments.
Return Value
Type: System.String
The generated OData link.
Return to top
UrlHelperExtensions.CreateODataLink Method (UrlHelper, ODataPathSegment[])
Generates an OData link using the request's OData route name and path handler and given segments.
Syntax
public static string CreateODataLink(
this UrlHelper urlHelper,
params ODataPathSegment[] segments
)
public:
[ExtensionAttribute]
static String^ CreateODataLink(
UrlHelper^ urlHelper,
... array<ODataPathSegment^>^ segments
)
static member CreateODataLink :
urlHelper:UrlHelper *
[<ParamArrayAttribute>] segments:ODataPathSegment[] -> string
<ExtensionAttribute>
Public Shared Function CreateODataLink (
urlHelper As UrlHelper,
ParamArray segments As ODataPathSegment()
) As String
Parameters
urlHelper
Type: System.Web.Http.Routing.UrlHelperThe URL helper.
segments
Type: System.Web.OData.Routing.ODataPathSegment[]The OData path segments.
Return Value
Type: System.String
The generated OData link.
Return to top
UrlHelperExtensions.CreateODataLink Method (UrlHelper, String, IODataPathHandler, IList<ODataPathSegment>)
Generates an OData link using the given OData route name, path handler, and segments.
Syntax
public static string CreateODataLink(
this UrlHelper urlHelper,
string routeName,
IODataPathHandler pathHandler,
IList<ODataPathSegment> segments
)
public:
[ExtensionAttribute]
static String^ CreateODataLink(
UrlHelper^ urlHelper,
String^ routeName,
IODataPathHandler^ pathHandler,
IList<ODataPathSegment^>^ segments
)
static member CreateODataLink :
urlHelper:UrlHelper *
routeName:string *
pathHandler:IODataPathHandler *
segments:IList<ODataPathSegment> -> string
<ExtensionAttribute>
Public Shared Function CreateODataLink (
urlHelper As UrlHelper,
routeName As String,
pathHandler As IODataPathHandler,
segments As IList(Of ODataPathSegment)
) As String
Parameters
urlHelper
Type: System.Web.Http.Routing.UrlHelperThe URL helper.
routeName
Type: System.StringThe name of the OData route.
pathHandler
Type: System.Web.OData.Routing.IODataPathHandlerThe path handler to use for generating the link.
segments
Type: System.Collections.Generic.IList<ODataPathSegment>The OData path segments.
Return Value
Type: System.String
The generated OData link.
Return to top