共用方式為


ApiParameterDescription.IsRequired 屬性

定義

取得或設定值,這個值會判斷是否需要 參數。

public:
 property bool IsRequired { bool get(); void set(bool value); };
public bool IsRequired { get; set; }
member this.IsRequired : bool with get, set
Public Property IsRequired As Boolean

屬性值

備註

如果

  • 它會從要求本文 () Body 系結。
  • 這是必要的路由值。
  • 其具有批註 (例如 BindRequiredAttribute) ,指出其為必要專案。

適用於