ValidationMetadataProviderContext Class¶
Summary¶
A context for an [Microsoft.AspNet.Mvc.ModelBinding.Metadata.IValidationMetadataProvider](Microsoft.AspNet.Mvc.ModelBinding.Metadata.IValidationMetadataProvider.yml).
Constructors¶
-
ValidationMetadataProviderContext
(Microsoft.AspNet.Mvc.ModelBinding.Metadata.ModelMetadataIdentity, Microsoft.AspNet.Mvc.ModelBinding.ModelAttributes)¶ Creates a new [Microsoft.AspNet.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext](Microsoft.AspNet.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext.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 ValidationMetadataProviderContext(ModelMetadataIdentity key, ModelAttributes attributes)
-
Properties¶
-
Attributes
()¶ Gets the attributes.
Return type: System.Collections.Generic.IReadOnlyList{System.Object} public IReadOnlyList<object> Attributes { 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; }
-
ValidationMetadata
()¶ Gets 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; }
-