AssociatedMetadataProvider.CreateMetadata メソッド

定義

派生クラスによってオーバーライドされると、プロパティのモデル メタデータを作成します。

protected abstract System.Web.Mvc.ModelMetadata CreateMetadata (System.Collections.Generic.IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
abstract member CreateMetadata : seq<Attribute> * Type * Func<obj> * Type * string -> System.Web.Mvc.ModelMetadata
Protected MustOverride Function CreateMetadata (attributes As IEnumerable(Of Attribute), containerType As Type, modelAccessor As Func(Of Object), modelType As Type, propertyName As String) As ModelMetadata

パラメーター

attributes
IEnumerable<Attribute>

属性のセット。

containerType
Type

コンテナーの種類。

modelAccessor
Func<Object>

モデル アクセサー。

modelType
Type

モデルの型。

propertyName
String

プロパティの名前。

戻り値

プロパティのモデル メタデータ。

適用対象