ApiResponseType.Type 属性

定义

获取或设置响应的 CLR 数据类型或 null。

public:
 property Type ^ Type { Type ^ get(); void set(Type ^ value); };
public Type Type { get; set; }
public Type? Type { get; set; }
member this.Type : Type with get, set
Public Property Type As Type

属性值

注解

如果操作不返回任何响应,或者响应类型不明确,则 为 null。 对操作方法使用 Microsoft.AspNetCore.Mvc.ProducesAttributeMicrosoft.AspNetCore.Mvc.ProducesResponseTypeAttribute 指定响应类型。

适用于