Delen via


ODataUriUtils.ConvertToUriLiteral Method

Definition

Overloads

ConvertToUriLiteral(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.

ConvertToUriLiteral(Object, ODataVersion, IEdmModel)

Converts the given object to a string in the specified format 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.

ConvertToUriLiteral(Object, ODataVersion, Boolean)

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.

ConvertToUriLiteral(Object, ODataVersion, IEdmModel, Boolean)

Converts the given object to a string in the specified format 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.

ConvertToUriLiteral(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.

public static string ConvertToUriLiteral (object value, Microsoft.OData.ODataVersion version);
static member ConvertToUriLiteral : obj * Microsoft.OData.ODataVersion -> string
Public Shared Function ConvertToUriLiteral (value As Object, version As ODataVersion) As String

Parameters

value
Object

Value to be converted.

version
ODataVersion

Version to be compliant with.

Returns

A string representation of value for use in a Url.

Applies to

ConvertToUriLiteral(Object, ODataVersion, IEdmModel)

Converts the given object to a string in the specified format 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.

public static string ConvertToUriLiteral (object value, Microsoft.OData.ODataVersion version, Microsoft.OData.Edm.IEdmModel model);
static member ConvertToUriLiteral : obj * Microsoft.OData.ODataVersion * Microsoft.OData.Edm.IEdmModel -> string
Public Shared Function ConvertToUriLiteral (value As Object, version As ODataVersion, model As IEdmModel) As String

Parameters

value
Object

Value to be converted (can be EnumNode).

version
ODataVersion

Version to be compliant with.

model
IEdmModel

Optional model to perform verification against.

Returns

A string representation of value for use in a Url.

Applies to

ConvertToUriLiteral(Object, ODataVersion, Boolean)

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.

public static string ConvertToUriLiteral (object value, Microsoft.OData.ODataVersion version, bool isIeee754Compatible);
static member ConvertToUriLiteral : obj * Microsoft.OData.ODataVersion * bool -> string
Public Shared Function ConvertToUriLiteral (value As Object, version As ODataVersion, isIeee754Compatible As Boolean) As String

Parameters

value
Object

Value to be converted.

version
ODataVersion

Version to be compliant with.

isIeee754Compatible
Boolean

true if value should be IEEE 754 compatible.

Returns

A string representation of value for use in a Url.

Applies to

ConvertToUriLiteral(Object, ODataVersion, IEdmModel, Boolean)

Converts the given object to a string in the specified format 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.

public static string ConvertToUriLiteral (object value, Microsoft.OData.ODataVersion version, Microsoft.OData.Edm.IEdmModel model, bool isIeee754Compatible);
static member ConvertToUriLiteral : obj * Microsoft.OData.ODataVersion * Microsoft.OData.Edm.IEdmModel * bool -> string
Public Shared Function ConvertToUriLiteral (value As Object, version As ODataVersion, model As IEdmModel, isIeee754Compatible As Boolean) As String

Parameters

value
Object

Value to be converted (can be EnumNode).

version
ODataVersion

Version to be compliant with.

model
IEdmModel

Optional model to perform verification against.

isIeee754Compatible
Boolean

true if value should be IEEE 754 compatible.

Returns

A string representation of value for use in a Url.

Applies to