特定のタームをバインドする、注釈付け可能な要素のボキャブラリ注釈を取得します。
名前空間: Microsoft.Data.Edm
アセンブリ: Microsoft.Data.Edm (Microsoft.Data.Edm.dll)
構文
'宣言
<ExtensionAttribute> _
Public Shared Function FindVocabularyAnnotations(Of T As IEdmVocabularyAnnotation) ( _
model As IEdmModel, _
element As IEdmVocabularyAnnotatable, _
termName As String, _
qualifier As String _
) As IEnumerable(Of T)
'使用
Dim model As IEdmModel
Dim element As IEdmVocabularyAnnotatable
Dim termName As String
Dim qualifier As String
Dim returnValue As IEnumerable(Of T)
returnValue = model.FindVocabularyAnnotations(element, _
termName, qualifier)
public static IEnumerable<T> FindVocabularyAnnotations<T>(
this IEdmModel model,
IEdmVocabularyAnnotatable element,
string termName,
string qualifier
)
where T : IEdmVocabularyAnnotation
[ExtensionAttribute]
public:
generic<typename T>
where T : IEdmVocabularyAnnotation
static IEnumerable<T>^ FindVocabularyAnnotations(
IEdmModel^ model,
IEdmVocabularyAnnotatable^ element,
String^ termName,
String^ qualifier
)
static member FindVocabularyAnnotations :
model:IEdmModel *
element:IEdmVocabularyAnnotatable *
termName:string *
qualifier:string -> IEnumerable<'T> when 'T : IEdmVocabularyAnnotation
JScript では、ジェネリックな型およびメソッドは使用できません。
型パラメーター
- T
取得する注釈の型。
パラメーター
- model
型: Microsoft.Data.Edm.IEdmModel
検索するモデル。
- element
型: Microsoft.Data.Edm.IEdmVocabularyAnnotatable
注釈をチェックする要素。
- termName
型: System.String
検索するタームの名前。
- qualifier
型: System.String
適用する修飾子。
戻り値
型: System.Collections.Generic.IEnumerable<T>
このモデル (または特定の修飾子でタームをバインドする、このモデルの参照先モデル) によって要素に適用された注釈。
使用に関するメモ
Visual Basic および C# では、このメソッドを型 IEdmModel の任意のオブジェクトのインスタンス メソッドとして呼び出すことができます。このメソッドを呼び出すためにインスタンス メソッドの構文を使う場合は、最初のパラメーターを省略してください。詳細については、「https://msdn.microsoft.com/ja-jp/library/bb384936(v=vs.103)」または「https://msdn.microsoft.com/ja-jp/library/bb383977(v=vs.103)」を参照してください。