Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method should be overridden to handle POST and PUT requests that attempt to create a link between two entities.
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
[AcceptVerbsAttribute(new string[] { ... })]
public virtual Task CreateLink(
TKey key,
string navigationProperty,
Uri link
)
public:
[AcceptVerbsAttribute(new array<String^>^ { ... })]
virtual Task^ CreateLink(
TKey key,
String^ navigationProperty,
Uri^ link
)
[<AcceptVerbsAttribute([| ... |])>]
abstract CreateLink :
key:'TKey *
navigationProperty:string *
link:Uri -> Task
[<AcceptVerbsAttribute([| ... |])>]
override CreateLink :
key:'TKey *
navigationProperty:string *
link:Uri -> Task
<AcceptVerbsAttribute(New String() { ... })>
Public Overridable Function CreateLink (
key As TKey,
navigationProperty As String,
link As Uri
) As Task
Parameters
key
Type: TKeyThe key of the entity with the navigation property.
navigationProperty
Type: System.StringThe name of the navigation property.
link
Type: System.UriThe URI of the entity to link.
Return Value
Type: System.Threading.Tasks.Task
A Task that completes when the link has been successfully created.
See Also
AsyncEntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top