共用方式為


RelationshipManager.OnDeserialized 方法

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

在內部搭配 RelationshipManager 執行個體用來還原序列化實體物件。

命名空間:  System.Data.Entity.Core.Objects.DataClasses
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")> _
<BrowsableAttribute(False)> _
<OnDeserializedAttribute> _
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
Public Sub OnDeserialized ( _
    context As StreamingContext _
)
'用途
Dim instance As RelationshipManager 
Dim context As StreamingContext

instance.OnDeserialized(context)
[SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")]
[BrowsableAttribute(false)]
[OnDeserializedAttribute]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public void OnDeserialized(
    StreamingContext context
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2238:ImplementSerializationMethodsCorrectly")]
[BrowsableAttribute(false)]
[OnDeserializedAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
public:
void OnDeserialized(
    StreamingContext context
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")>]
[<BrowsableAttribute(false)>]
[<OnDeserializedAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
member OnDeserialized : 
        context:StreamingContext -> unit
public function OnDeserialized(
    context : StreamingContext
)

參數

請參閱

參考

RelationshipManager 類別

System.Data.Entity.Core.Objects.DataClasses 命名空間