Address PR comments

This commit is contained in:
Doug Bunting 2016-06-10 10:30:59 -07:00
parent 1f6bbf9967
commit 3a6541af10
3 changed files with 10 additions and 4 deletions

View File

@ -6,7 +6,9 @@ using System;
namespace Microsoft.AspNetCore.Mvc.ModelBinding
{
/// <summary>
/// Indicates that the property should be excluded from model binding.
/// Indicates that a property should be excluded from model binding. When applied to a property, the model binding
/// system excludes that property. When applied to a type, the model binding system excludes all properties of that
/// type.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class BindNeverAttribute : BindingBehaviorAttribute

View File

@ -6,7 +6,9 @@ using System;
namespace Microsoft.AspNetCore.Mvc.ModelBinding
{
/// <summary>
/// Indicates that the property is required for model binding.
/// Indicates that a property is required for model binding. When applied to a property, the model binding system
/// requires a value for that property. When applied to a type, the model binding system requires values for all
/// properties of that type.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class BindRequiredAttribute : BindingBehaviorAttribute

View File

@ -6,13 +6,15 @@ using System;
namespace Microsoft.AspNetCore.Mvc
{
/// <summary>
/// Indicates the class is a view component and optionally specifies the component's name.
/// Indicates the class and all subclasses are view components. Optionally specifies a view component's name. If
/// defining a base class for multiple view components, associate this attribute with that base.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class ViewComponentAttribute : Attribute
{
/// <summary>
/// Gets or sets the name of the view component.
/// Gets or sets the name of the view component. Do not supply a name in an attribute associated with a view
/// component base class.
/// </summary>
public string Name { get; set; }
}