Share via


ODataBatchOperationResponseMessage.IODataUrlResolver.ResolveUrl Method

Method to implement a custom URL resolution scheme. This method returns null if not custom resolution is desired. If the method returns a non-null URL that value will be used without further validation.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
Private Function ResolveUrl ( _
    baseUri As Uri, _
    payloadUri As Uri _
) As Uri Implements IODataUrlResolver.ResolveUrl
'Usage
Dim instance As ODataBatchOperationResponseMessage 
Dim baseUri As Uri 
Dim payloadUri As Uri 
Dim returnValue As Uri 

returnValue = CType(instance, IODataUrlResolver).ResolveUrl(baseUri, _
    payloadUri)
Uri IODataUrlResolver.ResolveUrl(
    Uri baseUri,
    Uri payloadUri
)
private:
virtual Uri^ ResolveUrl(
    Uri^ baseUri, 
    Uri^ payloadUri
) sealed = IODataUrlResolver::ResolveUrl
private abstract ResolveUrl : 
        baseUri:Uri * 
        payloadUri:Uri -> Uri  
private override ResolveUrl : 
        baseUri:Uri * 
        payloadUri:Uri -> Uri
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

  • baseUri
    Type: System.Uri
    The (optional) base URI to use for the resolution.
  • payloadUri
    Type: System.Uri
    The URI read from the payload.

Return Value

Type: System.Uri
A Uri instance that reflects the custom resolution of the method arguments into a URL or null if no custom resolution is desired; in that case the default resolution is used.

Implements

IODataUrlResolver.ResolveUrl(Uri, Uri)

See Also

Reference

ODataBatchOperationResponseMessage Class

Microsoft.Data.OData Namespace