DisplayMetadataProviderContext Class

A context for and Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider.

Namespace
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class DisplayMetadataProviderContext
class Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext

Constructors

DisplayMetadataProviderContext(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity, Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes)

Creates a new Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext.

Arguments:
public DisplayMetadataProviderContext(ModelMetadataIdentity key, ModelAttributes attributes)

Properties

Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext.Attributes

Gets the attributes.

Return type:System.Collections.Generic.IReadOnlyList<System.Object>
public IReadOnlyList<object> Attributes { get; }
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext.DisplayMetadata

Gets the Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadata.

Return type:Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadata
public DisplayMetadata DisplayMetadata { get; }
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext.Key

Gets the Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity.

Return type:Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
public ModelMetadataIdentity Key { get; }
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext.PropertyAttributes

Gets the property attributes.

Return type:System.Collections.Generic.IReadOnlyList<System.Object>
public IReadOnlyList<object> PropertyAttributes { get; }
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext.TypeAttributes

Gets the type attributes.

Return type:System.Collections.Generic.IReadOnlyList<System.Object>
public IReadOnlyList<object> TypeAttributes { get; }