net11.0
namespace System.ComponentModel.DataAnnotations
{
    public static class Validator
    {
        [RequiresUnreferencedCode("Constructing a ValidationContext without a display name is not trim-safe because it uses reflection to discover the type of the instance being validated in order to resolve the DisplayNameAttribute when a display name is not provided.")]
        public static Task! ValidateObjectAsync(object! instance, ValidationContext! validationContext, bool validateAllProperties, CancellationToken cancellationToken = default);
    }
}
Design Reviews
.NET
11.0
Information specific to net11.0
Assembly

System.ComponentModel.Annotations , Version=11.0.0.0, PublicKeyToken=b03f5f7f11d50a3a

Referencing

The API is automatically referenced.

Preview The API is contained in a preview framework.
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API