DefaultContentNegotiator Konstruktory

Definice

Přetížení

DefaultContentNegotiator()
DefaultContentNegotiator(Boolean)

Inicializuje novou instanci DefaultContentNegotiator s daným nastavením pro excludeMatchOnTypeOnly .

DefaultContentNegotiator()

public:
 DefaultContentNegotiator();
public DefaultContentNegotiator ();
Public Sub New ()

Platí pro

DefaultContentNegotiator(Boolean)

Inicializuje novou instanci DefaultContentNegotiator s daným nastavením pro excludeMatchOnTypeOnly .

public:
 DefaultContentNegotiator(bool excludeMatchOnTypeOnly);
public DefaultContentNegotiator (bool excludeMatchOnTypeOnly);
new System.Net.Http.Formatting.DefaultContentNegotiator : bool -> System.Net.Http.Formatting.DefaultContentNegotiator
Public Sub New (excludeMatchOnTypeOnly As Boolean)

Parametry

excludeMatchOnTypeOnly
Boolean

Pokud má ExcludeMatchOnTypeOnly hodnotu true, nesouhlasíme jenom s typem, což znamená, že pokud se nemůžeme na cokoli v žádosti shodovat, vrátíme hodnotu null. To je užitečné při generování stavových kódů 406 (nepřijatelných).

Platí pro