MutableAnnotatableExtensions.GetAnnotation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得帶有名稱的註解,若不存在則拋出。
public static Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation GetAnnotation(this Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable annotatable, string annotationName);
static member GetAnnotation : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable * string -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
<Extension()>
Public Function GetAnnotation (annotatable As IMutableAnnotatable, annotationName As String) As IAnnotation
參數
- annotatable
- IMutableAnnotatable
要在上面找到註解的物件。
- annotationName
- String
要找到註解的關鍵。
傳回
標註中指定名稱。