←Select platform

GetObjectData Method

Summary

Populates a specified System.Runtime.Serialization.SerializationInfo with the data necessary to serialize this object.

Syntax

C#
VB
C++
[SecurityPermissionAttribute(Flags=SecurityPermissionFlag.SerializationFormatter,  
   Assertion=false,  
   UnmanagedCode=false,  
   SkipVerification=false,  
   Execution=false,  
   ControlThread=false,  
   ControlEvidence=false,  
   ControlPolicy=false,  
   SerializationFormatter=true,  
   ControlDomainPolicy=false,  
   ControlPrincipal=false,  
   ControlAppDomain=false,  
   RemotingConfiguration=false,  
   Infrastructure=false,  
   BindingRedirects=false,  
   Action=SecurityAction.Demand,  
   Unrestricted=false)] 
public override void GetObjectData(  
   SerializationInfo info, 
   StreamingContext context 
) 
<SecurityPermissionAttribute(Flags=SecurityPermissionFlag.SerializationFormatter,  
   Assertion=False,  
   UnmanagedCode=False,  
   SkipVerification=False,  
   Execution=False,  
   ControlThread=False,  
   ControlEvidence=False,  
   ControlPolicy=False,  
   SerializationFormatter=True,  
   ControlDomainPolicy=False,  
   ControlPrincipal=False,  
   ControlAppDomain=False,  
   RemotingConfiguration=False,  
   Infrastructure=False,  
   BindingRedirects=False,  
   Action=SecurityAction.Demand,  
   Unrestricted=False)> 
Public Overrides Sub GetObjectData( _ 
   ByVal info As SerializationInfo, _ 
   ByVal context As StreamingContext _ 
) 
[SecurityPermissionAttribute(Flags=SecurityPermissionFlag.SerializationFormatter,  
   Assertion=false,  
   UnmanagedCode=false,  
   SkipVerification=false,  
   Execution=false,  
   ControlThread=false,  
   ControlEvidence=false,  
   ControlPolicy=false,  
   SerializationFormatter=true,  
   ControlDomainPolicy=false,  
   ControlPrincipal=false,  
   ControlAppDomain=false,  
   RemotingConfiguration=false,  
   Infrastructure=false,  
   BindingRedirects=false,  
   Action=SecurityAction.Demand,  
   Unrestricted=false)] 
public: 
void GetObjectData(  
   SerializationInfo^ info, 
   StreamingContext context 
) override 

Parameters

info
The System.Runtime.Serialization.SerializationInfo to populate with data.

context
The contextual information about the source or destination of the serialization

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Click or drag to resize