Dela via


ModelMetadata.ElementMetadata Property

Definition

Gets the ModelMetadata for elements of ModelType if that Type implements IEnumerable.

public:
 abstract property Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ ElementMetadata { Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ get(); };
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ElementMetadata { get; }
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata? ElementMetadata { get; }
member this.ElementMetadata : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Public MustOverride ReadOnly Property ElementMetadata As ModelMetadata

Property Value

ModelMetadata for T if ModelType implements IEnumerable<T>. ModelMetadata for object if ModelType implements IEnumerable but not IEnumerable<T>. null otherwise i.e. when IsEnumerableType is false.

Applies to