Прочетете на английски

Споделяне чрез


ValidateObjectMembersAttribute Class

Definition

Marks a field or property to be validated transitively.

C#
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class ValidateObjectMembersAttribute : Attribute
Inheritance
ValidateObjectMembersAttribute
Attributes

Constructors

ValidateObjectMembersAttribute()

Initializes a new instance of the ValidateObjectMembersAttribute class.

ValidateObjectMembersAttribute(Type)

Initializes a new instance of the ValidateObjectMembersAttribute class.

Properties

Validator

Gets the type to use to validate a field or property.

Applies to

Продукт Версии
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)