GetObjectData Method
See Also 
SourceCode.SmartObjects.Authoring Namespace > SmartObjectDefinitionException Class : GetObjectData Method



info
The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
context
The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

Glossary Item Box

When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.

Syntax

Visual Basic (Declaration) 
Public Overrides Sub GetObjectData( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
) 
Visual Basic (Usage)Copy Code
Dim instance As SmartObjectDefinitionException
Dim info As SerializationInfo
Dim context As StreamingContext
 
instance.GetObjectData(info, context)
C# 
public override void GetObjectData( 
   SerializationInfo info,
   StreamingContext context
)
C++/CLI 
public:
void GetObjectData( 
   SerializationInfo^ info,
   StreamingContext context
) override 

Parameters

info
The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
context
The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionThe info parameter is a null reference (Nothing in Visual Basic).

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also