HelpPageSampleGenerator::GetActionSample Method (String^, String^, IEnumerable<String^>^, Type^, MediaTypeFormatter^, MediaTypeHeaderValue^, SampleDirection)

 

Search for samples that are provided directly through ActionSamples.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Description.Samples
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

public:
virtual Object^ GetActionSample(
	String^ controllerName,
	String^ actionName,
	IEnumerable<String^>^ parameterNames,
	Type^ type,
	MediaTypeFormatter^ formatter,
	MediaTypeHeaderValue^ mediaType,
	SampleDirection sampleDirection
)

Parameters

controllerName
Type: System::String^

Name of the controller.

actionName
Type: System::String^

Name of the action.

parameterNames
Type: System.Collections.Generic::IEnumerable<String^>^

The parameter names.

type
Type: System::Type^

The CLR type.

formatter
Type: System.Net.Http.Formatting::MediaTypeFormatter^

The formatter.

mediaType
Type: System.Net.Http.Headers::MediaTypeHeaderValue^

The media type.

sampleDirection
Type: Microsoft.WindowsAzure.Mobile.Service.Description.Samples::SampleDirection

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

Return Value

Type: System::Object^

The sample that matches the parameters.

Return to top
Show: