共用方式為


ModelElement.GetAnnotations 方法 (ModelIdentifier, Type)

取得指定之型別的附註清單,而這些附註已加入至目前項目內指定的子項目。

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

語法

'宣告
Public Function GetAnnotations ( _
    identifier As ModelIdentifier, _
    annotationType As Type _
) As IList(Of IModelAnnotation)
public IList<IModelAnnotation> GetAnnotations(
    ModelIdentifier identifier,
    Type annotationType
)
public:
virtual IList<IModelAnnotation^>^ GetAnnotations(
    ModelIdentifier^ identifier, 
    Type^ annotationType
) sealed
abstract GetAnnotations : 
        identifier:ModelIdentifier * 
        annotationType:Type -> IList<IModelAnnotation> 
override GetAnnotations : 
        identifier:ModelIdentifier * 
        annotationType:Type -> IList<IModelAnnotation> 
public final function GetAnnotations(
    identifier : ModelIdentifier, 
    annotationType : Type
) : IList<IModelAnnotation>

參數

傳回值

型別:System.Collections.Generic.IList<IModelAnnotation>
型別 IModelAnnotation 或衍生型別的 IList<T> 物件。

實作

IModelAnnotationHolder.GetAnnotations(ModelIdentifier, Type)

.NET Framework 安全性

請參閱

參考

ModelElement 類別

GetAnnotations 多載

Microsoft.Data.Schema.SchemaModel 命名空間

ModelIdentifier

IModelAnnotation

GetAnnotations