CompareAttribute(String) Construtor
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da CompareAttribute classe.
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
A propriedade para comparar com a propriedade atual.
- Atributos