AnnotatableExtensions.GetAnnotation(IAnnotatable, String) 方法

定義

取得具有指定名稱的注釋,如果不存在,則會擲回。

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

參數

annotatable
IAnnotatable

要尋找注釋的物件。

annotationName
String

要尋找之注釋的索引鍵。

傳回

具有指定名稱的批註。

適用於