HelpPageSampleGenerator.GetActionSample Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Search for samples that are provided directly through ActionSamples.
public virtual object GetActionSample (string controllerName, string actionName, System.Collections.Generic.IEnumerable<string> parameterNames, Type type, System.Net.Http.Formatting.MediaTypeFormatter formatter, System.Net.Http.Headers.MediaTypeHeaderValue mediaType, Microsoft.WindowsAzure.Mobile.Service.Description.Samples.SampleDirection sampleDirection);
abstract member GetActionSample : string * string * seq<string> * Type * System.Net.Http.Formatting.MediaTypeFormatter * System.Net.Http.Headers.MediaTypeHeaderValue * Microsoft.WindowsAzure.Mobile.Service.Description.Samples.SampleDirection -> obj
override this.GetActionSample : string * string * seq<string> * Type * System.Net.Http.Formatting.MediaTypeFormatter * System.Net.Http.Headers.MediaTypeHeaderValue * Microsoft.WindowsAzure.Mobile.Service.Description.Samples.SampleDirection -> obj
Public Overridable Function GetActionSample (controllerName As String, actionName As String, parameterNames As IEnumerable(Of String), type As Type, formatter As MediaTypeFormatter, mediaType As MediaTypeHeaderValue, sampleDirection As SampleDirection) As Object
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
- System.Net.Http.Formatting.MediaTypeFormatter
The formatter.
- mediaType
- MediaTypeHeaderValue
The media type.
- sampleDirection
- SampleDirection
The value indicating whether the sample is for a request or for a response.
Returns
The sample that matches the parameters.