ModelExpressionProvider 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ModelExpressionProvider(IModelMetadataProvider) |
建立新的 ModelExpressionProvider。 |
ModelExpressionProvider(IModelMetadataProvider, ExpressionTextCache) |
建立新的 ModelExpressionProvider。 |
ModelExpressionProvider(IModelMetadataProvider)
建立新的 ModelExpressionProvider。
public:
ModelExpressionProvider(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider);
public ModelExpressionProvider (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider);
new Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpressionProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpressionProvider
Public Sub New (modelMetadataProvider As IModelMetadataProvider)
參數
- modelMetadataProvider
- IModelMetadataProvider
適用於
ModelExpressionProvider(IModelMetadataProvider, ExpressionTextCache)
建立新的 ModelExpressionProvider。
public:
ModelExpressionProvider(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider, Microsoft::AspNetCore::Mvc::ViewFeatures::Internal::ExpressionTextCache ^ expressionTextCache);
public ModelExpressionProvider (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ExpressionTextCache expressionTextCache);
new Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpressionProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ExpressionTextCache -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpressionProvider
Public Sub New (modelMetadataProvider As IModelMetadataProvider, expressionTextCache As ExpressionTextCache)
參數
- modelMetadataProvider
- IModelMetadataProvider
- expressionTextCache
- Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ExpressionTextCache
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ExpressionTextCache。