Compartilhar via


HelpPageSampleGenerator.GetSampleResponses(ApiDescription) Método

Definição

Obtém os exemplos de corpo de resposta para um determinado System.Web.Http.Description.ApiDescription.

public System.Collections.Generic.IDictionary<System.Net.Http.Headers.MediaTypeHeaderValue,object> GetSampleResponses (System.Web.Http.Description.ApiDescription api);
member this.GetSampleResponses : System.Web.Http.Description.ApiDescription -> System.Collections.Generic.IDictionary<System.Net.Http.Headers.MediaTypeHeaderValue, obj>
Public Function GetSampleResponses (api As ApiDescription) As IDictionary(Of MediaTypeHeaderValue, Object)

Parâmetros

api
System.Web.Http.Description.ApiDescription

O System.Web.Http.Description.ApiDescription.

Retornos

Os exemplos chaveados por tipo de mídia.

Aplica-se a