Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
GetObjectData Method
See Also 
Leadtools Namespace > RasterException Class : GetObjectData Method




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.
When overridden in a derived class, sets the SerializationInfo with information about the exception.

Syntax

Visual Basic (Declaration) 
<SecurityPermissionAttribute(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, 
   Unrestricted=False)>
Public Overrides Sub GetObjectData( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterException
Dim info As SerializationInfo
Dim context As StreamingContext
 
instance.GetObjectData(info, context)
C# 
[SecurityPermissionAttribute(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, 
   Unrestricted=false)]
public override void GetObjectData( 
   SerializationInfo info,
   StreamingContext context
)
Managed Extensions for C++ 
[SecurityPermissionAttribute(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, 
   Unrestricted=false)]
public: void GetObjectData( 
   SerializationInfo* info,
   StreamingContext context
) override 
C++/CLI 
[SecurityPermissionAttribute(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, 
   Unrestricted=false)]
public:
void GetObjectData( 
   SerializationInfo^ info,
   StreamingContext context
) override 

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also