ApiParameterDescription.IsRequired 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定值,這個值會判斷是否需要 參數。
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) ,指出其為必要專案。