語言

IReadOnlyAnnotatable 介面

定義

一個支援註解的類別。 註解允許在物件上儲存任意的元資料。

此介面通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

public interface IReadOnlyAnnotatable
type IReadOnlyAnnotatable = interface
Public Interface IReadOnlyAnnotatable
衍生

備註

更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。

屬性

名稱 Description
Item[String]

取得帶有名稱的註解值,若不存在則回 null 傳。

方法

名稱 Description
AnnotationsToDebugString(Int32)

取得物件上所有宣告註解的除錯字串。

FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

GetAnnotation(String)

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

GetAnnotations()

取得目前物件的所有註解。

適用於