HelpPageSampleGenerator.GetActionSample Method
Public Overridable Function GetActionSample( _
ByVal controllerName As String, _
ByVal actionName As String, _
ByVal parameterNames As IEnumerable(Of String), _
ByVal type As Type, _
ByVal formatter As MediaTypeFormatter, _
ByVal mediaType As MediaTypeHeaderValue, _
ByVal sampleDirection As SampleDirection _
) As Object
This language is not supported or no code example is available.
public virtual object GetActionSample(
string controllerName,
string actionName,
IEnumerable<string> parameterNames,
Type type,
MediaTypeFormatter formatter,
MediaTypeHeaderValue mediaType,
SampleDirection sampleDirection
)
This language is not supported or no code example is available.
public:
virtual object^ GetActionSample(
String^ controllerName,
String^ actionName,
IEnumerable<String^>^ parameterNames,
Type^ type,
MediaTypeFormatter^ formatter,
MediaTypeHeaderValue^ mediaType,
SampleDirection sampleDirection
)
This language is not supported or no code example is available.
Parameters
- controllerName
- string
Name of the controller.
- actionName
- string
Name of the action.
- parameterNames
- IEnumerable<string>
The parameter names.
- type
- Type
The CLR type.
- formatter
- MediaTypeFormatter
The formatter.
- mediaType
- MediaTypeHeaderValue
The media type.
- sampleDirection
- SampleDirection
The value indicating whether the sample is for a request or for a response.
Return Value
objectThe sample that matches the parameters.