BackingFieldAttribute 類別

定義

將與此屬性或導覽屬性相關聯的備份欄位命名為 。

[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class BackingFieldAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property)>]
type BackingFieldAttribute = class
    inherit Attribute
Public NotInheritable Class BackingFieldAttribute
Inherits Attribute
繼承
BackingFieldAttribute
屬性

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

建構函式

BackingFieldAttribute(String)

初始化 BackingFieldAttribute 類別的新執行個體。

屬性

Name

備份欄位的名稱。

適用於