HelpPageSampleGenerator.WriteSampleObjectUsingFormatter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET