CustomUriLiteralParsers.AddCustomUriLiteralParser 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
AddCustomUriLiteralParser(IUriLiteralParser) |
Add a custom 'IUriLiteralParser' which will be called to parse uri values during the uri parsing process. |
AddCustomUriLiteralParser(IEdmTypeReference, IUriLiteralParser) |
Add a custom 'IUriLiteralParser' which will be called to parse a value of the given EdmType during the UriParsing process. |
AddCustomUriLiteralParser(IUriLiteralParser)
Add a custom 'IUriLiteralParser' which will be called to parse uri values during the uri parsing process.
public static void AddCustomUriLiteralParser (Microsoft.OData.UriParser.IUriLiteralParser customUriLiteralParser);
static member AddCustomUriLiteralParser : Microsoft.OData.UriParser.IUriLiteralParser -> unit
Public Shared Sub AddCustomUriLiteralParser (customUriLiteralParser As IUriLiteralParser)
Parameters
- customUriLiteralParser
- IUriLiteralParser
The custom uri parser
Exceptions
customUriLiteralParser
is null
The given IUriLiteralParser instance already exists
Applies to
AddCustomUriLiteralParser(IEdmTypeReference, IUriLiteralParser)
Add a custom 'IUriLiteralParser' which will be called to parse a value of the given EdmType during the UriParsing process.
public static void AddCustomUriLiteralParser (Microsoft.OData.Edm.IEdmTypeReference edmTypeReference, Microsoft.OData.UriParser.IUriLiteralParser customUriLiteralParser);
static member AddCustomUriLiteralParser : Microsoft.OData.Edm.IEdmTypeReference * Microsoft.OData.UriParser.IUriLiteralParser -> unit
Public Shared Sub AddCustomUriLiteralParser (edmTypeReference As IEdmTypeReference, customUriLiteralParser As IUriLiteralParser)
Parameters
- edmTypeReference
- IEdmTypeReference
The EdmType the Uri literal parser can parse.
- customUriLiteralParser
- IUriLiteralParser
The custom uri type parser to add.
Exceptions
edmTypeReference
is null.
Another Uri literal parser is already registered for the given EdmType