ODataUriUtils.ConvertToUriLiteral Method (Object, ODataVersion)

Converts the given object to a string for use in a Uri. Does not perform any of the escaping that Uri provides. No type verification is used.

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 _
) As String
'Usage
Dim value As Object 
Dim version As ODataVersion 
Dim returnValue As String 

returnValue = ODataUriUtils.ConvertToUriLiteral(value, _
    version)
public static string ConvertToUriLiteral(
    Object value,
    ODataVersion version
)
public:
static String^ ConvertToUriLiteral(
    Object^ value, 
    ODataVersion version
)
static member ConvertToUriLiteral : 
        value:Object * 
        version:ODataVersion -> string
public static function ConvertToUriLiteral(
    value : Object, 
    version : ODataVersion
) : 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