Share via


RestApiParameterFilter Delegate

Definition

Represents a delegate for filtering RestApiParameter instances.

public delegate Microsoft.SemanticKernel.Plugins.OpenApi.RestApiParameter? RestApiParameterFilter(RestApiParameterFilterContext context);
type RestApiParameterFilter = delegate of RestApiParameterFilterContext -> RestApiParameter
Public Delegate Function RestApiParameterFilter(context As RestApiParameterFilterContext) As RestApiParameter 

Parameters

context
RestApiParameterFilterContext

Instance of RestApiParameterFilterContext containing details of the parameter to filter.

Return Value

Remarks

Implementations of this delegate can either return null which will cause the parameter to be removed from the REST API or return a new instance of RestApiParameter which will replace the original parameter.

Applies to