net9.0
namespace System.ComponentModel.DataAnnotations
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public sealed class ComparePropertyAttribute : CompareAttribute
    {
        public ComparePropertyAttribute(string otherProperty);
    }
}
nuget.org
0.0 %
Reference this API
.NET 5.06.07.08.09.0
.NET Core 3.03.1
.NET Standard 2.1
Information specific to net9.0
Assembly

Microsoft.AspNetCore.Components.DataAnnotations.Validation , Version=3.2.0.0, PublicKeyToken=adb9793829ddae60

Referencing

Your project needs a package reference to Microsoft.AspNetCore.Components.DataAnnotations.Validation.

Package Microsoft.AspNetCore.Components.DataAnnotations.Validation (3.2.0-rc1.20223.4) netstandard2.1
Preview This API is contained in a prerelease package.
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API

12/03/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙