HelpPageConfigurationExtensions..::..SetSampleForType Method
Sets the sample directly for all actions with the specified type and media type.
Namespace:
JiwaWebAPI.Areas.HelpPageAssembly: JiwaWebAPI (in JiwaWebAPI.dll)
Syntax
public static void SetSampleForType( HttpConfiguration config, Object sample, MediaTypeHeaderValue mediaType, Type type )
Public Shared Sub SetSampleForType ( _ config As HttpConfiguration, _ sample As Object, _ mediaType As MediaTypeHeaderValue, _ type As Type _ )
public: static void SetSampleForType( HttpConfiguration^ config, Object^ sample, MediaTypeHeaderValue^ mediaType, Type^ type )
Parameters
- config
- Type: HttpConfiguration
The HttpConfiguration.
- sample
- Type: Object
The sample.
- mediaType
- Type: MediaTypeHeaderValue
The media type.
- type
- Type: Type
The parameter type or return type of an action.