Share via


IConventionAnnotatable.FindAnnotation(String) 方法

定義

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

public Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation FindAnnotation (string name);
public Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? FindAnnotation (string name);
abstract member FindAnnotation : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation
Public Function FindAnnotation (name As String) As IConventionAnnotation

參數

name
String

要尋找之註解的名稱。

傳回

如果具有指定名稱的注釋已經存在,則為現有的批註。 否則為 null

適用於