ODataUriUtils.ConvertFromUriLiteral Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConvertFromUriLiteral(String, ODataVersion) |
Converts the given |
ConvertFromUriLiteral(String, ODataVersion, IEdmModel, IEdmTypeReference) |
Converts the given |
ConvertFromUriLiteral(String, ODataVersion)
Converts the given value
to a corresponding CLR type. Expects the
value
to have already been properly unescaped from an actual Uri.
public static object ConvertFromUriLiteral (string value, Microsoft.OData.ODataVersion version);
static member ConvertFromUriLiteral : string * Microsoft.OData.ODataVersion -> obj
Public Shared Function ConvertFromUriLiteral (value As String, version As ODataVersion) As Object
Parameters
- value
- String
Value from a Uri to be converted.
- version
- ODataVersion
Version to be compliant with.
Returns
A CLR object that the value
represents (won't be EnumNode).
Applies to
ConvertFromUriLiteral(String, ODataVersion, IEdmModel, IEdmTypeReference)
Converts the given value
to a corresponding CLR type. Expects the
value
to have already been properly unescaped from an actual Uri.
public static object ConvertFromUriLiteral (string value, Microsoft.OData.ODataVersion version, Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmTypeReference typeReference);
static member ConvertFromUriLiteral : string * Microsoft.OData.ODataVersion * Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.IEdmTypeReference -> obj
Public Shared Function ConvertFromUriLiteral (value As String, version As ODataVersion, model As IEdmModel, typeReference As IEdmTypeReference) As Object
Parameters
- value
- String
Value from a Uri to be converted.
- version
- ODataVersion
Version to be compliant with.
- model
- IEdmModel
Optional model to perform verification against.
- typeReference
- IEdmTypeReference
Optional IEdmTypeReference to perform verification against.
Callers must provide a model
containing this type if it is specified.
Returns
A CLR object that the value
represents or an EnumNode.