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

検索する注釈のキー。

戻り値

指定した名前の注釈。

適用対象