LinkGenerationHelpers.GenerateFeedSelfLink Method
Generates a feed self link following the OData URL conventions for the feed represented by feedContext.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GenerateFeedSelfLink ( _
feedContext As FeedContext _
) As Uri
'Usage
Dim feedContext As FeedContext
Dim returnValue As Uri
returnValue = feedContext.GenerateFeedSelfLink()
public static Uri GenerateFeedSelfLink(
this FeedContext feedContext
)
[ExtensionAttribute]
public:
static Uri^ GenerateFeedSelfLink(
FeedContext^ feedContext
)
static member GenerateFeedSelfLink :
feedContext:FeedContext -> Uri
public static function GenerateFeedSelfLink(
feedContext : FeedContext
) : Uri
Parameters
- feedContext
Type: System.Web.Http.OData.FeedContext
The FeedContext representing the feed for which the self link needs to be generated.
Return Value
Type: System.Uri
The generated feed self link following the OData URL conventions.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type FeedContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).