←Select platform

GetObjectData Method

Summary
Sets the SerializationInfo with information about the exception.
Syntax
C#
C++/CLI
Python
[SecurityPermissionAttribute()] 
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: 
void GetObjectData(  
   SerializationInfo^ info, 
   StreamingContext context 
) override  
def GetObjectData(self,info,context): 

Parameters

info
The SerializationInfo that holds the serialized object data about the exception being thrown.

context
The StreamingContext that contains contextual information about the source or destination.

Remarks

GetObjectData sets a SerializationInfo with all the exception object data targeted for serialization. During deserialization, the exception is reconstituted from the SerializationInfo transmitted over the stream. For more information, refer to the topic "XML and SOAP Serialization" in the MSDN documentation.

Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ocr Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.