CompareAttribute(String) 建構函式

定義

初始化 CompareAttribute 類別的新執行個體。

public:
 CompareAttribute(System::String ^ otherProperty);
public CompareAttribute (string otherProperty);
new System.ComponentModel.DataAnnotations.CompareAttribute : string -> System.ComponentModel.DataAnnotations.CompareAttribute
Public Sub New (otherProperty As String)

參數

otherProperty
String

要與目前屬性比較的屬性。

適用於