IModelAnnotationHolder.GetAnnotations<TType> Method
Returns all attached model annotations that implement the given annotation type and have the specified model identifier.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Function GetAnnotations(Of TType As {Class, IModelAnnotation}) As IList(Of TType)
IList<TType> GetAnnotations<TType>()
where TType : class, IModelAnnotation
generic<typename TType>
where TType : ref class, IModelAnnotation
IList<TType>^ GetAnnotations()
abstract GetAnnotations : unit -> IList<'TType> when 'TType : not struct and IModelAnnotation
JScript does not support generic types or methods.
Type Parameters
- TType
A IModelAnnotation type.
Return Value
Type: System.Collections.Generic.IList<TType>
A list containing the selected model annotations.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IModelAnnotationHolder Interface