Share via


ODataUriUtils.ConvertToUriLiteral Method (Object, ODataVersion, IEdmModel)

Converts the given object to a string for use in a Uri. Does not perform any of the escaping that Uri provides. Will perform type verification based on the given model if possible.

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

Syntax

'Declaration
Public Shared Function ConvertToUriLiteral ( _
    value As Object, _
    version As ODataVersion, _
    model As IEdmModel _
) As String
'Usage
Dim value As Object 
Dim version As ODataVersion 
Dim model As IEdmModel 
Dim returnValue As String 

returnValue = ODataUriUtils.ConvertToUriLiteral(value, _
    version, model)
public static string ConvertToUriLiteral(
    Object value,
    ODataVersion version,
    IEdmModel model
)
public:
static String^ ConvertToUriLiteral(
    Object^ value, 
    ODataVersion version, 
    IEdmModel^ model
)
static member ConvertToUriLiteral : 
        value:Object * 
        version:ODataVersion * 
        model:IEdmModel -> string
public static function ConvertToUriLiteral(
    value : Object, 
    version : ODataVersion, 
    model : IEdmModel
) : String

Parameters

Return Value

Type: System.String
A string representation of value for use in a Url.

See Also

Reference

ODataUriUtils Class

ConvertToUriLiteral Overload

Microsoft.Data.OData.Query Namespace