OwnedAttribute 類別

定義

將類型標示為擁有。 此類型的所有參考都會設定為擁有的實體類型。

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

備註

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

建構函式

OwnedAttribute()

將類型標示為擁有。 此類型的所有參考都會設定為擁有的實體類型。

適用於