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 的属性名称的逗号分隔列表。
注解
如果关联是双向的,则关联双方的名称必须相同。