CompareAttribute(String) Constructor

Definición

Inicializa una nueva instancia de la clase CompareAttribute.

public:
 CompareAttribute(System::String ^ otherProperty);
public CompareAttribute(string otherProperty);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The property referenced by 'otherProperty' may be trimmed. Ensure it is preserved.")]
public CompareAttribute(string otherProperty);
new System.ComponentModel.DataAnnotations.CompareAttribute : string -> System.ComponentModel.DataAnnotations.CompareAttribute
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The property referenced by 'otherProperty' may be trimmed. Ensure it is preserved.")>]
new System.ComponentModel.DataAnnotations.CompareAttribute : string -> System.ComponentModel.DataAnnotations.CompareAttribute
Public Sub New (otherProperty As String)

Parámetros

otherProperty
String

Propiedad que se va a comparar con la propiedad actual.

Atributos

Se aplica a