Share via


ODataUriFunctions.RemoveCustomUriFunction Method

Definition

This is a shortcut of removing the FunctionSignature through 'CustomUriFunctions' class and unbinding the function name from it's MethodInfo through 'UriFunctionsBinder' class. See these classes documentations.

public static bool RemoveCustomUriFunction (string functionName, Microsoft.OData.UriParser.FunctionSignatureWithReturnType functionSignature, System.Reflection.MethodInfo methodInfo);
static member RemoveCustomUriFunction : string * Microsoft.OData.UriParser.FunctionSignatureWithReturnType * System.Reflection.MethodInfo -> bool
Public Shared Function RemoveCustomUriFunction (functionName As String, functionSignature As FunctionSignatureWithReturnType, methodInfo As MethodInfo) As Boolean

Parameters

functionName
String

The uri function name that appears in the OData request uri.

functionSignature
FunctionSignatureWithReturnType

The new custom function signature.

methodInfo
MethodInfo

The MethodInfo to bind the given function name.

Returns

'True' if the fucntion signature has successfully removed and unbinded. 'False' otherwise.

Exceptions

Any exception thrown by 'CustomUriFunctions.RemoveCustomUriFunction' and 'UriFunctionsBinder.UnbindUriFunctionName' methods.

Applies to