Udostępnij za pośrednictwem


InputFormatter.GetSupportedContentTypes(String, Type) Metoda

Definicja

Pobiera filtrowaną listę typów zawartości obsługiwanych przez IInputFormatter element objectType i contentType.

public:
 virtual System::Collections::Generic::IReadOnlyList<System::String ^> ^ GetSupportedContentTypes(System::String ^ contentType, Type ^ objectType);
public virtual System.Collections.Generic.IReadOnlyList<string> GetSupportedContentTypes (string contentType, Type objectType);
public virtual System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes (string contentType, Type objectType);
abstract member GetSupportedContentTypes : string * Type -> System.Collections.Generic.IReadOnlyList<string>
override this.GetSupportedContentTypes : string * Type -> System.Collections.Generic.IReadOnlyList<string>
Public Overridable Function GetSupportedContentTypes (contentType As String, objectType As Type) As IReadOnlyList(Of String)

Parametry

contentType
String

Typ zawartości, dla którego są wymagane obsługiwane typy zawartości lub null jeśli można użyć dowolnego typu zawartości.

objectType
Type

Typ Type zawartości, dla którego są wymagane obsługiwane typy zawartości.

Zwraca

Typy zawartości obsługiwane przez program IInputFormatter.

Implementuje

Dotyczy