DisplayMetadataProviderContext Class¶
Summary¶
A context for and [Microsoft.AspNet.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider](Microsoft.AspNet.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider.yml).
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: - key (Microsoft.AspNet.Mvc.ModelBinding.Metadata.ModelMetadataIdentity) – The [Microsoft.AspNet.Mvc.ModelBinding.Metadata.ModelMetadataIdentity]() for the [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata]().
- attributes (Microsoft.AspNet.Mvc.ModelBinding.ModelAttributes) – The attributes for the [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata]().
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; }
-