ApiExplorerSettingsAttribute.IgnoreApi 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果 true
這樣,則不會 ApiDescription
為相關聯的控制器或動作建立任何物件。
public:
property bool IgnoreApi { bool get(); void set(bool value); };
C#
public bool IgnoreApi { get; set; }
member this.IgnoreApi : bool with get, set
Public Property IgnoreApi As Boolean
產品 | 版本 |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |