EntityKey.OnDeserialized, méthode
[Cette page concerne Entity Framework version 6. La dernière version est disponible sous le nom de package 'Entity Framework' NuGet. Pour plus d'informations sur Entity Framework, consultez msdn.com/data/ef.]
Appelle une fois que cet EntityKey a été désérialisé.
Espace de noms : System.Data.Entity.Core
Assembly : EntityFramework (dans EntityFramework.dll)
Syntaxe
'Déclaration
<SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")> _
<BrowsableAttribute(False)> _
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
<OnDeserializedAttribute> _
Public Sub OnDeserialized ( _
context As StreamingContext _
)
'Utilisation
Dim instance As EntityKey
Dim context As StreamingContext
instance.OnDeserialized(context)
[SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")]
[BrowsableAttribute(false)]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[OnDeserializedAttribute]
public void OnDeserialized(
StreamingContext context
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2238:ImplementSerializationMethodsCorrectly")]
[BrowsableAttribute(false)]
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[OnDeserializedAttribute]
public:
void OnDeserialized(
StreamingContext context
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")>]
[<BrowsableAttribute(false)>]
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<OnDeserializedAttribute>]
member OnDeserialized :
context:StreamingContext -> unit
public function OnDeserialized(
context : StreamingContext
)
Paramètres
- context
Type : System.Runtime.Serialization.StreamingContext
Contexte de sérialisation.