共用方式為


IModelAnnotationHolder 介面

表示可以具有附加附註的類別。

命名空間:  Microsoft.Data.Schema.SchemaModel
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
Public Interface IModelAnnotationHolder
public interface IModelAnnotationHolder
public interface class IModelAnnotationHolder
type IModelAnnotationHolder =  interface end
public interface IModelAnnotationHolder

IModelAnnotationHolder 型別會公開下列成員。

方法

  名稱 說明
公用方法 AddAnnotation 將指定的附註加入至這個項目。
公用方法 GetAnnotations() 傳回附加至這個項目之附註的清單。
公用方法 GetAnnotations(Type) 傳回指定型別之附加附註的清單。
公用方法 GetAnnotations(ModelIdentifier) 傳回具有指定識別項之附加附註的清單。
公用方法 GetAnnotations(ModelIdentifier, Type)
公用方法 GetAnnotations<TType>() 傳回實作指定之附註型別且具有指定之模型識別項的所有附加模型附註。
公用方法 GetAnnotations<TType>(ModelIdentifier)
公用方法 RemoveAnnotation 從這個模型項目移除指定的附註。

回頁首

請參閱

參考

Microsoft.Data.Schema.SchemaModel 命名空間