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.
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
- value
Type: System.Object
Value to be converted.
- version
Type: Microsoft.Data.OData.ODataVersion
Version to be compliant with.
- model
Type: Microsoft.Data.Edm.IEdmModel
Optional model to perform verification against.
Return Value
Type: System.String
A string representation of value for use in a Url.