HelpPageSampleGenerator.ResolveType Method

Resolves the type of the action parameter or return value when HttpRequestMessage or HttpResponseMessage is used.
<SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Justification = "This is only used in advanced scenarios.")> _ 
Public Overridable Function ResolveType( _ 
ByVal api As ApiDescription, _ 
ByVal controllerName As String, _ 
ByVal actionName As String, _ 
ByVal parameterNames As IEnumerable(Of String), _ 
ByVal sampleDirection As SampleDirection, _ 
ByRef formatters As Collection(Of MediaTypeFormatter) _ 
) As Type
This language is not supported or no code example is available.
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Justification = "This is only used in advanced scenarios.")] 
public virtual Type ResolveType( 
ApiDescription api, 
string controllerName, 
string actionName, 
IEnumerable<string> parameterNames, 
SampleDirection sampleDirection, 
out Collection<MediaTypeFormatter> formatters 
)
This language is not supported or no code example is available.
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Justification = "This is only used in advanced scenarios.")] 
public:  
virtual Type^ ResolveType( 
ApiDescription^ api, 
String^ controllerName, 
String^ actionName, 
IEnumerable<String^>^ parameterNames, 
SampleDirection sampleDirection, 
Collection<MediaTypeFormatter^>^& formatters 
)
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

api
ApiDescription

The ApiDescription.

controllerName
string

Name of the controller.

actionName
string

Name of the action.

parameterNames
IEnumerable<string>

The parameter names.

sampleDirection
SampleDirection

The value indicating whether the sample is for a request or a response.

formatters
Collection<MediaTypeFormatter>

The formatters.

Return Value

Type

.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