Reflection .NET API
Attachmate.Reflection.Emulation.IbmHosts Assembly / Attachmate.Reflection.Emulation.IbmHosts Namespace / IbmHostsException Class / GetObjectData Method
The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.
Example


In This Topic
    GetObjectData Method
    In This Topic
    When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
    Syntax
    'Declaration
     
    
    <SecurityPermissionAttribute(SecurityPermissionFlag.SerializationFormatter)>
    Public Overrides Sub GetObjectData( _
       ByVal info As SerializationInfo, _
       ByVal context As StreamingContext _
    ) 
    'Usage
     
    
    Dim instance As IbmHostsException
    Dim info As SerializationInfo
    Dim context As StreamingContext
     
    instance.GetObjectData(info, context)
    [SecurityPermission(SecurityPermissionFlag.SerializationFormatter)]
    public override void GetObjectData( 
       SerializationInfo info,
       StreamingContext context
    )

    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
    The info parameter is a null reference (Nothing in Visual Basic).
    Example
    IbmHostsException host;
    host.GetObjectData(System.Runtime.Serialization.SerializationInfo serialInfo,
                       System.Runtime.Serialization.StreamingContext context);
    See Also