MutableAnnotatableExtensions 類別

定義

警告

Use IMutableAnnotatable

IMutableAnnotatable 的擴充方法。

public static class MutableAnnotatableExtensions
[System.Obsolete("Use IMutableAnnotatable")]
public static class MutableAnnotatableExtensions
type MutableAnnotatableExtensions = class
[<System.Obsolete("Use IMutableAnnotatable")>]
type MutableAnnotatableExtensions = class
Public Module MutableAnnotatableExtensions
Public Class MutableAnnotatableExtensions
繼承
MutableAnnotatableExtensions
屬性

方法

AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)
已淘汰.

將批註加入物件。

GetAnnotation(IMutableAnnotatable, String)
已淘汰.

取得具有指定名稱的注釋,如果不存在,則會擲回。

GetOrAddAnnotation(IMutableAnnotatable, String, String)
已淘汰.

取得具有指定索引鍵的現有注釋,如果不存在,則加入新的批註。

SetOrRemoveAnnotation(IMutableAnnotatable, String, Object)
已淘汰.

設定儲存在指定名稱底下的批註。 如果具有指定名稱的注釋已經存在,則會覆寫現有的批註。 如果 null 已提供,則會移除現有的批註。

適用於