Share via


AssociationAttribute(String, String, String) 建構函式

定義

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

public:
 AssociationAttribute(System::String ^ name, System::String ^ thisKey, System::String ^ otherKey);
public AssociationAttribute (string name, string thisKey, string otherKey);
new System.ComponentModel.DataAnnotations.AssociationAttribute : string * string * string -> System.ComponentModel.DataAnnotations.AssociationAttribute
Public Sub New (name As String, thisKey As String, otherKey As String)

參數

name
String

關聯的名稱。

thisKey
String

關聯的 thisKey 一端,索引鍵值之屬性名稱的逗號分隔清單。

otherKey
String

關聯的 otherKey 一端,索引鍵值之屬性名稱的逗號分隔清單。

備註

如果關聯是雙向的,則關聯兩端的名稱必須相同。

適用於