HelpPageConfigurationExtensions..::..SetSampleResponse Method (HttpConfiguration, Object, MediaTypeHeaderValue, String, String)

Sets the sample request directly for the specified media type of the action.

Namespace:  JiwaWebAPI.Areas.HelpPage
Assembly:  JiwaWebAPI (in JiwaWebAPI.dll)

Syntax


public static void SetSampleResponse(
	HttpConfiguration config,
	Object sample,
	MediaTypeHeaderValue mediaType,
	string controllerName,
	string actionName
)
Public Shared Sub SetSampleResponse ( _
	config As HttpConfiguration, _
	sample As Object, _
	mediaType As MediaTypeHeaderValue, _
	controllerName As String, _
	actionName As String _
)
public:
static void SetSampleResponse(
	HttpConfiguration^ config, 
	Object^ sample, 
	MediaTypeHeaderValue^ mediaType, 
	String^ controllerName, 
	String^ actionName
)

Parameters

config
Type: HttpConfiguration
The HttpConfiguration.
sample
Type: Object
The sample response.
mediaType
Type: MediaTypeHeaderValue
The media type.
controllerName
Type: String
Name of the controller.
actionName
Type: String
Name of the action.