Partager via


HelpPageSampleGenerator.WriteSampleObjectUsingFormatter Méthode

Définition

Écrit l’exemple d’objet à l’aide du formateur.

public virtual object WriteSampleObjectUsingFormatter(System.Net.Http.Formatting.MediaTypeFormatter formatter, object value, Type type, System.Net.Http.Headers.MediaTypeHeaderValue mediaType);
abstract member WriteSampleObjectUsingFormatter : System.Net.Http.Formatting.MediaTypeFormatter * obj * Type * System.Net.Http.Headers.MediaTypeHeaderValue -> obj
override this.WriteSampleObjectUsingFormatter : System.Net.Http.Formatting.MediaTypeFormatter * obj * Type * System.Net.Http.Headers.MediaTypeHeaderValue -> obj
Public Overridable Function WriteSampleObjectUsingFormatter (formatter As MediaTypeFormatter, value As Object, type As Type, mediaType As MediaTypeHeaderValue) As Object

Paramètres

formatter
System.Net.Http.Formatting.MediaTypeFormatter

Formateur.

value
Object

La valeur.

type
Type

Type.

mediaType
MediaTypeHeaderValue

Type du média.

Retours

S’applique à