共用方式為


HelpPageSampleGenerator.GetSampleResponses(ApiDescription) 方法

定義

取得指定 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)

參數

api
System.Web.Http.Description.ApiDescription

System.Web.Http.Description.ApiDescription

傳回

以媒體類型為索引鍵的範例。

適用於