Share via


CustomUriFunctions.AddCustomUriFunction Method

Definition

Add a custom uri function to extend uri functions. In case the function name already exists as a custom function, the signature will be added as an another overload.

public static void AddCustomUriFunction (string functionName, Microsoft.OData.UriParser.FunctionSignatureWithReturnType functionSignature);
static member AddCustomUriFunction : string * Microsoft.OData.UriParser.FunctionSignatureWithReturnType -> unit
Public Shared Sub AddCustomUriFunction (functionName As String, functionSignature As FunctionSignatureWithReturnType)

Parameters

functionName
String

The new custom function name

functionSignature
FunctionSignatureWithReturnType

The new custom function signature

Exceptions

Arguments are null, or function signature return type is null

Throws if custom function signature overload already exists

Applies to