Share via


AnnotatableExtensions.GetAnnotation(IAnnotatable, String) Method

Definition

Gets the annotation with the given name, throwing if it does not exist.

public static Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation GetAnnotation (this Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable annotatable, string annotationName);
static member GetAnnotation : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * string -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
<Extension()>
Public Function GetAnnotation (annotatable As IAnnotatable, annotationName As String) As IAnnotation

Parameters

annotatable
IAnnotatable

The object to find the annotation on.

annotationName
String

The key of the annotation to find.

Returns

The annotation with the specified name.

Applies to