Share via


AnnotatableExtensions.GetAnnotation(IAnnotatable, String) Metoda

Definice

Získá anotaci s daným názvem, vyvolá se, pokud neexistuje.

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

Parametry

annotatable
IAnnotatable

Objekt, na který se má anotace najít.

annotationName
String

Klíč poznámky, který chcete najít.

Návraty

Poznámka se zadaným názvem.

Platí pro