次の方法で共有


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