ValidationMetadataProviderContext Class¶
A context for an Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IValidationMetadataProvider
.
- Namespace
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class ValidationMetadataProviderContext
-
class
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.
ValidationMetadataProviderContext
Constructors¶
-
ValidationMetadataProviderContext
(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity, Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes)¶ Creates a new
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext
.Arguments: - key (Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity) – The
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
for theMicrosoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
. - attributes (Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes) – The attributes for the
Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
.
public ValidationMetadataProviderContext(ModelMetadataIdentity key, ModelAttributes attributes)
- key (Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity) – The
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext.
Attributes
¶ Gets the attributes.
Return type: System.Collections.Generic.IReadOnlyList<System.Object> public IReadOnlyList<object> Attributes { get; }
-
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext.
Key
¶ Gets the
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
.Return type: Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity public ModelMetadataIdentity Key { get; }
-
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext.
PropertyAttributes
¶ Gets the property attributes.
Return type: System.Collections.Generic.IReadOnlyList<System.Object> public IReadOnlyList<object> PropertyAttributes { get; }
-
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext.
TypeAttributes
¶ Gets the type attributes.
Return type: System.Collections.Generic.IReadOnlyList<System.Object> public IReadOnlyList<object> TypeAttributes { get; }
-
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext.
ValidationMetadata
¶ Gets the
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadata
.Return type: Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadata public ValidationMetadata ValidationMetadata { get; }
-