共用方式為


RequestDelegateFactory.InferMetadata 方法

定義

針對 所建立的 自動傳回推斷的 RequestDelegateCreate(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult) 中繼資料。 這包括由 IEndpointMetadataProvider 參數推斷和 IEndpointParameterMetadataProvider 實作的中繼資料,以及將型別傳回至 methodInfo

public static Microsoft.AspNetCore.Http.RequestDelegateMetadataResult InferMetadata (System.Reflection.MethodInfo methodInfo, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions? options = default);
static member InferMetadata : System.Reflection.MethodInfo * Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions -> Microsoft.AspNetCore.Http.RequestDelegateMetadataResult
Public Shared Function InferMetadata (methodInfo As MethodInfo, Optional options As RequestDelegateFactoryOptions = Nothing) As RequestDelegateMetadataResult

參數

傳回

RequestDelegateMetadataResult要傳遞至 Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult) 的 。

適用於