共用方式為


ApiVisibilityConvention 類別

定義

IActionModelConvention 可設定 Api Explorer 可見度。

public ref class ApiVisibilityConvention : Microsoft::AspNetCore::Mvc::ApplicationModels::IActionModelConvention
public class ApiVisibilityConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention
type ApiVisibilityConvention = class
    interface IActionModelConvention
Public Class ApiVisibilityConvention
Implements IActionModelConvention
繼承
ApiVisibilityConvention
實作

建構函式

ApiVisibilityConvention()

IActionModelConvention 可設定 Api Explorer 可見度。

方法

Apply(ActionModel)

呼叫 以將慣例套用至 ActionModel

ShouldApply(ActionModel)

判斷 這個 實例 IActionModelConvention 是否適用于指定的 action

適用於