Udostępnij za pośrednictwem


HelpPageSampleGenerator.WriteSampleObjectUsingFormatter Method

Definition

Writes the sample object using formatter.

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

Parameters

formatter
System.Net.Http.Formatting.MediaTypeFormatter

The formatter.

value
Object

The value.

type
Type

The type.

mediaType
MediaTypeHeaderValue

Type of the media.

Returns

Applies to