IndexAnnotation.MergeWith(Object) 方法

定义

将此批注与给定批注合并,并返回包含合并索引的新批注。

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。

适用于