BindingMetadataProviderContext Class

Summary

A context for an [Microsoft.AspNet.Mvc.ModelBinding.Metadata.IBindingMetadataProvider](Microsoft.AspNet.Mvc.ModelBinding.Metadata.IBindingMetadataProvider.yml).

Syntax

public class BindingMetadataProviderContext

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.Metadata.BindingMetadataProviderContext

Constructors

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

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

Arguments:
public BindingMetadataProviderContext(ModelMetadataIdentity key, ModelAttributes attributes)

Properties

Attributes()

Gets the attributes.

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

Gets 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; }
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; }