DisplayMetadataProviderContext Class

Summary

A context for and [Microsoft.AspNet.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider](Microsoft.AspNet.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider.yml).

Syntax

public class DisplayMetadataProviderContext

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext

Constructors

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

Creates a new [Microsoft.AspNet.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext](Microsoft.AspNet.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext.yml).

Arguments:
public DisplayMetadataProviderContext(ModelMetadataIdentity key, ModelAttributes attributes)

Properties

Attributes()

Gets the attributes.

Return type:System.Collections.Generic.IReadOnlyList{System.Object}
public IReadOnlyList<object> Attributes { get; }
DisplayMetadata()

Gets the [Microsoft.AspNet.Mvc.ModelBinding.Metadata.DisplayMetadata](Microsoft.AspNet.Mvc.ModelBinding.Metadata.DisplayMetadata.yml).

Return type:Microsoft.AspNet.Mvc.ModelBinding.Metadata.DisplayMetadata
public DisplayMetadata DisplayMetadata { get; }
Key()

Gets the [Microsoft.AspNet.Mvc.ModelBinding.Metadata.ModelMetadataIdentity]().

Return type:Microsoft.AspNet.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
public ModelMetadataIdentity Key { get; }
PropertyAttributes()

Gets the property attributes.

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

Gets the type attributes.

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