HelpPageSampleGenerator.GetSampleRequests Method

Gets the request body samples for a given ApiDescription.
Public Function GetSampleRequests( _ 
ByVal api As ApiDescription
) As IDictionary(Of MediaTypeHeaderValue, Object)
This language is not supported or no code example is available.
public IDictionary<MediaTypeHeaderValue, object> GetSampleRequests( 
ApiDescription api 
)
This language is not supported or no code example is available.
public:  
IDictionary<MediaTypeHeaderValue^, object^>^ GetSampleRequests( 
ApiDescription^ api 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Parameters

api
ApiDescription

The ApiDescription.

Return Value

IDictionary<MediaTypeHeaderValue, object>

The samples keyed by media type.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition