語言

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
屬性

方法

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

為物件添加註解。

GetAnnotation(IMutableAnnotatable, String)
已淘汰.

取得帶有名稱的註解,若不存在則拋出。

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

取得帶有特定鍵的現有註解,或若不存在註解則新增。

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

設定以名字儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。 若 null 提供 則移除現有註解。

適用於