HelpPageConfigurationExtensions.SetActualResponseType (HttpConfiguration, Type, String, String) Method

Specifies the actual type of ObjectContent<T> returned as part of the HttpRequestMessage in an action. The help page will use this information to produce more accurate response samples.
<Extension()> _ 
Public Shared Sub SetActualResponseType( _ 
ByVal config As HttpConfiguration, _ 
ByVal type As Type, _ 
ByVal controllerName As String, _ 
ByVal actionName As String _ 
)
This language is not supported or no code example is available.
public static void SetActualResponseType( 
this HttpConfiguration config, 
Type type, 
string controllerName, 
string actionName 
)
This language is not supported or no code example is available.
[Extension()] 
public:  
static void SetActualResponseType( 
HttpConfiguration^ config, 
Type^ type, 
String^ controllerName, 
String^ actionName 
)
This language is not supported or no code example is available.
public  
Extension() 
static function SetActualResponseType( 
config : HttpConfiguration, 
type : Type, 
controllerName : String, 
actionName : String 
);
This language is not supported or no code example is available.

Parameters

config
HttpConfiguration

The HttpConfiguration.

type
Type

The type.

controllerName
string

Name of the controller.

actionName
string

Name of the 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