HelpPageSampleGenerator.GetSample Method (ApiDescription, SampleDirection)
Gets the request or response body samples.
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
public virtual IDictionary<MediaTypeHeaderValue, object> GetSample( ApiDescription api, SampleDirection sampleDirection )
Parameters
- api
-
Type:
System.Web.Http.Description.ApiDescription
The ApiDescription.
- 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.Collections.Generic.IDictionary<MediaTypeHeaderValue, Object>The samples keyed by media type.
Show: