IModelAnnotationHolder.GetAnnotations Method (ModelStore.Identifier, Type)
Returns a list of 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 ( _
identifier As ModelStore..::..Identifier, _
annotationType As Type _
) As IList(Of IModelAnnotation)
'Usage
Dim instance As IModelAnnotationHolder
Dim identifier As ModelStore..::..Identifier
Dim annotationType As Type
Dim returnValue As IList(Of IModelAnnotation)
returnValue = instance.GetAnnotations(identifier, _
annotationType)
IList<IModelAnnotation> GetAnnotations(
ModelStore..::..Identifier identifier,
Type annotationType
)
IList<IModelAnnotation^>^ GetAnnotations(
ModelStore..::..Identifier^ identifier,
Type^ annotationType
)
function GetAnnotations(
identifier : ModelStore..::..Identifier,
annotationType : Type
) : IList<IModelAnnotation>
abstract GetAnnotations :
identifier:ModelStore..::..Identifier *
annotationType:Type -> IList<IModelAnnotation>
Parameters
- identifier
Type: Microsoft.Data.Schema.SchemaModel.ModelStore.Identifier
Specifies the identifier
- annotationType
Type: System.Type
Specifies the annotation type
Return Value
Type: System.Collections.Generic.IList<IModelAnnotation>
.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