共用方式為


ApiController.MetadataProvider 屬性

定義

public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get; set; }
member this.MetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider with get, set
Public Property MetadataProvider As IModelMetadataProvider

屬性值

備註

此setter 僅適用於單元測試。

適用於