HelpPageConfigurationExtensions.SetSampleForType Method

Sets the sample directly for all actions with the specified type and media type.
<Extension()> _ 
Public Shared Sub SetSampleForType( _ 
ByVal config As HttpConfiguration, _ 
ByVal sample As Object, _ 
ByVal mediaType As MediaTypeHeaderValue, _ 
ByVal type As Type
)
This language is not supported or no code example is available.
public static void SetSampleForType( 
this HttpConfiguration config
object sample
MediaTypeHeaderValue mediaType
Type type 
)
This language is not supported or no code example is available.
[Extension()] 
public:  
static void SetSampleForType( 
HttpConfiguration^ config
object^ sample
MediaTypeHeaderValue^ mediaType
Type^ type 
)
This language is not supported or no code example is available.
public  
Extension() 
static function SetSampleForType( 
config : HttpConfiguration
sample : object
mediaType : MediaTypeHeaderValue
type : Type 
);
This language is not supported or no code example is available.

Parameters

config
HttpConfiguration

The HttpConfiguration.

sample
object

The sample.

mediaType
MediaTypeHeaderValue

The media type.

type
Type

The parameter type or return type of an action.

.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