Partager via


ApiExplorerSettingsAttribute.IgnoreApi Property

Gets or sets a value indicating whether to exclude the controller or action from the ApiDescription instances generated by ApiExplorer.

Namespace:  System.Web.Http.Description
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Property IgnoreApi As Boolean 
    Get 
    Set
'Usage
Dim instance As ApiExplorerSettingsAttribute 
Dim value As Boolean 

value = instance.IgnoreApi

instance.IgnoreApi = value
public bool IgnoreApi { get; set; }
public:
property bool IgnoreApi {
    bool get ();
    void set (bool value);
}
member IgnoreApi : bool with get, set
function get IgnoreApi () : boolean 
function set IgnoreApi (value : boolean)

Property Value

Type: System.Boolean
true if the controller or action should be ignored; otherwise, false.

See Also

Reference

ApiExplorerSettingsAttribute Class

System.Web.Http.Description Namespace