ExtensionMethods.FindVocabularyAnnotations 方法 (IEdmModel, IEdmVocabularyAnnotatable)
取得可註釋元素的詞彙註釋,這些註釋是在特定模型及該模型所參考的模型中定義的。
命名空間: Microsoft.Data.Edm
組件: Microsoft.Data.Edm (在 Microsoft.Data.Edm.dll 中)
語法
'宣告
<ExtensionAttribute> _
Public Shared Function FindVocabularyAnnotations ( _
model As IEdmModel, _
element As IEdmVocabularyAnnotatable _
) As IEnumerable(Of IEdmVocabularyAnnotation)
'用途
Dim model As IEdmModel
Dim element As IEdmVocabularyAnnotatable
Dim returnValue As IEnumerable(Of IEdmVocabularyAnnotation)
returnValue = model.FindVocabularyAnnotations(element)
public static IEnumerable<IEdmVocabularyAnnotation> FindVocabularyAnnotations(
this IEdmModel model,
IEdmVocabularyAnnotatable element
)
[ExtensionAttribute]
public:
static IEnumerable<IEdmVocabularyAnnotation^>^ FindVocabularyAnnotations(
IEdmModel^ model,
IEdmVocabularyAnnotatable^ element
)
static member FindVocabularyAnnotations :
model:IEdmModel *
element:IEdmVocabularyAnnotatable -> IEnumerable<IEdmVocabularyAnnotation>
public static function FindVocabularyAnnotations(
model : IEdmModel,
element : IEdmVocabularyAnnotatable
) : IEnumerable<IEdmVocabularyAnnotation>
參數
- model
型別:Microsoft.Data.Edm.IEdmModel
要搜尋的模型。
- element
型別:Microsoft.Data.Edm.IEdmVocabularyAnnotatable
要檢查是否有註釋的元素。
傳回值
型別:System.Collections.Generic.IEnumerable<IEdmVocabularyAnnotation>
此模型或此模型所參考之模型附加至元素的註釋。
使用注意事項
在 Visual Basic 及 C# 中,您可以在任何型別 IEdmModel 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=vs.103) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=vs.103)。