HelpPageConfigurationExtensions.SetSampleObjects Method

Sets the objects that will be used by the formatters to produce sample requests/responses.
<Extension()> _ 
Public Shared Sub SetSampleObjects( _ 
ByVal config As HttpConfiguration, _ 
ByVal sampleObjects As IDictionary(Of Type, Object) _ 
)
This language is not supported or no code example is available.
public static void SetSampleObjects( 
this HttpConfiguration config
IDictionary<Type, object> sampleObjects 
)
This language is not supported or no code example is available.
[Extension()] 
public:  
static void SetSampleObjects( 
HttpConfiguration^ config
IDictionary<Type^, object^>^ sampleObjects 
)
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

config
HttpConfiguration

The HttpConfiguration.

sampleObjects
IDictionary<Type, object>

The sample objects.

.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