IndexAnnotation.MergeWith(Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将此批注与给定批注合并,并返回包含合并索引的新批注。
public virtual object MergeWith (object other);
abstract member MergeWith : obj -> obj
override this.MergeWith : obj -> obj
Public Overridable Function MergeWith (other As Object) As Object
参数
- other
- Object
要与此批注合并的批注。
返回
合并了两个批注中的索引的新批注。
实现
例外
另一个批注包含与此批注中的索引不兼容的索引。
注解
每个索引注释最多包含一个 IndexAttribute 具有给定名称的注释。 合并的批注将包含来自此批注和另一个批注的 IndexAttributes。 如果两个注释都包含同名的 IndexAttribute,则合并的批注将包含一个具有该名称的 IndexAttribute。