IModelAnnotationHolder.GetAnnotations<TType> Method (ModelStore.Identifier)
Returns all attached annotations that implement the given type and have the identifier as their name.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Function GetAnnotations(Of TType As {Class, IModelAnnotation}) ( _
identifier As ModelStore..::..Identifier _
) As IList(Of TType)
'Usage
Dim instance As IModelAnnotationHolder
Dim identifier As ModelStore..::..Identifier
Dim returnValue As IList(Of TType)
returnValue = instance.GetAnnotations(identifier)
IList<TType> GetAnnotations<TType>(
ModelStore..::..Identifier identifier
)
where TType : class, IModelAnnotation
generic<typename TType>
where TType : ref class, IModelAnnotation
IList<TType>^ GetAnnotations(
ModelStore..::..Identifier^ identifier
)
JScript does not support generic types or methods.
abstract GetAnnotations :
identifier:ModelStore..::..Identifier -> IList<'TType> when 'TType : not struct and IModelAnnotation
Type Parameters
- TType
Parameters
- identifier
Type: Microsoft.Data.Schema.SchemaModel.ModelStore.Identifier
Specifies the identifier
Return Value
Type: System.Collections.Generic.IList<TType>
.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
IModelAnnotationHolder Members