EntityKey.OnDeserializing 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
在反序列化此 EntityKey 后调用。
命名空间: System.Data.Entity.Core
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
<SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")> _
<BrowsableAttribute(False)> _
<OnDeserializingAttribute> _
Public Sub OnDeserializing ( _
context As StreamingContext _
)
用法
Dim instance As EntityKey
Dim context As StreamingContext
instance.OnDeserializing(context)
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")]
[BrowsableAttribute(false)]
[OnDeserializingAttribute]
public void OnDeserializing(
StreamingContext context
)
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2238:ImplementSerializationMethodsCorrectly")]
[BrowsableAttribute(false)]
[OnDeserializingAttribute]
public:
void OnDeserializing(
StreamingContext context
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")>]
[<BrowsableAttribute(false)>]
[<OnDeserializingAttribute>]
member OnDeserializing :
context:StreamingContext -> unit
public function OnDeserializing(
context : StreamingContext
)
参数
- context
类型:System.Runtime.Serialization.StreamingContext
序列化上下文。