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 屬性名稱清單。

備註

若協會為雙向,則名稱必須在協會雙方相同。

適用於