DefaultMetadataDetails Class

Summary

Holds associated metadata objects for a [Microsoft.AspNet.Mvc.ModelBinding.Metadata.DefaultModelMetadata](Microsoft.AspNet.Mvc.ModelBinding.Metadata.DefaultModelMetadata.yml).

Syntax

public class DefaultMetadataDetails

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.Metadata.DefaultMetadataDetails

Constructors

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

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

Arguments:
public DefaultMetadataDetails(ModelMetadataIdentity key, ModelAttributes attributes)

Properties

BindingMetadata()

Gets or sets the [Microsoft.AspNet.Mvc.ModelBinding.Metadata.BindingMetadata](Microsoft.AspNet.Mvc.ModelBinding.Metadata.BindingMetadata.yml).

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

Gets or sets 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; set; }
Key()

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

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

Gets or sets the set of model attributes.

Return type:Microsoft.AspNet.Mvc.ModelBinding.ModelAttributes
public ModelAttributes ModelAttributes { get; }
Properties()

Gets or sets the [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata]() entries for the model properties.

Return type:Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata[]
public ModelMetadata[] Properties { get; set; }
PropertyGetter()

Gets or sets a property getter delegate to get the property value from a model object.

Return type:System.Func{System.Object,System.Object}
public Func<object, object> PropertyGetter { get; set; }
PropertySetter()

Gets or sets a property setter delegate to set the property value on a model object.

Return type:System.Action{System.Object,System.Object}
public Action<object, object> PropertySetter { get; set; }
ValidationMetadata()

Gets or sets the [Microsoft.AspNet.Mvc.ModelBinding.Metadata.ValidationMetadata](Microsoft.AspNet.Mvc.ModelBinding.Metadata.ValidationMetadata.yml)

Return type:Microsoft.AspNet.Mvc.ModelBinding.Metadata.ValidationMetadata
public ValidationMetadata ValidationMetadata { get; set; }