Share via


ODataModelBuilder.RemoveOperation Method

Definition

Overloads

RemoveOperation(OperationConfiguration)

Remove the operation from the model

RemoveOperation(String)

Remove the operation from the model If there is more than one operation with the name specified this method will not work. You need to use the other RemoveOperation(..) overload instead.

RemoveOperation(OperationConfiguration)

Remove the operation from the model

public virtual bool RemoveOperation (Microsoft.AspNet.OData.Builder.OperationConfiguration operation);
abstract member RemoveOperation : Microsoft.AspNet.OData.Builder.OperationConfiguration -> bool
override this.RemoveOperation : Microsoft.AspNet.OData.Builder.OperationConfiguration -> bool
Public Overridable Function RemoveOperation (operation As OperationConfiguration) As Boolean

Parameters

operation
OperationConfiguration

The operation to be removed.

Returns

true if the operation is present in the model and false otherwise.

Applies to

RemoveOperation(String)

Remove the operation from the model If there is more than one operation with the name specified this method will not work. You need to use the other RemoveOperation(..) overload instead.

public virtual bool RemoveOperation (string name);
abstract member RemoveOperation : string -> bool
override this.RemoveOperation : string -> bool
Public Overridable Function RemoveOperation (name As String) As Boolean

Parameters

name
String

The name of the operation to be removed.

Returns

true if the operation is present in the model and false otherwise.

Applies to