ConventionAnnotatable.IConventionAnnotatable.FindAnnotation(String) 方法

定义

获取具有给定名称的批注,如果不存在,则返回 null

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation IConventionAnnotatable.FindAnnotation (string name);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? IConventionAnnotatable.FindAnnotation (string name);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable.FindAnnotation : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation
override this.Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable.FindAnnotation : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation
Function FindAnnotation (name As String) As IConventionAnnotation Implements IConventionAnnotatable.FindAnnotation

参数

name
String

要查找的批注的名称。

返回

如果已存在具有指定名称的注释,则为现有批注。 否则为 null

实现

属性

适用于