Table of Contents

CanHandle Method

Definition

CanHandle(MediaTypeHeaderValue)

Determines whether this negotiator can handle the specified accept media type.

public virtual bool CanHandle(MediaTypeHeaderValue accept)

Parameters

accept MediaTypeHeaderValue

The MediaTypeHeaderValue from the HTTP request's Accept header.

Returns

bool

true if the negotiator can handle the specified media type; otherwise, false.