DisplayMetadataProviderContext(ModelMetadataIdentity, ModelAttributes) 构造函数

定义

创建一个新的 DisplayMetadataProviderContext

public:
 DisplayMetadataProviderContext(Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity key, Microsoft::AspNetCore::Mvc::ModelBinding::ModelAttributes ^ attributes);
public DisplayMetadataProviderContext (Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key, Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes attributes);
new Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity * Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext
Public Sub New (key As ModelMetadataIdentity, attributes As ModelAttributes)

参数

attributes
ModelAttributes

的属性 ModelMetadata

适用于