AssociationAttribute(String, String, String) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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 屬性名稱清單。
備註
若協會為雙向,則名稱必須在協會雙方相同。