Metodo ExtensionMethods.FindVocabularyAnnotations<T> (IEdmModel, IEdmVocabularyAnnotatable, IEdmTerm)
Ottiene le annotazioni del vocabolario di un elemento annotabile associate a un particolare termine.
Spazio dei nomi Microsoft.Data.Edm
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Sintassi
'Dichiarazione
<ExtensionAttribute> _
Public Shared Function FindVocabularyAnnotations(Of T As IEdmVocabularyAnnotation) ( _
model As IEdmModel, _
element As IEdmVocabularyAnnotatable, _
term As IEdmTerm _
) As IEnumerable(Of T)
'Utilizzo
Dim model As IEdmModel
Dim element As IEdmVocabularyAnnotatable
Dim term As IEdmTerm
Dim returnValue As IEnumerable(Of T)
returnValue = model.FindVocabularyAnnotations(element, _
term)
public static IEnumerable<T> FindVocabularyAnnotations<T>(
this IEdmModel model,
IEdmVocabularyAnnotatable element,
IEdmTerm term
)
where T : IEdmVocabularyAnnotation
[ExtensionAttribute]
public:
generic<typename T>
where T : IEdmVocabularyAnnotation
static IEnumerable<T>^ FindVocabularyAnnotations(
IEdmModel^ model,
IEdmVocabularyAnnotatable^ element,
IEdmTerm^ term
)
static member FindVocabularyAnnotations :
model:IEdmModel *
element:IEdmVocabularyAnnotatable *
term:IEdmTerm -> IEnumerable<'T> when 'T : IEdmVocabularyAnnotation
JScript non supporta metodi e tipi generici.
Parametri di tipo
- T
Tipo dell'annotazione da restituire.
Parametri
- model
Tipo: Microsoft.Data.Edm.IEdmModel
Modello in cui eseguire la ricerca.
- element
Tipo: Microsoft.Data.Edm.IEdmVocabularyAnnotatable
Elemento da verificare per le annotazioni.
- term
Tipo: Microsoft.Data.Edm.IEdmTerm
Termine da ricercare.
Valore restituito
Tipo: System.Collections.Generic.IEnumerable<T>
Annotazioni collegate all'elemento dal modello o dai modelli cui tale modello fa riferimento associate al termine.
Nota sull'utilizzo
In Visual Basic e C# questo metodo può essere chiamato come metodo di istanza su qualsiasi oggetto di tipo IEdmModel. Quando si utilizza la sintassi del metodo di istanza per chiamare questo metodo, omettere il primo parametro. Per ulteriori informazioni, vedere https://msdn.microsoft.com/it-it/library/bb384936(v=vs.103) o https://msdn.microsoft.com/it-it/library/bb383977(v=vs.103).