HelpPageConfigurationExtensions..::..SetSampleRequest Method (HttpConfiguration, Object, MediaTypeHeaderValue, String, String, array<String>[]()[][])
Sets the sample request directly for the specified media type and action with parameters.
Namespace:
JiwaWebAPI.Areas.HelpPageAssembly: JiwaWebAPI (in JiwaWebAPI.dll)
Syntax
public static void SetSampleRequest( HttpConfiguration config, Object sample, MediaTypeHeaderValue mediaType, string controllerName, string actionName, params string[] parameterNames )
Public Shared Sub SetSampleRequest ( _ config As HttpConfiguration, _ sample As Object, _ mediaType As MediaTypeHeaderValue, _ controllerName As String, _ actionName As String, _ ParamArray parameterNames As String() _ )
public: static void SetSampleRequest( HttpConfiguration^ config, Object^ sample, MediaTypeHeaderValue^ mediaType, String^ controllerName, String^ actionName, ... array<String^>^ parameterNames )
Parameters
- config
- Type: HttpConfiguration
The HttpConfiguration.
- sample
- Type: Object
The sample request.
- mediaType
- Type: MediaTypeHeaderValue
The media type.
- controllerName
- Type: String
Name of the controller.
- actionName
- Type: String
Name of the action.
- parameterNames
- Type: array<String>[]()[][]
The parameter names.