InfoConnect API Guide
Attachmate.Reflection.Emulation.IbmHosts Namespace / IbmHostsException Class / GetObjectData Method
The System.Runtime.Serialization.SerializationInfo to populate with data.
The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.
Example


In This Topic
    GetObjectData Method (IbmHostsException)
    In This Topic
    Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
    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 to populate with data.
    context
    The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.
    Exceptions
    ExceptionDescription
    The caller does not have the required permission.
    Example
    IbmHostsException host;
    host.GetObjectData(System.Runtime.Serialization.SerializationInfo serialInfo,
                       System.Runtime.Serialization.StreamingContext context);
    See Also